7cb6f97772c8282b3bea90b0f82befe00c01ac21
[gnulib.git] / ChangeLog
1 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
2
3         net_if-tests: port to Solaris 7 + GCC 3.4.6
4         Problem reported by Tom G. Christensen in
5         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
6         * tests/test-net_if.c (ni): Move to next the code that uses it,
7         so that it's declared only if needed.
8
9 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
10
11         net_if-tests: port to older Solaris
12         Problem reported by Tom G. Christensen in
13         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
14         * modules/net_if-tests (NET_IF_LIB): New substitution.
15         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
16         (HAVE_IF_NAMEINDEX): New C macro.
17         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
18
19         system-quote-tests: port to older Solaris
20         Problem reported by Tom G. Christensen in
21         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
22         * tests/test-system-quote-child.c (fopen, fread): Undef.
23
24         c-xvasprintf etc.: fix link errors on older Solaris
25         These need to link with @LIBINTL@ to get libintl_gettext.
26         Problem reported by Tom G. Christensen in
27         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
28         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
29         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
30         * modules/futimens-tests (test_futimens_LDADD):
31         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
32
33 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
34
35         locale: port to Solaris 2.6 and 7 + GNU gettext
36         * lib/locale.in.h: Just include_next <locale.h> when
37         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
38         when combining the localename module with GNU gettext 0.18.2.
39         Problem reported by Tom G. Christensen in
40         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
41
42 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
43
44         stdlib: port to Solaris 2.6
45         Also, the code worked on Solaris 7 through 9 only by accident.
46         Problem reported by Tom G. Christensen in
47         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
48         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
49         simply include the system stdlib.h.
50         * lib/getopt.in.h (__need_system_stdlib_h):
51         * lib/pthread.in.h (__need_system_stdlib_h):
52         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
53         Define when including <stdlib.h>, to avoid problems at least for
54         the pthread case on Solaris 2.6 and 7.  These .h files can get by
55         with the system stdlib.h.
56
57 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
58
59         doc: update main copyright year
60         * doc/gnulib.texi: Update copyright date.
61
62         doc: improve ISO 8601 discussion
63         * doc/parse-datetime.texi (Combined date and time of day items):
64         Specify more carefully what formats are supported and what is
65         done with excess precision.
66
67 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
68
69         doc: avoid small caps
70         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
71         they're more trouble than they're worth.  Suggested by Karl Berry
72         in <http://bugs.gnu.org/13360>.
73
74         regex: conform to strict C
75         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
76         From Aharon Robbins.
77
78         gnulib-tool: fix incompatibility with autopoint 0.18.2
79         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
80         Problem reported by Tom G. Christensen in
81         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
82
83 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84
85         fprintftime: bring back and reword fwrite comment
86         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
87
88         stdio: remove now-unnecessary stdio.c
89         Since stdio.in.h no longer uses inline functions, we no longer
90         need to compile the extern versions.
91         * lib/stdio.c: Remove.
92         * modules/stdio (Files): Remove lib/stdio.c.
93         (lib_SOURCES): Remove.
94
95         unicodeio: depend on stdio, not ignore-value
96         * lib/unicodeio.c: Do not include ignore-value.h.
97         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
98         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
99
100         fprintftime: depend on stdio, not ignore-value
101         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
102         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
103         since the stdio module arranges to silence that warning now.
104         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
105
106 2012-10-04  Simon Josefsson  <simon@josefsson.org>
107
108         stdint-tests: Fix expanded-before-required-warning.
109         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
110
111 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
112
113         fwrite: silence __wur only for older glibc versions
114         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
115         This will help us remove this workaround some time in the far future.
116
117 2013-01-03  Eric Blake  <eblake@redhat.com>
118
119         fwrite: silence __wur without using inline
120         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
121         just gcc, and in a way that avoids inline issues.
122         * modules/stdio (Depends-on): Drop extern-inline.
123
124 2013-01-03  Jim Meyering  <jim@meyering.net>
125
126         update-copyright: avoid copyright notice date corruption
127         Given a sequence of copyright year numbers in which the final
128         one was a two-digit number that happened to be a substring of
129         a preceding four-digit year number, we would mistakenly update
130         the substring (from two- to four-digit) rather than the two-digit
131         number at the end, which, combined with the addition of the current
132         4-digit year number would yield two 5-digit year numbers, e.g.,
133         here, it would convert the first "99" to "1999, 2013" rather than
134         the final one:
135           1991, 99
136           11999, 20131, 1999
137         * build-aux/update-copyright: Tighten a regexp.
138         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
139         Reported by Joseph Myers in
140         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
141
142 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
143
144         regex: omit needless signed-pointer casts
145         * lib/regcomp.c (build_charclass, build_charclass_op):
146         Use char *, not unsigned char *, for class name and extra.
147         The char values are always nonnegative so there's no need to
148         insist on unsigned char * here, and using char * removes the need
149         for casts.  Reported by Aharon Robbins in
150         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
151
152         regex: support Gawk, which never uses alloca
153         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
154         Do not include in this case.  Gawk doesn't supply a substitute
155         alloca.h and doesn't need one.
156
157         regex: port __libc_lock_define usage to C89
158         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
159         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
160         does not conform to C89, as it has an empty macro argument.
161         Reported by Aharon Robbins in
162         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
163
164 2013-01-01  Eric Blake  <eblake@redhat.com>
165
166         maint: update all copyright year number ranges
167         Run "make update-copyright".
168
169         version-etc: bump copyright year reported in --version
170         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
171
172 2012-12-31  Eric Blake  <eblake@redhat.com>
173
174         sigprocmask-tests: skip test if pid is unexpectedly large
175         * tests/test-sigprocmask.c (main): Add range check.
176
177         git-version-gen: avoid test -z portability glitch
178         * build-aux/git-version-gen: Prefer portable test spelling, since
179         git-version-gen is run on more than just developer machines.
180
181 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
182
183         git-version-gen: add --fallback option to use if git is not present
184         * build-aux/git-version-gen: Add support for the new option --fallback,
185         which comes into play when there is no $tarball_version_file and
186         git is not working.
187         (scriptversion): Update.
188
189         maint.mk: handle missing git with more grace
190         * top/maint.mk (no-submodule-changes, public-submodule-commit):
191         Quietly proceed if git is not present.
192
193 2012-12-31  Eric Blake  <eblake@redhat.com>
194
195         dup2: work around cygwin bug
196         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
197         * lib/dup2.c (rpl_dup2): Work around it.
198         * doc/posix-functions/dup2.texi (dup2): Document it.
199
200 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
201
202         regex: remove unnecessary dependency on localcharset.h
203         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
204         hasn't been needed for years.
205         * modules/regex (Depends-on): Remove localcharset.
206
207         regex: revert single-byte change
208         * lib/regexec.c (check_node_accept_bytes): Revert previous change
209         to this function.  This was alredy fixed in a different way, at
210         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
211         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
212         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
213
214         regex: simplify based on Gawk version
215         * lib/regex_internal.c (re_dfa_add_node): Simplify.
216         Reported by Aharon Robbins in
217         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
218
219 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
220
221         regex: check that pattern char is single-byte
222         Reported by Aharon Robbins in
223         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
224         * lib/regexec.c (check_node_accept_bytes):
225         Return 0 if the pattern string has a multibyte character here.
226
227         regex: implement rational ranges
228         Reported by Aharon Robbins in
229         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
230         * lib/regcomp.c (build_range_exp) [!_LIBC]:
231         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
232         Implement rational ranges.
233
234         regex: avoid redefining __wctype
235         Reported by Aharon Robbins in
236         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
237         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
238         #undef before defining.
239
240         regex: port to hosts where malloc (0) == NULL
241         Reported by Aharon Robbins in
242         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
243         * lib/regex_internal.c (re_node_set_alloc):
244         Don't assume that malloc (0) yields nonnull.
245         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
246         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
247         * modules/regex (Files): Add m4/eealloc.m4.
248
249         regex: port to C89
250         Reported by Aharon Robbins in
251         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
252         * lib/regcomp.c (init_word_char): Declaration before statement.
253
254         regex: merge glibc changes
255         Also, copy the license wording from glibc.  This simplifies
256         merging changes.  gnulib-tool will change the wording to GPL as
257         appropriate, when importing it to other packages.  The only
258         glibc change made since the last merge, which needs merging, is:
259         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
260         * lib/regex_internal.h (gettext): Remove use of INTUSE.
261
262         * users.txt: Add Emacs.
263
264         doc: omit mention of version when not needed
265         * doc/gnulib-intro.texi (Portability and Application Code):
266         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
267         Don't mention particular dates or versions when not necessary, so
268         that the documentation won't go out of date so quickly.
269
270         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
271
272 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
273
274         bootstrap: pass --force to autoreconf.
275         * build-aux/bootstrap (AUTORECONFFLAGS): New.
276         Add "--force" so that Automake's ylwrap and other such tools
277         be updated at each bootstrap invocation.
278         Use it.
279
280 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
281
282         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
283         The earlier patch forgot to update one of the #if conditions, causing
284         a problem on Debian testing i386 reported by Mats Erik Andersson
285         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
286         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
287         (__argp_fmtstream_puts, argp_fmtstream_puts)
288         (__argp_fmtstream_write, argp_fmtstream_write)
289         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
290
291         * doc/gnulib-readme.texi: Minor fixups.
292         (Portability guidelines): Modernize URLs.  Remove some repetition.
293         (Indent with spaces not TABs): Reword to avoid too-long lines.
294         Remove some '@ifset standalone' stuff that isn't used.
295
296         * doc/gnulib-readme.texi (Portability guidelines):
297         ctype.h, not ctime.h.
298
299         Correct name of POSIX.1-2001.
300         * doc/posix-functions/fgetc.texi (fgetc):
301         * doc/posix-functions/fgets.texi (fgets):
302         * doc/posix-functions/fread.texi (fread):
303         * doc/posix-functions/fscanf.texi (fscanf):
304         * doc/posix-functions/getc.texi (getc):
305         * doc/posix-functions/getchar.texi (getchar):
306         * doc/posix-functions/scanf.texi (scanf):
307         POSIX.1-2001, not POSIX-2001.
308
309         doc: move README into manual
310         * README: Move contents to new file doc/gnulib-readme.texi.
311         Replace with a one-line summary.
312         * doc/gnulib.texi (Brief Overview): New section,
313         with old intro preface.  Include gnulib-readme.texi for contents.
314         (Philosophy): Rename from "Introduction", since this
315         section no longer introduces the rest.  Write a new preface.
316         * doc/gnulib-readme.texi: New file, with the old contents of
317         README texinfo-ized.  This way, the README info appears
318         in the online and printed manual.
319
320 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
321
322         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
323         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
324         c_vasprintf() prototype.
325
326 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
327
328         c-vasprintf: Fix "empty declaration" warning reported by GCC.
329         * lib/c-vasprintf.h: Remove stray semicolon.
330
331 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
332
333         gettext: avoid obsolete macro AM_PROG_MKDIR_P
334         It is obsolete and is planned to be removed from Automake 1.14; see
335         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
336         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
337         (installdirs-data, installdirs-data-yes):
338         Use $(MKDIR_P), not $(mkdir_p).
339         * m4/intl.m4 (AM_INTL_SUBDIR):
340         * m4/po.m4 (AM_PO_SUBDIRS):
341         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
342
343 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
344
345         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
346         On this platform, we are not optimizing but we are using
347         the substitute for extern inlines, so compile as if
348         C99-style extern inline, or a substitute, is available.
349         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
350         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
351         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
352         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
353         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
354         Declare as ARGP_FS_EI, not as extern.
355         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
356         (__option_is_short, _option_is_end, __option_is_end)
357         [!_LIBC && __USE_EXTERN_INLINES]:
358         Declare as ARGP_EI, not as extern.
359
360 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
361
362         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
363         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
364         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
365         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
366         ...), as the latter is fatal with older Autoconfs.
367         Problem reported and fix suggested by Eric Blake in thread starting at
368         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
369
370 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
371
372         AC_PROG_MKDIR_P: don't workaround if not buggy
373         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
374         Define only for Autoconf versions before 2.62.
375         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
376         undocumented m4_PACKAGE_VERSION, for consistency with the
377         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
378         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
379         was introduced in 2.62.
380
381 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
382
383         New 'c-*printf' modules for formatted output in C locale.
384
385         New module 'c-vasnprintf'.
386         * modules/c-vasnprintf: New file.
387         * lib/c-vasnprintf.c: New file.
388         * lib/c-vasnprintf.h: New file.
389
390         New module 'c-snprintf'.
391         * modules/c-snprintf: New file.
392         * modules/c-snprintf-tests: New file.
393         * lib/c-snprintf.c: New file.
394         * lib/c-snprintf.h: New file.
395         * tests/test-c-snprintf.c: New file.
396         * tests/test-c-snprintf.sh: New file.
397
398         New module 'c-vsnprintf'.
399         * modules/c-vsnprintf: New file.
400         * modules/c-vsnprintf-tests: New file.
401         * lib/c-vsnprintf.c: New file.
402         * lib/c-vsnprintf.h: New file.
403         * tests/test-c-vsnprintf.c: New file.
404         * tests/test-c-vsnprintf.sh: New file.
405
406         New module 'c-vasprintf'.
407         * modules/c-vasprintf: New file.
408         * modules/c-vasprintf-tests: New file.
409         * lib/c-asprintf.c: New file.
410         * lib/c-vasprintf.c: New file.
411         * lib/c-vasprintf.h: New file.
412         * tests/test-c-vasprintf.c  +: New file.
413         * tests/test-c-vasprintf.sh: New file.
414
415         New module 'c-xvasprintf'.
416         * modules/c-xvasprintf: New file.
417         * modules/c-xvasprintf-tests: New file.
418         * lib/c-xasprintf.c: New file.
419         * lib/c-xvasprintf.c: New file.
420         * lib/c-xvasprintf.h: New file.
421         * tests/test-c-xvasprintf.c: New file.
422         * tests/test-c-xvasprintf.sh: New file.
423
424 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
425
426         argp: better 'inline'
427         Use extern-inline module to declare extern inline functions.
428         This avoids some bogus warning diagnostics.  Problem discovered
429         when modifying GNU tar to use the manywarnings module.
430         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
431         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
432         Define based on extern-inline.
433         * modules/argp (Depends-on): Add extern-inline.
434
435 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
436
437         filemode, sys_stat: Handle MPX files a la AIX.
438         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
439         * lib/sys_stat.in.h (S_ISMPX): New macro.
440         * tests/test-sys_stat.c: Add tests for MPX files.
441
442 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
443
444         x-to-1: honor $PERL
445         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
446         a chance to use his preferred version of Perl.  This is typically
447         required by Darwin users whose default /usr/bin/perl does not have all
448         the libraries required by help2man, and who need to use their MacPorts
449         installation of Perl instead.
450
451 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
452
453         gnu-web-doc-update: add all the new files, even in new directories
454         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
455         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
456         Use it.
457         (main): Don't use cvsutils to get the list of unknown files,
458         just add all the existing files and directories.
459
460 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
461
462         gnu-web-doc-update: improve --help
463         * build-aux/gnu-web-doc-update: Move comments into --help.
464
465 2012-12-07  Eric Wong  <normalperson@yhbt.net>
466
467         mountlist: recognize more "dummy" file systems
468         * lib/mountlist.c (ME_DUMMY_0):
469         Add these dummy FS names to the list:
470         - "debugfs" virtual filesystem for kernel debugging
471         - "devpts" PTY slave filesystem
472         - "devtmpfs" device filesystem on top of tmpfs/ramfs
473         - "fusectl" control filesystem for FUSE
474         - "mqueue" enumerates POSIX message queues
475         - "rpc_pipefs" kernel <-> userspace bridge for NFS
476         - "sysfs" is for exporting kernel objects
477         - "devfs" device filesystem for Linux 2.4 and FreeBSD
478
479 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
480
481         extern-inline: avoid incompatibility with Darwin Libc
482         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
483         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
484         Problem reported by Akim Demaille in
485         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
486
487 2012-12-11  Simon Josefsson  <simon@josefsson.org>
488
489         gnupload: Work with GnuPG using gpg-agent (for smartcards).
490         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
491         let it handle password prompting.
492
493 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
494
495         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
496         * lib/canonicalize.c (canonicalize_filename_mode):
497         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
498         fetching the current directory.  Don't overrun the beginning of
499         rpath if there's no slashes after the MS-Windows drive letter.
500
501 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
502
503         maint.mk: avoid extra forks
504         * top/maint.mk (_cfg_mk): The GNU make manual documents that
505         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
506         So use that instead of "$(shell test -f FILE && echo FILE)".
507
508 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
509
510         vasnprintf: fix ASCII_ONLY typo
511         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
512         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
513         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
514         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
515         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
516
517 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
518
519         list, oset, xlist, xoset: fix extern inline issue with C99
520         This was introduced by my recent changes for 'inline'.
521         Problem reported for gettext by Daiki Ueno in
522         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
523         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
524         (gl_list_nx_create, gl_list_size, gl_list_node_value)
525         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
526         (gl_list_previous_node, gl_list_get_at)
527         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
528         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
529         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
530         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
531         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
532         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
533         (gl_list_iterator_free, gl_sortedlist_search)
534         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
535         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
536         (gl_sortedlist_remove):
537         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
538         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
539         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
540         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
541         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
542         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
543         (gl_list_add_at, gl_sortedlist_add):
544         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
545         Wrap these extern decls inside "#if 0", because they are implemented
546         as inline functions, and extern inline is not what's wanted here.
547         It would simplify these .h files to remove the extern decls entirely,
548         although a downside would be less-clear separation between
549         specification and implementation.
550
551 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
552
553         sys_stat: no 'static inline'
554         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
555         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
556
557         extern-inline: no 'static inline'
558         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
559         Do not require AC_C_INLINE.
560         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
561         'static inline', for older compilers.
562
563         snippet/warn-on-use: no 'static inline'
564         * build-aux/snippet/warn-on-use.h:
565         Remove unnecessary 'inline' in comment.
566
567         rbtree-list, rbtreehash-list: no 'static inline'
568         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
569         * lib/gl_anytree_list2.h (node_at):
570         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
571         (gl_oset_first, add_nodes_to_buckets):
572         Now static, not static inline.
573
574         regex: no 'static inline'
575         * lib/regex_internal.c (calc_state_hash):
576         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
577         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
578         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
579         Now static, not static inline.
580         (inline) [__GNUC__ < 3 && _LIBC]:
581         Remove macro; no longer needed.
582
583         xvasprintf: no 'static inline'
584         * lib/xvasprintf.c (xstrcat):
585         Now static, not static inline.
586         * m4/xvasprintf.m4 (gl_XVASPRINTF):
587         Do not require AC_C_INLINE.
588
589         parse-datetime, parse-duration: no 'static inline'
590         * lib/parse-datetime.y (to_uchar):
591         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
592         (scale_n_add):
593         Now static, not static inline.
594         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
595         * modules/parse-duration (configure.ac):
596         Do not require AC_C_INLINE.
597
598         getaddrinfo: no 'static inline'
599         * lib/getaddrinfo.c (validate_family):
600         Now static, not static inline.
601         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
602         Do not require AC_C_INLINE.
603
604         ftruncate, fts, lstat, openat, raise: no 'static inline'
605         * lib/ftruncate.c (chsize_nothrow):
606         * lib/fts.c (opendirat, diropen):
607         * lib/lstat.c (orig_lstat):
608         * lib/openat.c (orig_openat):
609         * lib/raise.c (raise_nothrow):
610         Now static, not static inline.
611         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
612         * m4/fts.m4 (gl_FUNC_FTS_CORE):
613         * m4/lstat.m4 (gl_PREREQ_LSTAT):
614         * m4/openat.m4 (gl_PREREQ_OPENAT):
615         * m4/raise.m4 (gl_PREREQ_RAISE):
616         Do not require AC_C_INLINE.
617
618         fflush, stat: no 'static inline'
619         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
620         (clear_ungetc_buffer, disable_seek_optimization)
621         (restore_seek_optimization, update_fpos_cache):
622         * lib/stat.c (orig_stat):
623         Now static, not static inline.
624         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
625         (update_fpos_cache):
626         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
627         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
628         * m4/stat.m4 (gl_PREREQ_STAT):
629         Do not require AC_C_INLINE.
630
631         error, filevercmp: no 'static inline'
632         * lib/error.c (is_open, flush_stdout):
633         * lib/filevercmp.c (order):
634         Now static, not static inline.
635         * m4/error.m4 (gl_PREREQ_ERROR):
636         * modules/filevercmp (configure.ac):
637         Do not require AC_C_INLINE.
638
639         dup, execute, fatal-signal, etc.: no 'static inline'
640         * lib/dup.c (dup_nothrow):
641         * lib/execute.c (nonintr_close, nonintr_open):
642         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
643         * lib/fopen.c (orig_fopen):
644         * lib/freadseek.c (freadptrinc):
645         * lib/freopen.c (orig_freopen):
646         * lib/fstat.c (orig_fstat, fstat_nothrow):
647         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
648         (get_rusage_as_via_iterator):
649         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
650         * lib/getdtablesize.c (_setmaxstdio_nothrow):
651         * lib/isatty.c (_isatty_nothrow):
652         * lib/open.c (orig_open):
653         * lib/read.c (read_nothrow):
654         * lib/sigprocmask.c (signal_nothrow):
655         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
656         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
657         * lib/wait-process.c (unregister_slave_subprocess):
658         * lib/write.c (write_nothrow):
659         Now static, not static inline.
660         * lib/spawn-pipe.c (nonintr_open): Define only if
661         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
662         * m4/dup.m4 (gl_PREREQ_DUP):
663         * m4/execute.m4 (gl_EXECUTE):
664         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
665         * m4/fopen.m4 (gl_PREREQ_FOPEN):
666         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
667         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
668         * m4/fstat.m4 (gl_PREREQ_FSTAT):
669         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
670         * m4/isatty.m4 (gl_PREREQ_ISATTY):
671         * m4/open.m4 (gl_PREREQ_OPEN):
672         * m4/read.m4 (gl_PREREQ_READ):
673         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
674         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
675         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
676         * m4/wait-process.m4 (gl_WAIT_PROCESS):
677         * m4/write.m4 (gl_PREREQ_WRITE):
678         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
679         Do not require AC_C_INLINE.
680
681         c-strtod, memcoll, readutmp: no 'static inline'
682         * lib/c-strtod.c (c_locale):
683         * lib/memcoll.c (strcoll_loop):
684         * lib/readutmp.c (desirable_utmp_entry):
685         Now static, not static inline.
686         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
687         * m4/memcoll.m4 (gl_MEMCOLL):
688         * m4/readutmp.m4 (gl_READUTMP):
689         Do not require AC_C_INLINE.
690
691         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
692         * lib/arctwo.c (to_uchar):
693         * lib/md4.c (set_uint32):
694         * lib/md5.c (set_uint32):
695         * lib/sha1.c (set_uint32):
696         * lib/sha256.c (set_uint32):
697         * lib/sha512.c (set_uint64):
698         Now static, not static inline.  This is a bit simpler, and doesn't
699         affect performance with GCC and default optimization.
700         * m4/arctwo.m4 (gl_ARCTWO):
701         * m4/md4.m4 (gl_MD4):
702         * m4/md5.m4 (gl_MD5):
703         * m4/sha1.m4 (gl_SHA1):
704         * m4/sha256.m4 (gl_SHA256):
705         * m4/sha512.m4 (gl_SHA512):
706         Do not require AC_C_INLINE.
707
708         cond, lock, thread: better 'inline'
709         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
710         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
711         New macros.  Use them instead of static inline, for header functions.
712         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
713         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
714         * lib/glthread/lock.c (gl_waitqueue_init)
715         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
716         * lib/glthread/thread.c (get_current_thread_handle):
717         Change 'static inline' to 'inline'.
718         * lib/glthread/cond.h, lib/glthread/thread.h:
719         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
720         * m4/cond.m4 (gl_COND):
721         * m4/lock.m4 (gl_PREREQ_LOCK):
722         * m4/thread.m4 (gl_THREAD):
723         Do not require AC_C_INLINE.
724         * modules/cond, modules/thread (Depends-on): Add extern-inline.
725
726         chdir-long, cycle-check, savewd: better 'inline'
727         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
728         (find_non_slash):
729         * lib/cycle-check.c (is_zero_or_power_of_two):
730         * lib/savewd.c (savewd_delegating):
731         Change 'static inline' to 'inline'.
732         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
733         Replace all remaining uses of 'static inline' with it.
734         * lib/savewd.h:
735         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
736         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
737         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
738         * m4/savewd.m4 (gl_SAVEWD):
739         Do not require AC_C_INLINE.
740         * modules/savewd (Depends-on): Add extern-inline.
741
742         base32, base64: no need for 'inline'
743         * lib/base32.c (to_uchar, get_8, decode_8):
744         * lib/base64.c (to_uchar, get_4, decode_4):
745         Change 'static inline' to 'inline'.
746         * m4/base32.m4 (gl_PREREQ_BASE32):
747         * m4/base64.m4 (gl_PREREQ_BASE64):
748         Do not require AC_C_INLINE.
749
750         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
751         * lib/gl_array_oset.c (gl_array_nx_add_at):
752         (gl_array_remove_at):
753         * lib/gl_linkedhash_list.c (hash_resize_after_add)
754         (add_to_bucket, remove_from_bucket):
755         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
756         Change 'static inline' to 'static', as it's simpler to omit
757         'inline' unless there's a significant performance advantage.
758
759         list, oset, xlist, xoset, xsublist: simplify via extern inline
760         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
761         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
762         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
763         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
764         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
765         New macro.  Replace all uses of 'static inline' with it.
766         [HAVE_INLINE]: Implement functions as *_INLINE functions,
767         instead of as macros FOO that are defined to static inline
768         functions FOO_inline.
769         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
770         * lib/gl_xsublist.c:
771         Reimplement from scratch, by defining the corresponding *_INLINE
772         macro and including the corresponding .h file.  This is simpler.
773         * modules/list, modules/oset, modules/xlist, modules/xoset:
774         (Files): Remove m4/gl_list.m4.
775         (configure.ac): Remove gl_LIST.
776         * m4/gl_list.m4: Remove.
777         * modules/list, modules/oset, modules/xlist, modules/xoset:
778         * modules/xsublist:
779         (Depends-on): Depend on extern-inline, not inline.
780
781         xalloc: better 'inline'
782         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
783         New macro.  Replace all uses of 'static inline' with it.
784         (static_inline): Remove.
785         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
786         Let 'extern inline' do the work automatically, instead of doing
787         it by hand.
788         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
789         Remove.  All uses removed.
790         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
791
792         gethrxtime: better 'inline'
793         * lib/xtime.c: New file.
794         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
795         * lib/xtime.h (XTIME_INCLUDE):
796         New macros.  Replace all uses of 'static inline' with them.
797         * lib/gethrxtime.c (gethrxtime): Define only if
798         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
799         this source file is now always compiled, because of the extern inline.
800         * lib/gethrxtime.h, lib/xtime.h:
801         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
802         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
803         if gethrtime works, as they're not needed in that case.
804         (gl_XTIME): Do not require AC_C_INLINE.
805         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
806         compiled now.  Move the check into gl_GETHRXTIME.
807         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
808         (Depends-on): Add extern-inline.
809         (configure.ac): gethrxtime is always compiled now.
810         (lib_SOURCES): Add gethrxtime.c.
811
812         wctype-h: better 'inline'
813         * lib/wctype-h.c: New file.
814         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
815         New macro.  Replace all uses of 'static inline' with it.
816         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
817         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
818         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
819         (Depends-on): Add extern-inline.
820
821         unistd: better 'inline'
822         * lib/unistd.c: New file.
823         * lib/unistd.in.h (_GL_UNISTD_INLINE):
824         New macro.  Replace all uses of 'static inline' with it.
825         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
826         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
827         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
828         (Depends-on): Add extern-inline.
829
830         sys_socket: better 'inline'
831         * lib/sys_socket.c: New file.
832         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
833         New macro.  Replace all uses of 'static inline' with it.
834         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
835         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
836         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
837         (Depends-on): Add extern-inline.
838
839         stdio: better 'inline'
840         * lib/stdio.c: New file.
841         * lib/stdio.in.h (_GL_STDIO_INLINE):
842         New macro.  Replace all uses of 'static inline' with it.
843         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
844         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
845         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
846         (Depends-on): Add extern-inline.
847
848         sigaction: better 'inline'
849         * lib/sig-handler.c: New file.
850         * lib/sig-handler.h (SIG_HANDLER_INLINE):
851         New macro.  Replace all uses of 'static inline' with it.
852         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
853         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
854         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
855         (Depends-on): Add extern-inline.
856
857         selinux-h: better 'inline'
858         * lib/se-context.c, lib/se-selinux.c: New files.
859         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
860         * lib/se-context.in.h (SE_CONTEXT_INLINE):
861         New macro.  Replace all uses of 'static inline' with it.
862         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
863         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
864         New macro.  Replace all uses of 'static inline' with it.
865         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
866         * modules/selinux-h (Files, lib_SOURCES):
867         Add lib/se-context.c, lib/se-selinux.c.
868         (Depends-on): Add extern-inline.
869         (configure.ac): Do not require AC_C_INLINE.
870
871         pthread: better 'inline'
872         * lib/pthread.c: New file.
873         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
874         New macro.  Replace all uses of 'static inline' with it.
875         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
876         * m4/pthread.m4 (gl_PTHREAD_CHECK):
877         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
878         * modules/pthread (Files): Add lib/pthread.c.
879         (Depends-on): Add extern-inline.
880
881         math: better 'inline'
882         * lib/math.c: New file.
883         * lib/math.in.h (_GL_MATH_INLINE):
884         New macro.  Replace all uses of 'static inline' with it.
885         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
886         * m4/math_h.m4 (gl_MATH_H):
887         Do not require AC_C_INLINE.
888         * modules/math (Files, lib_SOURCES):
889         Add lib/math.c.
890         (Depends-on): Add extern-inline.
891
892         count-one-bits: better 'inline'
893         * lib/count-one-bits.c: New file.
894         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
895         New macro.  Replace all uses of 'static inline' with it.
896         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
897         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
898         Do not require AC_C_INLINE.
899         * modules/count-one-bits (Files, lib_SOURCES):
900         Add lib/count-one-bits.c.
901         (Depends-on): Add extern-inline.
902
903         count-leading-zeros: better 'inline'
904         * lib/count-leading-zeros.c: New file.
905         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
906         New macro.  Replace all uses of 'static inline' with it.
907         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
908         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
909         Do not require AC_C_INLINE.
910         * modules/count-leading-zeros (Files, lib_SOURCES):
911         Add lib/count-leading-zeros.c.
912         (Depends-on): Add extern-inline.
913
914         bitrotate: better 'inline'
915         * lib/bitrotate.c: New file.
916         * lib/bitrotate.h (BITROTATE_INLINE):
917         New macros.
918         Replace all uses of 'static inline' with them.
919         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
920         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
921         (Depends-on): Add extern-inline.
922         (configure.ac): Do not require AC_C_INLINE.
923
924 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
925
926         maint.mk: avoid gratuitous failure
927         Reported by Stefano Lattarini in
928         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
929         * top/maint.mk (public-submodule-commit): Quote more safely.
930
931 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
932
933         canonicalize, canonicalize-lgpl: support MS-Windows file names
934         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
935         for test cases, which it'd be nice to add at some point.
936         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
937         * lib/canonicalize.c (canonicalize_filename_mode):
938         * lib/canonicalize-lgpl.c (__realpath):
939         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
940         slash is at the beginning of the file name.  Use ISSLASH, instead
941         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
942         the first character with '/'.  Test for
943         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
944         with a drive letter.
945         * lib/canonicalize.c (SLASHES): New macro.
946         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
947
948 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
949
950         fts: introduce FTS_VERBATIM
951         * lib/fts_.h (FTS_VERBATIM): New bit flag.
952         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
953         * lib/fts.c (fts_open): Honor it.
954
955 2012-11-09  Pádraig Brady  <P@draigBrady.com>
956
957         getlogin-tests: allow errno == ENXIO
958         * tests/test-getlogin.c (main): Skip tests if getlogin fails
959         with errno == ENXIO (No controlling tty).
960         getlogin_r-tests: Likewise. Also allow errno == ENOENT
961         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
962         with errno == ENOENT.  This was reported to happen in various
963         situations on GNU/Linux.
964
965 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
966
967         getlogin-tests: allow errno == ENOENT
968         * tests/test-getlogin.c (main): Skip tests if getlogin fails
969         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
970         when running a test in an Emacs shell buffer.
971
972 2012-11-08  Jim Meyering  <jim@meyering.net>
973
974         tests/nap.h: avoid warning about unused variable
975         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
976
977         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
978         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
979         white space before each of the special-cased file names, to avoid
980         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
981         in http://bugs.gnu.org/12830.
982
983 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
984
985         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
986         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
987         fails with errno == EBADF when fd is opened with O_PATH.
988         Reported by Jim Meyering in
989         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
990         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
991         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
992
993 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
994
995         test-utimens: speed up by taking shorter naps
996         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
997         New functions.
998         (nap): Use them, to do a better job of guessing the delay.
999         On Fedora 17 with ext4 atop md atop hard disks, this made
1000         test-utimens run 10x faster, because the test napped for
1001         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
1002         <http://bugs.gnu.org/12820#11>.
1003
1004 2012-11-07  Jim Meyering  <jim@meyering.net>
1005
1006         mountlist.c: fix a compilation failure
1007         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
1008         I introduced while transforming commit v0.0-7683-g613bcb6
1009
1010 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1011
1012         errno: port to LynxOS 178 2.2.2
1013         Problem reported by Joel Brobecker in
1014         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
1015         * doc/posix-headers/errno.texi (errno.h): Document this.
1016         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
1017         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
1018         Supply a string for EILSEQ.
1019         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
1020
1021 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1022
1023         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
1024         Linux kernel 2.6.39 introduced O_PATH (see
1025         <http://lwn.net/Articles/433854/>) and this is a better fallback
1026         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
1027         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1028         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
1029         * lib/fcntl.in.h (O_ACCMODE):
1030         * tests/test-fcntl-h.c (main):
1031         Do not reject O_ACCMODE merely because it has more than the
1032         minimal number of bits, as POSIX allows extensions here.
1033
1034 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
1035
1036         mountlist: do not classify a bind-mounted dir entry as "dummy"
1037         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
1038         the "none"-testing clause.
1039         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
1040         exception for bind-mounted directories.
1041
1042 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
1043
1044         quote: provide a means to escape strings with nul characters
1045         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
1046         (quote, quote_n): Rename formal arguments for consistency with
1047         quotearg.
1048
1049 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
1050
1051         test-raise: don't assume 199 is an invalid signal
1052         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
1053
1054         sh-quote-tests: port to Solaris 9
1055         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
1056         Problem reported by Dagobert Michelsen in
1057         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
1058
1059 2012-10-28  Jim Meyering  <jim@meyering.net>
1060
1061         maint.mk: rename a new configurable variable
1062         * top/maint.mk (_gl_translatable_string_re): Rename from
1063         translation-markers: _gl_ prefix to insulate from user Makefile code,
1064         and the _re suffix to inform that it's a regular expression.
1065
1066 2012-10-26  Eric Blake  <eblake@redhat.com>
1067
1068         maint.mk: let packages tweak sc_po_check pattern
1069         * top/maint.mk (sc_po_check): Add translation-markers, to allow
1070         finding files with other translation markers.
1071
1072 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1073
1074         euidaccess: speed up 'configure' on GNU hosts
1075         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
1076         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
1077         it's needed only in this case.  Use AC_CHECK_DECLS, not
1078         AC_CHECK_DECLS_ONCE.
1079         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
1080         or AC_REQUIRE for AC_FUNC_GETGROUPS.
1081
1082         * lib/regexec.c (re_search_internal): Fix grammar in comment.
1083
1084 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1085
1086         fchmodat, fchownat, fstatat: port to non-inlining compilers
1087         Problem reported for FreeBSD 9 by Jim Meyering in
1088         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
1089         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
1090         New files, which define FCHMODAT_INLINE etc.
1091         * lib/fchmodat.c (FCHMODAT_INLINE):
1092         * lib/fchownat.c (FCHOWNAT_INLINE):
1093         * lib/fstatat.c (FSTATAT_INLINE):
1094         Remove, as chmodat.c etc. now do this.
1095         * modules/fchmodat (Files): Add lib/chmodat.c.
1096         * modules/fchownat (Files): Add lib/chownat.c.
1097         * modules/fstatat (Files): Add lib/statat.c.
1098
1099 2012-10-15  Jim Meyering  <jim@meyering.net>
1100
1101         fchmodat.c, fchownat.c: compile-impeding typos
1102         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
1103         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
1104         Introduced in commit v0.0-7636-gd202279.
1105
1106 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1107
1108         fcntl-h: support GNU flags like O_IGNORE_CTTY
1109         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
1110         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
1111         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
1112         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
1113         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
1114         Define to 0 if not already defined.
1115         * tests/test-fcntl-h.c: Test these new flags.
1116
1117 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
1118
1119         faccessat, etc.: support AT_FDCWD-only use
1120         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
1121         this function only if its first argument is AT_FDCWD.
1122         Emacs wants faccessat for AT_EACCESS but not for any first-arg
1123         values other than AT_FDCWD, so it doesn't want all the openat
1124         machinery with fchdir etc.
1125         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
1126         * modules/fstatat, modules/mkdirat, modules/openat (Files):
1127         * modules/unlinkat (Files):
1128         Remove lib/openat-priv.h, as at-internal supplies this file.
1129         Removing this file here allows us to support programs like Emacs
1130         that avoid at-internal.
1131
1132         faccessat: speed up 'configure' on mainstream hosts
1133         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
1134         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
1135         since it's only on unusual platforms that we need to check for
1136         'access', and it's better not to slow 'configure' down on all
1137         platforms.
1138
1139         faccessat: port to Solaris 10
1140         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
1141         Needed on Solaris 10, which doesn't have AT_EACCESS,
1142         so we need the Gnulib fcntl.h, which defines it.
1143
1144 2012-10-14  Pádraig Brady  <P@draigBrady.com>
1145         canonicalize: fix C89 compilation
1146         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
1147         declarations so C89 is supported.  Also remove the comment
1148         referencing memorty allocation as the suggested feature could
1149         not be implemented as suggested.
1150         Reported by Michael Goffioul.
1151
1152 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
1153
1154         group-member: omit unnecessary dependencies
1155         This is for Emacs, which has its own allocator and where we
1156         don't want to use xalloc.
1157         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
1158         since we no longer use xmalloc.  Do not include stdbool.h, since
1159         the changes below happen to remove the only use of bool.
1160         (GROUPBUF_SIZE): New constant.
1161         (struct group_info): Remove n_groups member.  Add groupbuf member.
1162         This lets us get the groups without using malloc, usually.
1163         (free_group_info, get_group_info): Adjust to this.
1164         (get_group_info): Return the number of groups found, or -1 on error.
1165         Use plain malloc not xmalloc, and treat its failure as if there
1166         are no groups, as the user already loses in case of error.
1167         (group_member): Simplify, based on changes to get_group_info.
1168         * modules/group-member (Depends-on): Remove dependencies on
1169         xalloc and stdbool.  Add dependency on xalloc-oversized.
1170
1171 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
1172
1173         gethrxtime: port to C++
1174         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
1175
1176 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
1177
1178         ptsname: fix macro-name typo
1179         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
1180
1181 2012-10-03  Simon Josefsson  <simon@josefsson.org>
1182
1183         inttostr: Relax license.
1184         * modules/inttostr (License): Change from LGPL to LGPLv2+.
1185
1186 2012-10-03  Eric Blake  <eblake@redhat.com>
1187
1188         ptsname_r: support ptys returned by FreeBSD posix_openpt
1189         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
1190         lives in /dev/pts/.
1191
1192 2012-10-02  Eric Blake  <eblake@redhat.com>
1193
1194         pselect: reject invalid file descriptors
1195         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
1196         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
1197         * modules/pselect (Depends-on): Add dup2.
1198         * doc/posix-functions/pselect.texi (pselect): Document this.
1199
1200         select: reject invalid file descriptors
1201         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
1202         * lib/select.c (rpl_select) [!win32]: Work around it.
1203         * modules/select (Depends-on): Add dup2.
1204         * doc/posix-functions/select.texi (select): Document this.
1205
1206         select: enhance test
1207         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
1208         New functions.
1209         (test_function): Enhance test.
1210         (do_select_bad_fd): Avoid any stale errno values.
1211
1212         ptsname: reject invalid file descriptors
1213         http://www.austingroupbugs.net/view.php?id=503
1214         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
1215         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
1216         * modules/stdlib (Makefile.am): Replace witness.
1217         * lib/stdlib.in.h (ptsname): Allow for replacement.
1218         * modules/ptsname (configure.ac): Trigger replacement.
1219         * doc/posix-functions/ptsname.texi (ptsname): Document this.
1220
1221 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
1222
1223         hash-pjw-bare: new module
1224         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
1225         * lib/hash-pjw-bare.h: Likewise.
1226         * modules/hash-pjw-bare: New file.
1227         * MODULES.html.sh (Misc): Add it.
1228
1229 2012-10-02  Eric Blake  <eblake@redhat.com>
1230
1231         manywarnings: cater to more gcc infelicities
1232         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
1233         -Wuninitialized without -O.
1234
1235 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
1236
1237         select, poll tests: Make setsockopt invocation effective.
1238         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
1239         the bind() call.
1240         * tests/test-select.h (open_server_socket): Likewise.
1241
1242 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
1243
1244         sockets, sys_stat: restore AC_C_INLINE
1245         This undoes the 2012-09-22 patch.
1246         * m4/sockets.m4 (gl_SOCKETS):
1247         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1248         Restore AC_C_INLINE, since MSVC requires __inline or _inline
1249         and does not support plain 'inline'.  Reported by Bruno Haible in
1250         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
1251
1252 2012-09-30  Bruno Haible  <bruno@clisp.org>
1253
1254         localeconv tests: Avoid test failure on OpenIndiana.
1255         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
1256         skip the 'grouping' and 'mon_grouping' tests.
1257         Reported by Jim Meyering.
1258
1259 2012-09-30  Bruno Haible  <bruno@clisp.org>
1260
1261         havelib: Follow libtool developments.
1262         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
1263         Suggested by Simon Josefsson.
1264
1265 2012-09-29  Jim Meyering  <meyering@redhat.com>
1266
1267         fstatat.c: fix a compile-impeding typo
1268         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
1269         Introduced in commit v0.0-7636-gd202279.
1270         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
1271
1272 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
1273
1274         extern-inline: provide a -Wundef safe config.h
1275         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
1276         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
1277         to produce a -Wundef warning free config.h.
1278
1279 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1280
1281         hash-pjw: relax license to LGPLv2+
1282         * modules/hash-pjw (License): Relax, with consent of author.
1283
1284 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1285
1286         maint.mk: fix strict vs. lazy variable issues with RELEASE
1287         * top/maint.mk (_equal): New function.
1288         (member_check): Strip the result to avoid spurious spaces.
1289         (url_dir_list): Do not use ifeq, which is strict, as it will
1290         require RELEASE_TYPE to be defined.
1291         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
1292         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
1293         (announcement_Cc_alpha,announcement_mail_headers_alpha)
1294         (announcement_Cc_beta,announcement_mail_headers_beta)
1295         (announcement_Cc_stable,announcement_mail_headers_stable): these.
1296         (release): Do not depend on $(release-type), as it forces its
1297         evaluation.  Bounce to it.
1298
1299 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1300
1301         maint.mk: formatting changes
1302         * top/maint.mk: Indent bodies of if's.
1303
1304 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
1305
1306         maint.mk: factor the validation of RELEASE_TYPE
1307         With help from Jim Meyering.
1308         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
1309         * top/maint.mk (_empty, _sp): Move their definition earlier.
1310         (member-check, release-type): New.
1311         Use the latter instead of $(RELEASE_TYPE).
1312         Remove now useless local checks.
1313
1314 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1315
1316         maint.mk: provide "make upload" to ease uploading
1317         See
1318         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
1319         Do not depend simply on the current $(VERSION), as there may have been
1320         new commits since the tarball generation.  Rather, rely on $(RELEASE),
1321         as "make release-commit" already does.
1322
1323         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
1324         "make TYPE".
1325
1326         * top/maint.mk (upload_command, upload, release): New.
1327         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
1328         (VERSION): first word of $(RELEASE) is always right.
1329         (emit_upload_commands): Adjust.
1330         * top/README-release: Update.
1331
1332 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1333
1334         maint.mk: silent rules
1335         With help from Stefano Lattarini.
1336         * top/maint.mk (writable-files): Use $(AM_V_GEN).
1337         (announcement): Use $(AM_V_at).
1338
1339 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1340
1341         localename: port gl_locale_name_thread_unsafe to FreeBSD
1342         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
1343         and use the simpler FreeBSD implementation on Mac OS X as well.
1344         Original idea suggested by Ed Maste in
1345         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
1346
1347 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1348
1349         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
1350         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
1351         * lib/mbuiter.c, lib/xsize.c: New files.
1352         * lib/binary-io.h (BINARY_IO_INLINE):
1353         * lib/eealloc.h (EEALLOC_INLINE):
1354         * lib/mbfile.h (MBFILE_INLINE):
1355         * lib/mbiter.h (MBITER_INLINE):
1356         * lib/mbuiter.h (MBUITER_INLINE):
1357         * lib/xsize.h (XSIZE_INLINE):
1358         New macros.
1359         Replace all uses of 'static inline' with them.
1360         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1361         * m4/eealloc.m4 (gl_EEALLOC):
1362         * m4/mbfile.m4 (gl_MBFILE):
1363         * m4/mbiter.m4 (gl_MBITER):
1364         * m4/xsize.m4 (gl_XSIZE):
1365         Do not require AC_C_INLINE.
1366         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
1367         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
1368         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
1369         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
1370         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
1371         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
1372         * modules/binary-io, modules/eealloc, modules/mbfile:
1373         * modules/mbiter, modules/mbuiter:
1374         (Depends-on): Add extern-inline.
1375
1376         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
1377         * lib/pipe-filter-aux.c: New file.
1378         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
1379         Replace all uses of 'static inline' with it.
1380         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1381         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
1382         (filter_retcode): No real need for inline here.
1383         * modules/pipe-filter-gi, modules/pipe-filter-ii:
1384         (Files): Add lib/pipe-filter-aux.c.
1385         (Depends-on): Add extern-inline.
1386         (configure.ac): Do not require AC_C_INLINE.
1387         (lib_SOURCES): Add pipe-filter-aux.c.
1388
1389         fdutimensat: omit unnecessary AC_C_INLINE
1390         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
1391
1392         fchmodat, fchownat, fstatat: use extern-inline
1393         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
1394         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
1395         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
1396         New macros.
1397         * lib/openat.h:
1398         Replace all uses of 'static inline' with them.
1399         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1400         * modules/fchmodat, modules/fchownat, modules/fstatat:
1401         * modules/openat-h:
1402         (Depends-on):
1403         Add extern-inline.
1404         (configure.ac): Remove AC_C_INLINE.
1405
1406         acl, mbchar, priv-set: use extern-inline
1407         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
1408         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
1409         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
1410         New macros.
1411         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
1412         Replace all uses of 'static inline' with it.
1413         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1414         * m4/acl.m4 (gl_FUNC_ACL):
1415         * m4/mbchar.m4 (gl_MBCHAR):
1416         * m4/priv-set.m4 (gl_PRIV_SET):
1417         Remove AC_C_INLINE, since 'inline' is no longer used directly.
1418         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
1419         Add extern-inline.
1420
1421         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
1422         * m4/sockets.m4 (gl_SOCKETS):
1423         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1424         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
1425         environments where it's already guaranteed to work, so we needn't
1426         check for it at 'configure'-time.
1427
1428         tls-tests: omit unnecessary 'inline'
1429         * tests/test-tls.c (perhaps_yield): No longer inline.
1430         Simplicity and portability trump efficiency in test cases.
1431
1432         utimens-tests: avoid unnecessary 'inline'
1433         * modules/fdutimensat-tests (configure.ac):
1434         * modules/futimens-tests (configure.ac):
1435         * modules/utimens-tests (configure.ac):
1436         * modules/utimensat-tests (configure.ac):
1437         Remove AC_C_INLINE.
1438         * tests/test-utimens-common.h (ctime_compare):
1439         No longer inline.  Simplicity and portability trump efficiency here.
1440
1441         misc: don't limit commentary to inline functions
1442         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
1443         * lib/xalloc-oversized.h, lib/xsize.h:
1444         Contrast macros to functions in general, not just to inline functions,
1445         when the commentary does not apply only to inline functions.
1446
1447 2012-09-20  Jim Meyering  <meyering@redhat.com>
1448
1449         non-recursive-gnulib-prefix-hack: new module
1450         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
1451         the file that originated in Bison.
1452         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
1453         largely copied from a snippet that resided in bison's configure.ac.
1454         * modules/non-recursive-gnulib-prefix-hack: New file.
1455         * MODULES.html.sh (Support for maintaining and releasing projects):
1456         Add it.
1457
1458 2012-09-18  Jim Meyering  <meyering@redhat.com>
1459
1460         maint.mk: generalize _gl_tight_scope for non-recursive make
1461         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
1462         that *.h would describe additional .h files in the directory
1463         specified by $(_gl_TS_dir).  I.e., add this...
1464         (_gl_TS_other_headers): New variable.
1465
1466         maint.mk: exempt trailing blanks found in "binary" files
1467         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
1468         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
1469         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1470
1471 2012-09-17  Jim Meyering  <meyering@redhat.com>
1472
1473         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
1474         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
1475         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
1476         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1477
1478 2012-09-17  Jim Meyering  <meyering@redhat.com>
1479
1480         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
1481         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
1482         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
1483         It is not in the same category as "exit (0)" or "exit (1)", and
1484         besides, I know of no symbolic name for that 77.  Reported by
1485         Richard W.M. Jones in
1486         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1487
1488 2012-09-17  Jim Meyering  <meyering@redhat.com>
1489
1490         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
1491         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
1492         all uses of #define, not just those that start in column 1.
1493         Richard W.M. Jones reported a false positive in
1494         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1495
1496 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1497
1498         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
1499         * lib/localcharset.c (locale_charset) [DARWIN7]:
1500         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
1501         as these two values are incompatible.  Problem reported by Max Horn.
1502         For more discussion, please see
1503         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
1504
1505         doc: document sticky-EOF issue
1506         * doc/posix-functions/fgetc.texi (fgetc):
1507         * doc/posix-functions/fgets.texi (fgets):
1508         * doc/posix-functions/fread.texi (fread):
1509         * doc/posix-functions/fscanf.texi (fscanf):
1510         * doc/posix-functions/getc.texi (getc):
1511         * doc/posix-functions/getchar.texi (getchar):
1512         * doc/posix-functions/scanf.texi (scanf):
1513         Mention that glibc and default Solaris do not conform to
1514         C99 and POSIX-2001 or later, with respect to how getchar
1515         etc. behave when feof reports nonzero.
1516
1517 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1518
1519         poll: fix poll(0, NULL, msec)
1520         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
1521         but nfd is 0.  In that case poll should behave like select.
1522
1523 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1524             Paolo Bonzini <bonzini@gnu.org>
1525
1526         poll: fix for systems that can't recv() on a non-socket
1527         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
1528         is readable.  In this case POLLHUP will not be supported.
1529         * doc/posix-functions/poll.texi: Document this.
1530
1531 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
1532
1533         poll/select: document portability problems not fixed by Gnulib.
1534         * doc/posix-functions/poll.texi: poll does not work well on
1535         pipes under Windows.  It has the same limitations as select on
1536         BeOS.
1537         * doc/posix-functions/select.texi: select does not work well
1538         on pipes under Windows.
1539
1540 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1541
1542         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
1543         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
1544         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
1545         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
1546
1547 2012-09-06  Eric Blake  <eblake@redhat.com>
1548
1549         net_if: give more details about the bug being fixed
1550         * doc/posix-headers/net_if.texi: Add clarification.
1551
1552 2012-09-05  Eric Blake  <eblake@redhat.com>
1553
1554         net_if: new module
1555         * modules/net_if: New module, borrowing ideas from netinet_in.
1556         * m4/net_if_h.m4: New file.
1557         * lib/net_if.in.h: Likewise.
1558         * doc/posix-headers/net_if.texi (net/if.h): Document it.
1559         * MODULES.html.sh (lacking POSIX:2008): Likewise.
1560         * tests/test-net_if.c: Make function checks conditional.
1561         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
1562
1563 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
1564
1565         readutmp: fix non-portable UT_PID use
1566         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
1567         Use `UT_PID (u) > 0' as absolute condition.
1568
1569 2012-09-04  Jim Meyering  <meyering@redhat.com>
1570
1571         fts: reduce two or more trailing spaces to just one, usually
1572         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
1573         or more slashes, trim all but the final one.  But if a name consists
1574         solely of two slashes, don't modify it.  If it consists solely of
1575         three or more slashes, strip all but one.
1576
1577         This is part of the solution to a minor problem with rm:
1578         it would print a bogus ELOOP diagnostic when failing to remove
1579         the slash-decorated name of a symlink-to-directory:
1580
1581             $ mkdir d && ln -s d s && env rm -r s/
1582             rm: cannot remove 's': Too many levels of symbolic links
1583
1584         With the change below and a trivial don't-trim-trailing-slashes
1585         adjustment to remove.c, it does this:
1586
1587             $ env rm -r s/
1588             rm: cannot remove 's/': Not a directory
1589
1590         Improved by: Eric Blake
1591
1592         fts: when there is no risk of overlap, use memcpy, not memmove
1593         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
1594
1595 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
1596
1597         stdbool: be more compatible with mixed C/C++ compiles
1598         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
1599         Define to bool, true, false, respectively, as GCC's builtin
1600         stdbool.h does.  Problem reported by Michael Goffioul in
1601         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
1602
1603 2012-08-28  Jim Meyering  <meyering@redhat.com>
1604
1605         revert last change: it was not needed
1606         * tests/test-vc-list-files-git.sh: There's already a test for
1607         a working git, just below.
1608
1609 2012-08-28  Jim Meyering  <meyering@redhat.com>
1610
1611         tests: test-vc-list-files-git.sh: skip if git is not available
1612         * tests/test-vc-list-files-git.sh: Skip this test when git is
1613         not available.
1614
1615 2012-08-26  Bruno Haible  <bruno@clisp.org>
1616
1617         gnulib-tool: Remove no-op option --no-changelog.
1618         * gnulib-tool (func_usage): Don't mention --no-changelog.
1619         (do_changelog): Remove variable.
1620         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1621
1622 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1623
1624         doc: remove fdl-1.2.texi
1625         It is no longer used or maintained, and its use of @acronym
1626         is problematic.  See the thread containing
1627         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
1628         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
1629         * doc/old-licenses/fdl-1.2.texi: Remove.
1630
1631         execinfo: port to FreeBSD
1632         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
1633         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
1634         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
1635         * modules/execinfo (Link): Add $(LIB_EXECINFO).
1636
1637 2012-08-23  Jim Meyering  <meyering@redhat.com>
1638
1639         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
1640         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
1641         to placate gcc's -Wold-style-declaration.
1642
1643 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1644
1645         doc: do not use @acronym
1646         * doc/inet_ntoa.texi (inet_ntoa):
1647         * doc/parse-datetime.texi (Seconds since the Epoch)
1648         (Specifying time zone rules):
1649         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
1650         Don't use @acronym.  Problem reported by John Darlington in
1651         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
1652
1653 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1654
1655         stdnoreturn: port to newer GCCs
1656         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
1657         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
1658         Problem reported by Jim Meyering in
1659         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
1660         Also, rename the 'test' function to a void a clash with the
1661         already-supplied 'main' function; this fixes a bug that incorrectly
1662         rejected GCC 4.7.1's <stdnoreturn.h>.
1663         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
1664         Document GCC problem.
1665
1666 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
1667
1668         pipe-filter: fix comment typo
1669         * lib/pipe-filter.h: Mention correct function.
1670
1671 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
1672
1673         execinfo: new module
1674         This is for Emacs.  Currently, it provides a no-effect stub
1675         on all platforms where it does not already work.
1676         It already works on glibc-based systems, and on Solaris 11.
1677         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
1678         New files.
1679         * doc/glibc-headers/execinfo.texi (execinfo.h):
1680         * MODULES.html.sh (Misc): Document it.
1681
1682 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
1683
1684         extern-inline: support old GCC 'inline'
1685         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
1686         if available.  This applies to GCC versions 2.7 through 4.2, or
1687         when newer GCC is using -fgnu89-inline.  The goal is to address
1688         some of the performance issues mentioned by Bruno Haible in
1689         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
1690
1691 2012-08-20  Eric Blake  <eblake@redhat.com>
1692
1693         maint.mk: avoid redundant file name in message
1694         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1695         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
1696         (sc_makefile_path_separator_check): Remove bogus $(ME).
1697
1698 2012-08-20  Mike Frysinger <vapier@gentoo.org>
1699
1700         timer-time: fix link order when static linking on glibc
1701         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1702         _after_ -lrt so that it's significant.
1703
1704 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
1705
1706         timespec: omit unnecessary AC_C_INLINE
1707         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
1708
1709         stat-time: omit unnecessary AC_C_INLINE
1710         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
1711         Do not require AC_C_INLINE.
1712
1713         ignore-value: omit unnecessary AC_C_INLINE
1714         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
1715
1716         sys_select: avoid 'static inline'
1717         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
1718
1719         mktime: avoid 'static inline'
1720         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
1721         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
1722
1723 2012-08-19  Bruno Haible  <bruno@clisp.org>
1724
1725         gnulib-tool: Improve coding style.
1726         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
1727         func_emit_lib_Makefile_am.
1728         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1729
1730 2012-08-19  Bruno Haible  <bruno@clisp.org>
1731
1732         gnulib-tool: Fix indentation.
1733         * gnulib-tool (func_import): Fix indentation.
1734
1735 2012-08-19  Bruno Haible  <bruno@clisp.org>
1736
1737         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
1738         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
1739         on the list of removed files.
1740
1741 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
1742
1743         test-parse-datetime: avoid glibc leap-second glitch
1744         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
1745         with the 2012 rules.  Problem reported by Bruce Dubbs in
1746         <http://bugs.gnu.org/12206>.
1747
1748 2012-08-14  Bruno Haible  <bruno@clisp.org>
1749
1750         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
1751         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
1752         from argument.
1753         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1754
1755 2012-08-14  Eric Blake  <eblake@redhat.com>
1756
1757         ldexp: relax license
1758         * modules/ldexp (License): Trivial relax, since the module only
1759         provides a permissively licensed m4 file.
1760
1761 2012-08-13  Bruno Haible  <bruno@clisp.org>
1762
1763         gnulib-tool: Fix persistence of --witness-c-macro option.
1764         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
1765         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1766
1767 2012-08-11  Eric Blake  <eblake@redhat.com>
1768
1769         count-leading-zeros: use a lookup table on non-gcc compilers
1770         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
1771         alternate implementation, suggested by Jim Meyering.
1772
1773 2012-08-10  Eric Blake  <eblake@redhat.com>
1774
1775         count-leading-zeros: new module
1776         * modules/count-leading-zeros: New module.
1777         * m4/count-leading-zeros.m4: New file.
1778         * lib/count-leading-zeros.h: Likewise.
1779         * modules/count-leading-zeros-tests: New test.
1780         * tests/test-count-leading-zeros.c: New file.
1781         * MODULES.html.sh (Integer arithmetic functions): Document it.
1782
1783 2012-08-07  Simon Josefsson  <simon@josefsson.org>
1784             Jim Meyering  <meyering@redhat.com>
1785
1786         maintainer-makefile: Fix syntax error with dash.
1787         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
1788         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
1789
1790 2012-08-05  Jim Meyering  <meyering@redhat.com>
1791
1792         extern-inline: also ignore -Wmissing-declarations
1793         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
1794         required with gcc-4.8.0-to-be.
1795
1796         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
1797         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
1798         for /error ?([^,]*)/.  This avoids false-positives for strings like
1799         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
1800
1801 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
1802
1803         gnumakefile: better interaction with Automake-NG
1804         * modules/gnumakefile [Makefile.am]: The makefiles generated by
1805         Automake-NG always contain a definition of VPATH, even in non-VPATH
1806         builds (its value being simply '.' in that case).  So, in the
1807         'clean-GNUmakefile' rule, to determine whether running under a
1808         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
1809         '$(VPATH)' expands to the empty string.
1810
1811 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
1812
1813         base64: Use extern C scope in header file, for C++.
1814         * lib/base64.h: Add C++ namespace protection.
1815
1816 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
1817
1818         stat-time, timespec, u64: support naive out-of-dir builds
1819         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
1820         Use '#include "foo.h"', not '#include <foo.h>', when including
1821         one's own interface.  This works better when configuring with
1822         out-of-directory builds, since packages need not add an
1823         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
1824
1825 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
1826
1827         utimens: use extern-inline
1828         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
1829         * lib/utimens.h: Add copyright notice, since this is now large enough
1830         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1831         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
1832         * modules/utimens (Depends-on): Add extern-inline.
1833
1834         u64: use extern-inline
1835         * lib/u64.c: New file.
1836         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1837         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
1838         * modules/u64 (Files): Add lib/u64.c.
1839         (Depends-on): Add extern-inline.
1840         (configure.ac): No need to require AC_C_INLINE, since extern-inline
1841         does that now.
1842         (lib_SOURCES): Add u64.c.
1843
1844         timespec: use extern-inline
1845         * lib/timespec.c: New file.
1846         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1847         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
1848         * modules/timespec (Files): Add lib/timespec.c.
1849         (Depends-on): Add extern-inline.
1850         (lib_SOURCES): Add timespec.c.
1851
1852         stat-time: use extern-inline
1853         * lib/stat-time.c: New file.
1854         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1855         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
1856         * modules/stat-time (Files): Add lib/stat-time.c.
1857         (Depends-on): Add extern-inline.
1858         (lib_SOURCES): Add stat-time.c.
1859
1860         extern-inline: new module
1861         * modules/extern-inline, m4/extern-inline.m4: New files.
1862         This is for better support of 'extern inline' a la ISO C99,
1863         with a portable alternative on compilers that do not support
1864         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
1865         of the Emacs executable, when compiled with debugging disabled,
1866         which is a typical way that Emacs is built while developing.
1867
1868 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
1869
1870         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
1871         * build-aux/do-release-commit-and-tag: Move variable definitions
1872         together.
1873         ($branch): Instead of defaulting to "master", default to the current
1874         branch (as gnu-web-doc-update does).
1875         (help): Display the current values of the option arguments.
1876         * top/maint.mk (release-commit): New.
1877         * top/README-release: Simplify the corresponding step.
1878
1879 2012-07-30  Eric Blake  <eblake@redhat.com>
1880
1881         passfd: fix comment on recvfd
1882         * lib/passfd.c (recvfd): Fix comment.
1883         Reported by Jann Horn <jannhorn@googlemail.com>.
1884
1885 2012-07-30  Jim Meyering  <meyering@redhat.com>
1886
1887         maint.mk: avoid a sub-shell
1888         * top/maint.mk (release-prep): Remove unneeded sub-shell.
1889
1890 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1891
1892         maint.mk: use silent-rules support from Automake
1893         * top/maint.mk (news-check, vc-diff-check, announcement)
1894         (no-submodule-changes, alpha beta stable, release-prep)
1895         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
1896
1897 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1898
1899         maint.mk: provide a web-manual-update target
1900         * top/maint.mk: here.
1901         * top/README-release: Use it to simplify the web manual update step.
1902
1903 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1904
1905         README-release: shorten the circuit to post a news
1906         * top/README-release: Point directly to the news submission form.
1907
1908 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1909
1910         gnu-web-doc-update: fix --help
1911         * build-aux/gnu-web-doc-update: The information "top level" was written
1912         twice.
1913
1914 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1915
1916         maint.mk: absolute VPATH issue
1917         * top/maint.mk (release-prep): Help Git find .git/.
1918         From Jim Meyering.
1919
1920 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1921
1922         gitlog-to-changelog: fix previous change
1923         * build-aux/gitlog-to-changelog: Fix condition.
1924         Add missing ";".
1925
1926 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1927
1928         gitlog-to-changelog: don't expect .git to be in $srcdir
1929         Reported by Bruno Haible.
1930         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
1931         * build-aux/gitlog-to-changelog (&git_dir_option): New.
1932         Use it.
1933
1934 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1935
1936         maint.mk: absolute VPATH build fix
1937         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
1938         $(srcdir) is not a parent of $(builddir).
1939
1940 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
1941
1942         clean-temp: Fix memory leak.
1943         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
1944         'files' members of tmpdir.
1945
1946 2012-07-27  Jim Meyering  <meyering@redhat.com>
1947
1948         maint.mk: new rule: refresh-gnulib-patches
1949         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
1950         Use this rule to refresh them.
1951         * top/maint.mk (refresh-gnulib-patches): New rule.
1952
1953 2012-07-24  Bruno Haible  <bruno@clisp.org>
1954
1955         gnulib-tool: Fix handling of inctests variable.
1956         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
1957         Reported by Nick Bowler <nbowler@elliptictech.com>.
1958
1959 2012-07-22  Bruno Haible  <bruno@clisp.org>
1960
1961         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
1962         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
1963         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1964         Remove exemption for getpass.h.
1965         Suggested by Eric Blake.
1966
1967 2012-07-20  Eric Blake  <eblake@redhat.com>
1968
1969         verify: document conflict with -Wnested-externs
1970         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
1971
1972         maint.mk: forbid exit(-1)
1973         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
1974
1975 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
1976
1977         fsusage: port back to Solaris
1978         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
1979         error (fsd not declared) on Solaris 10.  Reported privately by
1980         Andrew Borodin.
1981
1982 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
1983
1984         gnu-web-doc-update: fix error messages
1985         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
1986
1987         gnu-web-doc-update: check the requirements.
1988         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
1989         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
1990         * build-aux/bootstrap (find_tool): Comment change.
1991
1992 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
1993
1994         maint.mk: minor simplication.
1995         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
1996         for default values.
1997
1998 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
1999
2000         gitlog-to-changelog: VPATH build issues
2001         If builddir is not a subdirectory of srcdir, running git from it will
2002         fail.
2003         * build-aux/gitlog-to-changelog (--srcdir): New option.
2004
2005 2012-07-15  Bruno Haible  <bruno@clisp.org>
2006
2007         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
2008         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
2009         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
2010         Remove exemption for fpending.h.
2011         Suggested by Eric Blake.
2012
2013 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2014
2015         pthread_sigmask: fix bug on FreeBSD 9
2016         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
2017         Include string.h.
2018         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
2019         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
2020         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
2021         but pthread_sigmask (1729, NULL, NULL) returns zero.
2022         See <http://bugs.gnu.org/11884>.
2023         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
2024         by inspecting whether the main call changed the old mask.
2025
2026 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
2027
2028         README-release: make it more legible
2029         * top/README-release: Improve typography slightly.
2030
2031 2012-07-15  Jim Meyering  <meyering@redhat.com>
2032
2033         maint: require that each sc_... command start with "@"
2034         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
2035         "make sc_maint" helps us avoid this nit.
2036
2037 2012-07-15  Jim Meyering  <meyering@redhat.com>
2038
2039         maint.mk: add leading "@" to quiet new "make syntax-check" rule
2040         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
2041
2042 2012-07-13  Eric Blake  <eblake@redhat.com>
2043
2044         maint.mk: new syntax check for HAVE_DECL checks
2045         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
2046         * cfg.mk
2047         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2048         Exempt some false positives.
2049         Based on a report by Karel Zak.
2050
2051         argp: make HAVE_DECL usage consistent
2052         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
2053         macros, not whether they are defined.
2054         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
2055         convention with other declaration checks.
2056         Reported by Karel Zak, with suggestions from Paul Eggert.
2057
2058         stat-time: relax license to LGPLv2+
2059         * modules/stat-time (License): Relax, with consent of all authors.
2060
2061         strndup: fix m4 usage error
2062         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
2063         defined, to either 0 or 1.
2064         Reported by Karel Zak.
2065
2066 2012-07-11  Jim Meyering  <meyering@redhat.com>
2067
2068         maint: enable the sc_avoid_if_before_free syntax-check rule
2069         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
2070         (if_before_free_offenders_): Define.
2071         (if_before_free_basename_re_): Define.
2072         Exempt current files with useless if-before-free.
2073
2074 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
2075
2076         gettext: do not assume '#define ... defined ...' behavior
2077         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
2078         Do not use '#define FOO ... defined BAR ...', as the C standard says
2079         it's not portable to expect that this works after macro expansion.
2080         Problem reported for gzip by Steven M. Schweda in
2081         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
2082
2083 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
2084
2085         getloadavg: clean out old Emacs and Autoconf cruft
2086         See Glenn Morris in <http://bugs.gnu.org/11905>.
2087         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
2088         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
2089         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
2090         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
2091
2092 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
2093
2094         bootstrap: let warn be like tests/init.sh's warn_
2095         Reported by Jim Meyering.
2096         * build-aux/bootstrap (warn): Remove, replaced by...
2097         (warnf_, warn_): these.
2098         Adjust callers.
2099         Shorten messages that no longer fit in 80 columns.
2100
2101 2012-07-09  Bruno Haible  <bruno@clisp.org>
2102
2103         getopt: Simplify after Emacs changed.
2104         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
2105         (gl_GETOPT_IFELSE): Remove macro.
2106
2107 2012-07-09  Jim Meyering  <meyering@redhat.com>
2108
2109         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
2110         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
2111
2112         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
2113         Bugs in both of those conspired to make the
2114         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
2115         _sc_search_regexp's handling of non-empty $in_files would filter
2116         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
2117         choice of in_files value meant there would be no match in most
2118         projects, due to the presence of two or more Makefile.in files.
2119         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
2120         Fix a bug in how a non-empty $$in_files was processed:
2121         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
2122         in spite of the name, it's a regexp, not a list of file names.
2123
2124 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2125
2126         getloadavg, getopt: fix commentary re configure.in
2127         Autoconf is deprecating the name 'configure.in', so change it to
2128         to the new name 'configure.ac' in a couple of places.
2129         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
2130         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
2131         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
2132         Emacs has renamed it to configure.ac, and it no longer refers
2133         to these macros anyway.
2134
2135         timespec: mark functions with const attributes
2136         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
2137         Mark with _GL_ATTRIBUTE_CONST.
2138
2139 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2140
2141         canonicalize[-lgpl]: handle "guessing" values when cross-building
2142         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
2143         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
2144         matches "*yes" instead of just "yes".  Regression introduced in commit
2145         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
2146
2147 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2148             Bruno Haible  <bruno@clisp.org>
2149
2150         canonicalize: make the right guess when cross-compiling to GNU
2151         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
2152         determine whether cross-compiling to glibc systems, so as to
2153         include GNU/Hurd.
2154
2155 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2156
2157         timespec-sub: avoid duplicate include
2158         * lib/timespec-sub.c: Do not include <config.h> twice.
2159         Reported by Juanma Barranquero.
2160
2161 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
2162
2163         bootstrap: use a more consistent error reporting scheme
2164         * build-aux/bootstrap (warn, die): New.
2165         Use them.
2166
2167 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2168
2169         sys_time: allow too-wide tv_sec
2170         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
2171         timeval even if tv_sec is wider than time_t.  This allows
2172         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
2173         as without this patch gnulib replaces struct timeval
2174         and OpenBSD futimes therefore has a type mismatch.
2175         * doc/posix-headers/sys_time.texi: Mention this.
2176
2177         pthread: check for both pthread_create and pthread_join
2178         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
2179         alter the check so that it tests for both pthread_create and
2180         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
2181         Suggested by Bruno Haible and Richard Yao in
2182         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
2183
2184         parse-datetime: doc tuneup
2185         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
2186         spacing issues.
2187
2188 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
2189
2190         do-release-commit-and-tag: fix the previous commit
2191         * build-aux/do-release-commit-and-tag: Actually the test was right,
2192         but the comment and the error message were misleading.
2193         Fix comment, and improve error message.
2194         Perform check first, so that NEWS is not modified uselessly.
2195
2196         do-release-commit-and-tag: fix typo
2197         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
2198         _not_ start with a stub.
2199
2200 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2201
2202         pthread: check for pthread_create, not pthread_join
2203         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
2204         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
2205         pthread_join in libc.  I hope this removes the need for all the
2206         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
2207         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
2208
2209 2012-07-04  Jim Meyering  <meyering@redhat.com>
2210
2211         parse-datetime: fix failure to diagnose invalid input
2212         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
2213         rather than diagnosing the invalid input.  Now it reports this:
2214         date: invalid date '\260'
2215         * lib/parse-datetime.y (to_uchar): Define.
2216         (yylex): Don't sign-extend "other" bytes.
2217         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
2218         Thanks to Bruno Haible for the patch to this file.
2219         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
2220         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
2221
2222 2012-07-03  Jim Meyering  <meyering@redhat.com>
2223
2224         bootstrap: do not require now-removed build-aux/missing
2225         Now that build-aux/missing is, er, missing, bootstrap would
2226         silently fail.
2227         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
2228         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
2229         no longer part of gnulib.
2230         Diagnose the failure.
2231
2232 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
2233
2234         alloca: add support for HP NonStop TNS/E native
2235         * lib/alloca.in.h (alloca): Support the new host.
2236         From a suggestion by Joachim Schmitz in
2237         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
2238
2239 2012-07-02  Pádraig Brady  <P@draigBrady.com>
2240
2241         fsusage: remove code not needed on non GNU/Linux systems.
2242
2243         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2244         Don't include headers no longer needed in this case.
2245         * lib/fsusage.c [STAT_STATVFS &&
2246         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
2247         STAT_STATFS2_FRSIZE to exclude code not used in this case.
2248
2249 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
2250
2251         fsusage: include files needed for glibc 2.6 fallback
2252         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2253         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
2254         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
2255         Problem reported by Ludovic Courtès in
2256         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
2257
2258         fsusage: avoid needless check on GNU/Linux
2259         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
2260         on GNU/Linux systems, since it can't possibly work.
2261
2262 2012-07-01  Bruno Haible  <bruno@clisp.org>
2263
2264         log: Fix an autoconf >= 2.64 warning.
2265         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
2266         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2267
2268 2012-06-28  Bruno Haible  <bruno@clisp.org>
2269
2270         log10f: Fix possible configuration problem.
2271         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
2272         $LOGF_LIBM.
2273         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2274
2275 2012-06-28  Bruno Haible  <bruno@clisp.org>
2276
2277         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
2278         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
2279         not gl_cv_func_unlink_works.
2280         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2281
2282 2012-06-27  Eric Blake  <eblake@redhat.com>
2283
2284         config: drop scripts that automake says are not independent
2285         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
2286         * build-aux/elisp-comp: Delete.
2287         * build-aux/missing: Likewise.
2288         * build-aux/ylwrap: Likewise.
2289         * modules/elisp-comp: Likewise.
2290         * MODULES.html.sh: Drop mention of elisp-comp.
2291         * NEWS: Mention this.
2292
2293 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
2294
2295         root-uid: new module
2296         This is for portability to Tandem's NonStop Kernel.
2297         * lib/root-uid.h, modules/root-uid: New files.
2298         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
2299         * lib/write-any-file.c, tests/test-sethostname2.c:
2300         Include "root-uid.h".
2301         * lib/euidaccess.c (euidaccess):
2302         * lib/pt_chown.c (main):
2303         * lib/unlinkdir.c (cannot_unlink_dir):
2304         * lib/write-any-file.c (can_write_any_file):
2305         * m4/mknod.m4 (gl_FUNC_MKNOD):
2306         * tests/test-sethostname2.c (geteuid, main):
2307         Don't assume ROOT_UID == 0.
2308         * modules/euidaccess (Depends-on):
2309         * modules/pt_chown (Depends-on):
2310         * modules/sethostname-tests (Depends-on):
2311         * modules/unlinkdir (Depends-on):
2312         * modules/write-any-file (Depends-on):
2313         Add root-uid.
2314
2315         regex: use locale-independent comparison for codeset name
2316         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
2317         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
2318         for codeset name.
2319         * lib/regex_internal.h: Do not include <strings.h>, since we
2320         no longer use strcasecmp.
2321         * modules/regex (Depends-on): Remove strcase.
2322
2323 2012-06-23  Bruno Haible  <bruno@clisp.org>
2324
2325         getopt-posix: No longer guarantee that option processing is resettable.
2326         * doc/posix-functions/getopt.texi: Drop description of problem with
2327         internal state. Fix info about mingw and msvc9.
2328         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
2329         option processing by getopt(). Run three test programs instead of one.
2330         Simplify cross-compilation guess.
2331         * NEWS: Mention the change.
2332         Reported by Rich Felker <dalias@aerifal.cx>.
2333
2334 2012-06-26  Bruno Haible  <bruno@clisp.org>
2335
2336         argp, regex: Ensure strcasecmp gets declared.
2337         * lib/argp-help.c: Include <strings.h>.
2338         * lib/regex_internal.h: Likewise.
2339         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
2340
2341 2012-06-24  Bruno Haible  <bruno@clisp.org>
2342
2343         ptsname_r: Make it consistent with ptsname on AIX.
2344         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
2345         implementation as for OSF/1.
2346         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
2347         a pty master.
2348
2349         ptsname_r: Make it consistent with ptsname on OSF/1.
2350         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2351         OSF/1.
2352
2353 2012-06-24  Bruno Haible  <bruno@clisp.org>
2354
2355         ttyname_r: Fix result on OSF/1, Solaris.
2356         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
2357
2358 2012-06-24  Bruno Haible  <bruno@clisp.org>
2359
2360         ptsname_r: Add support for Solaris.
2361         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2362         Solaris.
2363
2364         ptsname_r: Fix test failure on native Windows.
2365         * modules/ptsname_r (Depends-on): Add isatty.
2366
2367         ptsname_r: Fix test failures on IRIX, Solaris.
2368         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
2369         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
2370         accordingly.
2371         * lib/ptsname_r.c: Include <fcntl.h>.
2372         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
2373         set errno if fd is invalid.
2374         * tests/test-isatty.c (main): Update comments.
2375
2376 2012-06-24  Bruno Haible  <bruno@clisp.org>
2377
2378         ptsname test: Extend test.
2379         * tests/test-ptsname.c: Include <errno.h>.
2380         (main): Test behaviour with invalid file descriptor.
2381
2382 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2383
2384         time: fix obsolete comment
2385         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
2386         reference to HAVE_STRUCT_TIMESPEC in comment.
2387
2388 2012-06-23  Bruno Haible  <bruno@clisp.org>
2389
2390         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
2391         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
2392         does not handle abbreviated long options with equivalent
2393         disambiguations, set gl_replace_getopt to yes.
2394         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
2395
2396 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
2397
2398         time_r: fix typo that always overrode localtime_r decl
2399         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
2400         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
2401         not in a standard include.
2402
2403 2012-06-22  Bruno Haible  <bruno@clisp.org>
2404
2405         Write "Mac OS X" instead of "MacOS X".
2406         * README: Write "Mac OS X" instead of "MacOS X".
2407         * build-aux/bootstrap: Likewise.
2408         * build-aux/install-reloc: Likewise.
2409         * lib/acl-internal.h: Likewise.
2410         * lib/acl_entries.c: Likewise.
2411         * lib/argp-ba.c: Likewise.
2412         * lib/argp-pv.c: Likewise.
2413         * lib/config.charset: Likewise.
2414         * lib/copy-acl.c: Likewise.
2415         * lib/csharpexec.c: Likewise.
2416         * lib/euidaccess.c: Likewise.
2417         * lib/fbufmode.c: Likewise.
2418         * lib/fflush.c: Likewise.
2419         * lib/file-has-acl.c: Likewise.
2420         * lib/filemode.h: Likewise.
2421         * lib/fpurge.c: Likewise.
2422         * lib/freadable.c: Likewise.
2423         * lib/freadahead.c: Likewise.
2424         * lib/freading.c: Likewise.
2425         * lib/freadptr.c: Likewise.
2426         * lib/freadseek.c: Likewise.
2427         * lib/fseeko.c: Likewise.
2428         * lib/fseterr.c: Likewise.
2429         * lib/fsusage.c: Likewise.
2430         * lib/fwritable.c: Likewise.
2431         * lib/fwriting.c: Likewise.
2432         * lib/get-rusage-as.c: Likewise.
2433         * lib/get-rusage-data.c: Likewise.
2434         * lib/getdomainname.c: Likewise.
2435         * lib/idpriv-drop.c: Likewise.
2436         * lib/idpriv-droptemp.c: Likewise.
2437         * lib/localcharset.c: Likewise.
2438         * lib/locale.in.h: Likewise.
2439         * lib/localename.c: Likewise.
2440         * lib/mbsrtowcs-state.c: Likewise.
2441         * lib/nproc.c: Likewise.
2442         * lib/passfd.c: Likewise.
2443         * lib/posix_openpt.c: Likewise.
2444         * lib/printf-parse.c: Likewise.
2445         * lib/progreloc.c: Likewise.
2446         * lib/safe-read.h: Likewise.
2447         * lib/safe-write.h: Likewise.
2448         * lib/sched.in.h: Likewise.
2449         * lib/set-mode-acl.c: Likewise.
2450         * lib/signal.in.h: Likewise.
2451         * lib/stdint.in.h: Likewise.
2452         * lib/stdio-impl.h: Likewise.
2453         * lib/stdlib.in.h: Likewise.
2454         * lib/strtod.c: Likewise.
2455         * lib/sys_select.in.h: Likewise.
2456         * lib/tcgetsid.c: Likewise.
2457         * lib/unistd.in.h: Likewise.
2458         * lib/unlockpt.c: Likewise.
2459         * lib/vasnprintf.c: Likewise.
2460         * lib/vma-iter.c: Likewise.
2461         * lib/wcsrtombs-state.c: Likewise.
2462         * m4/acl.m4: Likewise.
2463         * m4/acosl.m4: Likewise.
2464         * m4/asinl.m4: Likewise.
2465         * m4/atanl.m4: Likewise.
2466         * m4/c-stack.m4: Likewise.
2467         * m4/cosl.m4: Likewise.
2468         * m4/expl.m4: Likewise.
2469         * m4/extensions.m4: Likewise.
2470         * m4/fdatasync.m4: Likewise.
2471         * m4/fmal.m4: Likewise.
2472         * m4/frexp.m4: Likewise.
2473         * m4/frexpf.m4: Likewise.
2474         * m4/frexpl.m4: Likewise.
2475         * m4/fsusage.m4: Likewise.
2476         * m4/getdomainname.m4: Likewise.
2477         * m4/getloadavg.m4: Likewise.
2478         * m4/getopt.m4: Likewise.
2479         * m4/gettext.m4: Likewise.
2480         * m4/gnulib-common.m4: Likewise.
2481         * m4/intdiv0.m4: Likewise.
2482         * m4/intlmacosx.m4: Likewise.
2483         * m4/largefile.m4: Likewise.
2484         * m4/ldexpl.m4: Likewise.
2485         * m4/link-follow.m4: Likewise.
2486         * m4/locale-ar.m4: Likewise.
2487         * m4/locale-fr.m4: Likewise.
2488         * m4/locale-ja.m4: Likewise.
2489         * m4/locale-tr.m4: Likewise.
2490         * m4/locale-zh.m4: Likewise.
2491         * m4/locale_h.m4: Likewise.
2492         * m4/lock.m4: Likewise.
2493         * m4/logl.m4: Likewise.
2494         * m4/mathfunc.m4: Likewise.
2495         * m4/minus-zero.m4: Likewise.
2496         * m4/mktime.m4: Likewise.
2497         * m4/mmap-anon.m4: Likewise.
2498         * m4/multiarch.m4: Likewise.
2499         * m4/nanosleep.m4: Likewise.
2500         * m4/nocrash.m4: Likewise.
2501         * m4/poll.m4: Likewise.
2502         * m4/printf-frexpl.m4: Likewise.
2503         * m4/printf.m4: Likewise.
2504         * m4/signbit.m4: Likewise.
2505         * m4/sinl.m4: Likewise.
2506         * m4/sqrtl.m4: Likewise.
2507         * m4/strerror_r.m4: Likewise.
2508         * m4/tanl.m4: Likewise.
2509         * m4/threadlib.m4: Likewise.
2510         * m4/ttyname_r.m4: Likewise.
2511         * m4/unlink.m4: Likewise.
2512         * m4/visibility.m4: Likewise.
2513         * m4/wcwidth.m4: Likewise.
2514         * tests/minus-zero.h: Likewise.
2515         * tests/test-alloca-opt.c: Likewise.
2516         * tests/test-copy-acl.sh: Likewise.
2517         * tests/test-copy-file.sh: Likewise.
2518         * tests/test-fdatasync.c: Likewise.
2519         * tests/test-file-has-acl.sh: Likewise.
2520         * tests/test-flock.c: Likewise.
2521         * tests/test-fsync.c: Likewise.
2522         * tests/test-localename.c: Likewise.
2523         * tests/test-malloca.c: Likewise.
2524         * tests/test-nonblocking-pipe.h: Likewise.
2525         * tests/test-nonblocking-socket.h: Likewise.
2526         * tests/test-openpty.c: Likewise.
2527         * tests/test-posix_openpt.c: Likewise.
2528         * tests/test-ptsname.c: Likewise.
2529         * tests/test-ptsname_r.c: Likewise.
2530         * tests/test-sameacls.c: Likewise.
2531         * tests/test-select.h: Likewise.
2532         * tests/test-set-mode-acl.sh: Likewise.
2533         * tests/test-snprintf-posix.h: Likewise.
2534         * tests/test-sprintf-posix.h: Likewise.
2535         * tests/test-strtod.c: Likewise.
2536         * tests/test-time.c: Likewise.
2537         * tests/test-vasnprintf-posix.c: Likewise.
2538         * tests/test-vasprintf-posix.c: Likewise.
2539         * doc/acl-resources.txt: Likewise.
2540         * doc/**/*.texi: Likewise.
2541         Reported by Max Horn <max@quendi.de>.
2542
2543 2012-06-22  Bruno Haible  <bruno@clisp.org>
2544
2545         grantpt: Relax requirement regarding invalid file descriptors.
2546         * lib/grantpt.c: Don't include <fcntl.h>.
2547         (grantpt): Don't verify the validity of the file descriptor.
2548         * modules/grantpt (Depends-on): Remove fcntl-h.
2549         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
2550         file descriptors.
2551         * doc/posix-functions/grantpt.texi: Document more platforms on which
2552         grantpt succeeds for invalid file descriptors.
2553         Reported by Rich Felker <dalias@aerifal.cx>.
2554
2555 2012-06-22  Bruno Haible  <bruno@clisp.org>
2556
2557         fbufmode test: Don't test unportable behaviour.
2558         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
2559         (main): Invoke it three times.
2560         Reported by Szabolcs Nagy <nsz@port70.net>
2561         and Rich Felker <dalias@aerifal.cx>.
2562
2563 2012-06-21  Bruno Haible  <bruno@clisp.org>
2564
2565         gnulib-tool: Refactor inctests variable.
2566         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
2567         (func_modules_transitive_closure,
2568         func_modules_transitive_closure_separately,
2569         func_import, func_create_testdir): Update.
2570
2571         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
2572         * gnulib-tool: Accept option --without-tests.
2573         (func_usage): Document --without-tests option. Rearrange.
2574         (inctests): Normalize according to the mode.
2575         * NEWS: Mention the change.
2576         Suggested by Simon Josefsson.
2577
2578 2012-06-21  Bruce Korb  <bkorb@gnu.org>
2579
2580         parse-duration test: Avoid spurious output.
2581         * tests/test-parse-duration.sh: Reindent with leading tabs.
2582
2583 2012-06-21  Jim Meyering  <meyering@redhat.com>
2584
2585         maint: disable the strncpy prohibition
2586         * cfg.mk: Do not prohibit strncpy here.
2587
2588 2012-06-21  Bruno Haible  <bruno@clisp.org>
2589
2590         nonblocking: Avoid compilation error on mingw64.
2591         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
2592         fscanf.
2593         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
2594         * modules/vfscanf (configure.ac): Likewise.
2595         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
2596         definition only if stdio.h has prepared it.
2597         Reported by Daniel P. Berrange <berrange@redhat.com>.
2598
2599 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
2600
2601         gnulib-tool: Use readlink if it is available.
2602         * gnulib-tool (func_readlink): Choose function more appropriately.
2603
2604 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
2605
2606         posixtm-tests: port to buggy compiler
2607         Problem reported by Simon Josefsson in
2608         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
2609         * modules/posixtm-tests (Depends-on): Add stdint.
2610         * tests/test-posixtm.c (struct posixtm_test.t_expected):
2611         Now of type int_least64_t, not int64_t, both because that's
2612         what INT64_C returns and because int_least64_t works even
2613         on 72-bit hosts.
2614         (T): Use INT64_C on constants outside the traditional int range,
2615         to work around compiler bug noted by Simon.
2616
2617         mktime: fix integer overflow in 'configure'-time test
2618         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
2619         after integer overflow.  Problem reported by Rich Felker in
2620         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
2621         Also, don't look for further instances of a bug if we've already
2622         found one instance; this helps 'configure' run faster.
2623
2624 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
2625
2626         tmpfile, clean-temp: Fix invocation of GetVersionEx.
2627         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
2628         GetVersionEx correctly.
2629         * lib/clean-temp.c (supports_delete_on_close): Likewise.
2630
2631 2012-06-20  Bruno Haible  <bruno@clisp.org>
2632
2633         fdopen: Allow implementations that don't reject invalid fd arguments.
2634         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
2635         succeeds.
2636         Reported by Rich Felker <dalias@aerifal.cx>.
2637
2638 2012-06-20  Simon Josefsson  <simon@josefsson.org>
2639
2640         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
2641         bring in LIBINTL.
2642
2643 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2644
2645         init.sh: do not rely on autoupated PWD
2646         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
2647         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
2648         Although Nelson's bug was not necessarily fixed by this patch,
2649         it seems wise to make the change for safety.
2650         * tests/init.sh (path_prepend_): Do not rely on PWD updating
2651         automagically after 'cd'; this is not reliable on older shells.
2652         (setup_): Fail if we cannot cd to temporary directory.
2653
2654 2012-06-19  Bruno Haible  <bruno@clisp.org>
2655
2656         stat, fstat: Avoid warnings on mingw64.
2657         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
2658         redefining.
2659         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
2660         Reported by Daniel P. Berrange <berrange@redhat.com>.
2661
2662 2012-06-19  Bruno Haible  <bruno@clisp.org>
2663
2664         stdioext: Add support for musl libc.
2665
2666         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
2667         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
2668
2669         * m4/fseterr.m4: New file.
2670         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
2671         function exists.
2672         * modules/fseterr (Files): Add m4/fseterr.m4.
2673         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
2674         __fseterr does not exist.
2675         (Makefile.am): Remove fseterr.c from lib_SOURCES.
2676
2677         * lib/freadable.h: Update comment.
2678
2679         * lib/fwritable.h: Update comment.
2680
2681         * lib/freading.h: Update comment.
2682
2683         * lib/fwriting.h: Update comment.
2684
2685         * m4/freadahead.m4: New file.
2686         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
2687         that function exists.
2688         * modules/freadahead (Files): Add m4/freadahead.m4.
2689         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
2690         __freadahead does not exist.
2691         (Makefile.am): Remove freadahead.c from lib_SOURCES.
2692
2693         * m4/freadptr.m4: New file.
2694         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
2695         function exists.
2696         * modules/freadptr (Files): Add m4/freadptr.m4.
2697         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
2698         __freadptr does not exist.
2699         (Makefile.am): Remove freadptr.c from lib_SOURCES.
2700
2701         * m4/freadseek.m4: New file.
2702         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
2703         exists.
2704         * modules/freadseek (Files): Add m4/freadseek.m4.
2705         (configure.ac): Invoke gl_FUNC_FREADSEEK.
2706
2707         * lib/fpurge.c (fpurge): Update comment.
2708
2709         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
2710
2711 2012-06-19  Bruno Haible  <bruno@clisp.org>
2712
2713         *printf-posix: Put more info into config.log.
2714         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
2715         exit code into config.log.
2716
2717 2012-06-19  Bruno Haible  <bruno@clisp.org>
2718
2719         getopt-gnu: Fix exit code overflow in autoconf test.
2720         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
2721         to keep them below < 128.
2722
2723 2012-06-17  Jim Meyering  <meyering@redhat.com>
2724
2725         maint.mk: fix typo in code to derive GPG key at release time
2726         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
2727
2728 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
2729
2730         regex: avoid warning when pointers are not long
2731         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
2732         and uintptr_t, not long, for portability to hosts where pointers and
2733         long have different sizes.  Issue noted by Daniel P. Berrange in
2734         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
2735         and fix suggested by Bruno Haible in
2736         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
2737
2738 2012-06-17  Bruno Haible  <bruno@clisp.org>
2739
2740         dummy: Relicense into the public domain.
2741         * modules/dummy (License): Set to "public domain".
2742         Suggested by Reuben Thomas.
2743
2744 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2745
2746         announce-gen: VPATH issues
2747         * build-aux/announce-gen (--srcdir): New option, used to trim the
2748         $srcdir part of the path from $builddir to NEWS.
2749         * top/maint.mk (announcement): Adjust.
2750
2751 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2752
2753         gnu-web-doc-update: VPATH builds
2754         * build-aux/gnu-web-doc-update (--builddir): New option.
2755         Revamp the handling of options.
2756         Prefer $(...) to `...`.
2757         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
2758         the template, and it is GNU mktemp specific.
2759         Prefer set -e to long series of &&.
2760         Restore the initial git branch, not "master".
2761         Properly initialize submodules (don't rely only on bootstrap).
2762         Do not reconfigure blindly, use config.status.
2763         * top/README-release: Update instructions for gnu-web-doc-update.
2764
2765 2012-06-11  Jim Meyering  <meyering@redhat.com>
2766
2767         maint.mk: revert most of the previous change re "all these"
2768         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
2769         For rationale, see the discussion at
2770         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
2771
2772 2012-06-10  Karl Berry  <karl@gnu.org>
2773
2774         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
2775
2776         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
2777
2778 2012-06-10  Bruce Korb  <bkorb@gnu.org>
2779
2780         parse-duration: Relicense under LGPLv2+.
2781         * modules/parse-duration (License): Change to LGPLv2+.
2782
2783 2012-06-10  Jim Meyering  <meyering@redhat.com>
2784
2785         maint.mk: prohibit common grammar error: "all these"
2786         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
2787         the list of prohibited word sequences.  It should be "all of these".
2788         * lib/tempname.c (__gen_tempname): Fix one of them.
2789
2790 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2791
2792         do-release-commit-and-tag: support VPATH builds
2793         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
2794         (noteworthy): Defined earlier to factor its value.
2795         (noteworthy_stub): New.
2796         Use it to factor.
2797         (help_version): Split into...
2798         (help, version): these.
2799         Adjust the option processing part.
2800         Support "--option=value" in addition to "--option value".
2801         (builddir): New.
2802         (--builddir): New option.
2803         * top/README-release: Document this.
2804         Reword slightly so that the reader cannot understand that he
2805         has to do these steps before calling do-release-commit-and-tag.
2806
2807 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2808
2809         readme-release: also require announce-gen and maintainer-makefile
2810         * modules/readme-release (Depends-on): here.
2811         * modules/announce-gen, modules/do-release-commit-and-tag,
2812         modules/gnu-web-doc-update, modules/maintainer-makefile
2813         (Description): Point to readme-release.
2814
2815 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2816
2817         maint.mk: fix VPATH issues.
2818         * top/maint.mk (news-check): GNU Make understand $< very well.
2819         (release-prep): NEWS is in $(srcdir).
2820
2821 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
2822
2823         readme-release: require the promoted modules.
2824         * modules/readme-release (Depends-on): Add
2825         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
2826         in this text.
2827
2828 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2829             Bruno Haible  <bruno@clisp.org>
2830
2831         error, strerror-override: Support mingw64 from Fedora 17.
2832         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
2833         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
2834         EINPROGRESS.
2835         * lib/strerror-override.h (strerror_override): Test it.
2836         * lib/strerror-override.c (strerror_override): Likewise.
2837         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
2838
2839 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2840             Bruno Haible  <bruno@clisp.org>
2841
2842         error, strerror-override: Support mingw64 from Fedora 17.
2843         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
2844         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
2845         * lib/strerror-override.h (strerror_override): Test it.
2846         * lib/strerror-override.c (strerror_override): Likewise.
2847
2848 2012-06-03  Bruno Haible  <bruno@clisp.org>
2849
2850         error, strerror-override: Support new errno values from POSIX:2008.
2851         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
2852         ENOTRECOVERABLE.
2853         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
2854         platforms.
2855         * lib/strerror-override.c (strerror_override): Conditionalize the
2856         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
2857         * lib/strerror-override.h (strerror_override): Declare also if
2858         GNULIB_defined_EOWNERDEAD is defined.
2859         * tests/test-errno.c (e130, e131): New variables.
2860         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
2861         ENOTRECOVERABLE.
2862         Reported by Paolo Bonzini.
2863
2864 2012-05-31  Jim Meyering  <meyering@redhat.com>
2865
2866         savewd: add missing dependency on sys_wait module
2867         * modules/savewd (Depends-on): Add sys_wait, needed at least
2868         for MSVC.  Report and suggested change by Michael Goffioul.
2869
2870 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2871
2872         system-quote-tests: port to CentOS 5
2873         Problem reported by Tom G. Christensen in
2874         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
2875         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
2876
2877 2012-05-29  Jim Meyering  <meyering@redhat.com>
2878
2879         maint: fix typos in comments and ChangeLog
2880         Culprits identified and fixed mostly automatically using these commands:
2881         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
2882         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
2883         using http://github.com/lyda/misspell-check
2884         * ChangeLog: Fix typos.
2885         * doc/solaris-versions: Likewise.
2886         * lib/regexec.c (re_search_stub): Likewise.
2887         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
2888
2889 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
2890
2891         manywarnings: remove duplicate -Wmultichar entry
2892         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
2893         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
2894         so keep the entry marked as documented.
2895
2896 2012-05-27  Karl Berry  <karl@gnu.org>
2897
2898         * config/srclist.txt (mktime.c): remove last libc sync,
2899         perhaps just temporarily.
2900
2901 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
2902
2903         regex: don't assume uint64_t or uint32_t
2904         * lib/regcomp.c (init_word_char): Don't assume that the types
2905         uint64_t and uint32_t exist.  The C standard doesn't guarantee
2906         them, and on some 32-bit compilers there is no uint64_t.
2907         Problem reported by Gianluigi Tiesi in
2908         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
2909
2910 2012-05-25  Jim Meyering  <meyering@redhat.com>
2911
2912         maint.mk: add strncpy-prohibiting syntax-check rule
2913         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
2914
2915 2012-05-24  Jim Meyering  <meyering@redhat.com>
2916
2917         maint.mk: compute $(gpg_key_ID) more portably
2918         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
2919         That use of sed is not portable to some fringe systems.
2920         Reported by Paul Eggert in
2921         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
2922
2923 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2924
2925         mktime: sync from glibc
2926         * config/srclist.txt: Uncomment mktime.c.
2927         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
2928         First, indent with tabs, since glibc uses tabs and doesn't want to
2929         change and we'd rather be identical to glibc.  Also, two small
2930         coding changes:
2931         (isdst_differ): Use &&, not &, as && is the usual style.
2932         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
2933         for clarity.
2934
2935 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2936
2937         announce-gen: du -h is more portable than du --human
2938         * build-aux/announce-gen (sizes): Invoke du with -h instead
2939         of --human.  Accept leading white space in its output.
2940
2941 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2942
2943         announce-gen: Improve diagnostics.
2944         * build-aux/announce-gen: When parsing command line options,
2945         prefer "announce-gen: option --release-type requires an argument"
2946         to "Option release-type requires an argument".
2947
2948 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2949
2950         maint.mk: gpg_key_ID: use sed more portably
2951         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
2952         the closing brace.
2953         (refresh-po): Fuse two sed invocations into one.
2954
2955 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
2956
2957         gitlog-to-changelog: support the log message format used in Bison.
2958         * build-aux/gitlog-to-changelog: Support --strip-tab and
2959         --strip-cherry-picked.
2960
2961 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2962
2963         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
2964         the rest of the current time slice to another thread in the current
2965         process. So if the thread that feeds the file decscriptor we're
2966         polling is not in the current process, we get busy-waiting.
2967         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
2968         Patch from Theodore Leblond.
2969         * lib/select.c: Split polling out of the loop that sets the output
2970         fd_sets.  Check for zero result and loop if the wait timeout is
2971         infinite.
2972
2973 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2974
2975         select: Fix build error on IRIX 6.5.
2976         * lib/select.c: Include stddef.h for NULL.
2977
2978 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2979
2980         gc: fix libgcrypt detection on older machines.
2981         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
2982         copyright years because the file has been distributed every year
2983         since it was created.
2984
2985 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
2986
2987         crypto: fix bug in large buffer handling
2988         Problem reported by Serge Belyshev for glibc in
2989         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
2990         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
2991         * lib/md4.c (md4_process_block):
2992         * lib/md5.c (md5_process_block):
2993         * lib/sha1.c (sha1_process_block):
2994         * lib/sha256.c (sha256_process_block):
2995         Don't assume the buffer length is less than 2**32.
2996         * lib/sha512.c (sha512_process_block): Likewise.
2997         Here, the bug is present only in the rare case where the host does
2998         not support uint64_t or where size_t is wider than 64 bits.
2999         Use u64size to work around the problems.
3000         * lib/u64.h (u64size): New macro.
3001
3002 2012-05-15  Pádraig Brady  <P@draigBrady.com>
3003
3004         fsusage: fix block size returned on older Linux 2.6
3005
3006         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
3007         which is available since Linux 2.6.
3008         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
3009         when the member is available so it can be used as a fallback.
3010         * doc/posix-functions/statvfs.texi: Mention the hang issue
3011         on Linux < 2.6.36.
3012
3013 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
3014
3015         bootstrap: suppress stderr chatter
3016         * build-aux/bootstrap (insert_sorted_if_absent, main program):
3017         Omit unnecessary chatter to stderr.  The main program chatter
3018         was there only inadvertantly.
3019
3020         bootstrap: .gitignore files created by autopoint, libtool
3021         I ran into this problem when bootstrapping the latest diffutils.
3022         After './bootstrap', 'git status' reported lots of untracked files
3023         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
3024         autopoint and do not need to be version-controlled.
3025         * build-aux/bootstrap: Put into .gitignore the files that
3026         autopoint and libtool create, by keeping track of files that exist
3027         after but not before these programs are run.
3028         (version_controlled_file): Move up.  2nd arg is now full file
3029         name, not base name; this is more convenient.  Put CVS at the end,
3030         as it's now somewhat deprecated.
3031
3032 2012-05-14  Jim Meyering  <meyering@redhat.com>
3033
3034         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
3035         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
3036         definition.  Reported by Bruno Haible.
3037
3038 2012-05-13  Bruno Haible  <bruno@clisp.org>
3039             Paul Eggert  <eggert@cs.ucla.edu>
3040
3041         binary-io: Define set_binary_mode function.
3042         * lib/binary-io.h (set_binary_mode): New function.
3043         (SET_BINARY): Define in terms of set_binary_mode.
3044         * modules/binary-io (configure.ac): Require AC_C_INLINE.
3045         * tests/test-binary-io.c (main): Accept an argument, and test either
3046         set_binary_mode or SET_BINARY depending on the argument.
3047         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
3048         argument. Clean up also t-bin-out0.tmp.
3049
3050 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
3051
3052         bootstrap: take advantage of POSIX shell features
3053
3054         The 'bootstrap' script offered by Gnulib script already uses POSIX
3055         shell features (like $((...)) arithmetic expansions) that are not
3056         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
3057         means that bootstrap must already be run using a proper POSIX shell,
3058         which will thus provide more features, like ${var#pattern} parameter
3059         expansion or inversion of a command exit status with '!'.  We can
3060         thus use these features to improve the clarity and the performances
3061         of the bootstrap script.
3062
3063         Suggested by Eric Blake.
3064
3065         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
3066         of sed/expr plus command substitutions, to save some forks.  While
3067         we are at it, prefer the POSIX $(...) form of command substitution,
3068         rather than the legacy form `...` (since the former is visually
3069         clearer and interacts better with quoting), and prefer the idiom:
3070           "if ! CMD; then ACTION ..."
3071         over the idiom:
3072           "if CMD; then :; else ACTION ..."
3073         which was required by legacy Bourne shells not supporting '!'.
3074
3075 2012-05-12  Bruno Haible  <bruno@clisp.org>
3076
3077         system-quote: Add more comments.
3078         * lib/system-quote.h: Add more comments about wilcards and limitations.
3079         Suggested by Eli Zaretskii <eliz@gnu.org>.
3080
3081         sh-quote, system-quote: Add comments about wildcards.
3082         * lib/sh-quote.h: Clarify what happens with wildcard characters.
3083         * lib/system-quote.h: Likewise.
3084         Reported by Eli Zaretskii <eliz@gnu.org>.
3085
3086 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3087
3088         fsusage: check for GNU/Linux statvfs problem dynamically
3089         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
3090         Define STAT_STATFS2_BSIZE too, since in this case the code now
3091         checks dynamically whether statvfs is reliable, falling back on
3092         Linux-style statfs otherwise.
3093         (statvfs_works): New function, for dynamically testing statvfs.
3094         (get_fs_usage) [STAT_STATVFS]: Use it.
3095         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
3096         statvfs on GNU/Linux hosts, since it's now done dynamically.
3097
3098 2012-05-10  Bruno Haible  <bruno@clisp.org>
3099
3100         system-quote, execute, spawn-pipe: Escape '?' on Windows.
3101         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
3102         '?' character.
3103         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
3104         * tests/test-system-quote-main.c (check_all): Check also strings like
3105         "??????????".
3106         Reported by Eli Zaretskii <eliz@gnu.org>.
3107
3108 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3109
3110         _Noreturn: port config.h to gcc -Wundef
3111         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
3112         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
3113         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
3114
3115 2012-05-10  Bruno Haible  <bruno@clisp.org>
3116
3117         system-quote: Refactor.
3118         * lib/system-quote.h (system_quote_copy): Fix comment.
3119         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
3120         New functions, extracted from system_quote_copy.
3121         (system_quote_length, system_quote_copy): Use these functions.
3122         Reported by Paul Eggert.
3123
3124 2012-05-08  Bruno Haible  <bruno@clisp.org>
3125
3126         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
3127         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
3128
3129 2012-05-08  Bruno Haible  <bruno@clisp.org>
3130
3131         Tests for module 'system-quote'.
3132         * modules/system-quote-tests: New file.
3133         * tests/test-system-quote.sh: New file.
3134         * tests/test-system-quote-main.c: New file.
3135         * tests/test-system-quote-child.c: New file.
3136
3137         New module 'system-quote'.
3138         * lib/system-quote.h: New file.
3139         * lib/system-quote.c: New file.
3140         * modules/system-quote: New file.
3141
3142 2012-05-08  Bruno Haible  <bruno@clisp.org>
3143
3144         sh-quote: Make C++ safe and allow multiple inclusion.
3145         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
3146         declarations in extern "C".
3147
3148 2012-05-08  Bruno Haible  <bruno@clisp.org>
3149
3150         sh-quote tests: Make tests stricter.
3151         * tests/test-sh-quote.c (check_one): Check the return value of
3152         shell_quote_copy.
3153         (main): Check a string with a CR character. Check a string that
3154         contains UCHAR_MAX.
3155
3156 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
3157
3158         warnings.m4: provide a means to specify the program to compile.
3159         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
3160         (gl_WARN_ADD): here.
3161         Use gl_AS_VAR_APPEND.
3162         Support an argument to specify the program to compile.
3163         (gl_WARN_ADD): Accept an argument to specify the program to compile.
3164         AC_SUBST the WARN_CFLAGS when they are used.
3165         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
3166         leave this to gl_WARN_ADD.
3167
3168 2012-05-08  Eric Blake  <eblake@redhat.com>
3169
3170         doc: recommendations on gettext version
3171         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
3172         choice between versions.
3173         * DEPENDENCIES (gettext): Cover both approaches.
3174
3175 2012-05-08  Jim Meyering  <meyering@redhat.com>
3176
3177         init.sh: explain why EXEEXT support uses aliases rather than functions
3178         * tests/init.sh: Add a comment.
3179
3180         init.sh: don't let bash aliases interfere with tests
3181         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
3182         is bash.  This avoids problems for those who alias standard commands to
3183         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
3184         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
3185
3186 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3187
3188         stdint: be more consistent with glibc, SunOS libc
3189         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
3190         (gl_int_fast16_t, gl_uint_fast16_t)
3191         (gl_int_fast32_t, gl_uint_fast32_t)
3192         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
3193         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
3194         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
3195         Be consistent with glibc by default, and with SunOS 5.10 and later
3196         if __sun is defined.  This lessens the likelihood of clashes if
3197         code compiled for older hosts is combined with code compiled for
3198         newer ones.  Problem reported by Niels Möller in
3199         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
3200
3201 2012-05-07  Eric Blake  <eblake@redhat.com>
3202
3203         isatty: relax license to LGPLv2+
3204         * modules/isatty (License): Relax license.
3205
3206 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3207
3208         stat-size: comment fix
3209         * lib/stat-size.h: Remove obsolete comment about indenting.
3210
3211 2012-05-06  Bruno Haible  <bruno@clisp.org>
3212
3213         Tests for module 'sh-quote'.
3214         * modules/sh-quote-tests: New file.
3215         * tests/test-sh-quote.c: New file.
3216
3217 2012-05-06  Bruno Haible  <bruno@clisp.org>
3218
3219         sh-quote: Improve shell_quote_argv's signature.
3220         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
3221         * lib/sh-quote.c (shell_quote_argv): Likewise.
3222
3223 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3224
3225         stdint: document issues with int_fast8_t etc.
3226         * doc/posix-headers/stdint.texi (stdint.h): Say that other
3227         stdint.h substitutes may define these types differently.  See
3228         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
3229
3230 2012-05-05  Bruno Haible  <bruno@clisp.org>
3231
3232         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
3233         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
3234         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
3235         or 'guessing no (mishandles large arguments)'.
3236
3237 2012-05-05  Bruno Haible  <bruno@clisp.org>
3238
3239         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
3240         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
3241         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3242         set gl_cv_func_link_follows_symlink to "guessing no".
3243
3244 2012-05-05  Bruno Haible  <bruno@clisp.org>
3245
3246         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
3247         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
3248         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
3249         "guessing no".
3250         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
3251
3252 2012-05-05  Bruno Haible  <bruno@clisp.org>
3253
3254         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
3255         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
3256         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3257         set gl_cv_struct_dirent_d_ino to "guessing yes".
3258
3259 2012-05-05  Bruno Haible  <bruno@clisp.org>
3260
3261         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
3262         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
3263         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
3264         "guessing yes".
3265
3266 2012-05-05  Bruno Haible  <bruno@clisp.org>
3267
3268         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
3269         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
3270         compiling to a glibc system, set gl_cv_func_signbit and
3271         gl_cv_func_signbit_gcc to "guessing yes".
3272
3273 2012-05-05  Bruno Haible  <bruno@clisp.org>
3274
3275         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
3276         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
3277         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
3278         to "guessing yes".
3279         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
3280         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
3281
3282 2012-05-05  Bruno Haible  <bruno@clisp.org>
3283
3284         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
3285         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
3286         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
3287         gl_cv_func_realpath_works to "guessing yes".
3288
3289 2012-05-05  Bruno Haible  <bruno@clisp.org>
3290
3291         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
3292         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
3293         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
3294
3295 2012-05-04  Bruno Haible  <bruno@clisp.org>
3296
3297         Tweak last commit.
3298         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
3299         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3300
3301 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
3302
3303         unistd_h: make it easier to avoid sys_types_h
3304         This is useful for Emacs, which has its own method of porting to
3305         Windows, and which therefore does not need the sys_types_h module.
3306         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
3307         code moved here from gl_SYS_TYPES_H.
3308         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
3309         using the code directly.
3310         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
3311         gl_SYS_TYPES_H.
3312         * modules/sys_types (Files):
3313         * modules/unistd (Files): Add m4/off_t.m4.
3314
3315 2012-05-03  Bruno Haible  <bruno@clisp.org>
3316
3317         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
3318         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
3319         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
3320         "guessing yes" or "guessing no".
3321         (gl_FUNC_LSTAT): Update.
3322         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
3323         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
3324         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
3325
3326 2012-05-03  Bruno Haible  <bruno@clisp.org>
3327
3328         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
3329         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
3330         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
3331         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
3332         cross-compiling, choose the first alternative on glibc systems.
3333         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
3334
3335 2012-05-03  Bruno Haible  <bruno@clisp.org>
3336
3337         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
3338         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
3339         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
3340
3341 2012-05-03  Bruno Haible  <bruno@clisp.org>
3342
3343         chown: Avoid "guessing no" when cross-compiling to glibc systems.
3344         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
3345
3346 2012-05-03  Bruno Haible  <bruno@clisp.org>
3347
3348         Avoid "guessing no" guesses when cross-compiling to glibc systems.
3349         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
3350         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
3351         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
3352         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
3353         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
3354         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
3355         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
3356         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
3357         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
3358         compiling to glibc systems, set gl_cv_func_chown_slash_works,
3359         gl_cv_func_chown_ctime_works to "guessing yes".
3360         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
3361         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
3362         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
3363         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
3364         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
3365         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
3366         compiling to glibc systems, set gl_cv_func_open_directory_works to
3367         "guessing yes".
3368         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
3369         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
3370         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
3371         "guessing yes".
3372         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
3373         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
3374         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
3375         compiling to glibc systems, set gl_cv_func_floorf_ieee to
3376         "guessing yes".
3377         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
3378         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
3379         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
3380         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
3381         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
3382         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
3383         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
3384         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
3385         "guessing yes".
3386         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
3387         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
3388         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
3389         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
3390         "guessing yes".
3391         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
3392         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
3393         "guessing yes".
3394         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
3395         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
3396         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
3397         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
3398         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
3399         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
3400         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
3401         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
3402         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
3403         compiling to glibc systems, set gl_cv_func_log10f_ieee to
3404         "guessing yes".
3405         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
3406         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
3407         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
3408         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
3409         "guessing yes".
3410         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
3411         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
3412         "guessing yes".
3413         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
3414         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
3415         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
3416         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
3417         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
3418         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
3419         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
3420         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
3421         compiling to glibc systems, set gl_cv_func_mkfifo_works to
3422         "guessing yes".
3423         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
3424         compiling to glibc systems, set gl_cv_func_mknod_works to
3425         "guessing yes".
3426         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
3427         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
3428         "guessing yes".
3429         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
3430         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
3431         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
3432         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
3433         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
3434         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
3435         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
3436         compiling to glibc systems, set gl_cv_func_svid_putenv to
3437         "guessing yes".
3438         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
3439         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
3440         "guessing yes".
3441         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
3442         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
3443         "guessing yes".
3444         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
3445         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
3446         to "guessing yes".
3447         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
3448         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
3449         to "guessing yes".
3450         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
3451         compiling to glibc systems, set gl_cv_func_rmdir_works to
3452         "guessing yes".
3453         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
3454         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
3455         gl_cv_func_unlink_parent_fails to "guessing yes".
3456         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
3457         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
3458         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
3459         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
3460         gl_cv_func_rename_dest_works to "guessing yes".
3461         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
3462         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
3463         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
3464         compiling to glibc systems, set gl_cv_func_roundf_ieee to
3465         "guessing yes".
3466         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
3467         compiling to glibc systems, set gl_cv_func_roundl_ieee to
3468         "guessing yes".
3469         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
3470         compiling to glibc systems, set gl_cv_func_setenv_works to
3471         "guessing yes".
3472         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
3473         compiling to glibc systems, set gl_cv_func_unsetenv_works to
3474         "guessing yes".
3475         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
3476         compiling to glibc systems, set gl_cv_func_sleep_works to
3477         "guessing yes".
3478         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
3479         compiling to glibc systems, set gl_cv_func_stat_file_slash to
3480         "guessing yes".
3481         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
3482         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
3483         "guessing yes".
3484         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
3485         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
3486         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
3487         compiling to glibc systems, set gl_cv_func_truncf_ieee to
3488         "guessing yes".
3489         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
3490         compiling to glibc systems, set gl_cv_func_truncl_ieee to
3491         "guessing yes".
3492         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
3493         compiling to glibc systems, set gl_cv_func_usleep_works to
3494         "guessing yes".
3495         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
3496         compiling to glibc systems, set gl_cv_func_futimesat_works to
3497         "guessing yes".
3498
3499 2012-05-03  Bruno Haible  <bruno@clisp.org>
3500
3501         Say "guessing yes" or "guessing no" when cross-compiling.
3502         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
3503         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
3504         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
3505         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
3506         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
3507         am_cv_func_working_getline to "guessing yes" or "guessing no".
3508         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
3509         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
3510         (gl_FUNC_MEMMEM): When cross-compiling, set
3511         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
3512         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
3513         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
3514         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
3515         set gl_cv_func_strcasestr_works_always to "guessing yes" or
3516         "guessing no".
3517         (gl_FUNC_STRCASESTR): When cross-compiling, set
3518         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
3519         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
3520         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
3521         (gl_FUNC_STRSTR): When cross-compiling, set
3522         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
3523         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
3524         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
3525         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
3526         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
3527
3528 2012-05-01  Bruno Haible  <bruno@clisp.org>
3529
3530         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
3531         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
3532         * build-aux/reloc-ldflags: Likewise.
3533         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
3534
3535 2012-05-01  Bruno Haible  <bruno@clisp.org>
3536
3537         gnulib-tool: Remove transitional code.
3538         * gnulib-tool: Don't warn about --import with 0 arguments any more.
3539         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3540
3541 2012-05-01  Bruno Haible  <bruno@clisp.org>
3542
3543         getcwd: Fix misindentation.
3544         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
3545
3546 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
3547
3548         exclude: process exclude and include directives in order
3549         This restores the pre-2009 behavior, and is part of a fix of a
3550         grep bug reported by Quentin Arce in
3551         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
3552         * lib/exclude.c (struct exclude): Remove 'tail' member.
3553         (new_exclude_segment): Prepend the new segment instead of appending.
3554         Return void, since that's now more convenient.
3555         (file_pattern_matches): Renamed from excluded_file_pattern_p.
3556         (file_name_matches): Renamed from excluded_file_name_p.
3557         (file_pattern_matches, file_name_matches):
3558         Return true if the pattern matches, not if it excludes.
3559         All callers changed.
3560         (excluded_file_name): Process the list in reverse order;
3561         since the list is now reversed this restores the pre-2009 behavior.
3562         (add_exclude): Adjust to new reversed-order list.  Use local var
3563         rather than macro, for clarity.
3564         * tests/test-exclude7.sh: Adjust to corrected behavior.
3565
3566         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
3567         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
3568         it's not possible here.  Handle the case of \ at end of pattern
3569         without dumping core.
3570         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
3571
3572         _Noreturn: future-proof non-GNU and non-MSVC compilers
3573         * build-aux/snippet/_Noreturn.h (_Noreturn):
3574         * m4/gnulib-common.m4 (gl_COMMON_BODY):
3575         Do not define _Noreturn if __STDC_VERSION__ indicates this is
3576         C11 or later.  This is more likely to work with random future C
3577         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
3578         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
3579
3580         exclude: handle wildcards with FNM_EXTMATCH
3581         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
3582         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
3583         comment that "has wildcards" really means "has or may have
3584         wildcards".  Simplify by avoiding the need to call strcspn.
3585
3586 2012-04-29  Bruno Haible  <bruno@clisp.org>
3587
3588         gnulib-tool: Fix list of authors.
3589         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
3590
3591 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
3592
3593         bootstrap: support Automake-NG in $buildreq
3594         * bootstrap (check_versions): Handle automake and aclocal from
3595         Automake-NG specially.  They can be specified as respectively
3596         the "automake-ng" and "aclocal-ng" requirements.
3597
3598 2012-04-25  Eric Blake  <eblake@redhat.com>
3599
3600         bootstrap: only force latest Makefile.in.in for gettext module
3601         * build-aux/bootstrap (with_gettext): Only install latest
3602         Makefile.in.in for projects requesting bleeding edge gettext.
3603
3604 2012-04-22  Bruno Haible  <bruno@clisp.org>
3605
3606         doc: Mention reason for replacement on glibc/Linux systems.
3607         * doc/posix-functions/dprintf.texi: Mention the problem with special
3608         'long double' values.
3609         * doc/posix-functions/fprintf.texi: Likewise.
3610         * doc/posix-functions/printf.texi: Likewise.
3611         * doc/posix-functions/snprintf.texi: Likewise.
3612         * doc/posix-functions/sprintf.texi: Likewise.
3613         * doc/posix-functions/vdprintf.texi: Likewise.
3614         * doc/posix-functions/vfprintf.texi: Likewise.
3615         * doc/posix-functions/vprintf.texi: Likewise.
3616         * doc/posix-functions/vsnprintf.texi: Likewise.
3617         * doc/posix-functions/vsprintf.texi: Likewise.
3618         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
3619         platforms with F_DUPFD_CLOEXEC problems.
3620         * doc/posix-functions/glob.texi: Mention which platforms are affected
3621         by the problem with symbolic links.
3622         * doc/posix-functions/linkat.texi: Mention the problem with
3623         AT_SYMLINK_FOLLOW on Linux.
3624
3625 2012-04-22  Bruno Haible  <bruno@clisp.org>
3626
3627         pwrite: Don't replace on all platforms.
3628         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
3629
3630 2012-04-22  Bruno Haible  <bruno@clisp.org>
3631
3632         rint* tests: Avoid gcc warnings.
3633         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
3634         * tests/test-rintf.c (INFINITY, NAN): Likewise.
3635         * tests/test-rintl.c (INFINITY, NAN): Likewise.
3636
3637 2012-04-21  Bruno Haible  <bruno@clisp.org>
3638
3639         users.txt: Update.
3640         * users.txt: Add freedink, wdiff. Update URLs for projects that have
3641         switched from CVS to git, bzr, or svn.
3642
3643 2012-04-21  Bruno Haible  <bruno@clisp.org>
3644
3645         Large File Support for native Windows platforms.
3646
3647         * m4/largefile.m4 (gl_LARGEFILE): New macro.
3648         * modules/largefile (configure.ac): Require gl_LARGEFILE.
3649
3650         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
3651         type.
3652         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
3653         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
3654         * doc/posix-headers/sys_types.texi: Mention the effect of the
3655         'largefile' module.
3656
3657         * lib/fcntl.in.h: Add comments about off_t.
3658         * modules/fcntl-h (Depends-on): Add sys_types.
3659
3660         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
3661         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
3662         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
3663         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
3664         * modules/unistd (Depends-on): Add sys_types.
3665         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
3666
3667         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
3668         instead of lseek.
3669         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
3670         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
3671         * modules/lseek (Depends-on): Add sys_types.
3672
3673         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
3674         msvc-nothrow.h.
3675         (SetFileSize): New function.
3676         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
3677         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
3678         if Large File Support is requested.
3679         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
3680         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
3681
3682         * lib/stdio.in.h: Add comments about off_t.
3683         * modules/stdio (Depends-on): Add sys_types.
3684
3685         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
3686         instead of ftello.
3687         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
3688         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
3689         (gl_PREREQ_FTELLO): New macro.
3690         * modules/ftello (Depends-on): Add sys_types.
3691         (configure.ac): Incoke gl_PREREQ_FTELLO.
3692
3693         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
3694         instead of fseeko.
3695         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
3696         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
3697         (gl_PREREQ_FSEEKO): New macro.
3698         * modules/fseeko (Depends-on): Add sys_types.
3699         (configure.ac): Invoke gl_PREREQ_FSEEKO.
3700
3701         * lib/sys_stat.in.h: Add comments about off_t.
3702         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
3703         64-bit integer for st_size in 'struct stat'.
3704         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
3705         Define _GL_WINDOWS_64_BIT_ST_SIZE.
3706         * modules/sys_stat (Depends-on): Add sys_types.
3707         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
3708
3709         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
3710         instead of stat or _stat.
3711
3712         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
3713         'struct _stati64' instead of fstat and 'struct stat'.
3714         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
3715         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
3716
3717         Reported by Ray Satiro <raysatiro@yahoo.com>.
3718
3719 2012-04-19  Eric Blake  <eblake@redhat.com>
3720
3721         bootstrap: accommodate older libtool
3722         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
3723         Reported by Daniel P. Berrange.
3724
3725 2012-04-19  Jim Meyering  <meyering@redhat.com>
3726
3727         announce-gen: avoid failure due to lack of Digest::SHA1
3728         Even with the preferred Digest::SHA available, this script
3729         would fail when the backup module, Digest::SHA1, was not installed.
3730         * build-aux/announce-gen: Quote the conditional use of "use".
3731         Reported by Reuben Thomas in:
3732         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
3733
3734         bootstrap: don't let a user's CDPATH setting affect this script
3735         When CDPATH is set, cd will sometimes generate output.
3736         When "cd" is run in a subshell whose output matters, that
3737         surprising-to-some output can cause malfunction.
3738         Unsetting CDPATH turns off this shell "feature."
3739         * build-aux/bootstrap (CDPATH): Unset.
3740         Reported by Reuben Thomas in:
3741         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
3742         and inspired by his patch here:
3743         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
3744
3745 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
3746         and Jim Meyering  <meyering@redhat.com>
3747
3748         maint.mk: catch "see @xref{}" and similar
3749         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
3750         prohibit "See also @xref{", "Also see @pxref{", and similar.
3751
3752 2012-04-16  Jim Meyering  <meyering@redhat.com>
3753
3754         bootstrap: really use gnulib's po/Makefile.in.in
3755         * build-aux/bootstrap: Correct the source file name in previous change.
3756         Reported by Akim Demaille.
3757
3758         configmake: correct minor inconsistency in Makefile rule
3759         * modules/configmake (Makefile.am): All other rules like this one
3760         run the final "mv -f ..." in the same backslash-continued command
3761         as the one that does everything else.  This one put the mv -f ...
3762         command on a separate, non-backslash-continued line.
3763         Make it like the others.
3764
3765         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
3766         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
3767         the one from gettext.  Reported by Akim Demaille.
3768
3769 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
3770
3771         Fix recursion of install-* into po directories.
3772         Bison's install-pdf bug reported by Hans Aberg at
3773         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
3774         * build-aux/po/Makefile.in.in (install-dvi, install-html)
3775         (install-info, install-pdf, install-ps): New targets.
3776
3777 2012-04-16  Jim Meyering  <meyering@redhat.com>
3778
3779         maint: avoid spurious "make sc_maint" failure
3780         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
3781         exempt all *.class file names, for lib/javaversion.class.
3782
3783 2012-04-15  Bruno Haible  <bruno@clisp.org>
3784
3785         lseek: Make configure test independent of environment.
3786         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
3787         Windows, we know that lseek() on pipes is broken; skip the runtime
3788         test.
3789
3790 2012-04-14  Bruno Haible  <bruno@clisp.org>
3791
3792         stat: Bypass buggy override in mingw64.
3793         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
3794         * lib/stat.c (stat) [mingw64]: Define to _stat.
3795         * doc/posix-functions/stat.texi: Mention mingw64 bug.
3796
3797 2012-04-14  Bruno Haible  <bruno@clisp.org>
3798
3799         pathmax: Fix compilation error on MSVC 9.
3800         * modules/pathmax (Depends-on): Add unistd.
3801
3802 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
3803
3804         README: document pointer comparison assumption
3805         * README (Portability guidelines): Document assumption about
3806         pointer comparisons, in response to a recent bug-gnulib comment by
3807         Jeffrey Kegler.
3808
3809 2012-04-12  Bruno Haible  <bruno@clisp.org>
3810
3811         Tests for module 'getrusage'.
3812         * modules/getrusage-tests: New file.
3813         * tests/test-getrusage.c: New file.
3814
3815         New module 'getrusage'.
3816         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
3817         warn-on-use.h.
3818         (getrusage): New declaration.
3819         * lib/getrusage.c: New file.
3820         * m4/getrusage.m4: New file.
3821         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
3822         is declared.
3823         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
3824         HAVE_GETRUSAGE.
3825         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
3826         snippet/c++defs, snippet/warn-on-use.
3827         (Makefile.am): Update generation of sys/resource.h. Substitute
3828         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
3829         * modules/getrusage: New file.
3830         * doc/posix-functions/getrusage.texi: Mention the new module.
3831
3832 2012-04-12  Bruno Haible  <bruno@clisp.org>
3833
3834         Tests for module 'sys_resource'.
3835         * modules/sys_resource-tests: New file.
3836         * tests/test-sys_resource.c: New file.
3837
3838         New module 'sys_resource'.
3839         * lib/sys_resource.in.h: New file.
3840         * m4/sys_resource_h.m4: New file.
3841         * modules/sys_resource: New file.
3842         * doc/posix-headers/sys_resource.texi: Mention the new module.
3843
3844 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
3845
3846         ioctl: Fix compilation error on mingw.
3847         * lib/ioctl.c: Include <windows.h>.
3848         Also reported by Ray Satiro <raysatiro@yahoo.com>.
3849
3850 2012-04-04  Jim Meyering  <meyering@redhat.com>
3851
3852         regex: correct #pragma guard expression
3853         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
3854         not 4.3.  Correct its cpp guard expression.
3855
3856 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
3857
3858         regex: remove unnecessary type punning
3859         Problem reported by Vladimir Serbinenko in
3860         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
3861         * lib/regex.h (struct re_pattern_buffer): Change the type of
3862         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
3863         Fix comment to match code.
3864         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
3865         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
3866         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
3867         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
3868         (set_regs):
3869         Omit no-longer-necessary casts.
3870
3871 2012-04-03  Bruno Haible  <bruno@clisp.org>
3872
3873         Tests for module 'ilogbl'.
3874         * modules/ilogbl-tests: New file.
3875         * tests/test-ilogbl.c: New file.
3876
3877         New module 'ilogbl'.
3878         * lib/math.in.h (ilogbl): New declaration.
3879         * lib/ilogbl.c: New file.
3880         * m4/ilogbl.m4: New file.
3881         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
3882         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
3883         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
3884         Split sed invocation, to avoid the limit of 100 substitutions of
3885         HP-UX 'sed'.
3886         * modules/ilogbl: New file.
3887         * tests/test-math-c++.cc: Check the declaration of ilogbl.
3888         * doc/posix-functions/ilogbl.texi: Mention the new module.
3889
3890 2012-04-03  Bruno Haible  <bruno@clisp.org>
3891
3892         Tests for module 'ilogbf'.
3893         * modules/ilogbf-tests: New file.
3894         * tests/test-ilogbf.c: New file.
3895
3896         New module 'ilogbf'.
3897         * lib/math.in.h (ilogbf): New declaration.
3898         * lib/ilogbf.c: New file.
3899         * m4/ilogbf.m4: New file.
3900         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
3901         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
3902         REPLACE_ILOGBF.
3903         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
3904         REPLACE_ILOGBF.
3905         * modules/ilogbf: New file.
3906         * tests/test-math-c++.cc: Check the declaration of ilogbf.
3907         * doc/posix-functions/ilogbf.texi: Mention the new module.
3908
3909 2012-04-03  Bruno Haible  <bruno@clisp.org>
3910
3911         Tests for module 'ilogb'.
3912         * modules/ilogb-tests: New file.
3913         * tests/test-ilogb.c: New file.
3914         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
3915         tests/test-logb-ieee.h.
3916
3917         New module 'ilogb'.
3918         * lib/math.in.h (ilogb): New declaration.
3919         * lib/ilogb.c: New file.
3920         * m4/ilogb.m4: New file.
3921         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
3922         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
3923         REPLACE_ILOGB.
3924         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
3925         REPLACE_ILOGB.
3926         * modules/ilogb: New file.
3927         * tests/test-math-c++.cc: Check the declaration of ilogb.
3928         * doc/posix-functions/ilogb.texi: Mention the new module.
3929
3930 2012-04-03  Bruno Haible  <bruno@clisp.org>
3931
3932         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
3933         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
3934         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
3935         (main): Check their values.
3936         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
3937         problem.
3938
3939 2012-04-03  Bruno Haible  <bruno@clisp.org>
3940
3941         Tests for module 'logbl-ieee'.
3942         * modules/logbl-ieee-tests: New file.
3943         * tests/test-logbl-ieee.c: New file.
3944
3945         New module 'logbl-ieee'.
3946         * modules/logbl-ieee: New file.
3947
3948         Tests for module 'logb-ieee'.
3949         * modules/logb-ieee-tests: New file.
3950         * tests/test-logb-ieee.c: New file.
3951
3952         New module 'logb-ieee'.
3953         * modules/logb-ieee: New file.
3954
3955         Tests for module 'logbf-ieee'.
3956         * modules/logbf-ieee-tests: New file.
3957         * tests/test-logbf-ieee.c: New file.
3958         * tests/test-logb-ieee.h: New file.
3959
3960         New module 'logbf-ieee'.
3961         * modules/logbf-ieee: New file.
3962
3963 2012-04-03  Bruno Haible  <bruno@clisp.org>
3964
3965         Tests for module 'logbl'.
3966         * modules/logbl-tests: New file.
3967         * tests/test-logbl.c: New file.
3968
3969         New module 'logbl'.
3970         * lib/math.in.h (logbl): New declaration.
3971         * lib/logbl.c: New file.
3972         * m4/logbl.m4: New file.
3973         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
3974         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
3975         REPLACE_LOGBL.
3976         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
3977         REPLACE_LOGBL.
3978         * modules/logbl: New file.
3979         * tests/test-math-c++.cc: Check the declaration of logbl.
3980         * doc/posix-functions/logbl.texi: Mention the new module.
3981
3982 2012-04-02  Bruno Haible  <bruno@clisp.org>
3983
3984         Tests for module 'logbf'.
3985         * modules/logbf-tests: New file.
3986         * tests/test-logbf.c: New file.
3987
3988         New module 'logbf'.
3989         * lib/math.in.h (logbf): New declaration.
3990         * lib/logbf.c: New file.
3991         * m4/logbf.m4: New file.
3992         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
3993         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
3994         REPLACE_LOGBF.
3995         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
3996         REPLACE_LOGBF.
3997         * modules/logbf: New file.
3998         * tests/test-math-c++.cc: Check the declaration of logbf.
3999         * doc/posix-functions/logbf.texi: Mention the new module.
4000
4001 2012-04-02  Bruno Haible  <bruno@clisp.org>
4002
4003         logb tests: More tests.
4004         * tests/test-logb.h: New file, based on tests/test-logb.c and
4005         tests/test-frexp.h.
4006         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
4007         (main): Just invoke test_function.
4008         * modules/logb-tests (Files): Add tests/test-logb.h,
4009         tests/minus-zero.h, tests/randomd.c.
4010         (Makefile.am): Add randomd.c to test_logb_SOURCES.
4011
4012         logb: Provide replacement and workarounds.
4013         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
4014         is 1.
4015         * lib/logb.c: New file.
4016         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
4017         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
4018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
4019         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
4020         * modules/logb (Files): Add lib/logb.c.
4021         (Depends-on): Add isfinite, frexp, isnand.
4022         (configure.ac): Compile the replacement code logb.c if needed.
4023         * tests/test-math-c++.cc: Check the declaration of logb.
4024         * doc/posix-functions/logb.texi: Mention the replacement and the bug
4025         with subnormal numbers.
4026
4027 2012-04-02  Bruno Haible  <bruno@clisp.org>
4028
4029         log10* tests: Speed up.
4030         * tests/test-log10.h (test_function): Reduce amount of random numbers
4031         to test.
4032
4033 2012-04-01  Bruno Haible  <bruno@clisp.org>
4034
4035         logf-ieee: Fix test whether logf works.
4036         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
4037
4038 2012-04-01  Bruno Haible  <bruno@clisp.org>
4039
4040         log10l: Work around log10l-ieee test failure on IRIX 6.5.
4041         * lib/log10l.c: Include <float.h>
4042         (log10l): On IRIX, normalize the +Infinity value.
4043         * modules/log10l (Depends-on): Add 'float'.
4044         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
4045         +Infinity.
4046
4047         log10f-ieee: Work around test failure on NetBSD 5.1.
4048         * m4/log10f-ieee.m4: New file.
4049         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
4050         test whether log10f works with a negative argument. Replace it if not.
4051         * lib/log10f.c (log10f): For negative arguments, return NaN.
4052         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
4053         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
4054         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
4055
4056         log10f-ieee: Work around test failure on Solaris 9.
4057         * modules/log10f-ieee (Depends-on): Add log10-ieee.
4058         (configure.ac): Require gl_FUNC_LOG10F.
4059
4060         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4061         * m4/log10-ieee.m4: New file.
4062         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
4063         whether log10 works with a negative argument. Replace it if not.
4064         * lib/log10.c (log10): For negative arguments, return NaN.
4065         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
4066         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
4067         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
4068
4069         Tests for module 'log10l-ieee'.
4070         * modules/log10l-ieee-tests: New file.
4071         * tests/test-log10l-ieee.c: New file.
4072
4073         New module 'log10l-ieee'.
4074         * modules/log10l-ieee: New file.
4075
4076         Tests for module 'log10-ieee'.
4077         * modules/log10-ieee-tests: New file.
4078         * tests/test-log10-ieee.c: New file.
4079
4080         New module 'log10-ieee'.
4081         * modules/log10-ieee: New file.
4082
4083         Tests for module 'log10f-ieee'.
4084         * modules/log10f-ieee-tests: New file.
4085         * tests/test-log10f-ieee.c: New file.
4086         * tests/test-log10-ieee.h: New file.
4087
4088         New module 'log10f-ieee'.
4089         * modules/log10f-ieee: New file.
4090
4091 2012-04-01  Bruno Haible  <bruno@clisp.org>
4092
4093         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
4094         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
4095         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
4096         workaround.
4097         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
4098         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
4099         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
4100         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
4101         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
4102         (Depends-on): Update conditions.
4103         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
4104         IRIX 6.5, OSF/1 5.1 problems.
4105
4106 2012-04-01  Bruno Haible  <bruno@clisp.org>
4107
4108         log10f: Work around OSF/1 5.1 bug.
4109         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
4110         * lib/log10f.c (log10f): If logf exists, use it and provide just the
4111         workaround.
4112         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
4113         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
4114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
4115         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
4116         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
4117         (Depends-on): Update conditions.
4118         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
4119
4120 2012-04-01  Bruno Haible  <bruno@clisp.org>
4121
4122         log10: Work around OSF/1 5.1 bug.
4123         * lib/math.in.h (log10): New declaration.
4124         * lib/log10.c: New file.
4125         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
4126         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
4127         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
4128         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
4129         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
4130         * modules/log10 (Files): Add lib/log10.c.
4131         (Depends-on): Add math.
4132         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
4133         * tests/test-math-c++.cc: Check the declaration of log10.
4134         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
4135
4136 2012-03-31  Bruno Haible  <bruno@clisp.org>
4137
4138         log10l tests: More tests.
4139         * modules/log10l-tests (Files): Add tests/test-log10l.h,
4140         tests/minus-zero.h, tests/randoml.c.
4141         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
4142         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
4143         (main): Invoke test_function.
4144
4145         log10f tests: More tests.
4146         * modules/log10f-tests (Files): Add tests/test-log10.h,
4147         tests/minus-zero.h, tests/randomf.c.
4148         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
4149         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
4150         (main): Invoke test_function.
4151
4152         log10 tests: More tests.
4153         * tests/test-log10.h: New file.
4154         * modules/log10-tests (Files): Add tests/test-log10.h,
4155         tests/minus-zero.h, tests/randomd.c.
4156         (Makefile.am): Add randomd.c to test_log10_SOURCES.
4157         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
4158         (main): Invoke test_function.
4159
4160 2012-03-31  Simon Josefsson  <simon@josefsson.org>
4161
4162         fflush: Fix syntax error.
4163         * lib/fflush.c: Include unused-parameter.h, needed for
4164         _GL_UNUSED_PARAMETER.
4165         * modules/fflush (Depends-on): Add snippet/unused-parameter.
4166
4167 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4168
4169         regex: pacify GCC when compiling GRUB
4170         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
4171         a diagnostic.  Reported by Vladimir Serbinenko in
4172         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
4173
4174 2012-03-29  Eric Blake  <eblake@redhat.com>
4175
4176         stdio: don't assume gets any more
4177         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
4178         support.
4179         * modules/stdio (Makefile.am): Likewise.
4180         * lib/stdio-read.c (gets): Likewise.
4181         * tests/test-stdio-c++.cc: Likewise.
4182         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
4183         * lib/stdio.in.h (gets): Make warning occur in more places.
4184         * doc/posix-functions/gets.texi (gets): Update documentation.
4185         Reported by Christer Solskogen.
4186
4187         maint.mk: fix syntax checks without exclusions
4188         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
4189         Reported by Daniel P. Berrange.
4190
4191         strerror_r: avoid compiler warning
4192         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
4193         level.
4194
4195         fflush: avoid compiler warning
4196         * lib/fflush.c (update_fpos_cache): Mark variables that are
4197         potentially unused.
4198
4199 2012-03-25  Bruno Haible  <bruno@clisp.org>
4200
4201         Tests for module 'localeconv'.
4202         * modules/localeconv-tests: New file.
4203         * tests/test-localeconv.c: New file.
4204
4205         New module 'localeconv'.
4206         * lib/locale.in.h (localeconv): New declaration.
4207         * lib/localeconv.c: New file.
4208         * m4/localeconv.m4: New file.
4209         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
4210         REPLACE_LOCALECONV.
4211         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
4212         REPLACE_LOCALECONV.
4213         * modules/localeconv: New file.
4214         * modules/nl_langinfo (Depends-on): Add localeconv.
4215         * modules/human (Depends-on): Likewise.
4216         * doc/posix-functions/localeconv.texi: Mention the new module.
4217
4218 2012-03-25  Bruno Haible  <bruno@clisp.org>
4219
4220         locale: Provide a complete 'struct lconv'.
4221         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4222         'struct lconv' does not contain int_p_cs_precedes.
4223         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4224         * doc/posix-headers/locale.texi: Update.
4225
4226         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
4227         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
4228         * doc/posix-headers/locale.texi: Update.
4229
4230         locale: Provide a working 'struct lconv'.
4231         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
4232         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4233         'struct lconv' does not even contain decimal_point.
4234         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
4235         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
4236         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4237         * doc/posix-headers/locale.texi: Mention the problems with
4238         'struct lconv'.
4239         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
4240
4241 2012-03-24  Bruno Haible  <bruno@clisp.org>
4242
4243         Enable common subexpression optimization in GCC.
4244         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
4245         macros.
4246         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
4247         GCC attribute 'const'.
4248         (uc_locale_language): Declare with GCC attribute 'pure'.
4249         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
4250         with GCC attribute 'const'.
4251         * lib/unictype.in.h (uc_is_general_category_withtable,
4252         uc_combining_class, uc_combining_class_name,
4253         uc_combining_class_long_name, uc_bidi_class_name,
4254         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
4255         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
4256         uc_decimal_value, uc_digit_value, uc_numeric_value,
4257         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
4258         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
4259         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
4260         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
4261         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
4262         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
4263         Declare with GCC attribute 'const'.
4264         (uc_general_category_name, uc_general_category_long_name,
4265         uc_general_category_byname, uc_general_category,
4266         uc_is_general_category, uc_combining_class_byname,
4267         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
4268         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
4269         Declare with GCC attribute 'pure'.
4270         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
4271         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
4272         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
4273         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
4274         with GCC attribute 'pure'.
4275         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
4276         'const'.
4277         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
4278         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
4279         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
4280         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
4281         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
4282         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
4283         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
4284         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
4285         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
4286         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
4287         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
4288         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
4289         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
4290         GCC attribute 'pure'.
4291         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
4292         'const'.
4293         * lib/uniwidth.in.h (uc_width): Simplify declaration.
4294         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
4295         u32_strwidth): Declare with GCC attribute 'pure'.
4296
4297         Enable common subexpression optimization in GCC.
4298         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4299         (alphasort): Declare with GCC attribute 'pure'.
4300         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4301         (atoll): Declare with GCC attribute 'pure'.
4302         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
4303         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
4304         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
4305         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4306         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
4307         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
4308         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
4309
4310 2012-03-24  Bruno Haible  <bruno@clisp.org>
4311
4312         gnulib-tool: Avoid unintended error output from 'cmp'.
4313         * gnulib-tool (func_add_file, func_update_file, func_import): Use
4314         "cmp -s", not "cmp > /dev/null".
4315
4316 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
4317
4318         gnulib-tool: fix imprecise comments w.r.t. an automake bug
4319
4320         It's not just Automake versions < 1.9b that creates an empty
4321         pkgdatadir at installation time if pkgdata_DATA is specified
4322         to empty; modern automake versions do this as well, at least
4323         until automake 1.11.4 (not yet released at the moment of writing,
4324         but soon to appear).  That behaviour was generally considered a
4325         feature rather than a bug, at least until this discussion:
4326         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
4327
4328         See also automake bugs #10997 and #11030.
4329
4330         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
4331         reference to relevant automake bug numbers.
4332         (func_emit_tests_Makefile_am): Likewise.
4333
4334 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4335
4336         announce-gen: use Digest::SHA when possible
4337         * build-aux/announce-gen: Use Digest::SHA when possible, falling
4338         back to Digest::SHA1 if necessary.
4339
4340 2012-03-20  Jim Meyering  <meyering@redhat.com>
4341
4342         tests: avoid gcc warnings about argv vs. const initializers
4343         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
4344         warnings about discarding 'const' qualifier from pointer target type.
4345         * tests/test-posix_spawn2.c (main): Likewise.
4346
4347 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4348
4349         README-release: simplify slightly
4350         * top/README-release: Run "git checkout master" only once.
4351
4352 2012-03-15  Mark Wielaard  <mark@klomp.org>
4353
4354         git-merge-changelog: add specific example on how to use with hg.
4355         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
4356
4357 2012-03-18  Mark Wielaard  <mark@klomp.org>
4358
4359         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
4360
4361 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
4362
4363         git-version-gen: don't let "prefix" envvar cause trouble
4364         * build-aux/git-version-gen (prefix): Initialize properly,
4365         so as not to use a value specified via the environment.
4366         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
4367
4368 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4369
4370         regex: diagnose too-large repeat counts in EREs
4371         Previously, the code did not diagnose the too-large repeat count
4372         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
4373         as if it were 'b\{1000000000}', which is unexpected.
4374         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
4375         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
4376         is a reasonable one for this problem.  Another option would be to
4377         create a new REG_OVERFLOW error for repeat counts that are too large.
4378         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
4379         count is too large, so that the caller can distinguish the two cases.
4380         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
4381         "Too large" return code, and that repeat counts are one example of this.
4382
4383 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4384
4385         doc: some glibc x32 integer width issues
4386         * doc/posix-headers/sys_types.texi (sys/types.h):
4387         * doc/posix-headers/time.texi (time.h):
4388         Mention that glibc x32 does not conform to POSIX in a couple of
4389         areas related to integer widths.
4390
4391 2012-03-15  Bruno Haible  <bruno@clisp.org>
4392
4393         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
4394         * lib/fma.c (VOLATILE): New macro.
4395         (FUNC): Use it to work around a GCC compiler bug.
4396
4397 2012-03-13  Bruno Haible  <bruno@clisp.org>
4398
4399         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4400         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
4401         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
4402         REPLACE_HYPOTL to 1.
4403         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
4404
4405 2012-03-13  Bruno Haible  <bruno@clisp.org>
4406
4407         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4408         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
4409         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
4410         REPLACE_REMAINDERL to 1.
4411         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
4412         bug.
4413
4414 2012-03-13  Bruno Haible  <bruno@clisp.org>
4415
4416         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4417         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
4418         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
4419         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
4420         too big rounding errors.
4421         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
4422         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
4423         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
4424         (Depends-on): Update conditions.
4425         * tests/test-sqrtl.c (my_ldexpl): New function.
4426         (main): Add test of a particular value.
4427         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4428
4429 2012-03-13  Pádraig Brady  <P@draigBrady.com>
4430
4431         doc: Update timer_* platform portability notes.
4432         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
4433         that always return ENOSYS.
4434         * doc/posix-functions/timer_delete.texi: Likewise.
4435         * doc/posix-functions/timer_gettime.texi: Likewise.
4436         * doc/posix-functions/timer_settime.texi: Likewise.
4437
4438 2012-03-13  Bruno Haible  <bruno@clisp.org>
4439
4440         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4441         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
4442         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
4443         REPLACE_CBRTL to 1.
4444         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4445
4446 2012-03-13  Bruno Haible  <bruno@clisp.org>
4447
4448         remainderl: Avoid compilation error on AIX >= 5.2.
4449         * lib/math.in.h (remainderl): Undefine macro from the system header.
4450
4451 2012-03-13  Bruno Haible  <bruno@clisp.org>
4452
4453         Avoid compilation errors with MSVC option -fp:strict.
4454         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
4455         * lib/cbrtf.c: Likewise.
4456         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4457
4458 2012-03-12  Bruno Haible  <bruno@clisp.org>
4459
4460         uninorm: Don't crash in out-of-memory conditions.
4461         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
4462         gracefully.
4463         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
4464         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
4465
4466 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
4467
4468         quote: fix syntax-check
4469         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
4470         also exports quote_quoting_options.
4471
4472 2012-03-12  Simon Josefsson  <simon@josefsson.org>
4473
4474         Collapse list of copyright years to ranges.  See
4475         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
4476         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
4477         build-aux/csharpexec.sh.in, build-aux/gnupload,
4478         build-aux/install-reloc, build-aux/javacomp.sh.in,
4479         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
4480         build-aux/move-if-change, build-aux/reloc-ldflags,
4481         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
4482
4483 2012-03-11  Bruno Haible  <bruno@clisp.org>
4484
4485         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4486         * m4/log2f-ieee.m4: New file.
4487         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
4488         whether log2f works with a minus zero argument. Replace it if not.
4489         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
4490         (Depends-on): Add log2-ieee.
4491         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
4492         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
4493
4494         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4495         * m4/log2-ieee.m4: New file.
4496         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
4497         whether log2 works with a minus zero argument. Replace it if not.
4498         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
4499         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
4500         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
4501
4502         Tests for module 'log2l-ieee'.
4503         * modules/log2l-ieee-tests: New file.
4504         * tests/test-log2l-ieee.c: New file.
4505
4506         New module 'log2l-ieee'.
4507         * modules/log2l-ieee: New file.
4508
4509         Tests for module 'log2-ieee'.
4510         * modules/log2-ieee-tests: New file.
4511         * tests/test-log2-ieee.c: New file.
4512
4513         New module 'log2-ieee'.
4514         * modules/log2-ieee: New file.
4515
4516         Tests for module 'log2f-ieee'.
4517         * modules/log2f-ieee-tests: New file.
4518         * tests/test-log2f-ieee.c: New file.
4519         * tests/test-log2-ieee.h: New file.
4520
4521         New module 'log2f-ieee'.
4522         * modules/log2f-ieee: New file.
4523
4524 2012-03-11  Bruno Haible  <bruno@clisp.org>
4525
4526         Tests for module 'log2l'.
4527         * modules/log2l-tests: New file.
4528         * tests/test-log2l.c: New file.
4529
4530         New module 'log2l'.
4531         * lib/math.in.h (log2l): New declaration.
4532         * lib/log2l.c: New file.
4533         * m4/log2l.m4: New file.
4534         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
4535         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
4536         REPLACE_LOG2L.
4537         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
4538         REPLACE_LOG2L.
4539         * modules/log2l: New file.
4540         * tests/test-math-c++.cc: Check the declaration of log2l.
4541         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
4542         and OSF/1 problems.
4543
4544 2012-03-11  Bruno Haible  <bruno@clisp.org>
4545
4546         Tests for module 'log2f'.
4547         * modules/log2f-tests: New file.
4548         * tests/test-log2f.c: New file.
4549
4550         New module 'log2f'.
4551         * lib/math.in.h (log2f): New declaration.
4552         * lib/log2f.c: New file.
4553         * m4/log2f.m4: New file.
4554         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
4555         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
4556         REPLACE_LOG2F.
4557         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
4558         REPLACE_LOG2F.
4559         * modules/log2f: New file.
4560         * tests/test-math-c++.cc: Check the declaration of log2f.
4561         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
4562         and OSF/1 and Cygwin problems.
4563
4564 2012-03-11  Bruno Haible  <bruno@clisp.org>
4565
4566         Tests for module 'log2'.
4567         * modules/log2-tests: New file.
4568         * tests/test-log2.c: New file.
4569         * tests/test-log2.h: New file.
4570
4571         New module 'log2'.
4572         * lib/math.in.h (log2): New declaration.
4573         * lib/log2.c: New file.
4574         * m4/log2.m4: New file.
4575         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
4576         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
4577         REPLACE_LOG2.
4578         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
4579         REPLACE_LOG2.
4580         * modules/log2: New file.
4581         * tests/test-math-c++.cc: Check the declaration of log2.
4582         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
4583         and OSF/1 and Cygwin problems.
4584
4585 2012-03-11  Bruno Haible  <bruno@clisp.org>
4586
4587         exp2* tests: More tests.
4588         * tests/test-exp2.h (test_function): Test all integral arguments that
4589         don't need to overflow or denormalized numbers.
4590         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
4591         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
4592         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
4593
4594 2012-03-10  Bruno Haible  <bruno@clisp.org>
4595
4596         log1pl-ieee: Work around test failure on AIX 7.1.
4597         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
4598
4599         log1pl-ieee: Work around test failure on IRIX 6.5.
4600         * m4/log1pl-ieee.m4: New file.
4601         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
4602         test whether log1pl works with a minus zero argument. Replace it if
4603         not.
4604         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
4605         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
4606         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
4607         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
4608         (Depends-on): Update conditions.
4609         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4610         m4/signbit.m4.
4611         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
4612         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
4613
4614         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
4615         * m4/log1pf-ieee.m4: New file.
4616         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
4617         test whether log1pf works with a minus zero argument. Replace it if
4618         not.
4619         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
4620         m4/signbit.m4.
4621         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
4622         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
4623
4624         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
4625         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
4626         (configure.ac): Require gl_FUNC_LOG1PF.
4627
4628         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
4629         * m4/log1p-ieee.m4: New file.
4630         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
4631         whether log1p works with a minus zero argument. Replace it if not.
4632         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
4633         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
4634         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
4635         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
4636         (Depends-on): Update conditions.
4637         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4638         m4/signbit.m4.
4639         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
4640         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
4641
4642         Tests for module 'log1pl-ieee'.
4643         * modules/log1pl-ieee-tests: New file.
4644         * tests/test-log1pl-ieee.c: New file.
4645
4646         New module 'log1pl-ieee'.
4647         * modules/log1pl-ieee: New file.
4648
4649         Tests for module 'log1p-ieee'.
4650         * modules/log1p-ieee-tests: New file.
4651         * tests/test-log1p-ieee.c: New file.
4652
4653         New module 'log1p-ieee'.
4654         * modules/log1p-ieee: New file.
4655
4656         Tests for module 'log1pf-ieee'.
4657         * modules/log1pf-ieee-tests: New file.
4658         * tests/test-log1pf-ieee.c: New file.
4659         * tests/test-log1p-ieee.h: New file.
4660
4661         New module 'log1pf-ieee'.
4662         * modules/log1pf-ieee: New file.
4663
4664 2012-03-10  Bruno Haible  <bruno@clisp.org>
4665
4666         Tests for module 'log1pl'.
4667         * modules/log1pl-tests: New file.
4668         * tests/test-log1pl.c: New file.
4669
4670         New module 'log1pl'.
4671         * lib/math.in.h (log1pl): New declaration.
4672         * lib/log1pl.c: New file.
4673         * m4/log1pl.m4: New file.
4674         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
4675         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
4676         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
4677         * modules/log1pl: New file.
4678         * tests/test-math-c++.cc: Check the declaration of log1pl.
4679         * doc/posix-functions/log1pl.texi: Mention the new module.
4680
4681 2012-03-10  Bruno Haible  <bruno@clisp.org>
4682
4683         Tests for module 'log1pf'.
4684         * modules/log1pf-tests: New file.
4685         * tests/test-log1pf.c: New file.
4686
4687         New module 'log1pf'.
4688         * lib/math.in.h (log1pf): New declaration.
4689         * lib/log1pf.c: New file.
4690         * m4/log1pf.m4: New file.
4691         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
4692         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
4693         REPLACE_LOG1PF.
4694         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
4695         REPLACE_LOG1PF.
4696         * modules/log1pf: New file.
4697         * tests/test-math-c++.cc: Check the declaration of log1pf.
4698         * doc/posix-functions/log1pf.texi: Mention the new module.
4699
4700 2012-03-10  Bruno Haible  <bruno@clisp.org>
4701
4702         log1p tests: More tests.
4703         * tests/test-log1p.h: New file.
4704         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
4705         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
4706         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
4707         (main): Invoke test_function.
4708
4709         log1p: Provide replacement for Minix and MSVC.
4710         * lib/math.in.h (log1p): New declaration.
4711         * lib/log1p.c: New file.
4712         * m4/log1p.m4: New file.
4713         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
4714         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
4715         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
4716         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
4717         (Depends-on): Add math, isnand, log, round.
4718         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
4719         HAVE_LOG1P is 0.
4720         * tests/test-math-c++.cc: Check the declaration of log1p.
4721         * doc/posix-functions/log1p.texi: Mention the replacement.
4722
4723 2012-03-10  Bruno Haible  <bruno@clisp.org>
4724
4725         math tests: Small simplification.
4726         * tests/test-exp.h (test_function): Use the same err_bound for
4727         'double' on platforms with sizeof (long double) == sizeof (double)
4728         than on platforms with sizeof (long double) > sizeof (double).
4729         * tests/test-exp2.h (test_function): Likewise.
4730         * tests/test-expm1.h (test_function): Likewise.
4731         * tests/test-log.h (test_function): Likewise.
4732
4733 2012-03-10  Bruno Haible  <bruno@clisp.org>
4734
4735         Fix some comments.
4736         * lib/expl.c: Fix an ambiguous comment.
4737         * lib/expm1.c: Likewise.
4738         * lib/expm1l.c: Likewise.
4739         * lib/exp2.c: Likewise.
4740         * lib/exp2l.c: Likewise.
4741
4742 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
4743
4744         regex: allow inclusion of <regex.h> before <limits.h>
4745         Without this patch, portable programs had to include <limits.h> before
4746         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
4747         I ran into this problem with a test version of GNU grep on Solaris 8.
4748         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
4749         This is done conditionally so that this change can be merged
4750         back to glibc.
4751         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
4752         using the included regex.
4753
4754         fts: depend on fdopendir
4755         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
4756         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
4757         problem was introduced when fdopendir was split out.
4758
4759 2012-03-10  Bruno Haible  <bruno@clisp.org>
4760
4761         Remove unused variables.
4762         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
4763         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4764
4765 2012-03-10  Bruno Haible  <bruno@clisp.org>
4766
4767         isnanf-nolibm: Fix last commit.
4768         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
4769
4770         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
4771         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
4772
4773 2012-03-10  Bruno Haible  <bruno@clisp.org>
4774
4775         logf-ieee: Work around test failure on NetBSD 5.1.
4776         * m4/logf-ieee.m4: New file.
4777         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
4778         whether logf works with a negative argument. Replace it if not.
4779         * lib/logf.c (logf): For negative arguments, return NaN.
4780         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
4781         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
4782         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
4783
4784         logf-ieee: Work around test failure on Solaris 9.
4785         * modules/logf-ieee (Depends-on): Add log-ieee.
4786         (configure.ac): Require gl_FUNC_LOGF.
4787
4788         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4789         * m4/log-ieee.m4: New file.
4790         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
4791         log works with a negative argument. Replace it if not.
4792         * lib/log.c (log): For negative arguments, return NaN.
4793         * modules/log-ieee (Files): Add m4/log-ieee.m4.
4794         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
4795         * doc/posix-functions/log.texi: Mention the log-ieee module.
4796
4797         Tests for module 'logl-ieee'.
4798         * modules/logl-ieee-tests: New file.
4799         * tests/test-logl-ieee.c: New file.
4800
4801         New module 'logl-ieee'.
4802         * modules/logl-ieee: New file.
4803
4804         Tests for module 'log-ieee'.
4805         * modules/log-ieee-tests: New file.
4806         * tests/test-log-ieee.c: New file.
4807
4808         New module 'log-ieee'.
4809         * modules/log-ieee: New file.
4810
4811         Tests for module 'logf-ieee'.
4812         * modules/logf-ieee-tests: New file.
4813         * tests/test-logf-ieee.c: New file.
4814         * tests/test-log-ieee.h: New file.
4815
4816         New module 'logf-ieee'.
4817         * modules/logf-ieee: New file.
4818
4819 2012-03-10  Bruno Haible  <bruno@clisp.org>
4820
4821         log: Fix bug introduced on 2012-03-09.
4822         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
4823
4824 2012-03-10  Pádraig Brady  <P@draigBrady.com>
4825
4826         timer-time: link explicitly with pthreads on glibc
4827         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
4828         to support static linking, when newer glibc is
4829         detected, as that contains pthread emulation of
4830         POSIX timer functions where required.
4831         * modules/timer-time: Depend on threadlib to
4832         pull in the appropriate library to link.
4833
4834 2012-03-10  Bruno Haible  <bruno@clisp.org>
4835
4836         log* tests: More tests.
4837         * tests/test-log.h: New file.
4838         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
4839         (main): Invoke test_function.
4840         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
4841         (main): Invoke test_function.
4842         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
4843         (main): Invoke test_function.
4844         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4845         tests/randomd.c.
4846         (Makefile.am): Add randomd.c to test_log_SOURCES.
4847         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4848         tests/randomf.c.
4849         (Makefile.am): Add randomf.c to test_logf_SOURCES.
4850         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4851         tests/randoml.c.
4852         (Depends-on): Add 'float'.
4853         (Makefile.am): Add randoml.c to test_logl_SOURCES.
4854
4855 2012-03-09  Bruno Haible  <bruno@clisp.org>
4856
4857         logl: Work around OSF/1 5.1 bug.
4858         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
4859         * lib/logl.c (logl): If logl exists, use it and provide just the
4860         workaround.
4861         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
4862         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
4863         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
4864         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
4865         * modules/logl (configure.ac): Consider REPLACE_LOGL.
4866         (Depends-on): Update conditions.
4867         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
4868
4869 2012-03-09  Bruno Haible  <bruno@clisp.org>
4870
4871         logf: Work around OSF/1 5.1 bug.
4872         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
4873         * lib/logf.c (logf): If logf exists, use it and provide just the
4874         workaround.
4875         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
4876         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
4877         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
4878         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
4879         * modules/logf (configure.ac): Consider REPLACE_LOGF.
4880         (Depends-on): Update conditions.
4881         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
4882
4883 2012-03-09  Bruno Haible  <bruno@clisp.org>
4884
4885         log: Work around OSF/1 5.1 bug.
4886         * lib/math.in.h (log): New declaration.
4887         * lib/log.c: New file.
4888         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
4889         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
4890         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
4891         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
4892         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
4893         * modules/log (Files): Add lib/log.c.
4894         (Depends-on): Add math.
4895         (configure.ac): If REPLACE_LOG is 1, compile an override.
4896         * tests/test-math-c++.cc: Check the declaration of log.
4897         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
4898
4899 2012-03-09  Jim Meyering  <meyering@redhat.com>
4900
4901         readtokens.c: adjust wording in a comment
4902         * lib/readtokens.c: Insert omitted "that" in a comment.
4903
4904 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4905
4906         modechange: add notations +40, 00440, etc.
4907         * lib/modechange.c (mode_compile): Support new notations
4908         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
4909
4910 2012-03-08  Bruno Haible  <bruno@clisp.org>
4911
4912         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
4913         * m4/exp2l-ieee.m4: New file.
4914         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
4915         test whether exp2l works with a NaN argument and with a negative
4916         infinity argument. Replace it if not.
4917         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
4918         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
4919         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
4920         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
4921         (Depends-on): Update conditions.
4922         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
4923         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
4924         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
4925
4926         Tests for module 'exp2l-ieee'.
4927         * modules/exp2l-ieee-tests: New file.
4928         * tests/test-exp2l-ieee.c: New file.
4929
4930         New module 'exp2l-ieee'.
4931         * modules/exp2l-ieee: New file.
4932
4933         Tests for module 'exp2-ieee'.
4934         * modules/exp2-ieee-tests: New file.
4935         * tests/test-exp2-ieee.c: New file.
4936
4937         New module 'exp2-ieee'.
4938         * modules/exp2-ieee: New file.
4939
4940         Tests for module 'exp2f-ieee'.
4941         * modules/exp2f-ieee-tests: New file.
4942         * tests/test-exp2f-ieee.c: New file.
4943         * tests/test-exp2-ieee.h: New file.
4944
4945         New module 'exp2f-ieee'.
4946         * modules/exp2f-ieee: New file.
4947
4948 2012-03-08  Bruno Haible  <bruno@clisp.org>
4949
4950         Tests for module 'exp2l'.
4951         * modules/exp2l-tests: New file.
4952         * tests/test-exp2l.c: New file.
4953
4954         New module 'exp2l'.
4955         * lib/math.in.h (exp2l): New declaration.
4956         * lib/exp2l.c: New file.
4957         * lib/expl-table.c: New file, extracted from lib/expl.c.
4958         * lib/expl.c (gl_expl_table): New declaration.
4959         (expl): Remove expl_table. Update reference.
4960         * m4/exp2l.m4: New file.
4961         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
4962         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
4963         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
4964         * modules/exp2l: New file.
4965         * modules/expl (Files): Add lib/expl-table.c.
4966         (configure.ac): Compile also expl-table.c.
4967         * tests/test-math-c++.cc: Check the declaration of exp2l.
4968         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
4969         problem.
4970
4971 2012-03-08  Bruno Haible  <bruno@clisp.org>
4972
4973         Tests for module 'exp2f'.
4974         * modules/exp2f-tests: New file.
4975         * tests/test-exp2f.c: New file.
4976
4977         New module 'exp2f'.
4978         * lib/math.in.h (exp2f): New declaration.
4979         * lib/exp2f.c: New file.
4980         * m4/exp2f.m4: New file.
4981         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
4982         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
4983         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
4984         * modules/exp2f: New file.
4985         * tests/test-math-c++.cc: Check the declaration of exp2f.
4986         * doc/posix-functions/exp2f.texi: Mention the new module and the
4987         IRIX problem.
4988
4989 2012-03-08  Bruno Haible  <bruno@clisp.org>
4990
4991         Tests for module 'exp2'.
4992         * modules/exp2-tests: New file.
4993         * tests/test-exp2.c: New file.
4994         * tests/test-exp2.h: New file.
4995
4996         New module 'exp2'.
4997         * lib/math.in.h (exp2): New declaration.
4998         * lib/exp2.c: New file.
4999         * m4/exp2.m4: New file.
5000         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
5001         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
5002         REPLACE_EXP2.
5003         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
5004         REPLACE_EXP2.
5005         * modules/exp2: New file.
5006         * tests/test-math-c++.cc: Check the declaration of exp2.
5007         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
5008         and OpenBSD problems.
5009
5010 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5011
5012         savedir: fix comment typo
5013         * lib/savedir.c (savedirstream): Fix typo in comment.
5014
5015 2012-03-08  Bruno Haible  <bruno@clisp.org>
5016
5017         test-readtokens.c: use const; remove unwarranted cast
5018         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
5019
5020 2012-03-08  Bruno Haible  <bruno@clisp.org>
5021
5022         fmal: Avoid compilation error on AIX.
5023         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
5024         AIX 5.2..7.1.
5025
5026 2012-03-08  Bruno Haible  <bruno@clisp.org>
5027
5028         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
5029         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
5030         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
5031         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
5032         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
5033         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
5034         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
5035
5036 2012-03-08  Bruno Haible  <bruno@clisp.org>
5037
5038         remainderf: Override buggy system function on IRIX 6.5.
5039         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
5040         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
5041         when it exists.
5042         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
5043
5044 2012-03-08  Jim Meyering  <meyering@redhat.com>
5045
5046         test-readtokens.c: avoid const-related compilation warnings
5047         * tests/test-readtokens.c: Avoid const-related compilation warnings.
5048
5049 2012-03-07  Jim Meyering  <meyering@redhat.com>
5050             Bruno Haible  <bruno@clisp.org>
5051
5052         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
5053         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
5054         tests/randomd.c.
5055         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
5056         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
5057         tests/randoml.c.
5058         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
5059
5060 2012-03-07  Bruno Haible  <bruno@clisp.org>
5061
5062         expm1l: Avoid compilation error on AIX.
5063         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
5064         AIX 5.2..7.1.
5065
5066 2012-03-07  Bruno Haible  <bruno@clisp.org>
5067
5068         expm1l: Don't override undeclared system function on IRIX 6.5.
5069         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
5070         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
5071         it exists. Set HAVE_DECL_EXPM1L.
5072         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
5073         HAVE_EXPM1L.
5074         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
5075         HAVE_EXPM1L.
5076         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
5077
5078 2012-03-07  Bruno Haible  <bruno@clisp.org>
5079
5080         remainderl: Don't override undeclared system function on IRIX 6.5.
5081         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
5082         HAVE_REMAINDERL.
5083         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
5084         declared when it exists. Set HAVE_DECL_REMAINDERL.
5085         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
5086         not HAVE_REMAINDERL.
5087         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
5088         HAVE_REMAINDERL.
5089         * doc/posix-functions/remainderl.texi: Mention missing declaration
5090         problem.
5091
5092 2012-03-07  Bruno Haible  <bruno@clisp.org>
5093
5094         rintf: Don't override undeclared system function on IRIX 6.5.
5095         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
5096         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
5097         exists. Set HAVE_DECL_RINTF.
5098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
5099         HAVE_RINTF.
5100         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
5101         HAVE_RINTF.
5102         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
5103
5104 2012-03-07  Bruno Haible  <bruno@clisp.org>
5105
5106         roundl: Avoid compilation error on AIX.
5107         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
5108         AIX 5.2..7.1.
5109
5110 2012-03-07  Bruno Haible  <bruno@clisp.org>
5111
5112         roundl: Don't override undeclared system function on IRIX 6.5.
5113         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
5114         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
5115         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5116         * modules/roundl (configure.ac): For replacement code, test
5117         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5118         (Depends-on): Update conditions.
5119         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
5120
5121 2012-03-07  Bruno Haible  <bruno@clisp.org>
5122
5123         roundf: Don't override undeclared system function on IRIX 6.5.
5124         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
5125         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
5126         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5127         * modules/roundf (configure.ac): For replacement code, test
5128         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5129         (Depends-on): Update conditions.
5130         * modules/roundf-ieee (Depends-on): Update conditions.
5131         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
5132
5133 2012-03-07  Bruno Haible  <bruno@clisp.org>
5134
5135         round: Don't override undeclared system function on IRIX 6.5.
5136         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
5137         argument.
5138         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
5139         also when it is not declared. Set HAVE_ROUND. For replacement code,
5140         test HAVE_ROUND, not HAVE_DECL_ROUND.
5141         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
5142         not HAVE_DECL_ROUND.
5143         (Depends-on): Update conditions.
5144         * modules/round-ieee (Depends-on): Update conditions.
5145         * doc/posix-functions/round.texi: Mention the IRIX problem.
5146
5147 2012-03-07  Bruno Haible  <bruno@clisp.org>
5148
5149         copysignf: Don't override undeclared system function on IRIX 6.5.
5150         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
5151         HAVE_COPYSIGNF.
5152         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
5153         declared when it exists. Set HAVE_DECL_COPYSIGNF.
5154         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
5155         not HAVE_COPYSIGNF.
5156         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
5157         HAVE_COPYSIGNF.
5158         * doc/posix-functions/copysignf.texi: Mention missing declaration
5159         problem.
5160
5161 2012-03-07  Jim Meyering  <meyering@redhat.com>
5162
5163         readtokens: add tests
5164         * modules/readtokens-tests: New file.
5165         * tests/test-readtokens.c: New file.
5166
5167 2012-03-07  Jim Meyering  <meyering@redhat.com>
5168
5169         quotearg: the module must now include quote.h
5170         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
5171         So must the module.
5172         * modules/quotearg (Files): Add quote.h.
5173
5174 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
5175
5176         readtokens: avoid core dumps with unusual calling patterns
5177         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
5178         * lib/readtokens.c: Include limits.h.
5179         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
5180         (readtoken): Don't cache the delimiters; the cache code was buggy
5181         if !delim && saved_delim, or if the new n_delim differs from the old.
5182         Also, it wasn't thread-safe.
5183
5184 2012-03-07  Bruno Haible  <bruno@clisp.org>
5185
5186         quote: Adhere to common module description layout.
5187         * modules/quote (Makefile.am): Add back empty section.
5188
5189 2012-03-06  Akim Demaille  <demaille@gostai.com>
5190
5191         quote: fuse into quotearg
5192         This patch is made for the benefit of Bison.
5193         quote does not leave the choice of the quoting style to the user.
5194         quoting_style provides poor customizability, yet quoting_options,
5195         which is very rich, is hidden inside quotearg.c.  So in order to
5196         allow quote customization, move its implementation to quotearg.c.
5197         * lib/quote.c: Remove.
5198         * modules/quote: Adjust.
5199         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
5200         warning: provide all the members of literal structs.
5201         (quote_quoting_options): New.
5202         (quote, quote_n): Import implementation from quote.c.
5203         * lib/quote.h: Import the comments from quote.c.
5204         (quote_quoting_options): New.
5205
5206 2012-03-06  Bruno Haible  <bruno@clisp.org>
5207
5208         Tests for module 'expm1l-ieee'.
5209         * modules/expm1l-ieee-tests: New file.
5210         * tests/test-expm1l-ieee.c: New file.
5211
5212         New module 'expm1l-ieee'.
5213         * modules/expm1l-ieee: New file.
5214
5215         Tests for module 'expm1f-ieee'.
5216         * modules/expm1f-ieee-tests: New file.
5217         * tests/test-expm1f-ieee.c: New file.
5218
5219         New module 'expm1f-ieee'.
5220         * modules/expm1f-ieee: New file.
5221
5222         Tests for module 'expm1-ieee'.
5223         * modules/expm1-ieee-tests: New file.
5224         * tests/test-expm1-ieee.c: New file.
5225         * tests/test-expm1-ieee.h: New file.
5226
5227         New module 'expm1-ieee'.
5228         * modules/expm1-ieee: New file.
5229         * m4/expm1-ieee.m4: New file.
5230         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
5231         whether expm1 works with a minus zero argument. Replace it if not.
5232         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
5233         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
5234         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
5235         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
5236         (Depends-on): Update conditions.
5237         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
5238         AIX problem.
5239
5240 2012-03-06  Bruno Haible  <bruno@clisp.org>
5241
5242         Work around expm1f bug on IRIX 6.5.
5243         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
5244         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
5245         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
5246         not work.
5247         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
5248         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
5249         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
5250         (Depends-on): Update conditions.
5251         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
5252
5253 2012-03-06  Bruno Haible  <bruno@clisp.org>
5254
5255         Tests for module 'expm1l'.
5256         * modules/expm1l-tests: New file.
5257         * tests/test-expm1l.c: New file.
5258
5259         New module 'expm1l'.
5260         * lib/math.in.h (expm1l): New declaration.
5261         * lib/expm1l.c: New file.
5262         * m4/expm1l.m4: New file.
5263         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
5264         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
5265         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
5266         * modules/expm1l: New file.
5267         * tests/test-math-c++.cc: Check the declaration of expm1l.
5268         * doc/posix-functions/expm1l.texi: Mention the new module.
5269
5270 2012-03-06  Bruno Haible  <bruno@clisp.org>
5271
5272         Tests for module 'expm1f'.
5273         * modules/expm1f-tests: New file.
5274         * tests/test-expm1f.c: New file.
5275
5276         New module 'expm1f'.
5277         * lib/math.in.h (expm1f): New declaration.
5278         * lib/expm1f.c: New file.
5279         * m4/expm1f.m4: New file.
5280         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
5281         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
5282         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
5283         * modules/expm1f: New file.
5284         * tests/test-math-c++.cc: Check the declaration of expm1f.
5285         * doc/posix-functions/expm1f.texi: Mention the new module.
5286
5287 2012-03-06  Bruno Haible  <bruno@clisp.org>
5288
5289         Tests for module 'expm1'.
5290         * modules/expm1-tests: New file.
5291         * tests/test-expm1.c: New file.
5292         * tests/test-expm1.h: New file.
5293
5294         New module 'expm1'.
5295         * lib/math.in.h (expm1): New declaration.
5296         * lib/expm1.c: New file.
5297         * m4/expm1.m4: New file.
5298         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
5299         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
5300         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
5301         * modules/expm1: New file.
5302         * tests/test-math-c++.cc: Check the declaration of expm1.
5303         * doc/posix-functions/expm1.texi: Mention the new module.
5304
5305 2012-03-06  Bruno Haible  <bruno@clisp.org>
5306
5307         math: Ensure declarations of math functions.
5308         * modules/acosf (Depends-on): Add 'extensions'.
5309         * modules/asinf (Depends-on): Likewise.
5310         * modules/atan2f (Depends-on): Likewise.
5311         * modules/atanf (Depends-on): Likewise.
5312         * modules/cbrt (Depends-on): Likewise.
5313         * modules/cbrtf (Depends-on): Likewise.
5314         * modules/cbrtl (Depends-on): Likewise.
5315         * modules/copysignf (Depends-on): Likewise.
5316         * modules/copysignl (Depends-on): Likewise.
5317         * modules/cosf (Depends-on): Likewise.
5318         * modules/coshf (Depends-on): Likewise.
5319         * modules/expf (Depends-on): Likewise.
5320         * modules/fabsf (Depends-on): Likewise.
5321         * modules/fabsl (Depends-on): Likewise.
5322         * modules/fmaf (Depends-on): Likewise.
5323         * modules/fmal (Depends-on): Likewise.
5324         * modules/fmodf (Depends-on): Likewise.
5325         * modules/fmodl (Depends-on): Likewise.
5326         * modules/frexpf (Depends-on): Likewise.
5327         * modules/frexpl (Depends-on): Likewise.
5328         * modules/hypot (Depends-on): Likewise.
5329         * modules/hypotf (Depends-on): Likewise.
5330         * modules/hypotl (Depends-on): Likewise.
5331         * modules/ldexpf (Depends-on): Likewise.
5332         * modules/ldexpl (Depends-on): Likewise.
5333         * modules/log10f (Depends-on): Likewise.
5334         * modules/log10l (Depends-on): Likewise.
5335         * modules/log1p (Depends-on): Likewise.
5336         * modules/logb (Depends-on): Likewise.
5337         * modules/logf (Depends-on): Likewise.
5338         * modules/modff (Depends-on): Likewise.
5339         * modules/modfl (Depends-on): Likewise.
5340         * modules/powf (Depends-on): Likewise.
5341         * modules/remainderf (Depends-on): Likewise.
5342         * modules/remainderl (Depends-on): Likewise.
5343         * modules/rintf (Depends-on): Likewise.
5344         * modules/rintl (Depends-on): Likewise.
5345         * modules/sinf (Depends-on): Likewise.
5346         * modules/sinhf (Depends-on): Likewise.
5347         * modules/sqrtf (Depends-on): Likewise.
5348         * modules/tanf (Depends-on): Likewise.
5349         * modules/tanhf (Depends-on): Likewise.
5350         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
5351         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
5352         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
5353         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
5354         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
5355         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
5356         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
5357         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
5358         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
5359         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
5360         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
5361         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
5362         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
5363         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
5364         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
5365         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
5366         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
5367         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5368         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
5369         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
5370         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
5371         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
5372         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
5373         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
5374         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5375         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
5376         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
5377         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5378         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
5379         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
5380         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5381         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
5382         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5383         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5384         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
5385         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
5386         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
5387         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
5388         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
5389         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
5390         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
5391
5392 2012-03-06  Bruno Haible  <bruno@clisp.org>
5393
5394         math: Update module names in warnings.
5395         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
5396         tanl): Use specific module name in warn-on-use warning.
5397
5398 2012-03-06  Bruno Haible  <bruno@clisp.org>
5399
5400         expl: Simplify computation.
5401         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
5402
5403 2012-03-05  Bruno Haible  <bruno@clisp.org>
5404
5405         exp* tests: More tests.
5406         * tests/test-exp.h: New file.
5407         * tests/test-exp.c: Include <float.h> and test-exp.h.
5408         (main): Invoke test_function.
5409         * tests/test-expf.c: Include <float.h> and test-exp.h.
5410         (main): Invoke test_function.
5411         * tests/test-expl.c: Include <float.h> and test-exp.h.
5412         (main): Invoke test_function.
5413         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
5414         (Makefile.am): Add randomd.c to test_exp_SOURCES.
5415         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
5416         (Makefile.am): Add randomf.c to test_expf_SOURCES.
5417         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
5418         (Depends-on): Add 'float'.
5419         (Makefile.am): Add randoml.c to test_expl_SOURCES.
5420
5421         expl: Fix precision of computed result.
5422         * lib/expl.c: Completely rewritten.
5423         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
5424         (Maintainer): Add me.
5425         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
5426
5427 2012-03-05  Bruno Haible  <bruno@clisp.org>
5428
5429         cbrt* tests: More tests.
5430         * tests/test-cbrt.h: New file.
5431         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
5432         (main): Invoke test_function.
5433         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
5434         (main): Invoke test_function.
5435         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
5436         (main): Invoke test_function.
5437         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
5438         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
5439         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
5440         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
5441         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
5442         (Depends-on): Add 'float'.
5443         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
5444
5445 2012-03-05  Bruno Haible  <bruno@clisp.org>
5446
5447         hypot* tests: More tests.
5448         * tests/test-hypot.h: New file, partially extracted from
5449         tests/test-hypotl.c.
5450         * tests/test-hypot.c: Include test-hypot.h.
5451         (main): Invoke test_function.
5452         * tests/test-hypotf.c: Include test-hypot.h.
5453         (main): Invoke test_function.
5454         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
5455         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
5456         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
5457         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
5458         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
5459         tests/randomf.c.
5460         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
5461         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
5462         tests/randoml.c.
5463         (Depends-on): Add 'fpucw', 'float'.
5464         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
5465
5466 2012-03-05  Bruno Haible  <bruno@clisp.org>
5467
5468         fpucw: Doc about FreeBSD.
5469         * lib/fpucw.h: Mention FreeBSD in comments.
5470
5471 2012-03-04  Bruno Haible  <bruno@clisp.org>
5472
5473         sqrt* tests: More tests.
5474         * tests/test-sqrt.h: New file.
5475         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
5476         (main): Invoke test_function.
5477         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
5478         (main): Invoke test_function.
5479         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
5480         (main): Invoke test_function.
5481         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
5482         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
5483         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
5484         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
5485         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
5486         (Depends-on): Add 'float'.
5487         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
5488
5489 2012-03-04  Bruno Haible  <bruno@clisp.org>
5490
5491         remainder* tests: More tests.
5492         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
5493         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
5494         (main): Invoke test_function.
5495         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
5496         (main): Invoke test_function.
5497         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
5498         (main): Invoke test_function.
5499         * modules/remainder-tests (Files): Add tests/test-remainder.h,
5500         tests/randomd.c.
5501         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
5502         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
5503         tests/randomf.c.
5504         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
5505         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
5506         tests/randoml.c.
5507         (Depends-on): Add 'float'.
5508         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
5509
5510 2012-03-04  Bruno Haible  <bruno@clisp.org>
5511
5512         remainder, remainderf, remainderl: Fix computation for large quotients.
5513         * lib/remainder.c: Completely rewritten.
5514         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
5515         USE_FLOAT.
5516         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
5517         USE_LONG_DOUBLE.
5518         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
5519         isnand, isinf. Remove round, fma.
5520         * modules/remainderf (Files): Add lib/remainder.c.
5521         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
5522         Remove roundf, fmaf.
5523         * modules/remainderl (Files): Add lib/remainder.c.
5524         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
5525         isinf. Remove roundl, fmal.
5526         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
5527         REMAINDER_LIBM.
5528         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
5529         REMAINDERF_LIBM.
5530         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
5531         REMAINDERL_LIBM.
5532
5533 2012-03-04  Bruno Haible  <bruno@clisp.org>
5534
5535         fmod* tests: More tests.
5536         * tests/test-fmod.h (my_ldexp): New function.
5537         (test_function): Reduce amount of random numbers to test. Add tests
5538         of very large quotients x / y.
5539         * tests/test-fmod.c (MAX_EXP): New macro.
5540         * tests/test-fmodf.c (MAX_EXP): Likewise.
5541         * tests/test-fmodl.c (MAX_EXP): Likewise.
5542
5543 2012-03-04  Bruno Haible  <bruno@clisp.org>
5544
5545         fmod, fmodl: Fix computation for large quotients x / y.
5546         * lib/fmod.c: Completely rewritten.
5547         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
5548         USE_LONG_DOUBLE.
5549         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
5550         isnand. Remove fma.
5551         * modules/fmodl (Files): Add lib/fmod.c.
5552         (Depends-on): Add float, isfinite, signbit, fabsl,
5553         frexpl, ldexpl, isnanl. Remove fma.
5554         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
5555         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
5556
5557 2012-03-03  Bruno Haible  <bruno@clisp.org>
5558
5559         fmod* tests: More tests.
5560         * tests/test-fmod.h: New file.
5561         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
5562         (main): Invoke test_function.
5563         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
5564         (main): Invoke test_function.
5565         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
5566         (main): Invoke test_function.
5567         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
5568         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
5569         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
5570         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
5571         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
5572         (Depends-on): Add 'float'.
5573         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
5574
5575 2012-03-03  Bruno Haible  <bruno@clisp.org>
5576
5577         rint* tests: More tests.
5578         * tests/test-rint.h: New file, partially extracted from
5579         tests/test-rintl.c.
5580         * tests/test-rint.c: Include test-rint.h.
5581         (main): Invoke test_function.
5582         * tests/test-rintf.c: Include test-rint.h.
5583         (main): Invoke test_function.
5584         * tests/test-rintl.c: Include test-rint.h.
5585         (main): Invoke test_function.
5586         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
5587         (Makefile.am): Add randomd.c to test_rint_SOURCES.
5588         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
5589         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
5590         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
5591         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
5592
5593 2012-03-03  Bruno Haible  <bruno@clisp.org>
5594
5595         modf* tests: More tests.
5596         * tests/test-modf.h: New file.
5597         * tests/test-modf.c: Include <float.h> and test-modf.h.
5598         (main): Invoke test_function.
5599         * tests/test-modff.c: Include <float.h> and test-modf.h.
5600         (main): Invoke test_function.
5601         * tests/test-modfl.c: Include <float.h> and test-modf.h.
5602         (main): Invoke test_function.
5603         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
5604         (Makefile.am): Add randomd.c to test_modf_SOURCES.
5605         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
5606         (Makefile.am): Add randomf.c to test_modff_SOURCES.
5607         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
5608         (Depends-on): Add 'float'.
5609         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
5610
5611 2012-03-03  Bruno Haible  <bruno@clisp.org>
5612
5613         fabs* tests: More tests.
5614         * tests/test-fabs.h: New file, partially extracted from
5615         tests/test-fabsl.c.
5616         * tests/test-fabs.c (RANDOM): New macro.
5617         * tests/test-fabsf.c (RANDOM): New macro.
5618         * tests/test-fabsl.c (RANDOM): New macro.
5619         * modules/fabs-tests (Files): Add tests/randomd.c.
5620         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
5621         * modules/fabsf-tests (Files): Add tests/randomf.c.
5622         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
5623         * modules/fabsl-tests (Files): Add tests/randoml.c.
5624         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
5625
5626 2012-03-03  Bruno Haible  <bruno@clisp.org>
5627
5628         ldexp* tests: More tests.
5629         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
5630         * tests/test-ldexp.c (RANDOM): New macro.
5631         * tests/test-ldexpf.c (RANDOM): New macro.
5632         * tests/test-ldexpl.c (RANDOM): New macro.
5633         * modules/ldexp-tests (Files): Add tests/randomd.c.
5634         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
5635         * modules/ldexpf-tests (Files): Add tests/randomf.c.
5636         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
5637         * modules/ldexpl-tests (Files): Add tests/randoml.c.
5638         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
5639
5640 2012-03-03  Bruno Haible  <bruno@clisp.org>
5641
5642         frexp* tests: More tests.
5643         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
5644         * tests/test-frexp.c (RANDOM): New macro.
5645         * tests/test-frexpf.c (RANDOM): New macro.
5646         * tests/test-frexpl.c (RANDOM): New macro.
5647         * modules/frexp-tests (Files): Add tests/randomd.c.
5648         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
5649         * modules/frexpf-tests (Files): Add tests/randomf.c.
5650         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
5651         * modules/frexpl-tests (Files): Add tests/randoml.c.
5652         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
5653
5654 2012-03-03  Bruno Haible  <bruno@clisp.org>
5655
5656         Support for pseudo-random numbers in tests.
5657         * tests/randomf.c: New file.
5658         * tests/randomd.c: New file.
5659         * tests/randoml.c: New file.
5660         * tests/macros.h (randomf, randomd, randoml): New declarations.
5661
5662 2012-03-03  Bruno Haible  <bruno@clisp.org>
5663
5664         frexp* tests: Refactor.
5665         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
5666         * tests/test-frexp.c: Include and use it.
5667         * tests/test-frexpf.c: Likewise.
5668         * tests/test-frexpl.c: Likewise.
5669         * modules/frexp-tests (Files): Add tests/test-frexp.h.
5670         * modules/frexpf-tests (Files): Likewise.
5671         * modules/frexpl-tests (Files): Likewise.
5672
5673 2012-03-02  Jim Meyering  <meyering@redhat.com>
5674
5675         maint: don't specify XZ_OPT=-9ev in dist-related rule
5676         Using xz's -9 option is warranted only if you have a very large
5677         tarball (see xz's documentation for the sizes vs. presets), and
5678         requires 64MiB of memory at decompression time.
5679         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
5680         Automake's default of just "-e" is fine.  Override on a
5681         per-package basis by setting XZ_OPT e.g., in cfg.mk.
5682
5683 2012-03-01  Eric Blake  <eblake@redhat.com>
5684
5685         maint.mk: allow announcement for non-gnulib project
5686         * maint.mk (announcement): Skip gnulib version if not used.
5687
5688 2012-03-01  Jim Meyering  <meyering@redhat.com>
5689
5690         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
5691         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
5692         envvar settings cannot interfere.  Otherwise, setting envvars like
5693         prohibit=foo require=bar, etc. would cause spurious test failures.
5694
5695 2012-03-01  Eric Blake  <eblake@redhat.com>
5696
5697         maint.mk: add per-line exclusions to prohibitions
5698         * maint.mk (_sc_search_regexp): Add $exclude parameter.
5699         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
5700         (sc_const_long_option): Use it.
5701
5702 2012-03-01  Bruno Haible  <bruno@clisp.org>
5703
5704         Tests for module 'expl-ieee'.
5705         * modules/expl-ieee-tests: New file.
5706         * tests/test-expl-ieee.c: New file.
5707
5708         New module 'expl-ieee'.
5709         * modules/expl-ieee: New file.
5710
5711         Tests for module 'exp-ieee'.
5712         * modules/exp-ieee-tests: New file.
5713         * tests/test-exp-ieee.c: New file.
5714
5715         New module 'exp-ieee'.
5716         * modules/exp-ieee: New file.
5717
5718         Tests for module 'expf-ieee'.
5719         * modules/expf-ieee-tests: New file.
5720         * tests/test-expf-ieee.c: New file.
5721         * tests/test-exp-ieee.h: New file.
5722
5723         New module 'expf-ieee'.
5724         * modules/expf-ieee: New file.
5725
5726 2012-02-29  Bruno Haible  <bruno@clisp.org>
5727
5728         cbrtl-ieee: Work around test failure on IRIX 6.5.
5729         * m4/cbrtl-ieee.m4: New file.
5730         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
5731         test whether cbrtl works with a minus zero argument. Replace it if not.
5732         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
5733         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
5734         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
5735         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
5736         (Depends-on): Update conditions.
5737         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
5738         m4/signbit.m4.
5739         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
5740         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
5741         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
5742
5743         Tests for module 'cbrtl-ieee'.
5744         * modules/cbrtl-ieee-tests: New file.
5745         * tests/test-cbrtl-ieee.c: New file.
5746
5747         New module 'cbrtl-ieee'.
5748         * modules/cbrtl-ieee: New file.
5749
5750         Tests for module 'cbrt-ieee'.
5751         * modules/cbrt-ieee-tests: New file.
5752         * tests/test-cbrt-ieee.c: New file.
5753
5754         New module 'cbrt-ieee'.
5755         * modules/cbrt-ieee: New file.
5756
5757         Tests for module 'cbrtf-ieee'.
5758         * modules/cbrtf-ieee-tests: New file.
5759         * tests/test-cbrtf-ieee.c: New file.
5760         * tests/test-cbrt-ieee.h: New file.
5761
5762         New module 'cbrtf-ieee'.
5763         * modules/cbrtf-ieee: New file.
5764
5765 2012-02-29  Bruno Haible  <bruno@clisp.org>
5766
5767         cbrtf: Work around bug in IRIX 6.5 system function.
5768         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
5769         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
5770         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
5771         work.
5772         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
5773         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
5774         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
5775         (Depends-on): Update conditions.
5776         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
5777
5778 2012-02-29  Bruno Haible  <bruno@clisp.org>
5779
5780         Tests for module 'cbrtl'.
5781         * modules/cbrtl-tests: New file.
5782         * tests/test-cbrtl.c: New file.
5783
5784         New module 'cbrtl'.
5785         * lib/math.in.h (cbrtl): New declaration.
5786         * lib/cbrtl.c: New file.
5787         * m4/cbrtl.m4: New file.
5788         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
5789         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
5790         HAVE_DECL_CBRTL.
5791         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
5792         HAVE_DECL_CBRTL.
5793         * modules/cbrtl: New file.
5794         * tests/test-math-c++.cc: Check the declaration of cbrtl.
5795         * doc/posix-functions/cbrtl.texi: Mention the new module.
5796
5797 2012-02-29  Bruno Haible  <bruno@clisp.org>
5798
5799         Tests for module 'cbrtf'.
5800         * modules/cbrtf-tests: New file.
5801         * tests/test-cbrtf.c: New file.
5802
5803         New module 'cbrtf'.
5804         * lib/math.in.h (cbrtf): New declaration.
5805         * lib/cbrtf.c: New file.
5806         * m4/cbrtf.m4: New file.
5807         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
5808         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
5809         HAVE_DECL_CBRTF.
5810         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
5811         HAVE_DECL_CBRTF.
5812         * modules/cbrtf: New file.
5813         * tests/test-math-c++.cc: Check the declaration of cbrtf.
5814         * doc/posix-functions/cbrtf.texi: Mention the new module.
5815
5816 2012-02-29  Bruno Haible  <bruno@clisp.org>
5817
5818         cbrt: Provide replacement on MSVC and Minix.
5819         * lib/math.in.h (cbrt): New declaration.
5820         * lib/cbrt.c: New file.
5821         * m4/cbrt.m4: New file.
5822         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
5823         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
5824         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
5825         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
5826         (Depends-on): Add dependencies.
5827         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
5828         * tests/test-math-c++.cc: Check the declaration of cbrt.
5829         * doc/posix-functions/cbrt.texi: Mention that the module provides a
5830         replacement.
5831
5832 2012-02-29  Bruno Haible  <bruno@clisp.org>
5833
5834         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
5835         * m4/hypotl-ieee.m4: New file.
5836         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
5837         test whether hypotl works with mixed NaN and Infinity arguments.
5838         Replace it if not.
5839         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
5840         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
5841         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
5842         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
5843         (Depends-on): Update conditions.
5844         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
5845         (Depends-on): Add hypot-ieee.
5846         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
5847         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
5848
5849         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
5850         * m4/hypotf-ieee.m4: New file.
5851         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
5852         test whether hypotf works with mixed NaN and Infinity arguments.
5853         Replace it if not.
5854         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
5855         (Depends-on): Add hypot-ieee.
5856         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
5857         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
5858
5859         hypot-ieee: Work around test failure on OSF/1 and native Windows.
5860         * lib/math.in.h (hypot): New declaration.
5861         * lib/hypot.c: New file.
5862         * m4/hypot-ieee.m4: New file.
5863         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
5864         whether hypot works with mixed NaN and Infinity arguments. Replace it
5865         if not.
5866         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
5867         REPLACE_HYPOT.
5868         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
5869         * modules/hypot (Files): Add lib/hypot.c.
5870         (Depends-on): Add dependencies.
5871         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
5872         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
5873         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
5874         * tests/test-math-c++.cc: Check the declaration of hypot.
5875         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
5876
5877         Tests for module 'hypotl-ieee'.
5878         * modules/hypotl-ieee-tests: New file.
5879         * tests/test-hypotl-ieee.c: New file.
5880
5881         New module 'hypotl-ieee'.
5882         * modules/hypotl-ieee: New file.
5883
5884         Tests for module 'hypot-ieee'.
5885         * modules/hypot-ieee-tests: New file.
5886         * tests/test-hypot-ieee.c: New file.
5887
5888         New module 'hypot-ieee'.
5889         * modules/hypot-ieee: New file.
5890
5891         Tests for module 'hypotf-ieee'.
5892         * modules/hypotf-ieee-tests: New file.
5893         * tests/test-hypotf-ieee.c: New file.
5894         * tests/test-hypot-ieee.h: New file.
5895
5896         New module 'hypotf-ieee'.
5897         * modules/hypotf-ieee: New file.
5898
5899 2012-02-29  Bruno Haible  <bruno@clisp.org>
5900
5901         Remove unused variables.
5902         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
5903         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5904         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
5905         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5906
5907 2012-02-29  Eric Blake  <eblake@redhat.com>
5908
5909         termios: fix pid_t always, not just for tcgetsid
5910         * doc/posix-headers/termios.texi (termios.h): Mention problem.
5911         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
5912         just when building tcgetsid.
5913
5914 2012-02-29  Bruno Haible  <bruno@clisp.org>
5915
5916         Tests for module 'hypotl'.
5917         * modules/hypotl-tests: New file.
5918         * tests/test-hypotl.c: New file.
5919
5920         New module 'hypotl'.
5921         * lib/math.in.h (hypotl): New declaration.
5922         * lib/hypotl.c: New file.
5923         * m4/hypotl.m4: New file.
5924         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5925         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
5926         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
5927         * modules/hypotl: New file.
5928         * tests/test-math-c++.cc: Check the hypotl declaration.
5929         * doc/posix-functions/hypotl.texi: Mention the new module.
5930
5931 2012-02-29  Eric Blake  <eblake@redhat.com>
5932
5933         tcgetsid: fix cygwin header bug
5934         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
5935
5936         docs: update cygwin progress
5937         * doc/posix-functions/llround.texi (llround): Added in cygwin
5938         1.7.8.
5939         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
5940         * doc/glibc-functions/program_invocation_name.texi
5941         (program_invocation_name): Likewise.
5942         * doc/glibc-functions/program_invocation_short_name.texi
5943         (program_invocation_short_name): Likewise.
5944         * doc/glibc-functions/madvise.texi (madvise): Likewise.
5945         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
5946         Likewise.
5947         * doc/posix-functions/pthread_spin_destroy.texi
5948         (pthread_spin_destroy): Added in cygwin 1.7.10.
5949         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
5950         Likewise.
5951         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
5952         Likewise.
5953         * doc/posix-functions/pthread_spin_trylock.texi
5954         (pthread_spin_trylock): Likewise.
5955         * doc/posix-functions/pthread_spin_unlock.texi
5956         (pthread_spin_unlock): Likewise.
5957         * doc/posix-functions/pthread_setschedprio.texi
5958         (pthread_setschedprio): Likewise.
5959         * doc/posix-functions/pthread_attr_getstack.texi
5960         (pthread_attr_getstack): Likewise.
5961         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
5962         (pthread_attr_getstackaddr): Likewise.
5963         * doc/glibc-functions/pthread_getattr_np.texi
5964         (pthread_getattr_np): Likewise.
5965         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
5966         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
5967         * doc/posix-functions/clock_settime.texi (clock_settime):
5968         Likewise.
5969         * doc/posix-functions/pthread_attr_getguardsize.texi
5970         (pthread_attr_getguardsize): Likewise.
5971         * doc/posix-functions/pthread_attr_setguardsize.texi
5972         (pthread_attr_setguardsize): Likewise.
5973         * doc/posix-functions/pthread_attr_setstack.texi
5974         (pthread_attr_setstack): Likewise.
5975         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
5976         (pthread_attr_setstackaddr): Likewise.
5977         * doc/posix-functions/clock_getcpuclockid.texi
5978         (clock_getcpuclockid): Likewise.
5979         * doc/posix-functions/pthread_getcpuclockid.texi
5980         (pthread_getcpuclockid): Likewise.
5981         * doc/glibc-functions/error.texi (error): Likewise.
5982         * doc/glibc-functions/error_at_line.texi (error_at_line):
5983         Likewise.
5984         * doc/glibc-functions/error_message_count.texi
5985         (error_message_count): Likewise.
5986         * doc/glibc-functions/error_one_per_line.texi
5987         (error_one_per_line): Likewise.
5988         * doc/glibc-functions/error_print_progname.texi
5989         (error_print_progname): Likewise.
5990         * doc/posix-functions/pthread_condattr_getclock.texi
5991         (pthread_condattr_getclock): Likewise.
5992         * doc/posix-functions/pthread_condattr_setclock.texi
5993         (pthread_condattr_setclock): Likewise.
5994         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
5995         Likewise.
5996         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
5997         * doc/glibc-functions/getpt.texi (getpt): Likewise.
5998         * doc/glibc-functions/get_current_dir_name.texi
5999         (get_current_dir_name): Likewise.
6000         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
6001         Likewise.
6002         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
6003         wrong return type.
6004         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
6005         1.7.11.
6006
6007 2012-02-29  Bruno Haible  <bruno@clisp.org>
6008
6009         Tests for module 'hypotf'.
6010         * modules/hypotf-tests: New file.
6011         * tests/test-hypotf.c: New file.
6012
6013         New module 'hypotf'.
6014         * lib/math.in.h (hypotf): New declaration.
6015         * lib/hypotf.c: New file.
6016         * m4/hypotf.m4: New file.
6017         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6018         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
6019         REPLACE_HYPOTF.
6020         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
6021         REPLACE_HYPOTF.
6022         * modules/hypotf: New file.
6023         * tests/test-math-c++.cc: Check the hypotf declaration.
6024         * doc/posix-functions/hypotf.texi: Mention the new module.
6025
6026         hypot: Prepare for hypotf module.
6027         * m4/hypot.m4: New file.
6028         * modules/hypot (Files): Add m4/hypot.m4.
6029         (configure.ac): Invoke gl_FUNC_HYPOT.
6030
6031 2012-02-29  Bruno Haible  <bruno@clisp.org>
6032
6033         hypot tests: More tests.
6034         * tests/test-hypot.c: Include <float.h>.
6035         (main): Add tests about overflow and underflow.
6036
6037 2012-02-29  Bruno Haible  <bruno@clisp.org>
6038
6039         math code: Add comments.
6040         * lib/acosl.c: Add comment about related glibc source files.
6041         * lib/asinl.c: Likewise.
6042         * lib/atanl.c: Likewise.
6043         * lib/expl.c: Likewise.
6044         * lib/logl.c: Likewise.
6045         * lib/sincosl.c: Likewise.
6046         * lib/sinl.c: Likewise.
6047         * lib/tanl.c: Likewise.
6048         * lib/trigl.c: Likewise.
6049         * lib/cosl.c: Likewise. Fix comments.
6050
6051 2012-02-28  Bruno Haible  <bruno@clisp.org>
6052
6053         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
6054         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
6055         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
6056         HUGE_VALL are defined.
6057         (numeric_equald): Renamed from numeric_equal.
6058         (numeric_equalf, numeric_equall): New functions.
6059         (main): Check also HUGE_VALF, HUGE_VALL.
6060         * modules/math-tests (Files): Add tests/macros.h.
6061         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
6062         HUGE_VALL.
6063
6064 2012-02-28  Bruno Haible  <bruno@clisp.org>
6065
6066         doc: Move ISO C11 feature notes into POSIX chapters.
6067         * doc/posix-functions/aligned_alloc.texi: Renamed from
6068         doc/glibc-functions/aligned_alloc.texi.
6069         * doc/posix-functions/quick_exit.texi: Renamed from
6070         doc/glibc-functions/quick_exit.texi.
6071         * doc/posix-headers/uchar.texi: Renamed from
6072         doc/glibc-headers/uchar.texi.
6073         * doc/posix-functions/c16rtomb.texi: Renamed from
6074         doc/glibc-functions/c16rtomb.texi.
6075         * doc/posix-functions/c32rtomb.texi: Renamed from
6076         doc/glibc-functions/c32rtomb.texi.
6077         * doc/posix-functions/mbrtoc16.texi: Renamed from
6078         doc/glibc-functions/mbrtoc16.texi.
6079         * doc/posix-functions/mbrtoc32.texi: Renamed from
6080         doc/glibc-functions/mbrtoc32.texi.
6081         * doc/gnulib.texi: Update.
6082         (Glibc uchar.h): Remove section.
6083         Suggested by Eric Blake.
6084
6085 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
6086
6087         stdnoreturn: port to MSVC better
6088         MSVC standard headers use __declspec(noreturn), so #define noreturn
6089         to empty on that platform.  Reported by Bruno Haible in
6090         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
6091         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
6092         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
6093
6094 2012-02-28  Bruno Haible  <bruno@clisp.org>
6095
6096         doc: Mention new glibc headers and functions.
6097         * doc/glibc-headers/uchar.texi: New file.
6098         * doc/glibc-functions/aligned_alloc.texi: New file.
6099         * doc/glibc-functions/c16rtomb.texi: New file.
6100         * doc/glibc-functions/c32rtomb.texi: New file.
6101         * doc/glibc-functions/clock_adjtime.texi: New file.
6102         * doc/glibc-functions/fanotify_init.texi: New file.
6103         * doc/glibc-functions/fanotify_mark.texi: New file.
6104         * doc/glibc-functions/inet6_opt_append.texi: New file.
6105         * doc/glibc-functions/inet6_opt_find.texi: New file.
6106         * doc/glibc-functions/inet6_opt_finish.texi: New file.
6107         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
6108         * doc/glibc-functions/inet6_opt_init.texi: New file.
6109         * doc/glibc-functions/inet6_opt_next.texi: New file.
6110         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
6111         * doc/glibc-functions/inet6_rth_add.texi: New file.
6112         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
6113         * doc/glibc-functions/inet6_rth_init.texi: New file.
6114         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
6115         * doc/glibc-functions/inet6_rth_segments.texi: New file.
6116         * doc/glibc-functions/inet6_rth_space.texi: New file.
6117         * doc/glibc-functions/login.texi: New file.
6118         * doc/glibc-functions/mbrtoc16.texi: New file.
6119         * doc/glibc-functions/mbrtoc32.texi: New file.
6120         * doc/glibc-functions/name_to_handle_at.texi: New file.
6121         * doc/glibc-functions/ntp_gettimex.texi: New file.
6122         * doc/glibc-functions/open_by_handle_at.texi: New file.
6123         * doc/glibc-functions/prlimit.texi: New file.
6124         * doc/glibc-functions/process_vm_readv.texi: New file.
6125         * doc/glibc-functions/process_vm_writev.texi: New file.
6126         * doc/glibc-functions/recvmmsg.texi: New file.
6127         * doc/glibc-functions/scandirat.texi: New file.
6128         * doc/glibc-functions/sendmmsg.texi: New file.
6129         * doc/glibc-functions/setns.texi: New file.
6130         * doc/glibc-functions/timespec_get.texi: New file.
6131         * doc/gnulib.texi: Include them.
6132         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
6133         sections.
6134         Reported by Eric Blake.
6135
6136 2012-02-28  Bruno Haible  <bruno@clisp.org>
6137
6138         Avoid compilation errors with MSVC option -fp:strict.
6139         * lib/floor.c: Use MSVC specific pragma fenv_access.
6140         * lib/ceil.c: Likewise.
6141         * lib/trunc.c: Likewise.
6142         * lib/round.c: Likewise.
6143         * lib/rint.c: Likewise.
6144         * lib/fma.c: Likewise.
6145         * lib/integer_length.c: Likewise.
6146         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6147         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6148         * tests/test-floor2.c: Likewise.
6149         * tests/test-floorf2.c: Likewise.
6150         * tests/test-ceil2.c: Likewise.
6151         * tests/test-ceilf2.c: Likewise.
6152         * tests/test-trunc2.c: Likewise.
6153         * tests/test-truncf2.c: Likewise.
6154         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6155
6156 2012-02-27  Bruno Haible  <bruno@clisp.org>
6157
6158         Tests for module 'sqrtl-ieee'.
6159         * modules/sqrtl-ieee-tests: New file.
6160         * tests/test-sqrtl-ieee.c: New file.
6161
6162         New module 'sqrtl-ieee'.
6163         * modules/sqrtl-ieee: New file.
6164
6165         Tests for module 'sqrt-ieee'.
6166         * modules/sqrt-ieee-tests: New file.
6167         * tests/test-sqrt-ieee.c: New file.
6168
6169         New module 'sqrt-ieee'.
6170         * modules/sqrt-ieee: New file.
6171
6172         Tests for module 'sqrtf-ieee'.
6173         * modules/sqrtf-ieee-tests: New file.
6174         * tests/test-sqrtf-ieee.c: New file.
6175         * tests/test-sqrt-ieee.h: New file.
6176
6177         New module 'sqrtf-ieee'.
6178         * modules/sqrtf-ieee: New file.
6179
6180 2012-02-27  Bruno Haible  <bruno@clisp.org>
6181
6182         remainderl-ieee: Work around test failure on OSF/1.
6183         * m4/remainderl-ieee.m4: New file.
6184         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
6185         present, test whether remainderl works with a zero second argument.
6186         Replace it if not.
6187         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
6188         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
6189         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
6190         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
6191         (Depends-on): Update conditions.
6192         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
6193         (Depends-on): Add remainder-ieee.
6194         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
6195         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
6196         module.
6197
6198         remainderf-ieee: Work around test failure on OSF/1.
6199         * m4/remainderf-ieee.m4: New file.
6200         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
6201         present, test whether remainderf works with a zero second argument.
6202         Replace it if not.
6203         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
6204         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
6205         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
6206         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
6207         (Depends-on): Update conditions.
6208         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
6209         (Depends-on): Add remainder-ieee.
6210         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
6211         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
6212         module.
6213
6214         remainder-ieee: Work around test failure on OSF/1.
6215         * m4/remainder-ieee.m4: New file.
6216         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
6217         present, test whether remainder works with a zero second argument.
6218         Replace it if not.
6219         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
6220         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
6221         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
6222         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
6223         (Depends-on): Update dependencies.
6224         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
6225         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
6226         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
6227
6228         Tests for module 'remainderl-ieee'.
6229         * modules/remainderl-ieee-tests: New file.
6230         * tests/test-remainderl-ieee.c: New file.
6231
6232         New module 'remainderl-ieee'.
6233         * modules/remainderl-ieee: New file.
6234
6235         Tests for module 'remainder-ieee'.
6236         * modules/remainder-ieee-tests: New file.
6237         * tests/test-remainder-ieee.c: New file.
6238
6239         New module 'remainder-ieee'.
6240         * modules/remainder-ieee: New file.
6241
6242         Tests for module 'remainderf-ieee'.
6243         * modules/remainderf-ieee-tests: New file.
6244         * tests/test-remainderf-ieee.c: New file.
6245         * tests/test-remainder-ieee.h: New file.
6246
6247         New module 'remainderf-ieee'.
6248         * modules/remainderf-ieee: New file.
6249
6250 2012-02-27  Bruno Haible  <bruno@clisp.org>
6251
6252         modff, modfl: Fix configure syntax error.
6253         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
6254         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6255
6256 2012-02-27  Bruno Haible  <bruno@clisp.org>
6257
6258         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
6259         * m4/fmodl-ieee.m4: New file.
6260         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
6261         whether fmodl works with zero arguments. Replace it if not.
6262         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
6263         (Depends-on): Add fmod-ieee.
6264         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
6265         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
6266
6267         fmodf-ieee: Work around test failure on OSF/1.
6268         * m4/fmodf-ieee.m4: New file.
6269         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
6270         whether fmodf works with zero arguments. Replace it if not.
6271         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
6272         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
6273         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
6274         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
6275         (Depends-on): Update dependencies.
6276         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
6277         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
6278         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
6279
6280         fmodf-ieee: Work around test failure on MSVC 9.
6281         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
6282         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
6283
6284         fmod-ieee: Work around test failures on OSF/1, mingw.
6285         * m4/fmod-ieee.m4: New file.
6286         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
6287         whether fmod works with zero arguments. Replace it if not.
6288         * lib/math.in.h (fmod): New declaration.
6289         * lib/fmod.c: New file.
6290         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
6291         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
6292         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
6293         * modules/fmod (Files): Add lib/fmod.c.
6294         (Depends-on): Add math, isinf, trunc, fma.
6295         (configure.ac): Arrange to compile lib/fmod.c if needed.
6296         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
6297         m4/signbit.m4.
6298         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
6299         * tests/test-math-c++.cc: Check the declaration of fmod.
6300         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
6301
6302         fmodl-ieee: Fix test failures.
6303         * lib/fmodl.c (fmodl): Treat Inf specially.
6304         * modules/fmodl (Depends-on): Add isinf.
6305
6306         Tests for module 'fmodl-ieee'.
6307         * modules/fmodl-ieee-tests: New file.
6308         * tests/test-fmodl-ieee.c: New file.
6309
6310         New module 'fmodl-ieee'.
6311         * modules/fmodl-ieee: New file.
6312
6313         Tests for module 'fmod-ieee'.
6314         * modules/fmod-ieee-tests: New file.
6315         * tests/test-fmod-ieee.c: New file.
6316
6317         New module 'fmod-ieee'.
6318         * modules/fmod-ieee: New file.
6319
6320         Tests for module 'fmodf-ieee'.
6321         * modules/fmodf-ieee-tests: New file.
6322         * tests/test-fmodf-ieee.c: New file.
6323         * tests/test-fmod-ieee.h: New file.
6324
6325         New module 'fmodf-ieee'.
6326         * modules/fmodf-ieee: New file.
6327
6328 2012-02-27  Bruno Haible  <bruno@clisp.org>
6329
6330         Tests for module 'rintl-ieee'.
6331         * modules/rintl-ieee-tests: New file.
6332         * tests/test-rintl-ieee.c: New file.
6333
6334         New module 'rintl-ieee'.
6335         * modules/rintl-ieee: New file.
6336
6337         Tests for module 'rint-ieee'.
6338         * modules/rint-ieee-tests: New file.
6339         * tests/test-rint-ieee.c: New file.
6340
6341         New module 'rint-ieee'.
6342         * modules/rint-ieee: New file.
6343
6344         Tests for module 'rintf-ieee'.
6345         * modules/rintf-ieee-tests: New file.
6346         * tests/test-rintf-ieee.c: New file.
6347         * tests/test-rint-ieee.h: New file.
6348
6349         New module 'rintf-ieee'.
6350         * modules/rintf-ieee: New file.
6351
6352 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
6353
6354         regex: re_search etc. should return -2 when memory exhausted
6355         This bug was uncovered when testing 'grep'.  Without the fix,
6356         re_search and friends return -1 when memory is exhausted, but -1
6357         means no match, and this causes grep to falsely report no-match
6358         instead of memory-exhaustion.  See
6359         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
6360         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
6361         trouble; this can occur if re_search_internal ran out of memory.
6362
6363 2012-02-26  Bruno Haible  <bruno@clisp.org>
6364
6365         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
6366         * m4/modfl-ieee.m4: New file.
6367         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
6368         whether modfl works with Inf. Replace it if not.
6369         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
6370         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
6371         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
6372         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
6373         (Depends-on): Update dependencies.
6374         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
6375         m4/signbit.m4.
6376         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
6377         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
6378
6379         modfl-ieee: Fix dependencies.
6380         * modules/modfl-ieee (Depends-on): Add modf-ieee.
6381
6382         modfl-ieee: Fix test failures.
6383         * lib/modfl.c (modfl): Treat NaN and Inf specially.
6384         * modules/modfl (Depends-on): Add isfinite, isinf.
6385
6386         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
6387         * m4/modff-ieee.m4: New file.
6388         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
6389         whether modff works with NaN and Inf. Replace it if not.
6390         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
6391         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
6392         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
6393         * modules/modff (configure.ac): Consider REPLACE_MODFF.
6394         (Depends-on): Update dependencies.
6395         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
6396         m4/signbit.m4.
6397         (Depends-on): Add modf-ieee.
6398         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
6399         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
6400
6401         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
6402         * m4/modf-ieee.m4: New file.
6403         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
6404         whether modf works with NaN and Inf. Replace it if not.
6405         * lib/math.in.h (modf): New declaration.
6406         * lib/modf.c: New file.
6407         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
6408         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
6409         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
6410         * modules/modf (Files): Add lib/modf.c.
6411         (Depends-on): Add math, isfinite, trunc, isinf.
6412         (configure.ac): Addrange to compile lib/modf.c if needed.
6413         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
6414         m4/signbit.m4.
6415         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
6416         * tests/test-math-c++.cc: Check the declaration of modf.
6417         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
6418
6419         Tests for module 'modfl-ieee'.
6420         * modules/modfl-ieee-tests: New file.
6421         * tests/test-modfl-ieee.c: New file.
6422
6423         New module 'modfl-ieee'.
6424         * modules/modfl-ieee: New file.
6425
6426         Tests for module 'modf-ieee'.
6427         * modules/modf-ieee-tests: New file.
6428         * tests/test-modf-ieee.c: New file.
6429
6430         New module 'modf-ieee'.
6431         * modules/modf-ieee: New file.
6432
6433         Tests for module 'modff-ieee'.
6434         * modules/modff-ieee-tests: New file.
6435         * tests/test-modff-ieee.c: New file.
6436         * tests/test-modf-ieee.h: New file.
6437
6438         New module 'modff-ieee'.
6439         * modules/modff-ieee: New file.
6440
6441 2012-02-26  Bruno Haible  <bruno@clisp.org>
6442
6443         Tests for module 'fabsl-ieee'.
6444         * modules/fabsl-ieee-tests: New file.
6445         * tests/test-fabsl-ieee.c: New file.
6446
6447         New module 'fabsl-ieee'.
6448         * modules/fabsl-ieee: New file.
6449
6450         Tests for module 'fabs-ieee'.
6451         * modules/fabs-ieee-tests: New file.
6452         * tests/test-fabs-ieee.c: New file.
6453
6454         New module 'fabs-ieee'.
6455         * modules/fabs-ieee: New file.
6456
6457         Tests for module 'fabsf-ieee'.
6458         * modules/fabsf-ieee-tests: New file.
6459         * tests/test-fabsf-ieee.c: New file.
6460         * tests/test-fabs-ieee.h: New file.
6461
6462         New module 'fabsf-ieee'.
6463         * modules/fabsf-ieee: New file.
6464
6465 2012-02-26  Bruno Haible  <bruno@clisp.org>
6466
6467         Tests for module 'fmal-ieee'.
6468         * modules/fmal-ieee-tests: New file.
6469         * tests/test-fmal-ieee.c: New file.
6470
6471         New module 'fmal-ieee'.
6472         * modules/fmal-ieee: New file.
6473
6474         Tests for module 'fma-ieee'.
6475         * modules/fma-ieee-tests: New file.
6476         * tests/test-fma-ieee.c: New file.
6477
6478         New module 'fma-ieee'.
6479         * modules/fma-ieee: New file.
6480
6481         Tests for module 'fmaf-ieee'.
6482         * modules/fmaf-ieee-tests: New file.
6483         * tests/test-fmaf-ieee.c: New file.
6484         * tests/test-fma-ieee.h: New file.
6485
6486         New module 'fmaf-ieee'.
6487         * modules/fmaf-ieee: New file.
6488
6489 2012-02-26  Bruno Haible  <bruno@clisp.org>
6490
6491         Tests for module 'ldexpl-ieee'.
6492         * modules/ldexpl-ieee-tests: New file.
6493         * tests/test-ldexpl-ieee.c: New file.
6494
6495         New module 'ldexpl-ieee'.
6496         * modules/ldexpl-ieee: New file.
6497
6498         Tests for module 'ldexp-ieee'.
6499         * modules/ldexp-ieee-tests: New file.
6500         * tests/test-ldexp-ieee.c: New file.
6501
6502         New module 'ldexp-ieee'.
6503         * modules/ldexp-ieee: New file.
6504
6505         Tests for module 'ldexpf-ieee'.
6506         * modules/ldexpf-ieee-tests: New file.
6507         * tests/test-ldexpf-ieee.c: New file.
6508         * tests/test-ldexp-ieee.h: New file.
6509
6510         New module 'ldexpf-ieee'.
6511         * modules/ldexpf-ieee: New file.
6512
6513 2012-02-26  Bruno Haible  <bruno@clisp.org>
6514
6515         Refactor frexp*-ieee tests.
6516         * tests/test-frexp-ieee.h: New file.
6517         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
6518         (main): Just call test_function.
6519         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
6520         (main): Just call test_function.
6521         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
6522         (main): Just call test_function.
6523         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
6524         * modules/frexp-ieee-tests (Files): Likewise.
6525         * modules/frexpl-ieee-tests (Files): Likewise.
6526
6527         Tests for module 'frexpl-ieee'.
6528         * modules/frexpl-ieee-tests: New file.
6529         * tests/test-frexpl-ieee.c: New file.
6530
6531         New module 'frexpl-ieee'.
6532         * modules/frexpl-ieee: New file.
6533
6534         Tests for module 'frexp-ieee'.
6535         * modules/frexp-ieee-tests: New file.
6536         * tests/test-frexp-ieee.c: New file.
6537
6538         New module 'frexp-ieee'.
6539         * modules/frexp-ieee: New file.
6540
6541         Tests for module 'frexpf-ieee'.
6542         * modules/frexpf-ieee-tests: New file.
6543         * tests/test-frexpf-ieee.c: New file.
6544
6545         New module 'frexpf-ieee'.
6546         * modules/frexpf-ieee: New file.
6547
6548 2012-02-26  Bruno Haible  <bruno@clisp.org>
6549
6550         roundl-ieee tests: More tests.
6551         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6552         (main): Add tests for [MX] shaded specification in POSIX.
6553         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6554         (Depends-on): Add isnanl-nolibm.
6555
6556         round-ieee tests: More tests.
6557         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6558         (main): Add tests for [MX] shaded specification in POSIX.
6559         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6560         (Depends-on): Add isnand-nolibm.
6561
6562         roundf-ieee tests: More tests.
6563         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6564         (main): Add tests for [MX] shaded specification in POSIX.
6565         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6566         (Depends-on): Add isnanf-nolibm.
6567
6568         truncl-ieee tests: More tests.
6569         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6570         (main): Add tests for [MX] shaded specification in POSIX.
6571         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6572         (Depends-on): Add isnanl-nolibm.
6573
6574         trunc-ieee tests: More tests.
6575         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6576         (main): Add tests for [MX] shaded specification in POSIX.
6577         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6578         (Depends-on): Add isnand-nolibm.
6579
6580         truncf-ieee tests: More tests.
6581         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6582         (main): Add tests for [MX] shaded specification in POSIX.
6583         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6584         (Depends-on): Add isnanf-nolibm.
6585
6586         ceill-ieee tests: More tests.
6587         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6588         (main): Add tests for [MX] shaded specification in POSIX.
6589         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6590         (Depends-on): Add isnanl-nolibm.
6591
6592         ceil-ieee tests: More tests.
6593         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6594         (main): Add tests for [MX] shaded specification in POSIX.
6595         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6596         (Depends-on): Add isnand-nolibm.
6597
6598         ceilf-ieee tests: More tests.
6599         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6600         (main): Add tests for [MX] shaded specification in POSIX.
6601         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6602         (Depends-on): Add isnanf-nolibm.
6603
6604         floorl-ieee tests: More tests.
6605         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6606         (main): Add tests for [MX] shaded specification in POSIX.
6607         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6608         (Depends-on): Add isnanl-nolibm.
6609
6610         floor-ieee tests: More tests.
6611         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6612         (main): Add tests for [MX] shaded specification in POSIX.
6613         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6614         (Depends-on): Add isnand-nolibm.
6615
6616         floorf-ieee tests: More tests.
6617         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6618         (main): Add tests for [MX] shaded specification in POSIX.
6619         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6620         (Depends-on): Add isnanf-nolibm.
6621
6622 2012-02-26  Bruno Haible  <bruno@clisp.org>
6623
6624         fpieee: More comments.
6625         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
6626
6627 2012-02-25  Bruno Haible  <bruno@clisp.org>
6628
6629         Tests for module 'log10l'.
6630         * modules/log10l-tests: New file.
6631         * tests/test-log10l.c: New file.
6632         * tests/test-math-c++.cc: Check the declaration of log10l.
6633
6634         New module 'log10l'.
6635         * lib/math.in.h (log10l): New declaration.
6636         * lib/log10l.c: New file.
6637         * m4/log10l.m4: New file.
6638         * modules/log10l: New file.
6639         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
6640         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
6641         HAVE_DECL_LOG10L.
6642         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
6643         HAVE_DECL_LOG10L.
6644         * doc/posix-functions/log10l.texi: Mention the new module.
6645
6646 2012-02-25  Bruno Haible  <bruno@clisp.org>
6647
6648         fmodl, remainder*: Avoid wrong results due to rounding errors.
6649         * lib/fmodl.c (fmodl): Correct the result if it is not within the
6650         expected bounds.
6651         * lib/remainderf.c (remainderf): Likewise.
6652         * lib/remainder.c (remainder): Likewise.
6653         * lib/remainderl.c (remainderl): Likewise.
6654
6655 2012-02-25  Bruno Haible  <bruno@clisp.org>
6656
6657         Tests for module 'remainderl'.
6658         * modules/remainderl-tests: New file.
6659         * tests/test-remainderl.c: New file.
6660         * tests/test-math-c++.cc: Check the declaration of remainderl.
6661
6662         New module 'remainderl'.
6663         * lib/math.in.h (remainderl): New declaration.
6664         * lib/remainderl.c: New file.
6665         * m4/remainderl.m4: New file.
6666         * modules/remainderl: New file.
6667         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
6668         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
6669         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
6670         HAVE_REMAINDERL.
6671         * doc/posix-functions/remainderl.texi: Mention the new module.
6672
6673 2012-02-25  Bruno Haible  <bruno@clisp.org>
6674
6675         Tests for module 'remainderf'.
6676         * modules/remainderf-tests: New file.
6677         * tests/test-remainderf.c: New file.
6678         * tests/test-math-c++.cc: Check the declaration of remainderf.
6679
6680         New module 'remainderf'.
6681         * lib/math.in.h (remainderf): New declaration.
6682         * lib/remainderf.c: New file.
6683         * m4/remainderf.m4: New file.
6684         * modules/remainderf: New file.
6685         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
6686         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
6687         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
6688         HAVE_REMAINDERF.
6689         * doc/posix-functions/remainderf.texi: Mention the new module.
6690
6691 2012-02-25  Bruno Haible  <bruno@clisp.org>
6692
6693         remainder: Support for MSVC.
6694         * lib/math.in.h (remainder): New declaration.
6695         * lib/remainder.c: New file.
6696         * m4/remainder.m4: New file.
6697         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
6698         (Depends-on): Add math, round, fma.
6699         (configure.ac): Use results of gl_FUNC_REMAINDER.
6700         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
6701         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
6702         HAVE_DECL_REMAINDER.
6703         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
6704         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
6705         * tests/test-math-c++.cc: Check the declaration of remainder.
6706         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
6707         problems are fixed.
6708
6709 2012-02-25  Bruno Haible  <bruno@clisp.org>
6710
6711         Tests for module 'fmodl'.
6712         * modules/fmodl-tests: New file.
6713         * tests/test-fmodl.c: New file.
6714         * tests/test-math-c++.cc: Check the declaration of fmodl.
6715
6716         New module 'fmodl'.
6717         * lib/math.in.h (fmodl): New declaration.
6718         * lib/fmodl.c: New file.
6719         * m4/fmodl.m4: New file.
6720         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
6721         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
6722         REPLACE_FMODL.
6723         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
6724         REPLACE_FMODL.
6725         * modules/fmodl: New file.
6726         * doc/posix-functions/fmodl.texi: Mention the new module.
6727
6728 2012-02-25  Bruno Haible  <bruno@clisp.org>
6729
6730         Tests for module 'modfl'.
6731         * modules/modfl-tests: New file.
6732         * tests/test-modfl.c: New file.
6733         * tests/test-math-c++.cc: Check the declaration of modfl.
6734
6735         New module 'modfl'.
6736         * lib/math.in.h (modfl): New declaration.
6737         * lib/modfl.c: New file.
6738         * m4/modfl.m4: New file.
6739         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
6740         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
6741         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
6742         * modules/modfl: New file.
6743         * doc/posix-functions/modfl.texi: Mention the new module.
6744
6745 2012-02-25  Bruno Haible  <bruno@clisp.org>
6746
6747         Tests for module 'fabsl'.
6748         * modules/fabsl-tests: New file.
6749         * tests/test-fabsl.c: New file.
6750         * tests/test-math-c++.cc: Check the declaration of fabsl.
6751
6752         New module 'fabsl'.
6753         * lib/math.in.h (fabsl): New declaration.
6754         * lib/fabsl.c: New file.
6755         * m4/fabsl.m4: New file.
6756         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
6757         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
6758         REPLACE_FABSL.
6759         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
6760         REPLACE_FABSL.
6761         * modules/fabsl: New file.
6762         * doc/posix-functions/fabsl.texi: Mention the new module.
6763
6764 2012-02-25  Bruno Haible  <bruno@clisp.org>
6765
6766         fabs tests: More tests.
6767         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
6768         (zero): New variable.
6769         (main): Add tests for signed zero.
6770         * modules/fabs-tests (Files): Add tests/minus-zero.h.
6771
6772         fabsf tests: More tests.
6773         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
6774         (zero): New variable.
6775         (main): Add tests for signed zero.
6776         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
6777
6778 2012-02-24  Bruno Haible  <bruno@clisp.org>
6779
6780         atanl: Provide function definition on MSVC.
6781         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
6782         function pointer.
6783         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
6784
6785 2012-02-24  Bruno Haible  <bruno@clisp.org>
6786
6787         acosl: Provide function definition on MSVC.
6788         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
6789         function pointer.
6790         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
6791
6792 2012-02-24  Bruno Haible  <bruno@clisp.org>
6793
6794         asinl: Provide function definition on MSVC.
6795         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
6796         function pointer.
6797         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
6798
6799 2012-02-24  Bruno Haible  <bruno@clisp.org>
6800
6801         tanl: Provide function definition on MSVC.
6802         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
6803         function pointer.
6804         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
6805
6806 2012-02-24  Bruno Haible  <bruno@clisp.org>
6807
6808         cosl: Provide function definition on MSVC.
6809         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
6810         function pointer.
6811         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
6812
6813 2012-02-24  Bruno Haible  <bruno@clisp.org>
6814
6815         sinl: Provide function definition on MSVC.
6816         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
6817         function pointer.
6818         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
6819
6820 2012-02-24  Bruno Haible  <bruno@clisp.org>
6821
6822         logl: Provide function definition on MSVC.
6823         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
6824         function pointer.
6825         * lib/math.in.h (logl): Undefine if it does not exist as a function.
6826
6827 2012-02-24  Bruno Haible  <bruno@clisp.org>
6828
6829         expl: Provide function definition on MSVC.
6830         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
6831         function pointer.
6832         * lib/math.in.h (expl): Undefine if it does not exist as a function.
6833
6834 2012-02-24  Bruno Haible  <bruno@clisp.org>
6835
6836         sqrtl: Provide function definition on MSVC.
6837         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
6838         a function pointer.
6839         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
6840
6841 2012-02-24  Bruno Haible  <bruno@clisp.org>
6842
6843         ceill: Provide function definition on MSVC.
6844         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
6845         used as a function pointer.
6846         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
6847
6848 2012-02-24  Bruno Haible  <bruno@clisp.org>
6849
6850         floorl: Provide function definition on MSVC.
6851         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
6852         used as a function pointer.
6853         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
6854
6855 2012-02-24  Bruno Haible  <bruno@clisp.org>
6856
6857         ceilf: Provide function definition on MSVC.
6858         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
6859         used as a function pointer.
6860         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
6861
6862 2012-02-24  Bruno Haible  <bruno@clisp.org>
6863
6864         floorf: Provide function definition on MSVC.
6865         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
6866         used as a function pointer.
6867         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
6868
6869 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6870
6871         stdnoreturn: new module
6872         This implements a replacement for C11's <stdnoreturn.h>.
6873         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
6874         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
6875         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6876         * tests/test-stdnoreturn.c: New files.
6877
6878 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
6879
6880         regex: fix false multibyte matches in some regular expressions
6881         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
6882         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
6883         * lib/regex_internal.c (re_string_skip_chars):
6884         Fix miscomputation of remain_len that may cause incomplete
6885         multi-byte character and false match.
6886
6887 2012-02-24  Jim Meyering  <meyering@redhat.com>
6888
6889         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
6890         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
6891         uses with "==" *before* the call, e.g., 0 == strcmp (...)
6892         Remove now-unnecessary str''cmp obfuscation.
6893         Suggested by Akim Demaille.
6894
6895 2012-02-24  Bruno Haible  <bruno@clisp.org>
6896
6897         streq: Rename macro.
6898         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
6899         * NEWS: Mention the change.
6900         * lib/mbrtowc.c (mbrtowc): Update.
6901         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
6902         * lib/wcwidth.c (wcwidth): Update.
6903         Suggested by Akim Demaille and Jim Meyering.
6904
6905 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
6906
6907         regex: fix typo in definition of MIN
6908         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
6909         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
6910
6911 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6912             Bruno Haible  <bruno@clisp.org>
6913
6914         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
6915         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
6916         entries into a stack-allocated buffer directly.
6917         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
6918
6919 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6920             Bruno Haible  <bruno@clisp.org>
6921
6922         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
6923
6924          - There were several instances of this pattern:
6925
6926              for (;;) {
6927                n = acl (f, GETACLCNT, 0, NULL);
6928                [ allocate an array A of size N ]
6929                if (acl (f, GETACL, n, a) == n)
6930                  break;
6931              }
6932
6933            This loop might never terminate if some other process is constantly
6934            manipulating the file's ACL.  The loop should be rewritten to
6935            terminate.
6936
6937          - The acl (... GETACLNT ...) call is merely an optimization; its value
6938            is merely a hint as to how big to make the array.  A better
6939            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
6940            and just guess a reasonably-big size, growing the size and trying
6941            again if it's not large enough.  This guarantees termination, and
6942            saves a system call.
6943
6944         * lib/acl-internal.h: Include <limits.h>.
6945         (MIN, SIZE_MAX): New macros.
6946         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
6947         a stack-allocated buffer, and use malloc if it does not fit. Don't
6948         use GETACLCNT.
6949         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6950
6951 2012-02-19  Bruno Haible  <bruno@clisp.org>
6952
6953         acl: Fix endless loop on Solaris with vxfs.
6954         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
6955         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
6956         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6957         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
6958         * tests/test-sameacls.c (main)[Solaris]: Likewise.
6959         Reported by Bill Jones in
6960         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
6961
6962 2012-02-19  Bruno Haible  <bruno@clisp.org>
6963
6964         acl: Fix copy-acl test failure on Solaris 11 2011-11.
6965         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
6966         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
6967         that this function returns 0 in some more cases.
6968
6969 2012-02-19  Bruno Haible  <bruno@clisp.org>
6970
6971         acl: Update doc references.
6972         * doc/acl-resources.txt: Update links to Solaris documentation.
6973
6974 2012-02-19  Bruno Haible  <bruno@clisp.org>
6975
6976         Fix test failure in many locales on Solaris 11.
6977         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
6978         'tr' arguments.
6979         * tests/test-pipe-filter-ii1.c (main): Likewise.
6980         * build-aux/bootstrap (check_versions): Run 'tr' command with range
6981         expressions in the C locale.
6982         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6983         * m4/host-os.m4 (gl_HOST_OS): Likewise.
6984
6985 2012-02-19  Bruno Haible  <bruno@clisp.org>
6986
6987         gnulib-tool: Improve usage message.
6988         * gnulib-tool (func_usage): Move doc of --help and --version to the
6989         section "Operation modes".
6990
6991 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
6992
6993         README-release: make it easier to execute commands
6994         * top/README-release: break commands out on to separate lines.
6995
6996 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
6997
6998         GNUmakefile: simplify detection of unconfigured trees
6999         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
7000         whether the tree make is being run from is already configured or
7001         not.  Related simplifications.
7002
7003 2012-02-13  Simon Josefsson  <simon@josefsson.org>
7004
7005         * gnulib-tool (func_usage): Document --help and --version.
7006
7007 2012-02-11  Jim Meyering  <meyering@redhat.com>
7008
7009         bootstrap: don't exit 0 upon gnulib-tool failure
7010         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
7011         its exit status, not 0.
7012
7013 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
7014
7015         README-release: various improvements
7016         * top/README-release: Give a command to push changes for the
7017         release.  Add "distcheck" to list of other pre-release checks.
7018         Fix instance of "make stable" which should be "make TYPE".
7019
7020 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7021
7022         maint: replace FSF snail-mail addresses with URLs
7023         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
7024         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
7025         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
7026         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
7027         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
7028         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
7029         * lib/check-version.c, lib/check-version.h, lib/config.charset:
7030         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
7031         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
7032         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
7033         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
7034         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
7035         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
7036         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
7037         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
7038         * lib/glthread/thread.c, lib/glthread/thread.h:
7039         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
7040         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
7041         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
7042         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
7043         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
7044         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
7045         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
7046         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
7047         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
7048         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
7049         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
7050         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
7051         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
7052         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
7053         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
7054         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
7055         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
7056         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
7057         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
7058         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
7059         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
7060         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
7061         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
7062         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
7063         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
7064         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
7065         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
7066         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
7067         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
7068         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
7069         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
7070         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
7071         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
7072         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
7073         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
7074         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
7075         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
7076         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
7077         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
7078         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
7079         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
7080         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
7081         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
7082         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
7083         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
7084         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
7085         * tests/test-poll.c, tests/test-quotearg-simple.c:
7086         * tests/test-quotearg.c, tests/test-quotearg.h:
7087         * tests/test-round-ieee.c, tests/test-round1.c:
7088         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
7089         * tests/test-roundl-ieee.c, tests/test-roundl.c:
7090         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
7091         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
7092         * tests/test-strerror.c, tests/test-strerror_r.c:
7093         * tests/test-strsignal.c, tests/test-strverscmp.c:
7094         * tests/test-xmemdup0.c:
7095         Replace FSF snail mail addresses with URLs, as per GNU coding
7096         standards.  See glibc bug
7097         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
7098
7099 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
7100
7101         README-release: capitalize a word and split a line
7102         * top/README-release: Fix punctuation and spacing.
7103
7104 2012-02-08  Akim Demaille  <demaille@gostai.com>
7105
7106         fatal-signal: use C prototypes (with explicit void).
7107         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
7108         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
7109
7110 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7111
7112         regex: spelling fix
7113         * lib/regexec.c: spelling fix
7114
7115         regex: rely on stdint.h for SIZE_MAX
7116         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
7117
7118 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7119
7120         regex: merge glibc changes
7121
7122         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
7123         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
7124         (init_word_char): Work even if bitset words are not exactly 32 or
7125         64 bits wide.  Don't assume there are no padding bits.
7126         * lib/regex.c [_LIBC]: Do not include <config.h>.
7127         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
7128         and -Wtype-limits.
7129         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
7130         needless disagreement with glibc.  All uses changed.  Define it to
7131         1 only if _GNU_SOURCE, to match glibc.
7132         (_REG_RM_NAME): Remove; no longer needed, since the names in
7133         question are now all protected by __USE_GNU.
7134         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
7135         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
7136         * lib/regex_internal.h (MIN): New macro.
7137
7138         2012-01-03 Ulrich Drepper <drepper@gmail.com>
7139         * lib/regcomp.c (init_word_char): Optimize regex a bit.
7140
7141         2011-12-30 Jakub Jelinek <jakub@redhat.com>
7142         * lib/regex_internal.c (re_string_fetch_byte_case):
7143         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
7144         is miscompiled, and it turns out it is because of an incorrect
7145         attribute on re_string_fetch_byte_case.  Unlike
7146         re_string_peek_byte_case, this one is really not pure, it modifies
7147         memory (increments pstr->cur_idx), and with the pure attribute GCC
7148         assumed it doesn't and it cached the presumed value of
7149         regexp->cur_idx in a variable across the
7150          for (;; ++i)
7151            {
7152              if (i >= BRACKET_NAME_BUF_SIZE)
7153                return REG_EBRACK;
7154              if (token->type == OP_OPEN_CHAR_CLASS)
7155                ch = re_string_fetch_byte_case (regexp);
7156              else
7157                ch = re_string_fetch_byte (regexp);
7158              if (re_string_eoi(regexp))
7159                return REG_EBRACK;
7160              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
7161                break;
7162              elem->opr.name[i] = ch;
7163            }
7164
7165         2011-11-29 Andreas Schwab <schwab@redhat.com>
7166         * lib/regcomp.c (build_equiv_class):
7167         Fix access after end of search string in regex matcher.
7168
7169         2011-11-12 Ulrich Drepper <drepper@redhat.com>
7170         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
7171
7172         2011-10-12 Ulrich Drepper <drepper@redhat.com>
7173         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
7174
7175         2011-10-11 Ulrich Drepper <drepper@redhat.com>
7176         * lib/regcomp.c (parse_branch, parse_sub_exp):
7177         More regex memory leak fixes and tests.
7178         (parse_sub_exp, parse_bracket_exp):
7179         Fix memory leak for some invalid regular expressions.
7180
7181         2011-05-28 Ulrich Drepper <drepper@gmail.com>
7182         * lib/regex_internal.c, lib/regexec.c:
7183         Fix unnecessary overallocation due to incomplete character.  When
7184         incomplete characters are found at the end of a string the code
7185         ran amok and allocated lots of memory.  Stricter limits are now in
7186         place.
7187
7188         2011-05-20 Reuben Thomas <rrt@sc3d.org>
7189         * lib/regex.h: Update documentation.
7190
7191         2011-05-16 Aharon Robbins <arnold@skeeve.com>
7192         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
7193
7194         2010-05-05 Andreas Schwab <schwab@redhat.com>
7195         * lib/regexec.c (find_collation_sequence_value):
7196         Fix lookup of collation sequence value during regexp matching.
7197
7198         2010-01-22 Ulrich Drepper <drepper@redhat.com>
7199         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
7200
7201         2008-01-16 Ulrich Drepper <drepper@redhat.com>
7202         * lib/regex.h: Cleanup namespace.
7203
7204         2007-11-26 Ulrich Drepper <drepper@redhat.com>
7205         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
7206
7207         2007-08-26 Ulrich Drepper <drepper@redhat.com>
7208         * lib/regex_internal.h: Prevent some declarations and definitions
7209         to be seen when used in tests.
7210
7211         2005-05-06 Ulrich Drepper <drepper@redhat.com>
7212         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
7213         __libc_lock_* macros if not _LIBC.
7214         (struct re_dfa_t): Add lock.
7215
7216 2012-02-07  Eric Blake  <eblake@redhat.com>
7217
7218         maint.mk: also prohibit lower-case @var@
7219         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
7220         lower case, like @top_srcdir@.
7221
7222 2012-02-04  Eric Blake  <eblake@redhat.com>
7223
7224         canonicalize: avoid uninitialized memory use
7225         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
7226         random '/' left in dest.
7227         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
7228
7229 2012-02-04  Bruno Haible  <bruno@clisp.org>
7230
7231         isatty: Fix test failure of ptsname_r on native Windows.
7232         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
7233         and don't set errno.
7234         (isatty): Test first whether fd is valid. Set errno when returning 0.
7235
7236 2012-02-04  Bruno Haible  <bruno@clisp.org>
7237
7238         spawn-pipe tests: Fix a NULL program name in a diagnostic.
7239         * tests/test-spawn-pipe-main.c: Include progname.h.
7240         (main): Invoke set_program_name.
7241         * modules/spawn-pipe-tests (Depends-on): Add progname.
7242
7243         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
7244         * tests/test-nonblocking-socket-main.c: Include progname.h.
7245         (main): Invoke set_program_name.
7246         * modules/nonblocking-socket-tests (Depends-on): Add progname.
7247
7248         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
7249         * tests/test-nonblocking-pipe-main.c: Include progname.h.
7250         (main): Invoke set_program_name.
7251         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
7252
7253 2012-02-04  Eric Blake  <eblake@redhat.com>
7254
7255         canonicalize-lgpl: fix // handling
7256         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
7257
7258         canonicalize: fix // handling
7259         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
7260         /// to //, since only // is special.
7261
7262 2012-02-04  Bruno Haible  <bruno@clisp.org>
7263
7264         ioctl: Fix test failure on native Windows.
7265         * lib/ioctl.c: Include msvc-nothrow.h.
7266         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
7267
7268 2012-02-04  Bruno Haible  <bruno@clisp.org>
7269
7270         fsync: Avoid test failure on native Windows.
7271         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
7272         read-only.
7273
7274 2012-02-04  Bruno Haible  <bruno@clisp.org>
7275
7276         sys_select: Avoid syntax error on OpenBSD 5.0.
7277         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
7278         currently being included, just include the system's <sys/select.h>.
7279
7280 2012-02-04  Bruno Haible  <bruno@clisp.org>
7281
7282         sys_select: Avoid syntax error on OpenBSD 5.0.
7283         * lib/sys_select.in.h: Include <signal.h> only after the include_next
7284         <sys/select.h>, not before.
7285         Reported by Jiri B <jirib@devio.us>.
7286
7287 2012-02-04  Bruno Haible  <bruno@clisp.org>
7288
7289         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
7290         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
7291         global variables.
7292         * tests/test-get-rusage-data.c (main): Likewise.
7293         Reported by Jim Meyering.
7294
7295 2012-02-04  Bruno Haible  <bruno@clisp.org>
7296
7297         stdioext: Fix last commit.
7298         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
7299
7300 2012-02-03  Bruno Haible  <bruno@clisp.org>
7301
7302         stdioext: Add tentative support for Plan9.
7303         * lib/stdio-impl.h: Include <errno.h>.
7304         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
7305         * lib/freadable.c (freadable): Likewise.
7306         * lib/fwritable.c (fwritable): Likewise.
7307         * lib/fbufmode.c (fbufmode): Likewise.
7308         * lib/freading.c (freading): Likewise.
7309         * lib/fwriting.c (fwriting): Likewise.
7310         * lib/freadptr.c (freadptr): Likewise.
7311         * lib/freadseek.c (freadptrinc): Likewise.
7312         * lib/freadahead.c (freadahead): Likewise.
7313         * lib/fpurge.c (fpurge): Likewise.
7314         * lib/fseeko.c (rpl_fseeko): Likewise.
7315         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
7316         Reported by Jens Staal <staal1978@gmail.com>.
7317
7318 2012-02-02  Jim Meyering  <meyering@redhat.com>
7319
7320         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
7321         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
7322         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
7323         not even to try to add the attribute.  Instead, add a pragma to suppress
7324         the suggestion/warning.
7325
7326 2012-01-31  Karl Berry  <karl@gnu.org>
7327
7328         setstate doc: typo.
7329         * doc/posix-functions/setstate.texi (setstate): { not (.
7330
7331 2012-01-31  Bruno Haible  <bruno@clisp.org>
7332
7333         popen: Make more robust on Windows.
7334         * lib/popen.c: On native Windows, use the _popen based code even if
7335         HAVE_POPEN is set.
7336         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
7337         environment variable on native Windows.
7338
7339 2012-01-30  Bruno Haible  <bruno@clisp.org>
7340
7341         pclose: Fix typo.
7342         * lib/stdio.in.h (pclose): Fix typo in warning message.
7343
7344 2012-01-30  Bruno Haible  <bruno@clisp.org>
7345
7346         doc about getlogin_r, setstate.
7347         * doc/posix-functions/getlogin_r.texi: List the incompatible
7348         declaration problem under "not fixed by gnulib".
7349         * doc/posix-functions/setstate.texi: Mention incompatible declaration
7350         problem on Solaris 11 and other platforms.
7351
7352 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
7353             Bruno Haible  <bruno@clisp.org>
7354
7355         poll tests: Make test more robust.
7356         * tests/test-poll.c: Include macros.h.
7357         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
7358         return value of various I/O operations.
7359         * modules/poll-tests (Files): Add tests/macros.h.
7360
7361 2012-01-30  Bruno Haible  <bruno@clisp.org>
7362
7363         sys_stat: Fix support for mingw64 and MSVC.
7364         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
7365         header files already do it.
7366         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
7367         stat itself.
7368         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7369
7370 2012-01-30  Bruno Haible  <bruno@clisp.org>
7371
7372         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
7373         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
7374         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
7375
7376 2012-01-29  Bruno Haible  <bruno@clisp.org>
7377
7378         quotearg: Fix test failure on MacOS X 10.5.
7379         * tests/test-quotearg-simple.c: Include localcharset.h.
7380         (main): If the locale encoding is not ASCII, bypass the tests of
7381         locale_quoting_style and clocale_quoting_style.
7382         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
7383
7384 2012-01-29  Jim Meyering  <meyering@redhat.com>
7385
7386         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
7387         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
7388         detect uses of canonicalize_file_name.
7389
7390 2012-01-28  Bruno Haible  <bruno@clisp.org>
7391
7392         test-framework-sh: Fix test failure with AIX 7.1 diff.
7393         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
7394         in column 1, like 'diff -c' does.
7395         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
7396         whether 'diff -u' is used. Instead, test whether the output contains
7397         some '@' character.
7398
7399 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7400
7401         strtoimax: eliminate need for stdint.h, inttypes.h checks
7402         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
7403         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
7404         the prerequisites for a recently-introduced strtoimax test.
7405         I guess this might cause strtoimax to be replaced when not
7406         strictly necessary on older hosts, but this shouldn't introduce
7407         any bugs and it should make Emacs 'configure' faster on typical
7408         modern hosts.  Problem discovered when importing the latest gnulib
7409         to an Emacs test version.
7410         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
7411
7412 2012-01-28  Bruno Haible  <bruno@clisp.org>
7413
7414         sys_time: Override 'struct timeval' on some native Windows platforms.
7415         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
7416         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
7417         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
7418         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
7419         needs to be overridden.
7420         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
7421         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
7422         * tests/test-sys_select.c: Check that the tv_sec member has the same
7423         size as a 'time_t'.
7424         * tests/test-sys_time.c: Likewise.
7425         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
7426         is set, set also REPLACE_GETTIMEOFDAY.
7427         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
7428         convert the resulting 'struct timeval' before returning.
7429         * lib/select.c: Include <sys/time.h>.
7430         (select, timeval): Undefine at the right place.
7431         * modules/select (Depends-on): Add sys_time.
7432         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
7433         some Windows platforms.
7434         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7435
7436 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7437
7438         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
7439         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
7440         an integer.
7441         * lib/fcntl.c (dupfd): Likewise.
7442         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
7443
7444 2012-01-28  Bruno Haible  <bruno@clisp.org>
7445
7446         fcntl: Avoid compilation error on native Windows.
7447         * modules/fcntl (Depends-on): Add 'close'.
7448
7449 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7450
7451         select, poll, isatty: Avoid warnings on x86_64 mingw64.
7452         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
7453         pointer to an integer.
7454         * lib/poll.c (IsConsoleHandle): Likewise.
7455         * lib/isatty.c (IsConsoleHandle): Likewise.
7456
7457 2012-01-28  Jim Meyering  <meyering@redhat.com>
7458
7459         doc: clarify README-release
7460         * top/README-release: Clarify: you should make a point to have
7461         the latest stable versions of build tools in your PATH, and the
7462         reference to buildreq is solely for its list of tool names, not
7463         for its minimal-functional version numbers.
7464         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
7465
7466         maint.mk: use more readable (yet functionally equivalent) quoting
7467         It is common to quote a single quote in a single quoted string like
7468         this:  '...'\''...'.  Unless you know the idiom, that looks like
7469         gibberish, so prefer to double-quote the string when possible.
7470         Then you can use a more readable, lone single quote: "...'..."
7471         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
7472         "don't" is more readable than the equivalent 'don'\''t'.
7473         (sc_cast_of_x_alloc_return_value): Likewise.
7474         (sc_cast_of_alloca_return_value): Likewise.
7475         (sc_makefile_path_separator_check): Similar: use ":" in '...',
7476         rather than '\'':'\''.
7477
7478 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7479
7480         stdalign: relax _Alignof and tighten _Alignas test
7481         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
7482         as it was too strict: alignof must divide offsetof, but it need
7483         not equal offsetof.  Inspired by Joseph S. Myers's comment
7484         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
7485         Conversely, tighten the _Alignas test a bit, as the resulting
7486         alignment must be exactly 8.
7487
7488 2012-01-27  Bruno Haible  <bruno@clisp.org>
7489
7490         stdalign: Document the last change.
7491         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
7492
7493 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7494
7495         stdalign: check that alignof and offsetof are consistent
7496         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
7497         Problem reported for gnulib by Richard W.M. Jones in
7498         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
7499
7500 2012-01-27  Jim Meyering  <meyering@redhat.com>
7501
7502         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
7503         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
7504         convert a sequence with gaps to the minimal containing range.
7505         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
7506         * tests/test-update-copyright.sh: Test for this.
7507         The FSF confirmed it is ok to do this, assuming there is at
7508         least one significant change per year in the affected range:
7509         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
7510
7511 2012-01-26  Bruno Haible  <bruno@clisp.org>
7512
7513         pipe2: refine doc about thread-safety
7514         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
7515         multithread-safety problem.
7516         * doc/glibc-functions/accept4.texi: Likewise.
7517
7518 2012-01-26  Bruno Haible  <bruno@clisp.org>
7519
7520         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
7521         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
7522         In the test program, include <fcntl.h>, for O_RDONLY.
7523
7524 2012-01-26  Eric Blake  <eblake@redhat.com>
7525
7526         pipe2: document lack of thread-safety in replacement
7527         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
7528         issue in replacement.
7529         * doc/glibc-functions/accept4.texi (accept4): Likewise.
7530         Based on a report by Eric Wong.
7531
7532 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7533             Bruno Haible  <bruno@clisp.org>
7534
7535         malloca: Avoid warnings on x86_64 mingw64.
7536         * lib/malloca.c: Include <stdint.h>.
7537         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
7538         * modules/malloca (Depends-on): Add stdint.
7539         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
7540
7541 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7542
7543         obstack: remove __STDC__ conditionals
7544         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
7545         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
7546         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
7547         m4/include_next.m4 as the only gnulib-maintained places that still
7548         refer to __STDC__.
7549
7550 2012-01-24  Bruno Haible  <bruno@clisp.org>
7551
7552         havelib: Modern quoting.
7553         * build-aux/config.rpath: Quote 'like this', not `like this', as per
7554         the recent change to the GNU coding standards.
7555
7556 2012-01-24  Bruno Haible  <bruno@clisp.org>
7557
7558         stdint: Improve support for Android.
7559         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
7560         Reported by Simon Josefsson <simon@josefsson.org>.
7561
7562 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7563
7564         doc: omit trailing empty lines from INSTALL etc.
7565         * doc/Makefile (INSTALL): Omit trailing empty lines.
7566         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
7567         omit trailing empty lines.  This simplifies the build procedure.
7568
7569 2012-01-23  Jim Meyering  <meyering@redhat.com>
7570
7571         tests: avoid spurious warnings about gl_sockets_startup
7572         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
7573         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
7574         reporting a "statement with no effect".
7575         * tests/test-accept.c (main): Mark as "(void)".
7576         * tests/test-accept4.c (main): Likewise.
7577         * tests/test-bind.c (main): Likewise.
7578         * tests/test-connect.c (main): Likewise.
7579         * tests/test-getpeername.c (main): Likewise.
7580         * tests/test-getsockname.c (main): Likewise.
7581         * tests/test-getsockopt.c (main): Likewise.
7582         * tests/test-listen.c (main): Likewise.
7583         * tests/test-recv.c (main): Likewise.
7584         * tests/test-recvfrom.c (main): Likewise.
7585         * tests/test-send.c (main): Likewise.
7586         * tests/test-sendto.c (main): Likewise.
7587         * tests/test-setsockopt.c (main): Likewise.
7588         * tests/test-shutdown.c (main): Likewise.
7589
7590 2012-01-21  Bruno Haible  <bruno@clisp.org>
7591
7592         locale-fr.m4: Fix for Android.
7593         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
7594         failure of the test program on Bionic libc.
7595
7596 2012-01-21  Jim Meyering  <meyering@redhat.com>
7597
7598         bootstrap: fail when bootstrap_post_import_hook fails
7599         Otherwise, it's far too easy to miss diagnostics emitted
7600         between gnulib-tool's output and that of running configure.
7601         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
7602
7603 2012-01-17  Jim Meyering  <meyering@redhat.com>
7604
7605         maint: enable sc_trailing_blank
7606         * build-aux/pmccabe.css: Remove trailing blanks.
7607         * doc/acl-cygwin.txt: Likewise.
7608         * doc/gnu-oids.texi: Likewise
7609         * cfg.mk: Enable sc_trailing_blank.
7610         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
7611
7612 2012-01-17  Jim Meyering  <meyering@redhat.com>
7613
7614         maint: enable sc_prohibit_openat_without_use
7615         * cfg.mk: Enable sc_prohibit_openat_without_use.
7616         Exempt lib/selinux-at.c.
7617
7618 2012-01-17  Jim Meyering  <meyering@redhat.com>
7619
7620         maint: enable sc_prohibit_cloexec_without_use
7621         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
7622         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
7623
7624 2012-01-17  Jim Meyering  <meyering@redhat.com>
7625
7626         maint: enable sc_prohibit_intprops_without_use
7627         * cfg.mk: Enable sc_prohibit_intprops_without_use
7628         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
7629
7630 2012-01-17  Jim Meyering  <meyering@redhat.com>
7631
7632         maint: enable sc_prohibit_hash_pjw_without_use
7633         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
7634         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
7635         to match any use of \<hash_pjw\>, i.e., not necessarily with a
7636         following " (".
7637
7638 2012-01-17  Jim Meyering  <meyering@redhat.com>
7639
7640         maint: enable double-word-prohibiting rule
7641         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
7642         Exempt three files.
7643
7644 2012-01-17  Jim Meyering  <meyering@redhat.com>
7645
7646         maint: remove empty lines at EOF, but excluding modules/*
7647         Apply syntax rules at home as well as abroad.  Most changes
7648         were induced by running this:
7649           make srcdir=. _build-aux=build-aux -f top/maint.mk \
7650             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
7651             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
7652         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
7653         Exempt modules/* and two binary files.
7654         Also exempt doc/INSTALL*, per request from Bruno Haible.
7655         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
7656         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
7657         * doc/Copyright/request-assign.future: Likewise.
7658         * doc/Copyright/request-disclaim.changes: Likewise.
7659         * doc/INSTALL: Likewise.
7660         * doc/INSTALL.ISO: Likewise.
7661         * doc/INSTALL.UTF-8: Likewise.
7662         * doc/acl-cygwin.txt: Likewise.
7663         * doc/acl-resources.txt: Likewise.
7664         * doc/fdl-1.2.texi: Likewise.
7665         * doc/fdl-1.3.texi: Likewise.
7666         * doc/fdl.texi: Likewise.
7667         * lib/argp-pin.c: Likewise.
7668         * lib/round.c: Likewise.
7669         * lib/unicase/u16-totitle.c: Likewise.
7670         * lib/unictype/block_test.c: Likewise.
7671         * lib/uninorm/canonical-decomposition.c: Likewise.
7672         * m4/README: Likewise.
7673         * m4/relocatable-lib.m4: Likewise.
7674         * tests/test-isnand-nolibm.c: Likewise.
7675         * tests/test-isnand.c: Likewise.
7676         * tests/uninorm/NormalizationTest.txt: Likewise.
7677
7678 2012-01-17  Jim Meyering  <meyering@redhat.com>
7679
7680         maint: add framework to run syntax-check rules against gnulib sources
7681         * cfg.mk: New file, to disable all currently-failing tests.
7682         We'll enable them one by one, as they are made to pass.
7683         * Makefile (sc_maint): New rule.
7684
7685 2012-01-21  Bruno Haible  <bruno@clisp.org>
7686
7687         stdint: Add support for Android.
7688         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
7689         include the system's <stdint.h>.
7690         Reported by Simon Josefsson <simon@josefsson.org>.
7691
7692 2012-01-19  Jim Meyering  <meyering@redhat.com>
7693
7694         bootstrap: add bootstrap_post_import_hook
7695         Bison does still need something like the gnulib_mk_hook whose
7696         invocation I had to remove along with slurp in commit 767ccd40.
7697         Technically, we could get along without it, but doing so would
7698         have required living with a warning and a mandatory post-bootstrap
7699         automake rerun.
7700         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
7701         (bootstrap_post_import_hook): New function.
7702         Invoke it after gnulib-tool --import and before autoreconf.
7703
7704 2012-01-18  Jim Meyering  <meyering@redhat.com>
7705
7706         gitlog-to-changelog: don't use "no_"-prefixed variable name
7707         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
7708         to enable both --cluster and --no-cluster.  Change variable name,
7709         s/\$no_cluster/$cluster/, and reverse usage to match.
7710
7711         gitlog-to-changelog: use "||", not "or" in expressions
7712         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
7713         expressions.
7714
7715 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
7716
7717         gitlog-to-changelog: new option --no-cluster
7718         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
7719         clustering of adjacent commit messages.
7720
7721 2012-01-17  Jim Meyering  <meyering@redhat.com>
7722
7723         maint: spell file systems with two words, not one
7724         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
7725         two words, not one.
7726
7727 2012-01-16  Jim Meyering  <meyering@redhat.com>
7728
7729         bootstrap: add a FIXME comment to ensure we eventually remove the hack
7730         * build-aux/bootstrap (gnulib_tool_options): Add comment.
7731
7732 2012-01-16  Eric Blake  <eblake@redhat.com>
7733
7734         bootstrap: cater to autoconf 2.59
7735         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
7736         is not available.
7737
7738         bootstrap: properly check for libtool
7739         * build-aux/bootstrap (libtoolize): Also run libtool when older
7740         usage is detected.
7741
7742 2012-01-15  Bruno Haible  <bruno@clisp.org>
7743
7744         Improve support for MSVC 9.
7745         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
7746         clashes on MSVC.
7747         * lib/fcntl.in.h: Likewise.
7748         * lib/stdlib.in.h: Likewise.
7749         * lib/sys_stat.in.h: Likewise.
7750
7751 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
7752
7753         gnupload: we hold the master copy of this script now
7754         For motivation and more information, see:
7755         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
7756         * build-aux/gnupload: Make it clear in the heading comments that the
7757         master copy of this file is maintained by gnulib.  Since we are at
7758         it, bump its copyright year and ...
7759         ($scriptversion): ... the date in its version.
7760         ($usage): Patches and bug reports should be sent to the gnulib list,
7761         not the automake one.
7762         * config/srclist.txt: Don't try to sync 'gnupload' from automake
7763         anymore.
7764
7765 2012-01-15  Bruno Haible  <bruno@clisp.org>
7766
7767         Fix module 'random'.
7768         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
7769         initstate, setstate are declared.
7770
7771 2012-01-14  Bruno Haible  <bruno@clisp.org>
7772
7773         Tests for module 'random'.
7774         * modules/random-tests: New file.
7775         * tests/test-random.c: New file, based on tests/test-random_r.c.
7776
7777         New module 'random'.
7778         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
7779         declarations.
7780         * lib/random.c: New file, based on glibc/stdlib/random.c.
7781         * m4/random.m4: New file.
7782         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
7783         HAVE_RANDOM.
7784         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
7785         * modules/random: New file.
7786         * config/srclist.txt: Add an entry for random.c.
7787         * doc/posix-functions/random.texi: Mention the 'random' module.
7788         * doc/posix-functions/initstate.texi: Likewise.
7789         * doc/posix-functions/setstate.texi: Likewise.
7790         * doc/posix-functions/srandom.texi: Likewise.
7791
7792 2012-01-12  Bruno Haible  <bruno@clisp.org>
7793
7794         random_r: Use common idioms.
7795         * lib/random_r.c: Include <stdlib.h> first.
7796
7797         random_r: Override incompatible API on AIX, OSF/1.
7798         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
7799         Override the system function if REPLACE_RANDOM_R is 1.
7800         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
7801         and OSF/1, set REPLACE_RANDOM_R.
7802         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
7803         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
7804         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
7805         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
7806         * doc/glibc-functions/random_r.texi: Likewise.
7807         * doc/glibc-functions/setstate_r.texi: Likewise.
7808
7809         random_r: Support for MSVC 9.
7810         * lib/random_r.c: Include stdint.h, not inttypes.h.
7811
7812 2012-01-12  Eric Blake  <eblake@redhat.com>
7813
7814         inet_ntop: guard extra work by IF_LINT
7815         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
7816         better code generation when not checking for warnings.
7817         Suggested by Paul Eggert and Jim Meyering.
7818
7819         strptime: fix regression on mingw
7820         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
7821         Fix regression.  Reported by Bruno Haible.
7822
7823 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
7824             Bruno Haible  <bruno@clisp.org>
7825
7826         copy-file: add error-code-returning variant.
7827         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
7828         (qcopy_file_preserving): New declaration.
7829         * lib/copy-file.c (qcopy_file_preserving): Renamed from
7830         copy_file_preserving. Change return type to 'int'. Don't emit an error
7831         message here.
7832         (copy_file_preserving): New function.
7833         * tests/test-copy-file.c: Include <stdlib.h>.
7834         (main): Test qcopy_file_preserving if the environment variable
7835         NO_STDERR_OUTPUT is set.
7836         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
7837         with NO_STDERR_OUTPUT
7838         * tests/test-copy-file-2.sh: Likewise.
7839
7840 2012-01-10  Bruno Haible  <bruno@clisp.org>
7841
7842         copy-file: Use 'quote' module consistently.
7843         * lib/copy-file.c (copy_file_preserving): Use quote().
7844
7845         copy-file: Refactor.
7846         * lib/copy-file.c: Include quote.h.
7847         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
7848         message here.
7849         * modules/copy-file (Depends-on): Add quote.
7850
7851         acl: Export qcopy_acl.
7852         * lib/acl.h (qcopy_acl): New declaration.
7853         * lib/copy-acl.c (qcopy_acl): Make non-static.
7854
7855         acl: Rename a local variable.
7856         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
7857
7858         acl: Align return values of copy_acl and qcopy_acl.
7859         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
7860         maybe < -1.
7861
7862 2012-01-11  Eric Blake  <eblake@redhat.com>
7863
7864         strptime: silence gcc warnings
7865         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
7866         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
7867         Reported by Daniel P. Berrange.
7868
7869         inet_ntop: silence gcc warning
7870         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
7871         Reported by Daniel P. Berrange.
7872
7873 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
7874
7875         getloadavg test: skip the test on GNU/Linux without /proc mounted
7876         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
7877         file.  When /proc is not mounted, it always fails with ENOENT.
7878         * tests/test-getloadavg.c (main): Treat ENOENT return code from
7879         getloadavg(3) the same way as ENOSYS and ENOTSUP.
7880
7881 2012-01-10  Bruno Haible  <bruno@clisp.org>
7882
7883         regex: Avoid link error on MSVC 9.
7884         * modules/regex (Depends-on): Add wctype.
7885
7886 2012-01-10  Bruno Haible  <bruno@clisp.org>
7887
7888         doc: Mention --with-tests option.
7889         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
7890         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
7891         --with-tests.
7892         Reported by Reuben Thomas.
7893
7894 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
7895
7896         users.txt: order package names lexicographically.
7897         * users.txt: Order package names lexicographically.
7898
7899 2012-01-10  Jim Meyering  <meyering@redhat.com>
7900
7901         maint.mk: fix description in comment
7902         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
7903
7904         ignore-value: remove deprecated ignore_ptr function
7905         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
7906         * NEWS: Note this.
7907
7908 2012-01-09  Jim Meyering  <meyering@redhat.com>
7909
7910         test-init.sh: avoid a subshell
7911         * tests/test-init.sh: Remove protective subshell.
7912         Suggested by Bernhard Voelker.  While a subshell is normally
7913         required to protect against older shells (Solaris, FreeBSD) that
7914         warn about a missing program before performing redirection, the
7915         shell-selection tests performed by init.sh probably exclude any
7916         offending shell.
7917
7918 2012-01-08  Bruno Haible  <bruno@clisp.org>
7919
7920         setlocale tests: Avoid test failure on Solaris 11 2011-11.
7921         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
7922         variable.
7923
7924 2012-01-08  Bruno Haible  <bruno@clisp.org>
7925
7926         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
7927         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7928         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7929         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
7930         macro.
7931         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
7932         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7933         * lib/spawn_faction_addopen.c: Add workaround implementation if
7934         HAVE_WORKING_POSIX_SPAWN.
7935         * modules/spawn (Makefile): Substitute
7936         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7937         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
7938         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
7939         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7940         (Depends-on): Update conditions.
7941         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
7942         the Solaris 11 bug.
7943
7944 2012-01-08  Bruno Haible  <bruno@clisp.org>
7945
7946         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
7947         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7948         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7949         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
7950         macro.
7951         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
7952         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7953         * lib/spawn_faction_adddup2.c: Add workaround implementation if
7954         HAVE_WORKING_POSIX_SPAWN.
7955         * modules/spawn (Makefile): Substitute
7956         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7957         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
7958         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
7959         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7960         (Depends-on): Update conditions.
7961         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
7962         the Solaris 11 bug.
7963
7964 2012-01-08  Bruno Haible  <bruno@clisp.org>
7965
7966         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
7967         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7968         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7969         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
7970         HAVE_WORKING_POSIX_SPAWN.
7971         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
7972         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
7973         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7974         * lib/spawn_faction_addclose.c: Add workaround implementation if
7975         HAVE_WORKING_POSIX_SPAWN.
7976         * modules/spawn (Makefile): Substitute
7977         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7978         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
7979         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
7980         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7981         (Depends-on): Update conditions.
7982         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
7983         the Solaris 11 bug.
7984
7985 2012-01-08  Bruno Haible  <bruno@clisp.org>
7986
7987         doc: Update for Solaris 11 2011-11.
7988         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
7989         * m4/printf.m4: Update comments.
7990
7991 2012-01-08  Bruno Haible  <bruno@clisp.org>
7992
7993         mktime: Avoid compilation error on Solaris 11.
7994         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
7995
7996 2012-01-08  Bruno Haible  <bruno@clisp.org>
7997
7998         doc: Small fix.
7999         * doc/posix-headers/nl_types.texi: Correct platforms list.
8000
8001 2012-01-08  Simon Josefsson  <simon@josefsson.org>
8002
8003         Add lgpl-3.0 module.
8004         * MODULES.html.sh (Support for building documentation): Add
8005         lgpl-3.0.
8006         * modules/lgpl-3.0: New file.
8007
8008 2012-01-08  Jim Meyering  <meyering@redhat.com>
8009
8010         select.c: indent with spaces, not TABs
8011         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
8012
8013 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8014
8015         quotearg: do not use grave accent for left quote
8016         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
8017         locale_quoting_style.
8018         (quotearg_buffer_restyled): Fix example.
8019         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
8020
8021 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8022
8023         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
8024         Most programs do not have translation catalogs for English and much
8025         less separate catalogs for British and American English.  Drop the
8026         suggestion to translators about these two, and provide it
8027         automatically for Unicode locales.  Like most programs, even those
8028         using American English, we use single quotation marks.  This conflicts
8029         with the American typographic convention, but works better when you
8030         cite the entire error message within double quotes.  It also tries not
8031         to clash with established practice and with what non-gnulib programs
8032         will usually do.
8033         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
8034         using an UTF-8 or GB-18030 locale.  The list of other locales with
8035         quotes was provided by Bruno Haible.
8036         (quotearg_buffer_restyled): Adjust instructions to translators.
8037         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
8038         text, since this would be wrong when using Unicode.
8039         * modules/quotearg: Depend on c-strcaseeq.
8040
8041 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8042
8043         quotearg: fix Wikipedia link
8044         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
8045
8046 2012-01-07  Simon Josefsson  <simon@josefsson.org>
8047
8048         Fix for mingw with MSVC9.
8049         * m4/ld-version-script.m4: Check that compiler rejects version
8050         scripts with syntax errors.  Reported by Bruno Haible
8051         <bruno@clisp.org>.
8052
8053 2012-01-06  Bruno Haible  <bruno@clisp.org>
8054
8055         Talk about "native Windows API", not "Woe32".
8056         * lib/accept4.c: Update comments to mention native Windows.
8057         * lib/execute.c: Likewise.
8058         * lib/fatal-signal.c: Likewise.
8059         * lib/localcharset.c: Likewise.
8060         * lib/nanosleep.c: Likewise.
8061         * lib/nl_langinfo.c: Likewise.
8062         * lib/pclose.c: Likewise.
8063         * lib/pipe-filter-gi.c: Likewise.
8064         * lib/pipe-filter-ii.c: Likewise.
8065         * lib/pipe.c: Likewise.
8066         * lib/pipe2.c: Likewise.
8067         * lib/popen.c: Likewise.
8068         * lib/progreloc.c: Likewise.
8069         * lib/relocatable.c: Likewise.
8070         * lib/sigaction.c: Likewise.
8071         * lib/sigprocmask.c: Likewise.
8072         * lib/spawn-pipe.h: Likewise.
8073         * lib/spawn-pipe.c: Likewise.
8074         * lib/spawni.c: Likewise.
8075         * lib/stat-time.h: Likewise.
8076         * lib/w32spawn.h: Likewise.
8077         * tests/test-isatty.c: Likewise.
8078         * lib/config.charset: More comments.
8079         * doc/gnulib-intro.texi: Mention native Windows.
8080         * doc/posix-functions/_Exit_C99.texi: Likewise.
8081         * doc/posix-headers/fcntl.texi: Likewise.
8082
8083 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
8084
8085         argp: Avoid crash if translator uses % characters in a translation.
8086         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
8087         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8088
8089 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
8090
8091         doc: C11 and C++11 are now official
8092         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
8093         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
8094         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
8095         * modules/stdalign:
8096         Replace references to draft C1X to C11, and to draft C++0X to C++11.
8097
8098 2012-01-06  Bruno Haible  <bruno@clisp.org>
8099
8100         uc-is-grapheme-break tests: Tweak.
8101         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
8102         message.
8103
8104 2012-01-06  Bruno Haible  <bruno@clisp.org>
8105
8106         test-init.sh: correct the test for diff -u
8107         * tests/test-init.sh: Also redirect stdout to /dev/null.
8108
8109 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
8110
8111         Use ', not `, for quoting output.
8112         * build-aux/announce-gen (usage, sizes, print_news_deltas)
8113         (print_changelog_deltas, get_tool_versions, main program):
8114         * build-aux/git-version-gen:
8115         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
8116         * build-aux/move-if-change (help):
8117         * build-aux/useless-if-before-free (usage, main program):
8118         * check-module (parse_module_file, usage)
8119         (find_included_lib_files, check_module):
8120         * lib/argmatch.c (main) [TEST]:
8121         * lib/argp-help.c (_help):
8122         * lib/getopt1.c (main) [TEST]:
8123         * lib/git-merge-changelog.c (usage):
8124         * lib/xstrtol-error.c (xstrtol_error):
8125         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
8126         * m4/argz.m4 (gl_FUNC_ARGZ):
8127         * m4/bison.m4 (gl_BISON):
8128         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
8129         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
8130         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8131         * m4/fpending.m4 (gl_PREREQ_FPENDING):
8132         * m4/gc-random.m4 (gl_GC_RANDOM):
8133         * m4/intl.m4 (gt_CHECK_DECL):
8134         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
8135         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
8136         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
8137         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
8138         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
8139         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
8140         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
8141         * tests/test-dirname.c (main):
8142         * tests/test-getpass.c (main):
8143         * tests/test-iconvme.c (main):
8144         * tests/test-parse-datetime.c (LOG):
8145         * tests/test-xstrtoimax.sh:
8146         * tests/test-xstrtol.sh:
8147         * tests/test-xstrtoll.sh:
8148         * tests/test-xstrtoumax.sh:
8149         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
8150         * top/GNUmakefile (abort-due-to-no-makefile):
8151         Quote 'like this', not `like this', as per the recent change to
8152         the GNU coding standards.
8153
8154 2012-01-05  Bruno Haible  <bruno@clisp.org>
8155
8156         strtoimax: Don't force a replacement on systems where intmax_t is int.
8157         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
8158         'intmax_t' is not larger than 'int'.
8159         Reported by Pádraig Brady <P@draigBrady.com>.
8160
8161 2012-01-05  Bruno Haible  <bruno@clisp.org>
8162
8163         doc: Mention NetBSD bugs.
8164         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
8165         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
8166
8167 2012-01-05  Bruno Haible  <bruno@clisp.org>
8168
8169         strtoumax tests: Enhance tests.
8170         * tests/test-strtoumax.c (main): Add tests for large values.
8171
8172 2012-01-05  Bruno Haible  <bruno@clisp.org>
8173
8174         strtoimax: Work around AIX 5.1 bug.
8175         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
8176         definition.
8177         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
8178         Set HAVE_STRTOIMAX.
8179         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
8180         REPLACE_STRTOIMAX.
8181         * modules/inttypes-incomplete (Makefile.am): Substitute
8182         REPLACE_STRTOIMAX.
8183         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
8184         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
8185         (Depends-on): Update conditions.
8186         * tests/test-strtoimax.c (main): Add tests for large values.
8187         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
8188
8189 2012-01-05  Bruno Haible  <bruno@clisp.org>
8190
8191         inttypes: Modernize.
8192         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
8193         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
8194         (Makefile.am): Update inttypes.h rule.
8195
8196 2012-01-05  Jim Meyering  <meyering@redhat.com>
8197
8198         init.sh: don't waste a subshell just to redirect stderr
8199         * tests/init.sh: In testing for diff -u and diff -c, use a
8200         stderr-redirecting exec inside `...` rather than a subshell.
8201
8202         test-init.sh: avoid failure on HP-UX 11.00
8203         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
8204         resolves to diff -c or cmp.  Reported by Bruno Haible.
8205
8206 2012-01-05  Bruno Haible  <bruno@clisp.org>
8207
8208         Tests for module 'strtoull'.
8209         * modules/strtoull-tests: New file.
8210         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
8211
8212 2012-01-05  Bruno Haible  <bruno@clisp.org>
8213
8214         Tests for module 'strtoll'.
8215         * modules/strtoll-tests: New file.
8216         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
8217
8218 2012-01-05  Bruno Haible  <bruno@clisp.org>
8219
8220         Tests for module 'strtoul'.
8221         * modules/strtoul-tests: New file.
8222         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
8223
8224 2012-01-05  Bruno Haible  <bruno@clisp.org>
8225
8226         Tests for module 'strtol'.
8227         * modules/strtol-tests: New file.
8228         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
8229
8230 2012-01-04  Jim Meyering  <meyering@redhat.com>
8231
8232         test-init.sh: accommodate Solaris 5.10's different diff -u output
8233         * tests/test-init.sh: Also exempt @@ lines from the comparison
8234         of diff output, since Solaris 5.10 and GNU diff formats differ.
8235         Reported by Stefano Lattarini.
8236
8237 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8238
8239         test-posixtm: don't assume signed integer wraparound
8240         * tests/test-posixtm.c (main): Don't assume wraparound semantics
8241         after signed integer overflow.  Inspired by (though it may not
8242         fix) Bruno Haible's bug report in
8243         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
8244
8245         Spell out "Windows 9x" and "Windows XP".
8246         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
8247         "Windows 9x" and "WinXP" with "Windows XP".
8248
8249 2012-01-04  Jim Meyering  <meyering@redhat.com>
8250
8251         test-vc-list-files-cvs.sh: remove obsolete comment
8252         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
8253         double exit.  Now that's all encapsulated via skip_ and Exit.
8254
8255 2012-01-04  Bruno Haible  <bruno@clisp.org>
8256
8257         Talk about "native Windows API", not "Win32".
8258         * lib/classpath.c: Update comments to mention native Windows.
8259         * lib/csharpexec.c: Likewise.
8260         * lib/dup2.c: Likewise.
8261         * lib/error.c: Likewise.
8262         * lib/fcntl.c: Likewise.
8263         * lib/filename.h: Likewise.
8264         * lib/findprog.c: Likewise.
8265         * lib/get-rusage-as.c: Likewise.
8266         * lib/get-rusage-data.c: Likewise.
8267         * lib/getpagesize.c: Likewise.
8268         * lib/javaexec.c: Likewise.
8269         * lib/msvc-inval.c: Likewise.
8270         * lib/msvc-nothrow.c: Likewise.
8271         * lib/nanosleep.c: Likewise.
8272         * lib/nonblocking.c: Likewise.
8273         * lib/printf-parse.c: Likewise.
8274         * lib/setlocale.c: Likewise.
8275         * lib/sigaction.c: Likewise.
8276         * lib/strerror_r.c: Likewise.
8277         * lib/tmpdir.c: Likewise.
8278         * lib/vasnprintf.c: Likewise.
8279         * lib/w32spawn.h: Likewise.
8280         * lib/waitpid.c: Likewise.
8281         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
8282         * m4/locale-ar.m4: Likewise.
8283         * m4/locale-fr.m4: Likewise.
8284         * m4/locale-ja.m4: Likewise.
8285         * m4/locale-tr.m4: Likewise.
8286         * m4/locale-zh.m4: Likewise.
8287         * m4/printf.m4: Likewise.
8288         * tests/test-cloexec.c: Likewise.
8289         * tests/test-copy-acl.sh: Likewise.
8290         * tests/test-copy-file.sh: Likewise.
8291         * tests/test-file-has-acl.sh: Likewise.
8292         * tests/test-set-mode-acl.sh: Likewise.
8293         * tests/test-dup-safer.c: Likewise.
8294         * tests/test-dup2.c: Likewise.
8295         * tests/test-dup3.c: Likewise.
8296         * tests/test-fcntl.c: Likewise.
8297         * tests/test-nonblocking-pipe.h: Likewise.
8298         * tests/test-nonblocking-socket.h: Likewise.
8299         * tests/test-pipe.c: Likewise.
8300         * tests/test-pipe2.c: Likewise.
8301         * tests/test-spawn-pipe-child.c: Likewise.
8302         * doc/acl-resources.txt: Likewise.
8303         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8304         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
8305         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
8306         * lib/localcharset.c: Update comments to mention native Windows.
8307         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8308         * lib/localename.c: Likewise.
8309         * lib/progreloc.c: Likewise.
8310         * lib/relocatable.c: Likewise.
8311         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8312         (windows_compute_revents): Renamed from win32_compute_revents.
8313         (windows_compute_revents_socket): Renamed from
8314         win32_compute_revents_socket.
8315         * lib/select.c: Update comments to mention native Windows.
8316         (windows_poll_handle): Renamed from win32_poll_handle.
8317         * m4/threadlib.m4: Update comments to mention native Windows.
8318         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
8319         --enable-threads=windows instead of --enable-threads=win32. Set
8320         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
8321         * lib/glthread/lock.h: Update comments to mention native Windows.
8322         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
8323         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
8324         USE_WIN32_THREADS.
8325         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
8326         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
8327         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
8328         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
8329         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
8330         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
8331         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
8332         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
8333         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
8334         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
8335         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
8336         * tests/test-tls.c: Likewise.
8337         Rationale:
8338         Microsoft renamed the "Win32 API" to "Windows API", as it is available
8339         on both 32-bit and 64-bit Windows systems.
8340         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
8341         line of distinction is between "native Windows" on one side and Unix/
8342         POSIX systems on the other side. More details in
8343         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
8344         Suggested by Paul Eggert.
8345
8346 2012-01-03  Bruno Haible  <bruno@clisp.org>
8347
8348         isatty: Support for MSVC 9.
8349         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
8350         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
8351         (_isatty_nothrow): New function.
8352         (isatty): Use it instead of _isatty.
8353         (IsConsoleHandle): Add comment, from Paolo Bonzini.
8354         * lib/poll.c (IsConsoleHandle): Likewise.
8355         * lib/select.c (IsConsoleHandle): Likewise.
8356         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
8357         (gl_PREREQ_ISATTY): New macro.
8358         * modules/isatty (Depends-on): Add msvc-inval.
8359         (configure.ac): Invoke gl_PREREQ_ISATTY.
8360
8361 2012-01-03  Jim Meyering  <meyering@redhat.com>
8362
8363         maint.mk: remove temporary transition aid from over 1.5 years ago
8364         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
8365         purpose was to aid in the transition (avoiding silent malfunction)
8366         from that old name to the new _sc_search_regexp.  This shim was
8367         added by commit 219c504b.
8368
8369         init.sh: do not try to accommodate compare arguments starting with "-"
8370         * tests/init.sh (compare_dev_null_): Do not try to accommodate
8371         compare arguments that start with "-".  Besides, we do not worry
8372         about this when invoking diff or cmp; why start now with sed?
8373         Using "--" to separate options from argument would trigger sed
8374         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
8375         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
8376
8377 2012-01-02  Bruno Haible  <bruno@clisp.org>
8378
8379         Enhance tests for module 'isatty'.
8380         * modules/isatty-tests (Depends-on): Add pipe-posix.
8381         * tests/test-isatty.c: Include <fcntl.h>.
8382         (DEV_NULL): New macro.
8383         (main): Test the resut of isatty() also on regular files, pipes, and
8384         /dev/null.
8385
8386         New module 'isatty'.
8387         * lib/unistd.in.h (isatty): New declaration.
8388         * lib/isatty.c: New file, based on an idea of
8389         Bastien Roucariès <roucaries.bastien@gmail.com>.
8390         * m4/isatty.m4: New file.
8391         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
8392         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
8393         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
8394         REPLACE_ISATTY.
8395         * modules/isatty: New file.
8396         * doc/posix-functions/isatty.texi: Mention the new module.
8397         Suggested by Paolo Bonzini.
8398
8399 2012-01-02  Bruno Haible  <bruno@clisp.org>
8400
8401         canonicalize: Tweak 2011-12-29 commit.
8402         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
8403         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
8404
8405 2012-01-02  Jim Meyering  <meyering@redhat.com>
8406
8407         gitlog-to-changelog: describe input syntax in --help output
8408         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
8409
8410         gitlog-to-changelog: fix typo in --help: show backslash before email @
8411         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
8412         in sources, but not in actual output.
8413
8414 2011-12-30  Jim Meyering  <meyering@redhat.com>
8415
8416         gitlog-to-changelog: don't malfunction when name contains %-directive
8417         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
8418         in a name string cause trouble.  E.g., with a user name of "%s",
8419         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
8420
8421 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
8422
8423         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
8424         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
8425         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
8426         the "  (tiny change)" notation that is appended to the standard
8427         ChangeLog "date  name  email" header line.
8428
8429 2012-01-01  Jim Meyering  <meyering@redhat.com>
8430
8431         test-framework-sh: init.sh: fix "make dist" failure
8432         When using gnulib-tool's --with-tests option and any module that
8433         depends on test-framework-sh, "make dist" would fail due to the
8434         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
8435         in the gltests directory, and not in the gllib/ directory.
8436         One way to work around that is to move the EXTRA_DIST += init.sh
8437         from the primary module to the -tests one:
8438         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
8439         * modules/test-framework-sh (Makefile.am): ...not here.
8440         Reported by Tom G. Christensen in
8441         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
8442
8443         version-etc: update copyright year reported by --version
8444         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
8445
8446 2011-12-31  Pádraig Brady  <P@draigBrady.com>
8447
8448         canonicalize: only stat() if required
8449         * lib/canonicalize.c (canonicalize_filename_mode):
8450         Avoid calling l?stat() when both CAN_MISSING,
8451         and CAN_NOLINKS are set, as we neither need
8452         to resolve symlinks or test component existence.
8453
8454 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
8455
8456         doc: cover st_ino issues once; add OpenVMS etc.
8457         * doc/posix-functions/stat.texi (stat):
8458         * doc/posix-functions/lstat.texi (lstat):
8459         * doc/posix-functions/fstatat.texi (fstatat):
8460         * doc/posix-functions/fstat.texi (fstat):
8461         Move general 'struct stat' stuff to sys_stat.texi,
8462         leaving behind a pointer.
8463         * doc/posix-headers/sys_stat.texi (sys/stat.h):
8464         Merge duplicate info about 'struct stat' problems into here.
8465         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
8466         and suggest partial workarounds.
8467
8468         same-inode: port to OpenVMS
8469         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
8470         three st_ino values.
8471
8472 2011-12-30  Pádraig Brady  <P@draigBrady.com>
8473
8474         canonicalize: fix references to stat() and lstat()
8475         * lib/canonicalize.c (canonicalize_filename_mode):
8476         Ensure references always resolve to a replacement
8477         function if required (even via a macro).
8478
8479 2011-12-30  Jim Meyering  <meyering@redhat.com>
8480
8481         gitlog-to-changelog: remove a little duplication
8482         * build-aux/gitlog-to-changelog (main): Grep @lines once,
8483         rather than twice.
8484
8485 2011-12-29  Pádraig Brady  <P@draigBrady.com>
8486
8487         canonicalize: add support for not resolving symlinks
8488         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
8489         indicate we don't want to follow symlinks.  Also
8490         provide CAN_MODE_MASK to aid setting these existing
8491         mutually exclusive values.
8492         * lib/canonicalize.c (canonicalize_filename_mode):
8493         Extract the flags from can_mode parameter, which
8494         are currently just used to select between stat()
8495         and lstat().  Also ensure that mutually exclusive
8496         values are flagged immediately as invalid.
8497         * tests/test-canonicalize.c: Verify symlinks are
8498         not followed, and that invalid flag combinations
8499         are diagnosed.
8500
8501 2011-12-25  Jim Meyering  <meyering@redhat.com>
8502
8503         gitlog-to-changelog: do not clump multi-paragraph entries
8504         Identical header lines (date,name,email+coauthors) are suppressed,
8505         thus putting all entries with those same characteristics under
8506         a single header.  However, when a log entry consists of two or
8507         more paragraphs, it may not be clear where it starts and ends.
8508         This change makes it so that such an entry is always separated
8509         from others by a header line, even when that header would
8510         otherwise be suppressed.
8511         * build-aux/gitlog-to-changelog: Implement the above.
8512         Inspired by a related request from Stefano Lattarini in
8513         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
8514
8515 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8516
8517         announce-gen: fix `cmd' typo in diagnostic
8518         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
8519         diagnostic: a missing '$' meant that the command was not output.
8520
8521 2011-12-23  Jim Meyering  <meyering@redhat.com>
8522
8523         test-framework-sh: distribute init.sh
8524         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
8525         Otherwise, "make -C gnulib-tests check" (at least in grep) would
8526         fail due to the lack of init.sh.
8527
8528         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
8529         * modules/atexit-tests: Rather than listing tests/init.sh,
8530         now that there's a module for it, simply depend on that new module.
8531         * modules/closein-tests: Likewise.
8532         * modules/exclude-tests: Likewise.
8533         * modules/getcwd-tests: Likewise.
8534         * modules/perror-tests: Likewise.
8535         * modules/pread-tests: Likewise.
8536         * modules/pwrite-tests: Likewise.
8537         * modules/vc-list-files-tests: Likewise.
8538         * modules/verify-tests: Likewise.
8539         * modules/xalloc-die-tests: Likewise.
8540         * modules/xstrtoimax-tests: Likewise.
8541         * modules/xstrtol-tests: Likewise.
8542         * modules/xstrtoll-tests: Likewise.
8543         * modules/xstrtoumax-tests: Likewise.
8544         * modules/yesno-tests: Likewise.
8545
8546 2011-12-22  Jim Meyering  <meyering@redhat.com>
8547
8548         test-framework-sh: add minimal tests of init.sh's compare function
8549         * modules/test-framework-sh-tests: New file.
8550         * tests/test-init.sh: New file.
8551
8552         test-framework-sh: new module
8553         * modules/test-framework-sh: New file.
8554         * MODULES.html.sh (Support for maintaining and releasing projects):
8555         List it.
8556
8557         init.sh: do not emit simulated diff output to stderr
8558         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
8559
8560 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
8561
8562         .gitignore: ignore gnulib.dvi and regex.info
8563         * doc/.gitignore:add gnulib.dvi and regex.info
8564
8565 2011-12-22  Jim Meyering  <meyering@redhat.com>
8566
8567         init.sh: correct previous change
8568         * tests/init.sh (compare): My previous change was wrong.
8569         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
8570
8571         init.sh: avoid unwarranted test failure when using "set -e"
8572         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
8573         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
8574         a use like "compare exp out" would get evoke an unconditional failure.
8575
8576 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
8577
8578         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
8579         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
8580         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
8581         autoreconf that did not.
8582         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
8583         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8584
8585 2011-12-17  Jim Meyering  <meyering@redhat.com>
8586
8587         bootstrap: remove some now-unneeded code
8588         This script arose back when gnulib-tool was young.
8589         Since then, it has seen improvements that render much of this
8590         script unnecessary.  In particular, it can now make symlinks
8591         to the files it uses.  Also, I no longer see as much value in
8592         marking files as read-only via comments.
8593         If you relied on the symlink-creation feature of the preceding
8594         version of this script, you can get most of that functionality
8595         by adding the --symlink option to the definition of
8596         gnulib_tool_option_extras in your bootstrap.conf file.
8597         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
8598         Run autopoint and libtoolize *before* gnulib-tool.
8599         After it, run an abbreviated autoreconf, rather than a loop around
8600         all tools.
8601         (slirp, bt_mark_as_generated): Remove functions.
8602
8603 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8604
8605         ftoastr: fix typo
8606         * lib/ftoastr.h: Fix misspelling in comment.
8607
8608 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
8609
8610         * top/README-release: fix punctuation.
8611
8612 2011-12-17  Jim Meyering  <meyering@redhat.com>
8613
8614         bootstrap: correct the recent buildreq change
8615         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
8616         had no effect.
8617         * build-aux/bootstrap (buildreq): Bracket each search term with
8618         "*...*", so that the shell "case" statement works as intended.
8619         Add comments.
8620
8621 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
8622
8623         build: let bootstrap resort to wget when downloading .po files
8624         * build-aux/bootstrap (download_po_files): Fallback to wget when
8625         downloading the .po files via rsync fails.  This is necessary to
8626         bootstrap from behind a strict firewall.
8627
8628 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8629
8630         stdint: don't assume C++11 when compiling with g++
8631         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
8632         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
8633         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
8634         work also in C++ before C++11, as that improperly inhibits
8635         generating a substitute stdint.h for that case.
8636
8637 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8638
8639         alloca: protect comment from gnulib-tool
8640         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
8641         that gnulib-tool doesn't think it's a license, and munge it to
8642         say "GCC version 3".
8643
8644 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
8645
8646         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
8647         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
8648         $(abs_top_builddir) instead of $(top_builddir).
8649
8650 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
8651
8652         strftime-tests: also test nanoseconds
8653         * tests/test-strftime.c (T): Add a test of %N.
8654
8655 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
8656
8657         inttypes, stdint: add C++11 support
8658         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
8659         when including inttypes.h and stdint.h.  Support this change to
8660         the standard.
8661         * doc/posix-headers/inttypes.texi (inttypes.h):
8662         * doc/posix-headers/stdint.texi (stdint.h): Document this.
8663         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
8664         Define if not defined already, for the benefit of pre-C++11 hosts.
8665         Define the standard format macros (e.g., PRId8) always.
8666         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
8667         Likewise, if __cpluspus.  Define the standard constant and limit
8668         macros (e.g., INT8_C, INT8_MAX) always.
8669         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
8670         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
8671         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
8672         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
8673         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
8674         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
8675         Likewise.
8676
8677 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
8678
8679         nonblocking tests: Fix test failure on Linux/PPC.
8680         Suggested by Prerna Saxena in
8681         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
8682         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
8683         Set to 1100000.
8684
8685 2011-12-12  Jim Meyering  <meyering@redhat.com>
8686
8687         argmatch: don't hard-code `' when listing valid option arguments
8688         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
8689         use the quote function to add quotes.  Use fputs rather than
8690         fprintf for the format string with no format directive.
8691
8692 2011-12-07  Eric Blake  <eblake@redhat.com>
8693
8694         bootstrap: detect tools required by gnulib-tool
8695         * build-aux/bootstrap (buildreq): Provide minimum implicit
8696         dependencies.
8697         * DEPENDENCIES: Mention patch as a prereq.
8698
8699 2011-12-04  Bruno Haible  <bruno@clisp.org>
8700
8701         sethostname: Port to Windows platforms.
8702         * lib/sethostname.c: Provide an alternate implementation for Windows
8703         platforms.
8704         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
8705         (main): Skip the test if sethostname() fails with EPERM. On Windows
8706         platforms, don't check the result of gethostname().
8707
8708 2011-12-04  Bruno Haible  <bruno@clisp.org>
8709             Jim Meyering  <meyering@redhat.com>
8710
8711         tests: Avoid spurious error message on platforms without mktemp program.
8712         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
8713
8714 2011-12-04  Bruno Haible  <bruno@clisp.org>
8715
8716         sethostname: Fix documentation.
8717         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
8718         "not fixed" section.
8719
8720 2011-12-03  Bruno Haible  <bruno@clisp.org>
8721
8722         gnulib-tool: Verify that the License field is present and non-empty.
8723         * gnulib-tool (func_get_license_raw): New function, extracted from
8724         func_get_license.
8725         (func_get_license): Use it. Warn if the module is not a test module and
8726         has no license.
8727         Suggested by Jim Meyering.
8728
8729 2011-12-03  Bruno Haible  <bruno@clisp.org>
8730
8731         sethostname tests: Fix link error on mingw.
8732         * tests/test-sethostname1.c: New file, extracted from
8733         tests/test-sethostname.c.
8734         * tests/test-sethostname2.c: New file, extracted from
8735         tests/test-sethostname.c.
8736         * tests/test-sethostname.c: Remove file.
8737         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
8738         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
8739         (Depends-on): Add gethostname.
8740         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
8741         Link the latter with $(GETHOSTNAME_LIB).
8742
8743         sethostname tests: Fix compilation error on mingw.
8744         * tests/test-sethostname.c: Don't include <sys/types.h>.
8745         (geteuid): Use a dummy value without uid_t.
8746         * modules/sethostname-tests (Depends-on): Remove sys_types.
8747
8748         sethostname tests: Avoid a gcc warning.
8749         * tests/test-sethostname.c (main): Remove an unused variable.
8750
8751         Tweak last commit.
8752         * modules/sethostname-tests (Files): Sort by decreasing importance.
8753         (configure.ac): Check for geteuid.
8754         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
8755         the test when there's nothing to test. Drop an unnecessary cast.
8756         Improve an error message. Verify that the final sethostname() call
8757         succeeds.
8758
8759 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8760
8761         Add a test suite for the sethostname module.
8762         * modules/sethostname-tests: New file.  A test program
8763         for the sethostname module.
8764         * tests/test-sethostname.c: Likewise.
8765
8766 2011-12-03  Bruno Haible  <bruno@clisp.org>
8767
8768         Tweak last commit.
8769         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
8770         Fix preprocessor directives indentation. Fix typos.
8771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
8772         * modules/unistd (Makefile): Likewise.
8773
8774 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8775
8776         Integrate the sethostname module into unistd.
8777         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
8778         into the unistd.h header.
8779         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
8780         preprocessor directives.
8781         * modules/unistd: Setup the Makefile substitutions of the
8782         SETHOSTNAME preprocessor directives.
8783
8784 2011-12-03  Bruno Haible  <bruno@clisp.org>
8785
8786         Tweak last commit.
8787         * lib/sethostname.c: Don't include <string.h>.
8788         (sethostname): No need to copy the argument string to the stack. Don't
8789         call clearerr. Preserve errno when fprintf failed.
8790         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
8791         Don't invoke AC_REPLACE_FUNCS.
8792         * modules/sethostname (Link): Remove empty section.
8793         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
8794         failure problem.
8795
8796 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8797
8798         New module 'sethostname'.
8799         * lib/sethostname.c (sethostname): New file.  Provide sethostname
8800         for systems that lack it.
8801         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
8802         sethostname declaration and function.
8803         * modules/sethostname: New file.  Define the sethostname module.
8804
8805 2011-12-03  Bruno Haible  <bruno@clisp.org>
8806
8807         Tweak last commit.
8808         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
8809
8810 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8811
8812         Split the HOST_NAME_MAX detection into a separate m4 macro.
8813         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
8814         macro so it can be used by the pending sethostname module.
8815
8816 2011-12-03  Bruno Haible  <bruno@clisp.org>
8817
8818         Fix module descriptions syntax.
8819         * modules/argv-iter (License): Fix syntax.
8820         * modules/di-set (License): Likewise.
8821         * modules/ino-map (License): Likewise.
8822         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
8823
8824 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
8825
8826         stdalign: port to Clang 3.0
8827         Problem reported by Simon Josefsson in
8828         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
8829         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
8830         which has <stdalign.h> but which does not define alignof.
8831         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
8832
8833 2011-12-01  Eric Blake  <eblake@redhat.com>
8834
8835         mktempd: silence dd usage
8836         * build-aux/mktempd (rand_bytes): Silence dd.
8837
8838 2011-11-30  Simon Josefsson  <simon@josefsson.org>
8839
8840         manywarnings: Don't mention gcc version in docstring.
8841         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
8842         Jim Meyering <meyering@redhat.com>.
8843
8844 2011-11-30  Jim Meyering  <meyering@redhat.com>
8845
8846         hash: mark a few floating point constants with "f" suffix
8847         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
8848         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
8849         floating point constants with "f", since they're destined to be
8850         saved/used as "float"s.
8851
8852 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
8853
8854         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
8855         * tests/test-float.c (test_long_double): Correct and re-enable the
8856         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
8857
8858 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
8859
8860         Avoid subtracting two pointers that don't point into the same block.
8861         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
8862         only pointers into the same memory block are subtracted. We cannot
8863         assume that sizeof (ptrdiff_t) == sizeof (void *).
8864
8865 2011-11-29  Eric Blake  <eblake@redhat.com>
8866
8867         maint.mk: add syntax check for use of compare from init.sh
8868         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
8869         moved here from coreutils.
8870
8871         manywarnings: drop -Wunsuffixed-float-constants
8872         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
8873         '1.0D', which is the only way to silence this warning for 'double'.
8874
8875 2011-11-29  Jim Meyering  <meyering@redhat.com>
8876
8877         hash: mark compute_bucket_size with the pure attribute
8878         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
8879
8880         quotearg, propername: correct pragma guard expression
8881         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
8882         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
8883
8884 2011-11-28  Jim Meyering  <meyering@redhat.com>
8885
8886         propername: do not mark proper_name with the const attribute
8887         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
8888         since it examines data pointed to by its parameter.
8889         * lib/propername.c (proper_name): Instead, add a pragma to suppress
8890         the suggestion from -Wsuggest-attribute=const.
8891
8892         propername: mark one more function as const
8893         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
8894
8895 2011-11-27  Jim Meyering  <meyering@redhat.com>
8896
8897         mark functions with const and pure attributes
8898
8899         Mark functions per suggestions from gcc-4.6 when using these options:
8900         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
8901         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
8902         Follow these guidelines: when possible, apply the attribute to
8903         an extern declaration, not to its definition.  Apply it to the
8904         definition only when the definition is static.
8905         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
8906         * lib/argv-iter.h (argv_iter_n_args): Likewise.
8907         * lib/base64.h (isbase64): Likewise.
8908         * lib/basename-lgpl.c (last_component, base_len): Likewise.
8909         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
8910         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
8911         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
8912         (c_tolower, c_toupper): Likewise.
8913         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
8914         * lib/chdir-long.c (find_non_slash): Likewise.
8915         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
8916         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
8917         * lib/file-type.h (file_type): Likewise.
8918         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
8919         * lib/filevercmp.c (verrevcmp): Likewise.
8920         * lib/freadahead.h (freadahead): Likewise.
8921         * lib/fts.c (fts_maxarglen): Likewise.
8922         * lib/hash-pjw.h (hash_pjw): Likewise.
8923         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
8924         * lib/hash.c (is_prime, next_prime): Likewise.
8925         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
8926         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
8927         (hash_table_ok, hash_get_first, hash_string): Likewise.
8928         (compute_bucket_size): Likewise.
8929         * lib/i-ring.h (i_ring_empty): Likewise.
8930         * lib/isnan.c (isnanl): Likewise.
8931         * lib/math.h (isnanl, rpl_isnanl): Likewise.
8932         * lib/memcasecmp.h (memcasecmp): Likewise.
8933         * lib/memchr2.h (memchr2): Likewise.
8934         * lib/memcmp2.h (memcmp2): Likewise.
8935         * lib/parse-datetime.y (lookup_zone): Likewise.
8936         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
8937         [!WINDOWS_SOCKETS]: Likewise.
8938         * lib/strnlen1.h (strnlen1): Likewise.
8939         * lib/uniwidth.in.h (uc_width): Likewise.
8940         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
8941         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
8942         (quoting_options_from_style): Add a comment.
8943         * lib/propername.h (proper_name): Add a comment.
8944
8945 2011-11-27  Bruno Haible  <bruno@clisp.org>
8946
8947         Remove unused macros from !_LIBC code in glibc-borrowed files.
8948         * lib/fnmatch.c (STRCOLL): Remove macro.
8949         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
8950         * lib/glob.c (__stat, __readdir64): Remove macros.
8951         * lib/tempname.c (__open64, __xstat64): Remove macros.
8952         Suggested by Paul Eggert.
8953
8954 2011-11-27  Bruno Haible  <bruno@clisp.org>
8955
8956         getcwd: Fix link error on MSVC 9.
8957         * modules/getcwd (Depends-on): Add readdir, rewinddir.
8958
8959 2011-11-27  Bruno Haible  <bruno@clisp.org>
8960
8961         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
8962         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
8963         HAVE_OPENDIR is 0.
8964         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
8965         HAVE_CLOSEDIR is 0.
8966         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
8967         is 0.
8968         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
8969
8970 2011-11-27  Bruno Haible  <bruno@clisp.org>
8971
8972         getcwd: Fix bug from 2011-08-17.
8973         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
8974         platforms that need it.
8975         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
8976         code of 4 to be a failure, not a success. This ensures that
8977         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
8978
8979 2011-11-27  Bruno Haible  <bruno@clisp.org>
8980
8981         binary-io tests: Avoid test failure on mingw when libtool is used.
8982         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
8983         Don't verify the size of t-bin-out1.tmp here.
8984         * tests/test-binary-io.sh: Verify it here.
8985         Reported by Simon Josefsson.
8986
8987 2011-11-26  Bruno Haible  <bruno@clisp.org>
8988
8989         Fix conflict between two instantiations of module 'unistd'.
8990         * gnulib-tool (func_emit_autoconf_snippet): Substitute
8991         ${include_guard_prefix} also in the autoconf snippet.
8992         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
8993         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
8994         GNULIB_UNISTD_H_GETOPT.
8995         * modules/getopt-posix (configure.ac): Set the
8996         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
8997         * modules/getopt-gnu (configure.ac): Likewise.
8998         * modules/unistd (Makefile.am): Change the substitution value of
8999         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
9000         Reported by Simon Josefsson.
9001
9002 2011-11-25  Bruno Haible  <bruno@clisp.org>
9003
9004         pagealign_alloc: Doc and comments.
9005         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
9006         module.
9007         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
9008
9009 2011-11-25  Jim Meyering  <meyering@redhat.com>
9010
9011         test-update-copyright.sh: avoid false-positive failure
9012         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
9013         around false positive failure on Cygwin/Windows.  The latter was
9014         matching erroneously-created files with names like
9015         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
9016
9017 2011-11-25  Simon Josefsson  <simon@josefsson.org>
9018
9019         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
9020         * m4/valgrind-tests.m4: Check that the parameters that will be
9021         used works, not just a subset of them.  Reported by Bruno Haible
9022         <bruno@clisp.org>.
9023
9024 2011-11-24  Jim Meyering  <meyering@redhat.com>
9025
9026         test-stdalign.c: comment out long double tests
9027         * tests/test-stdalign.c: Don't try to reduce alignment of long double
9028         variables.  That provokes errors like this from gcc-4.7.0 20111124:
9029         error: '_Alignas' specifiers cannot reduce alignment of \
9030         'static_longdouble_alignas'.
9031
9032 2011-11-22  Jim Meyering  <meyering@redhat.com>
9033
9034         init.sh: make "compare /dev/null FILE" output more readable
9035         * tests/init.sh (compare_): Document the preferred order of arguments.
9036         (emit_diff_u_header_): New function.
9037         (compare_dev_null_): Emit a simulated diff, rather than just the
9038         contents of the unexpected file.  Suggestion from Bruno Haible.
9039
9040 2011-11-21  Jim Meyering  <meyering@redhat.com>
9041             Eric Blake  <eblake@redhat.com>
9042
9043         init.sh: work around OSF/1 5.1's mishandling of /dev/null
9044         * tests/init.sh: Make our compare function slightly more portable.
9045         Reported by Bruno Haible in
9046         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
9047
9048 2011-11-21  Simon Josefsson  <simon@josefsson.org>
9049
9050         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
9051         before using it, in code that ends up in config.h.
9052
9053 2011-11-20  Bruno Haible  <bruno@clisp.org>
9054
9055         getcwd: Work around getcwd bug on AIX 5..7.
9056         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
9057         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
9058         Use a different value for gl_cv_func_getcwd_path_max. Move the
9059         definition of HAVE_PARTLY_WORKING_GETCWD from here...
9060         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
9061         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
9062         Define HAVE_MINIMALLY_WORKING_GETCWD.
9063         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
9064         where it is not even minimally working, that is, on AIX.
9065         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
9066         m4/getcwd-path-max.m4.
9067         (main): Update exit code computation.
9068         * doc/posix-functions/getcwd.texi: Mention list of platforms where
9069         getcwd does not handle long file names.
9070
9071 2011-11-20  Bruno Haible  <bruno@clisp.org>
9072
9073         getcwd: Fix bug from 2009-09-10.
9074         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
9075         like "no".
9076
9077 2011-11-20  Simon Josefsson  <simon@josefsson.org>
9078
9079         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
9080
9081 2011-11-20  Bruno Haible  <bruno@clisp.org>
9082
9083         fma tests: Avoid shadowing local variables.
9084         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
9085         expected.
9086
9087 2011-11-20  Bruno Haible  <bruno@clisp.org>
9088
9089         copysignf tests: Fix.
9090         * tests/test-copysignf.c: Fix signature check.
9091
9092 2011-11-20  Bruno Haible  <bruno@clisp.org>
9093
9094         fma: Remove unused code.
9095         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
9096         unused macros.
9097
9098 2011-11-20  Bruno Haible  <bruno@clisp.org>
9099
9100         sethostname: Fix doc about AIX.
9101         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
9102         sethostname; it has it.
9103
9104         sethostname: Mention more portability problems.
9105         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
9106         problem.
9107         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
9108
9109 2011-11-19  Bruno Haible  <bruno@clisp.org>
9110
9111         Depend on module fcntl-h when AT_FDCWD is used.
9112         * modules/utimens (Depends-on): Add fcntl-h.
9113         * modules/areadlinkat (Depends-on): Likewise.
9114         * modules/areadlinkat-with-size (Depends-on): Likewise.
9115         * modules/faccessat (Depends-on): Likewise.
9116         * modules/fchmodat (Depends-on): Likewise.
9117         * modules/fchownat (Depends-on): Likewise.
9118         * modules/getcwd (Depends-on): Likewise.
9119         * modules/mkdirat (Depends-on): Likewise.
9120         * modules/mkfifoat (Depends-on): Likewise.
9121         * modules/readlinkat (Depends-on): Likewise.
9122         * modules/symlinkat (Depends-on): Likewise.
9123         * modules/dup2-tests (Depends-on): Likewise.
9124         * modules/fdutimensat-tests (Depends-on): Likewise.
9125         * modules/futimens-tests (Depends-on): Likewise.
9126
9127 2011-11-19  Bruno Haible  <bruno@clisp.org>
9128
9129         euidaccess: Update a comment.
9130         * lib/euidaccess.c: Update comment about platforms with faccessat.
9131
9132 2011-11-19  Bruno Haible  <bruno@clisp.org>
9133
9134         openat: Fix file list.
9135         * modules/openat (Files): Remove lib/at-func.c.
9136
9137 2011-11-19  Bruno Haible  <bruno@clisp.org>
9138
9139         fstatat: Simplify.
9140         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
9141         gnulib should define rpl_fstatat, there is a
9142         "#define fstatat rpl_fstatat" in <sys/stat.h>.
9143
9144 2011-11-19  Bruno Haible  <bruno@clisp.org>
9145
9146         Ensure 'inline' can be used in tests/test-utimens-common.h.
9147         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
9148         * modules/futimens-tests (configure.ac): Likewise.
9149         * modules/utimens-tests (configure.ac): Likewise.
9150         * modules/utimensat-tests (configure.ac): Likewise.
9151
9152 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9153
9154         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
9155         not hash_insert0.
9156         (hash_insert_if_absent): Doc fix.
9157
9158 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9159
9160         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
9161
9162 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9163
9164         test-getcwd: disambiguate exit status
9165         * tests/test-getcwd.c (test_long_name): Return 0..7.
9166         (main): Exit with an unambiguous exit status.  The old
9167         code yielded a mysterious mixture of two failure codes.
9168
9169         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
9170         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
9171         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
9172         rpl_fstatat or fstatat.  This should fix the other problem
9173         reported by Kai Habel in
9174         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9175         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
9176         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
9177         and I reproduced it on a Solaris 8 host we still have in production.
9178
9179 2011-11-18  Jim Meyering  <meyering@redhat.com>
9180
9181         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
9182         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
9183         Add a sentence to the comment.
9184         (hash_insert0): New function that simply calls hash_insert_if_absent.
9185         * lib/hash.h (hash_insert_if_absent): Declare it.
9186         (hash_insert0): Add deprecation attribute.
9187         (_GL_ATTRIBUTE_DEPRECATED): Define.
9188         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
9189         not hash_insert0.
9190         * NEWS: Mention it, even though it's not really an incompatible change.
9191
9192 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
9193
9194         openat: avoid compilation failure due to lack of <errno.h> inclusion
9195         * lib/openat.c: Include <errno.h>.
9196
9197 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9198
9199         * modules/getcwd (Depends-on): Add fdopendir.
9200         This fixes one of the two problems reported by Kai Habel in
9201         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9202
9203         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
9204         stdalign problem reported by Ian Beckwith in
9205         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
9206         * modules/crypto/gc-arcfour (Depends-on):
9207         Depend conditionally on crypto/arcfour.
9208         * modules/crypto/gc-arctwo (Depends-on):
9209         Depend conditionally on crypto/arctwo.
9210         * modules/crypto/gc-des (Depends-on):
9211         Depend conditionally on crypto/des.
9212         * modules/crypto/gc-hmac-md5 (Depends-on):
9213         Depend conditionally on crypto/hmac-md5.
9214         * modules/crypto/gc-hmac-sha1 (Depends-on):
9215         Depend conditionally on crypto/hmac-sha1.
9216         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
9217         * modules/crypto/gc-md4 (Depends-on):
9218         Depend conditionally on crypto/md4.
9219         * modules/crypto/gc-md5 (Depends-on):
9220         Depend conditionally on crypto/md5.
9221         * modules/crypto/gc-rijndael (Depends-on):
9222         Depend conditionally on crypto/rijndael.
9223         * modules/crypto/gc-sha1 (Depends-on):
9224         Depend conditionally on crypto/sha1.
9225         * modules/crypto/gc-arcfour:
9226         * modules/crypto/gc-arctwo:
9227         * modules/crypto/gc-des:
9228         * modules/crypto/gc-hmac-md5:
9229         * modules/crypto/gc-hmac-sha1:
9230         * modules/crypto/gc-md2:
9231         * modules/crypto/gc-md4:
9232         * modules/crypto/gc-md5:
9233         * modules/crypto/gc-rijndael:
9234         * modules/crypto/gc-sha1:
9235         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
9236         now that the conditional dependencies do the work for us.
9237
9238 2011-11-17  Jim Meyering  <meyering@redhat.com>
9239
9240         tests: factor st_ctime-comparison out of two headers
9241         * tests/test-utimens-common.h (ctime_compare): Define.
9242         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
9243         * tests/test-lutimens.h (test_lutimens): Likewise.
9244         * tests/test-utimens.h (test_utimens): Likewise.
9245
9246         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
9247         Invoke the test program via an init.sh-using wrapper.
9248         * tests/test-getcwd.sh: New file.
9249         * modules/getcwd-tests (Files): Add it.
9250         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
9251
9252 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
9253
9254         gitlog-to-changelog: support multi-author commits.
9255         The FSF cares about keeping track of all authors of patches to its
9256         projects, but Git doesn't provide obvious support for multi-author
9257         changesets. Consensus seems to be forming around the use of extra
9258         Signed-off-by inspired lines in the log message formatted as
9259         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
9260         multi-author commits between version control systems.
9261         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
9262         log message and output in standard ChangeLog multi-author format.
9263         Reported by Peter Rosin <peda@lysator.liu.se>
9264
9265 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
9266             Bruno Haible  <bruno@clisp.org>
9267
9268         Fix some modules' file list.
9269         * modules/fstatat (Files): Add m4/lstat.m4.
9270         * modules/openat (Files): Likewise.
9271         * modules/unlinkat (Files): Likewise.
9272
9273 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
9274
9275         maint.mk: fix tight-scope.mk generation in VPATH builds.
9276         * top/maint.mk (tight-scope.mk): Make sure to prefix file
9277         reference with $(srcdir) so that the file is found correctly even
9278         when running `make syntax-check' in a VPATH build.
9279
9280 2011-11-13  Bruno Haible  <bruno@clisp.org>
9281             Jim Meyering  <meyering@redhat.com>
9282
9283         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
9284         * tests/init.sh (compare): Remove "No differences encountered" or
9285         synonymous output from the 'diff' program.
9286
9287 2011-11-13  Bruno Haible  <bruno@clisp.org>
9288
9289         Makefile: Tweak indentation.
9290         * Makefile: Use tab as first character in every line that contains rule
9291         commands.
9292
9293 2011-11-13  Bruno Haible  <bruno@clisp.org>
9294
9295         Syntax check for copyright statements.
9296         * check-copyright: New file.
9297         * Makefile (sc_check_copyright): New rule.
9298
9299 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9300
9301         * build-aux/git-version-gen: Add --prefix to configure the tag
9302         match string.
9303
9304 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9305
9306         * build-aux/git-version-gen: Add --help and --version.
9307
9308 2011-11-12  Jim Meyering  <meyering@redhat.com>
9309
9310         revamp the other test-exclude?.sh scripts to use init.sh, too
9311         * tests/test-exclude1.sh: Use init.sh.
9312         * tests/test-exclude2.sh: Likewise.
9313         * tests/test-exclude3.sh: Likewise.
9314         * tests/test-exclude4.sh: Likewise.
9315         * tests/test-exclude5.sh: Likewise.
9316         * tests/test-exclude6.sh: Likewise.
9317         * tests/test-exclude7.sh: Likewise.
9318         * tests/test-exclude8.sh: Likewise.
9319         * modules/exclude-tests (Files): List init.sh.
9320
9321         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
9322         These shell scripts ignored failure of the binary test-exclude,
9323         so making the latter return 77 didn't cause them to be skipped.
9324         * tests/test-exclude5.sh: Exit with test-exclude's error status
9325         when that program fails.  Revamp to use init.sh.
9326         * tests/test-exclude2.sh: Likewise.
9327
9328         test-exclude: fix a typo
9329         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
9330
9331 2011-11-11  Bruno Haible  <bruno@clisp.org>
9332
9333         obstack: Fix compilation error on MSVC 9.
9334         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
9335
9336 2011-11-11  Jim Meyering  <meyering@redhat.com>
9337
9338         test-exclude: skip tests rather than failing on deficient systems
9339         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
9340         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
9341         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
9342         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
9343
9344 2011-11-10  Bruno Haible  <bruno@clisp.org>
9345
9346         ptsname_r test: Avoid gcc warning on glibc systems.
9347         * tests/test-ptsname_r.c (null_ptr): New function.
9348         (test_errors): Use it.
9349
9350 2011-11-10  Bruno Haible  <bruno@clisp.org>
9351
9352         ptsname_r: Avoid compilation error on OSF/1 5.1.
9353         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
9354         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
9355         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
9356         function is not declared or incompatibly declared.
9357         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
9358         * modules/ptsname_r (Depends-on, configure.ac): Update.
9359         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
9360
9361 2011-11-10  Bruno Haible  <bruno@clisp.org>
9362
9363         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
9364         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
9365         When cross-compiling, guess yes on all platforms except AIX.
9366         Reported by Ludovic Courtès <ludo@gnu.org>.
9367
9368 2011-11-09  Bruno Haible  <bruno@clisp.org>
9369
9370         ptsname_r tests: Fix bugs.
9371         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
9372         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
9373
9374 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
9375
9376         fstatat: work with cross-compilation
9377         Problem reported by Ludovic Courtès in
9378         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
9379         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
9380         "cross-compiling" and assume the bug is present.  Replace
9381         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
9382         an inverted sense, to be more conservative about our assumptions.
9383         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
9384
9385 2011-11-09  Bruno Haible  <bruno@clisp.org>
9386
9387         Improve MODULES.html output.
9388         * modules/mkfifoat (Description): Use the word "function".
9389         * modules/readlinkat (Description): Likewise.
9390         * modules/symlinkat (Description): Likewise.
9391
9392 2011-11-09  Eric Blake  <eblake@redhat.com>
9393
9394         ptsname_r-tests: new test module
9395         * modules/ptsname_r-tests: New module.
9396         * tests/test-ptsname_r.c: New file.
9397
9398         ptsname_r: new module
9399         * modules/ptsname_r: New module.
9400         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
9401         * lib/ptsname.c (__ptsname_r): Split...
9402         * lib/ptsname_r.c: ...into new file.
9403         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9404         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
9405         * modules/stdlib (Makefile.am): Substitute witnesses.
9406         * lib/stdlib.in.h (ptsname_r): Declare it.
9407         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
9408         * MODULES.html.sh (Misc): Likewise.
9409         * modules/ptsname (Depends-on): Alter dependency.
9410         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
9411
9412 2011-11-09  Jim Meyering  <meyering@redhat.com>
9413
9414         announce-gen: be more concise when there's only one URL+tarball
9415         * build-aux/announce-gen (get_tool_versions): When you distribute
9416         only one type of tarball, combine the first two "Here are..."
9417         sections and make the key-checking grammar independent of
9418         how many tarballs there are.
9419
9420 2011-11-09  Eric Blake  <eblake@redhat.com>
9421
9422         openpty: provide a stub on mingw
9423         * lib/pty.in.h (includes): Provide forward declarations.
9424         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
9425
9426         raise: fix mingw handling of SIGPIPE
9427         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
9428
9429 2011-11-08  Bruno Haible  <bruno@clisp.org>
9430
9431         More conditional dependencies.
9432         * modules/faccessat (Depends-on): Add conditions.
9433         * modules/fchmodat (Depends-on): Likewise.
9434         * modules/fchownat (Depends-on): Likewise.
9435         * modules/fstatat (Depends-on): Likewise.
9436         * modules/mkfifoat (Depends-on): Likewise.
9437         * modules/readlinkat (Depends-on): Likewise.
9438         * modules/symlinkat (Depends-on): Likewise.
9439         * modules/unlinkat (Depends-on): Likewise.
9440         * modules/utimensat (Depends-on): Likewise.
9441         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
9442         * modules/linkat (Depends-on): Refine the conditions.
9443         * modules/renameat (Depends-on): Likewise.
9444
9445 2011-11-08  Bruno Haible  <bruno@clisp.org>
9446
9447         faccessat: Move AC_LIBOBJ invocation to module description.
9448         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
9449         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
9450         invocation from here...
9451         * modules/faccessat (configure.ac): ... to here. Invoke
9452         gl_PREREQ_FACCESSAT.
9453
9454 2011-11-08  Bruno Haible  <bruno@clisp.org>
9455
9456         faccessat: Simplify autoconf macro.
9457         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
9458         gl_FUNC_EUIDACCESS.
9459
9460 2011-11-08  Bruno Haible  <bruno@clisp.org>
9461
9462         renameat: Fix dependencies.
9463         * modules/renameat (Depends-on): Add stdbool.
9464
9465 2011-11-08  Bruno Haible  <bruno@clisp.org>
9466
9467         mkfifoat: Fix module description.
9468         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
9469         not gl_UNISTD_MODULE_INDICATOR.
9470
9471 2011-11-08  Bruno Haible  <bruno@clisp.org>
9472
9473         fstatat: Remove unused dependency.
9474         * modules/fstatat (Depends-on): Remove fstat.
9475
9476 2011-11-08  Simon Josefsson  <simon@josefsson.org>
9477
9478         GNUmakefile: behave when Makefile is missing.
9479         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
9480
9481 2011-11-08  Bruno Haible  <bruno@clisp.org>
9482
9483         openat: Conditionalize dependencies.
9484         * lib/openat.c: Reduce the scope of some #includes.
9485         * modules/openat (Depends-on): Add conditions.
9486
9487 2011-11-07  Jim Meyering  <meyering@redhat.com>
9488
9489         maint.mk: extract GPG key ID without using a temporary file
9490         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
9491         without using a temporary file.  Based on a suggestion from Werner Koch
9492         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
9493
9494 2011-11-07  Eric Blake  <eblake@redhat.com>
9495
9496         grantpt: fix typo
9497         * lib/stdlib.in.h (grantpt): Check correct function.
9498
9499         maint.mk: silence new syntax check
9500         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
9501
9502 2011-11-06  Bruno Haible  <bruno@clisp.org>
9503
9504         Doc about floating-point and math API.
9505         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
9506         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
9507
9508 2011-11-06  Bruno Haible  <bruno@clisp.org>
9509
9510         stdalign tests: Skip the test when compiled by Sun C.
9511         * tests/test-stdalign.c (main): Skip the test on Sun C.
9512
9513 2011-11-06  Bruno Haible  <bruno@clisp.org>
9514
9515         ansi-c++-opt: Complete the 2011-06-05 change.
9516         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
9517         does not support namespaces, set the variable to "no", not to ":".
9518
9519 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
9520
9521         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
9522
9523 2011-11-06  Bruno Haible  <bruno@clisp.org>
9524
9525         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
9526         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
9527         (minus_zerol) [HP-UX]: New macro.
9528         (unary_minus) [HP-UX]: New function.
9529         (copysignl) [HP-UX]: Use unary_minus function.
9530
9531 2011-11-06  Bruno Haible  <bruno@clisp.org>
9532
9533         ldexp, ldexpf, ldexpl: Enhance tests.
9534         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
9535         and tests/test-ldexpl.c.
9536         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
9537         LDEXP, MIN_EXP, MAX_EXP): New macros.
9538         Include test-ldexp.h.
9539         (main): Just call test_function.
9540         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
9541         infinity.h, nan.h.
9542         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9543         MAX_EXP): New macros.
9544         Include test-ldexp.h.
9545         (x, y): Remove variables.
9546         (main): Just call test_function.
9547         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
9548         infinity.h, nan.h.
9549         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9550         MAX_EXP): New macros.
9551         Include test-ldexp.h.
9552         (x, y): Remove variables.
9553         (main): Just call test_function.
9554         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
9555         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
9556         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9557         (Depends-on): Add isnand-nolibm, signbit, float.
9558         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
9559         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9560         (Depends-on): Add isnanf-nolibm, signbit, float.
9561
9562 2011-11-06  Bruno Haible  <bruno@clisp.org>
9563
9564         math tests: Cosmetics.
9565         * tests/test-math-c++.cc: Reorder declarations.
9566
9567 2011-11-05  Bruno Haible  <bruno@clisp.org>
9568
9569         fma*: Simplify test.
9570         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
9571         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
9572
9573         Tests for module 'fmal'.
9574         * modules/fmal-tests: New file.
9575         * tests/test-fmal1.c: New file.
9576         * tests/test-fmal2.c: New file.
9577
9578         New module 'fmal'.
9579         * lib/math.in.h (fmal): New declaration.
9580         * lib/fmal.c: New file.
9581         * m4/fmal.m4: New file.
9582         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
9583         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
9584         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
9585         REPLACE_FMAL.
9586         * modules/fmal: New file.
9587         * doc/posix-functions/fmal.texi: Mention the new module and the various
9588         bugs.
9589
9590         Tests for module 'fmaf'.
9591         * modules/fmaf-tests: New file.
9592         * tests/test-fmaf1.c: New file.
9593         * tests/test-fmaf2.c: New file.
9594
9595         New module 'fmaf'.
9596         * lib/math.in.h (fmaf): New declaration.
9597         * lib/fmaf.c: New file.
9598         * m4/fmaf.m4: New file.
9599         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
9600         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
9601         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
9602         REPLACE_FMAF.
9603         * modules/fmaf: New file.
9604         * doc/posix-functions/fmaf.texi: Mention the new module and the various
9605         bugs.
9606
9607         Tests for module 'fma'.
9608         * modules/fma-tests: New file.
9609         * tests/test-fma1.c: New file.
9610         * tests/test-fma1.h: New file.
9611         * tests/test-fma2.c: New file.
9612         * tests/test-fma2.h: New file.
9613
9614         New module 'fma'.
9615         * lib/math.in.h (fma): New declaration.
9616         * lib/fma.c: New file.
9617         * m4/fma.m4: New file.
9618         * m4/fegetround.m4: New file.
9619         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
9620         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
9621         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
9622         REPLACE_FMA.
9623         * modules/fma: New file.
9624         * doc/posix-functions/fma.texi: Mention the new module and the various
9625         bugs.
9626
9627         Extend gl_MATHFUNC.
9628         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
9629         Support 'void' as argument type.
9630         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
9631
9632 2011-11-05  Jim Meyering  <meyering@redhat.com>
9633
9634         maint.mk: also prohibit inclusion of dirent.h without use
9635         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
9636
9637 2011-11-05  Bruno Haible  <bruno@clisp.org>
9638
9639         ldexpl tests: Avoid test failure on MSVC 9.
9640         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
9641         value. Needed in order to enforce the conversion from a value greater
9642         than LDBL_MAX to Infinity.
9643
9644 2011-11-05  Bruno Haible  <bruno@clisp.org>
9645
9646         New modules 'at-internal', 'openat-h', split off from module 'openat'.
9647         * modules/at-internal: New file, extracted from modules/openat.
9648         * modules/openat-h: New file.
9649         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
9650         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
9651         * modules/openat (Description): Add reference to POSIX function.
9652         (Files): Remove lib/openat.h, lib/openat-proc.c.
9653         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
9654         intprops, unistd.
9655         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
9656         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
9657         gl_FCNTL_MODULE_INDICATOR.
9658         (Include): Remove unistd.h, openat.h.
9659         * modules/areadlinkat (Files): Add lib/at-func.c.
9660         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9661         openat-die, openat-h, save-cwd.
9662         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
9663         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9664         openat-die, openat-h, save-cwd, unistd.
9665         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
9666         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9667         openat-h, save-cwd. Remove fcntl-h, openat.
9668         * modules/fchmodat (Files): Remove lib/openat.h.
9669         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9670         openat, stdbool, unistd.
9671         * modules/fchownat (Files): Remove lib/openat.h.
9672         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9673         openat, stdbool, sys_stat.
9674         * modules/fdopendir (Files): Remove lib/openat-priv.h,
9675         lib/openat-proc.c.
9676         (Depends-on): Add at-internal.
9677         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
9678         * modules/fstatat (Files): Remove lib/openat.h.
9679         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9680         stdbool, unistd.
9681         * modules/fts (Depends-on): Add openat-h.
9682         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
9683         openat.
9684         * modules/mkdirat (Files): Remove lib/openat.h.
9685         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9686         openat, stdbool, sys_stat.
9687         * modules/mkfifoat (Files): Add lib/at-func.c.
9688         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9689         openat-h, save-cwd. Remove fcntl-h, openat.
9690         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
9691         * modules/readlinkat (Files): Add lib/at-func.c.
9692         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9693         openat-h, save-cwd. Remove fcntl-h, openat.
9694         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
9695         openat.
9696         * modules/selinux-at (Files): Add lib/at-func.c.
9697         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9698         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
9699         * modules/symlinkat (Files): Add lib/at-func.c.
9700         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9701         openat-h, save-cwd. Remove fcntl-h, openat.
9702         * modules/unlinkat (Files): Remove lib/openat.h.
9703         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9704         stdbool.
9705         * modules/utimensat (Files): Add lib/at-func.c.
9706         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
9707         openat-die, openat-h, save-cwd.
9708         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
9709         * modules/fdutimensat-tests (Depends-on): Add openat.
9710         * modules/fstatat-tests (Depends-on): Add openat-h.
9711         * modules/readlinkat-tests (Depends-on): Add openat.
9712         * modules/symlinkat-tests (Depends-on): Add openat.
9713
9714 2011-11-05  Bruno Haible  <bruno@clisp.org>
9715
9716         openat: Include <stdbool.h>.
9717         * lib/openat.c: Include <stdbool.h>.
9718
9719 2011-11-04  Bruno Haible  <bruno@clisp.org>
9720
9721         fchownat, renameat, unlinkat: Fix dependencies.
9722         * modules/fchownat (Depends-on): Add fstatat.
9723         * modules/renameat (Depends-on): Likewise.
9724         * modules/unlinkat (Depends-on): Likewise.
9725
9726 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
9727
9728         openat: remove direct dependency on dirent
9729         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
9730         and hasn't been needed ever since fdopendir was split into its own
9731         module on 2009-08-31.
9732         * modules/openat (Depends-on): Remove dirent.
9733
9734 2011-11-04  Bruno Haible  <bruno@clisp.org>
9735
9736         renameat: Optimize code size.
9737         * modules/renameat (configure.ac): Don't compile at-func2.c if
9738         REPLACE_RENAMEAT is 1.
9739
9740 2011-11-04  Bruno Haible  <bruno@clisp.org>
9741
9742         openat tests: Fix file list.
9743         * modules/openat-tests (Files): Add tests/test-open.h.
9744
9745 2011-11-04  Bruno Haible  <bruno@clisp.org>
9746
9747         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
9748         * modules/fchmodat (Depends-on): Add openat-die.
9749         * modules/fchownat (Depends-on): Likewise.
9750         * modules/linkat (Depends-on): Likewise.
9751         * modules/renameat (Depends-on): Likewise.
9752         * modules/openat (Depends-on): Add dirent.
9753
9754 2011-11-04  Jim Meyering  <meyering@redhat.com>
9755
9756         at-func*.c: fix comments
9757         * lib/at-func2.c: Correct/improve first-line comment.
9758         * lib/at-func.c: Correct grammar in first-line comment.
9759
9760 2011-11-04  Bruno Haible  <bruno@clisp.org>
9761
9762         New module 'mkdirat', split off from module 'openat'.
9763         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
9764         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
9765         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
9766         * modules/mkdirat: New file, extracted from modules/openat.
9767         * modules/openat (Files): Remove lib/mkdirat.c.
9768         (Depends-on): Remove mkdir.
9769         (configure.ac): Remove AC_LIBOBJ of mkdirat.
9770         (Include): Remove <sys/stat.h>.
9771         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
9772         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
9773         tests/test-mkdir.h.
9774         (Depends-on): Remove ignore-value.
9775         (Makefile.am): Remove rules for test-mkdirat.
9776         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
9777         of module 'openat'.
9778         * NEWS: Mention the change.
9779
9780 2011-11-04  Bruno Haible  <bruno@clisp.org>
9781
9782         closedir: Avoid warning on mingw.
9783         * lib/closedir.c: Include <unistd.h>.
9784
9785 2011-11-04  Bruno Haible  <bruno@clisp.org>
9786
9787         New module 'fstatat', split off from module 'openat'.
9788         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
9789         defined.
9790         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
9791         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
9792         gl_FUNC_FSTATAT.
9793         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
9794         * modules/fstatat: New file, extracted from modules/openat.
9795         * modules/openat (Files): Remove lib/fstatat.c.
9796         (Depends-on): Remove lstat.
9797         (configure.ac): Remove AC_LIBOBJ of fstatat.
9798         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
9799         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
9800         tests/test-lstat.h, tests/test-stat.h.
9801         (Depends-on): Remove getcwd-lgpl.
9802         (Makefile.am): Remove rules for test-fstatat.
9803         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
9804         of module 'openat'.
9805         * NEWS: Mention the change.
9806         * modules/getcwd (Depends-on): Add fstatat.
9807         * modules/linkat (Depends-on): Likewise.
9808         * modules/mkfifoat-tests (Depends-on): Likewise.
9809         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
9810
9811 2011-11-03  Bruno Haible  <bruno@clisp.org>
9812
9813         New module 'unlinkat', split off from module 'openat'.
9814         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
9815         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
9816         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
9817         * modules/unlinkat: New file, extracted from modules/openat. Correct
9818         the dependency conditions.
9819         * modules/openat (Files): Remove lib/unlinkat.c.
9820         (Depends-on): Remove rmdir, unlink.
9821         (configure.ac): Remove AC_LIBOBJ of unlinkat.
9822         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
9823         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
9824         tests/test-rmdir.h, tests/test-unlink.h.
9825         (Depends-on): Remove unlinkdir.
9826         (Makefile.am): Remove rules for test-unlinkat.
9827         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
9828         of module 'openat'.
9829         * NEWS: Mention the change.
9830         * modules/linkat-tests (Depends-on): Add unlinkat.
9831         * modules/mkfifoat-tests (Depends-on): Likewise.
9832         * modules/readlinkat-tests (Depends-on): Likewise.
9833
9834 2011-11-02  Bruno Haible  <bruno@clisp.org>
9835
9836         New module 'fchmodat', split off from module 'openat'.
9837         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
9838         defined.
9839         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
9840         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
9841         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
9842         * modules/fchmodat: New file, extracted from modules/openat.
9843         * modules/openat (Files): Remove lib/fchmodat.c.
9844         (configure.ac): Remove AC_LIBOBJ of fchmodat.
9845         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
9846         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
9847         (Makefile.am): Remove rules for test-fchmodat.
9848         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
9849         of module 'openat'.
9850         * NEWS: Mention the change.
9851
9852 2011-11-02  Jim Meyering  <meyering@redhat.com>
9853
9854         putenv: indent #definition of "environ" to placate cppi
9855         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
9856
9857         gitlog-to-changelog: provide a ChangeLog-repair mechanism
9858         Git logs are often treated as immutable, because editing them
9859         changes the SHA1 checksums of all descendants.  Thus, errors in
9860         git logs tend to stay there forever.  However, when we generate
9861         a ChangeLog file -- typically for distribution -- from that git log,
9862         we can actually make corrections in the generated file.  The key
9863         lies in recording in machine-readable/applicable form the desired
9864         corrections.  See --help for description and an example.
9865         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
9866         (usage): Describe it; alphabetize option descriptions.
9867         (main): Honor the new option, carefully.
9868
9869 2011-11-01  Jim Meyering  <meyering@redhat.com>
9870
9871         gitlog-to-changelog: avoid an infloop
9872         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
9873         that ends up being empty.
9874
9875 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9876
9877         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
9878         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
9879         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
9880         contains (possibly-quoted) backslashes.  This should avoid
9881         all-too-common shell bugs if COMPLICATED contains backslashes in
9882         the "wrong" places.  Reported by David Evans in
9883         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
9884         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
9885         because we want ASCII ranges.  Is there some reason we don't use
9886         the C locale everywhere in this script?
9887         (func_module, top level): Avoid unwanted pathname expansion when
9888         $repo_url_prefix or $repo_url_suffix_repl contain shell
9889         metacharacters like '?' and '*'.
9890
9891 2011-11-01  Bruno Haible  <bruno@clisp.org>
9892
9893         fchownat: Improve description.
9894         * modules/fchownat (Description): Add link to function.
9895
9896 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9897
9898         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
9899         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
9900         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
9901         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
9902
9903 2011-11-01  Bruno Haible  <bruno@clisp.org>
9904
9905         alignof: Avoid collision with stdalign module.
9906         * lib/alignof.h (alignof): Remove macro.
9907         * NEWS: Mention the change.
9908         Reported by Paul Eggert.
9909
9910 2011-11-01  Bruno Haible  <bruno@clisp.org>
9911
9912         New module 'fchownat', split off from module 'openat'.
9913         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
9914         defined.
9915         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
9916         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
9917         invoke gl_FUNC_FCHOWNAT.
9918         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
9919         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
9920         * modules/fchownat: New file, extracted from modules/openat.
9921         * modules/openat (Files): Remove lib/fchownat.c.
9922         (Depends-on): Remove lchown.
9923         (configure.ac): Remove AC_LIBOBJ of fchownat.
9924         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
9925         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
9926         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
9927         (Depends-on): Remove mgetgroups, usleep, stat-time.
9928         (configure.ac): Remove test for getegid.
9929         (Makefile.am): Remove rules for test-fchownat.
9930         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
9931         of module 'openat'.
9932         * NEWS: Mention the change.
9933
9934 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
9935
9936         stdalign: port better to MSVC and to Sun C 5.11
9937         This fixes some of the problems reported by Bruno Haible in
9938         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
9939         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
9940         shortcomings of MSVC and of Sun C 5.11.
9941         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
9942         around __declspec arg.
9943         * modules/stdalign-tests (Files): Add tests/macros.h.
9944         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
9945         Include macros.h, for ASSERT.
9946         (DECLARE_ALIGNED): Remove.
9947         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
9948         to catch bug), and to 1 if not (simplifies the rest of the code).
9949         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
9950         (CHECK_AUTO): Remove.
9951         (CHECK_ALIGNED): Check only the alignment of the static vars,
9952         since auto var alignment isn't supported by Sun C 5.11.
9953         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
9954         ASSERT failures are easier to diagnose.
9955
9956 2011-10-31  Bruno Haible  <bruno@clisp.org>
9957
9958         doc about some IRIX 5.3 problems.
9959         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
9960         on IRIX 5.3.
9961         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
9962         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
9963         5.3.
9964         * doc/posix-functions/grantpt.texi: Likewise.
9965         * doc/posix-functions/unlockpt.texi: Likewise.
9966         * doc/posix-functions/lgamma.texi: Likewise.
9967         * doc/posix-functions/nextafter.texi: Likewise.
9968         * doc/posix-functions/remainder.texi: Likewise.
9969         * doc/posix-functions/select.texi: Mention misplaced declaration on
9970         IRIX 5.3.
9971         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9972
9973 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
9974
9975         gitlog-to-changelog: fix git-log invocation.
9976         git-log mishandles date strings before 1970-01-01 UTC, and there is
9977         no use to specify --since=1970-01-01 by default anyway.
9978         * build-aux/gitlog-to-changelog: By default, when no --since option
9979         was given, do not specify explicit --since option to git-log.
9980
9981 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
9982
9983         gitlog-to-changelog: new option --append-dot.
9984         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
9985         first non-blank line of each commit message terminated with a dot.
9986
9987 2011-10-30  Bruno Haible  <bruno@clisp.org>
9988
9989         ffsl, ffsll: Avoid compilation error due to 'restrict'.
9990         * lib/ffsl.h: Include <config.h>.
9991         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
9992
9993 2011-10-30  Jim Meyering  <meyering@redhat.com>
9994
9995         GNUmakefile: reenable "make syntax-check" for most projects
9996         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
9997         build-aux variable", "syntax-check" would do nothing but succeed with
9998         the "No version control files detected..." diagnostic (unless you
9999         happened to override _build-aux via cfg.mk).
10000         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
10001         to precede inclusion of maint.mk.  Otherwise, these variables would
10002         be used undefined in any project that does not override the default.
10003
10004 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
10005
10006         gitlog-to-changelog: treat a message with only blank lines as empty.
10007         * build-aux/gitlog-to-changelog: Move the code that removes leading and
10008         trailing blank lines before the code that issues a warning about an
10009         empty commit message.
10010
10011 2011-10-30  Jim Meyering  <meyering@redhat.com>
10012
10013         test-parse-datetime.c: avoid new DST-related false positive test failure
10014         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
10015         based on the time/date we'll convert, not the current time.
10016         Otherwise, the moment we cross a DST boundary like today's in
10017         Europe, (CEST to CET), that offset ends up being one hour off.
10018
10019 2011-10-27  Bruno Haible  <bruno@clisp.org>
10020
10021         fstat: Tweak documentation.
10022         * modules/fstat (Description): More precise description.
10023
10024 2011-10-27  Bruno Haible  <bruno@clisp.org>
10025
10026         Update documentation regarding 'largefile' module.
10027         * doc/posix-functions/fstat.texi: Tweak wording.
10028         * doc/posix-functions/opendir.texi: Mention that the module fixes the
10029         problems with huge directories and/or small ino_t types.
10030         * doc/posix-functions/readdir.texi: Likewise.
10031         * doc/posix-functions/rewinddir.texi: Likewise.
10032
10033 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
10034
10035         maint.mk: don't maintain a second build-aux variable.
10036         * maint.mk (build_aux): Removed.  The maintainer-makefile module
10037         depends on GNUmakefile, which already maintains a cfg.mk
10038         overridable $(_build-aux) for projects with a non-standard
10039         build-aux directory location, although without the $(srcdir)
10040         prefix.  Use that variable consistently instead of introducing a
10041         second one.  Adjust all call sites.
10042
10043 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
10044
10045         Add stdalign module and use it in other modules.
10046         This is based on a previous proposal by Bruno Haible
10047         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
10048
10049         stdalign: new module
10050         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
10051         * modules/stdalign: New files.
10052         * MODULES.html.sh (c1x_core_properties): Add stdalign.
10053         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
10054
10055         stdalign-tests: new module
10056         * modules/stdalign-tests, tests/test-stdalign.c: New files.
10057
10058         argp: use stdalign
10059         * lib/argp-parse.c: Include <stdalign.h>.
10060         (alignof): Remove.
10061         * modules/argp (Depends-on): Add stdalign.
10062
10063         crypto libraries: use stdalign
10064         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
10065         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
10066         Do not include <stdlib.h> twice, in md4.c.
10067         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
10068         because we are accessing a pointer's bit-pattern, not a size.
10069         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
10070         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
10071         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
10072         * modules/crypto/sha512: Likewise.
10073
10074         sys_socket: use stdalign, not alignof
10075         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
10076         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
10077
10078 2011-10-27  Bruno Haible  <bruno@clisp.org>
10079
10080         raise test: Avoid a test failure on Linux/MIPS.
10081         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
10082         because 99 is a valid signal on Linux/MIPS.
10083
10084 2011-10-27  Bruno Haible  <bruno@clisp.org>
10085
10086         nonblocking tests: Fix test failure on Linux/MIPS.
10087         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
10088         Set to 270000.
10089
10090 2011-10-27  Bruno Haible  <bruno@clisp.org>
10091
10092         utimensat: Work around problem on Linux/hppa.
10093         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
10094         values.
10095         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
10096
10097 2011-10-25  Jim Meyering  <meyering@redhat.com>
10098
10099         maint.mk: fix a bug in sc_prohibit_stddef_without_use
10100         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
10101         after symbols like NULL, size_t, etc.
10102         Reported by Alfred M. Szmidt.
10103
10104         maint.mk: exempt ENODATA from a syntax-check rule
10105         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
10106         from the sc_prohibit_always-defined_macros syntax-check rule.
10107         Add a comment.  See this for more details:
10108         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
10109
10110 2011-10-23  Jim Meyering  <meyering@redhat.com>
10111
10112         fts: close parent dir FD before returning from post-traversal fts_read
10113         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
10114         unlink A, even though an FD open on A remained.  This is suboptimal
10115         (holding a file descriptor open longer than needed), but otherwise not
10116         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
10117         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
10118         that represents a real problem: it causes the removal of A to fail
10119         with e.g., "rm: cannot remove `A': Device or resource busy"
10120
10121         fts visits each directory twice and keeps a cache (fts_fd_ring) of
10122         directory file descriptors.  After completing the final, FTS_DP,
10123         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
10124         cache, but then proceeded to add a new FD to it via the subsequent
10125         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
10126         final file descriptor would be closed only via fts_close's call to
10127         fd_ring_clear.  Now, it is usually closed earlier, via the final
10128         FTS_DP-returning fts_read call.
10129         * lib/fts.c (restore_initial_cwd): New function, converted from
10130         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
10131         Update callers.
10132         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
10133         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
10134
10135 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
10136             Bruno Haible  <bruno@clisp.org>
10137             Jim Meyering  <jim@meyering.net>
10138
10139         readme-release: improve safety of release prep instructions.
10140         * README-release: Don't git pull all branches when only master
10141         is needed for the release process.
10142         Run make maintainer-clean before changing trees and merging.
10143         Don't try to run ./configure right after git pull in case files
10144         that influence the bootstrap process have changed, move the
10145         ./configure step to after running ./bootstrap.
10146         Don't bootstrap "one last time"... it's the first time!
10147
10148 2011-10-22  Bruno Haible  <bruno@clisp.org>
10149
10150         errno, strerror-override: Support for MSVC 10.
10151         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
10152         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
10153         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
10154         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
10155         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
10156         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
10157         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
10158         Assign values compatible with MSVC 10.
10159         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
10160         New macros.
10161         (GNULIB_defined_EWINSOCK): New macro.
10162         * lib/strerror-override.c (strerror_override): Update accordingly.
10163         * lib/strerror-override.h: Likewise.
10164         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
10165         longer equal to the corresponding errno value.
10166         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10167
10168 2011-10-22  Bruno Haible  <bruno@clisp.org>
10169
10170         perror: Recognize when test program crashes.
10171         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
10172         strerror, set gl_cv_func_perror_works to no.
10173         Reported by Daniel Richard G. <skunk@iskunk.org>.
10174
10175         perror: Fix indentation.
10176         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
10177
10178 2011-10-22  Bruno Haible  <bruno@clisp.org>
10179
10180         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
10181         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
10182         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
10183         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
10184         functions, not as a macro.
10185         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
10186         macros.
10187         (isfinite, isinf, isnan, signbit): Check overloaded functions and
10188         absence of macro.
10189         Suggested by Eric Blake.
10190         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10191
10192 2011-10-21  Bruno Haible  <bruno@clisp.org>
10193
10194         relocatable-prog-wrapper: Don't leave object files behind.
10195         * build-aux/install-reloc: Re-synchronize list of .o files to be
10196         removed with list of compilation units.
10197
10198 2011-10-20  Bruno Haible  <bruno@clisp.org>
10199
10200         openpty, posix_openpt: Remove code duplication.
10201         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
10202         * lib/openpty.c: Include <stdlib.h>.
10203         (openpty): Use posix_openpt on all platforms except IRIX.
10204         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
10205
10206 2011-10-20  Bruno Haible  <bruno@clisp.org>
10207
10208         unlockpt: Detect invalid argument.
10209         * lib/unlockpt.c: Include <fcntl.h>.
10210         (unlockpt): Check whether fd is valid, using fcntl().
10211         * modules/unlockpt (Depends-on): Add fcntl-h.
10212
10213 2011-10-20  Bruno Haible  <bruno@clisp.org>
10214
10215         openpty: Avoid compilation error on AIX 6.1.
10216         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
10217
10218 2011-10-20  Bruno Haible  <bruno@clisp.org>
10219
10220         posix_openpt: Support for OpenBSD.
10221         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
10222         (posix_openpt) [OpenBSD]: New code.
10223         * lib/grantpt.c: Include <fcntl.h>.
10224         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
10225         * modules/grantpt (Depends-on): Add fcntl-h.
10226
10227 2011-10-20  Bruno Haible  <bruno@clisp.org>
10228
10229         posix_openpt test: Coding style.
10230         * tests/test-posix_openpt.c: Use GNU coding style.
10231
10232 2011-10-20  Bruno Haible  <bruno@clisp.org>
10233
10234         grantpt: Support --avoid=pt_chown.
10235         * modules/grantpt (Files): Add lib/pty-private.h.
10236
10237 2011-10-20  Bruno Haible  <bruno@clisp.org>
10238
10239         posix_openpt: Fix autoconf macro.
10240         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
10241         unneeded check for _getpty.
10242
10243 2011-10-20  Bruno Haible  <bruno@clisp.org>
10244
10245         openpty: Update comments.
10246         * lib/openpty.c: Add comments about Minix.
10247
10248 2011-10-19  Eric Blake  <eblake@redhat.com>
10249
10250         openpty: relax license
10251         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
10252
10253         pt_chown: use configmake to simplify build
10254         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
10255
10256         ptsname and others: relax license
10257         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
10258         * modules/unlockpt (License): Likewise.
10259         * modules/pt_chown (License): Likewise.
10260         * modules/ptsname (License): Likewise.
10261         * modules/ttyname_r (License): Likewise.
10262
10263 2011-10-19  Jim Meyering  <meyering@redhat.com>
10264
10265         posix_openpt: remove spurious #endif
10266         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
10267
10268 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
10269
10270         maint.mk: Respect $(build_aux) in web-manual rule.
10271         * top/maint.mk (web-manual): Find gen-announce script in user's
10272         $(build_aux) directory instead of hard-coding 'build-aux'.
10273
10274 2011-10-19  Bruno Haible  <bruno@clisp.org>
10275
10276         posix_openpt: Fix compilation error.
10277         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
10278         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
10279         Mention the openpty module as an alternative.
10280
10281 2011-10-19  Bruno Haible  <bruno@clisp.org>
10282
10283         Support for old NeXTstep 3.3 frexp().
10284         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
10285         execution time of the test to 5 seconds.
10286         Reported by Daniel Richard G. <skunk@iskunk.org>.
10287
10288 2011-10-19  Bruno Haible  <bruno@clisp.org>
10289
10290         Support for old NeXTstep 3.3 sed.
10291         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
10292         part, use /.../, not \|...|. Escape periods in the header file name.
10293         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10294         Reported by Daniel Richard G. <skunk@iskunk.org>.
10295
10296 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10297
10298         Support for old NeXTstep 3.3 gcc.
10299         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
10300         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
10301         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
10302         * lib/spawn.in.h (_Restrict_arr_): Likewise.
10303         * lib/regex.h (_Restrict_arr_): Likewise.
10304         * lib/regex_internal.h (re_token_t): Likewise.
10305         * lib/regexec.c (check_node_accept_bytes): Likewise.
10306         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
10307
10308 2011-10-18  Eric Blake  <eblake@redhat.com>
10309
10310         posix_openpt: new module
10311         * modules/posix_openpt: New module.
10312         * m4/posix_openpt.m4: New file.
10313         * lib/posix_openpt.c: Likewise.
10314         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10315         (gl_STDLIB_H_DEFAULTS): Set defaults.
10316         * modules/stdlib (Makefile.am): Substitute macros.
10317         * lib/stdlib.in.h (posix_openpt): Declare.
10318         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
10319         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
10320         * modules/posix_openpt-tests: New test module.
10321         * tests/test-posix_openpt.c: New test.
10322
10323 2011-10-15  Bruno Haible  <bruno@clisp.org>
10324
10325         xstrtoll: Fix compilation failure.
10326         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
10327         from lib/strtol.c.
10328         * doc/posix-headers/limits.texi: Mention missing numerical limits on
10329         some platforms.
10330         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10331
10332 2011-10-15  Bruno Haible  <bruno@clisp.org>
10333
10334         vasnprintf: Optimize bit search operation.
10335         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
10336         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
10337         gl_DOUBLE_EXPONENT_LOCATION.
10338         * modules/vasnprintf (Files): Add m4/exponentd.m4.
10339         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10340         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10341         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10342         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10343         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10344         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10345         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10346         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
10347
10348 2011-10-15  Bruno Haible  <bruno@clisp.org>
10349
10350         vasnprintf: Fix comments.
10351         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
10352
10353 2011-10-14  Bruno Haible  <bruno@clisp.org>
10354
10355         Tests for module 'integer_length_ll'.
10356         * modules/integer_length_ll-tests: New file.
10357         * tests/test-integer_length_ll.c: New file.
10358
10359         New module 'integer_length_ll'.
10360         * lib/integer_length_ll.c: New file.
10361         * modules/integer_length_ll: New file.
10362
10363 2011-10-14  Bruno Haible  <bruno@clisp.org>
10364
10365         Tests for module 'integer_length_l'.
10366         * modules/integer_length_l-tests: New file.
10367         * tests/test-integer_length_l.c: New file.
10368
10369         New module 'integer_length_l'.
10370         * lib/integer_length_l.c: New file.
10371         * modules/integer_length_l: New file.
10372
10373 2011-10-14  Bruno Haible  <bruno@clisp.org>
10374
10375         Tests for module 'integer_length'.
10376         * modules/integer_length-tests: New file.
10377         * tests/test-integer_length.c: New file.
10378
10379         New module 'integer_length'.
10380         * lib/integer_length.h: New file.
10381         * lib/integer_length.c: New file.
10382         * modules/integer_length: New file.
10383
10384 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10385
10386         popen: Fix dependency conditions.
10387         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
10388
10389 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10390
10391         perror: Fix autoconf test.
10392         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
10393         <stdlib.h> and <string.h>.
10394
10395 2011-10-14  Bruno Haible  <bruno@clisp.org>
10396
10397         ffsl: Optimize on 64-bit platforms.
10398         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
10399         unrolling.
10400
10401 2011-10-13  Bruno Haible  <bruno@clisp.org>
10402
10403         ffsl: Optimize on 32-bit platforms.
10404         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
10405         use ffs() without a loop.
10406
10407         ffsl, ffsll: Optimize for GCC.
10408         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
10409         * lib/ffsl.c (GCC_BUILTIN): New macro.
10410         * lib/ffsll.c (GCC_BUILTIN): Likewise.
10411
10412 2011-10-13  Bruno Haible  <bruno@clisp.org>
10413
10414         ffs, bcopy, memset: Support symbol renaming via config.h.
10415         * lib/ffs.c: Include <config.h>.
10416         * lib/bcopy.c: Likewise.
10417         * lib/memset.c: Likewise.
10418
10419 2011-10-10  Bruno Haible  <bruno@clisp.org>
10420
10421         atanl: Simplify for platforms where 'long double' == 'double'.
10422         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10423         alternative implementation.
10424         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10425         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10426         * modules/atanl (Depends-on): Add atan. Update conditions.
10427
10428 2011-10-10  Bruno Haible  <bruno@clisp.org>
10429
10430         acosl: Simplify for platforms where 'long double' == 'double'.
10431         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10432         alternative implementation.
10433         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10434         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10435         * modules/acosl (Depends-on): Add acos. Update conditions.
10436
10437 2011-10-10  Bruno Haible  <bruno@clisp.org>
10438
10439         asinl: Simplify for platforms where 'long double' == 'double'.
10440         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10441         alternative implementation.
10442         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10443         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10444         * modules/asinl (Depends-on): Add asin. Update conditions.
10445
10446 2011-10-10  Bruno Haible  <bruno@clisp.org>
10447
10448         tanl: Simplify for platforms where 'long double' == 'double'.
10449         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10450         implementation.
10451         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10452         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10453         * modules/tanl (Depends-on): Add tan. Update conditions.
10454         (configure.ac): Don't compile trigl.c if
10455         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10456
10457 2011-10-10  Bruno Haible  <bruno@clisp.org>
10458
10459         cosl: Simplify for platforms where 'long double' == 'double'.
10460         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10461         implementation.
10462         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10463         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10464         * modules/cosl (Depends-on): Add cos. Update conditions.
10465         (configure.ac): Don't compile sincosl.c and trigl.c if
10466         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10467
10468 2011-10-10  Bruno Haible  <bruno@clisp.org>
10469
10470         sinl: Simplify for platforms where 'long double' == 'double'.
10471         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10472         implementation.
10473         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10474         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10475         * modules/sinl (Depends-on): Add sin. Update conditions.
10476         (configure.ac): Don't compile sincosl.c and trigl.c if
10477         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10478
10479 2011-10-10  Bruno Haible  <bruno@clisp.org>
10480
10481         logl: Simplify for platforms where 'long double' == 'double'.
10482         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10483         implementation.
10484         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10485         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10486         * modules/logl (Depends-on): Add log. Update conditions.
10487
10488 2011-10-10  Bruno Haible  <bruno@clisp.org>
10489
10490         expl: Simplify for platforms where 'long double' == 'double'.
10491         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10492         implementation.
10493         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10494         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10495         * modules/expl (Depends-on): Add exp. Update conditions.
10496
10497 2011-10-10  Bruno Haible  <bruno@clisp.org>
10498
10499         sqrtl: Simplify for platforms where 'long double' == 'double'.
10500         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10501         alternative implementation.
10502         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10503         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10504         * modules/sqrtl (Depends-on): Update conditions.
10505
10506 2011-10-10  Bruno Haible  <bruno@clisp.org>
10507
10508         ldexpl: Simplify for platforms where 'long double' == 'double'.
10509         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10510         alternative implementation.
10511         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10512         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10513         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
10514
10515 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
10516
10517         ffsll: set correct witness
10518         * modules/ffsll (configure.ac): Fix typo.
10519
10520 2011-10-10  Bruno Haible  <bruno@clisp.org>
10521
10522         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
10523         * lib/printf-frexpl.c: Include <config.h>.
10524         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10525         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
10526         second time.
10527         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
10528         gl_LONG_DOUBLE_VS_DOUBLE.
10529         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
10530         conditions.
10531
10532 2011-10-10  Bruno Haible  <bruno@clisp.org>
10533
10534         frexpl: Simplify for platforms where 'long double' == 'double'.
10535         * lib/frexpl.c: Include <config.h>.
10536         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10537         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10538         time.
10539         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10540         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10541         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
10542         * modules/frexpl (Depends-on): Add frexp. Update conditions.
10543         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
10544         conditions.
10545
10546 2011-10-10  Jim Meyering  <meyering@redhat.com>
10547
10548         test-renameat: don't leave behind a temporary file
10549         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
10550           ERROR: files left in build directory after distclean:
10551           ./gltests/test-renameat.too
10552           make[1]: *** [distcleancheck] Error 1
10553         Reported by Tom G. Christensen.
10554
10555 2011-10-09  Bruno Haible  <bruno@clisp.org>
10556
10557         rint: Determine RINT_LIBM correctly on AIX 7.
10558         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
10559         directly, not only through a function pointer. Also accept an optional
10560         4th argument with extra code.
10561         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
10562         rintf() call by gcc when optimizing.
10563
10564         mathfunc.m4: Refactor.
10565         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
10566         m4 variable.
10567
10568 2011-10-09  Bruno Haible  <bruno@clisp.org>
10569
10570         rintl: Simplify for platforms where 'long double' == 'double'.
10571         * lib/rintl.c: Include <config.h>.
10572         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10573         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10574         time.
10575         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10576         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10577         * modules/rintl (Depends-on): Add rint. Update conditions.
10578
10579 2011-10-09  Bruno Haible  <bruno@clisp.org>
10580
10581         roundl: Simplify for platforms where 'long double' == 'double'.
10582         * lib/roundl.c: Include <config.h>.
10583         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10584         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10585         time.
10586         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10587         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10588         * modules/roundl (Depends-on): Add round. Update conditions.
10589
10590 2011-10-09  Bruno Haible  <bruno@clisp.org>
10591
10592         truncl: Simplify for platforms where 'long double' == 'double'.
10593         * lib/truncl.c: Include <config.h>.
10594         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10595         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10596         time.
10597         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10598         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10599         * modules/truncl (Depends-on): Add trunc. Update conditions.
10600
10601 2011-10-09  Bruno Haible  <bruno@clisp.org>
10602
10603         ceill: Simplify for platforms where 'long double' == 'double'.
10604         * lib/ceill.c: Include <config.h>.
10605         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10606         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10607         time.
10608         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10609         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10610         * modules/ceill (Depends-on): Add ceil. Update conditions.
10611
10612 2011-10-09  Bruno Haible  <bruno@clisp.org>
10613
10614         floorl: Simplify for platforms where 'long double' == 'double'.
10615         * lib/floorl.c: Include <config.h>.
10616         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10617         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10618         time.
10619         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10620         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10621         * modules/floorl (Depends-on): Add floor. Update conditions.
10622
10623 2011-10-09  Bruno Haible  <bruno@clisp.org>
10624
10625         rint: Fix ordering constraints.
10626         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
10627         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
10628         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
10629
10630 2011-10-09  Bruno Haible  <bruno@clisp.org>
10631
10632         copysignl: Simplify for platforms where 'long double' == 'double'.
10633         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10634         alternative.
10635         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10636         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10637         * modules/copysignl (Depends-on): Add copysign. Update conditions.
10638
10639 2011-10-09  Bruno Haible  <bruno@clisp.org>
10640
10641         Tests for module 'rintl'.
10642         * modules/rintl-tests: New file.
10643         * tests/test-rintl.c: New file.
10644
10645         New module 'rintl'.
10646         * lib/math.in.h (rintl): New declaration.
10647         * lib/rintl.c: New file.
10648         * m4/rintl.m4: New file.
10649         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
10650         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
10651         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
10652         * modules/rintl: New file.
10653         * tests/test-math-c++.cc: Check the declaration of rintl.
10654         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10655         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
10656         * doc/posix-functions/rintl.texi: Mention the new module.
10657
10658 2011-10-09  Bruno Haible  <bruno@clisp.org>
10659
10660         Tests for module 'rintf'.
10661         * modules/rintf-tests: New file.
10662         * tests/test-rintf.c: New file.
10663
10664         New module 'rintf'.
10665         * lib/math.in.h (rintf): New declaration.
10666         * lib/rintf.c: New file.
10667         * m4/rintf.m4: New file.
10668         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
10669         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
10670         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
10671         * modules/rintf: New file.
10672         * tests/test-math-c++.cc: Check the declaration of rintf.
10673         * doc/posix-functions/rintf.texi: Mention the new module.
10674
10675 2011-10-09  Bruno Haible  <bruno@clisp.org>
10676
10677         rint: Support for MSVC.
10678         * lib/math.in.h (rint): New declaration.
10679         * lib/rint.c: New file.
10680         * m4/rint.m4: New file.
10681         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
10682         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
10683         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
10684         * modules/rint (Description): Fix.
10685         (Files): Add lib/rint.c, m4/rint.m4.
10686         (Depends-on): Add math.
10687         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
10688         gl_MATH_MODULE_INDICATOR.
10689         * tests/test-math-c++.cc: Check the declaration of rint.
10690         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10691         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
10692         * doc/posix-functions/rint.texi: Mention the replacement provided by
10693         the module.
10694
10695         rint tests: More tests.
10696         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
10697         minus-zero.h, infinity.h, nan.h.
10698         (main): Skip the test if the current rounding mode is not standard. Add
10699         tests for negative numbers, minus zero, infinity, NaN.
10700         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
10701         tests/nan.h.
10702         (Depends-on): Add isnand-nolibm.
10703
10704 2011-10-09  Bruno Haible  <bruno@clisp.org>
10705
10706         Tests for module 'copysignl'.
10707         * modules/copysignl-tests: New file.
10708         * tests/test-copysignl.c: New file.
10709
10710         New module 'copysignl'.
10711         * lib/math.in.h (copysignl): New declaration.
10712         * lib/copysignl.c: New file.
10713         * m4/copysignl.m4: New file.
10714         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
10715         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
10716         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
10717         HAVE_COPYSIGNL.
10718         * modules/copysignl: New file.
10719         * tests/test-math-c++.cc: Check the declaration of copysignl.
10720         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10721         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
10722         * doc/posix-functions/copysignl.texi: Mention the new module.
10723
10724 2011-10-09  Bruno Haible  <bruno@clisp.org>
10725
10726         Tests for module 'copysignf'.
10727         * modules/copysignf-tests: New file.
10728         * tests/test-copysignf.c: New file.
10729
10730         New module 'copysignf'.
10731         * lib/math.in.h (copysignf): New declaration.
10732         * lib/copysignf.c: New file.
10733         * m4/copysignf.m4: New file.
10734         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
10735         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
10736         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
10737         HAVE_COPYSIGNF.
10738         * modules/copysignf: New file.
10739         * tests/test-math-c++.cc: Check the declaration of copysignf.
10740         * doc/posix-functions/copysignf.texi: Mention the new module.
10741
10742 2011-10-09  Bruno Haible  <bruno@clisp.org>
10743
10744         Ensure that HAVE_* variables are set to 1 before they are set to 0.
10745         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
10746         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
10747         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10748         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
10749         gl_SIGNAL_H_DEFAULTS.
10750
10751 2011-10-09  Bruno Haible  <bruno@clisp.org>
10752
10753         poll: Make macro safer.
10754         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
10755         ac_cv_header_poll_h is not set.
10756
10757 2011-10-09  Bruno Haible  <bruno@clisp.org>
10758
10759         copysign: Provide replacement.
10760         * lib/math.in.h (copysign): New declaration.
10761         * lib/copysign.c: New file.
10762         * m4/copysign.m4: New file.
10763         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
10764         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
10765         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
10766         HAVE_COPYSIGN.
10767         * modules/copysign (Description): Clarify.
10768         (Files): Add lib/copysign.c, m4/copysign.m4.
10769         (Depends-on): Add math, signbit.
10770         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
10771         gl_MATH_MODULE_INDICATOR.
10772         * tests/test-math-c++.cc: Check the declaration of copysign.
10773         * doc/posix-functions/copysign.texi: Mention the effects of the module
10774         on Minix and MSVC.
10775
10776 2011-10-09  Bruno Haible  <bruno@clisp.org>
10777
10778         isinf: Ensure macro on AIX 5.1.
10779         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
10780         macro.
10781         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
10782
10783 2011-10-09  Bruno Haible  <bruno@clisp.org>
10784
10785         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
10786         * modules/snprintf-posix-tests (configure.ac): Require
10787         gl_LONG_DOUBLE_VS_DOUBLE.
10788         * modules/sprintf-posix-tests (configure.ac): Likewise.
10789         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
10790         * modules/vasprintf-posix-tests (configure.ac): Likewise.
10791         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
10792         * modules/vsprintf-posix-tests (configure.ac): Likewise.
10793         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
10794         tests on platforms where 'long double' is the same as 'double'.
10795         * tests/test-sprintf-posix.h (test_function): Likewise.
10796         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10797         * tests/test-vasprintf-posix.c (test_function): Likewise.
10798
10799         *printf: Fix for platforms where 'long double' == 'double'.
10800         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
10801         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
10802         * modules/dprintf-posix (Files): Add m4/math_h.m4.
10803         * modules/fprintf-posix (Files): Likewise.
10804         * modules/obstack-printf-posix (Files): Likewise.
10805         * modules/snprintf-posix (Files): Likewise.
10806         * modules/sprintf-posix (Files): Likewise.
10807         * modules/vasnprintf (Files): Likewise.
10808         * modules/vasnprintf-posix (Files): Likewise.
10809         * modules/vasprintf-posix (Files): Likewise.
10810         * modules/vdprintf-posix (Files): Likewise.
10811         * modules/vfprintf-posix (Files): Likewise.
10812         * modules/vsnprintf-posix (Files): Likewise.
10813         * modules/vsprintf-posix (Files): Likewise.
10814         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10815         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10816         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10817         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10818         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10819         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10820         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10821
10822         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
10823         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
10824         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10825         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
10826         'long double'.
10827         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
10828
10829         isinf: Fix for platforms where 'long double' == 'double'.
10830         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10831         Don't blindly assume 80-bit 'long double'.
10832
10833         isfinite: Fix for platforms where 'long double' == 'double'.
10834         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10835         Don't blindly assume 80-bit 'long double'.
10836
10837         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
10838         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
10839         * modules/isfinite-tests (configure.ac): Require
10840         gl_LONG_DOUBLE_VS_DOUBLE.
10841         * modules/isinf-tests (configure.ac): Likewise.
10842         * modules/isnan-tests (configure.ac): Likewise.
10843         * modules/isnanl-tests (configure.ac): Likewise.
10844         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
10845         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
10846         tests on platforms where 'long double' is the same as 'double'.
10847         * tests/test-isinf.c (test_isinfl): Likewise.
10848         * tests/test-isnan.c (test_long_double): Likewise.
10849         * tests/test-isnanl.h (main): Likewise.
10850
10851 2011-10-08  Bruno Haible  <bruno@clisp.org>
10852
10853         Tests for module 'tanhf'.
10854         * modules/tanhf-tests: New file.
10855         * tests/test-tanhf.c: New file.
10856
10857         New module 'tanhf'.
10858         * lib/math.in.h (tanhf): New declaration.
10859         * lib/tanhf.c: New file.
10860         * m4/tanhf.m4: New file.
10861         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
10862         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
10863         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
10864         * modules/tanhf: New file.
10865         * tests/test-math-c++.cc: Check the declaration of tanhf.
10866         * doc/posix-functions/tanhf.texi: Mention the new module.
10867
10868         tanh: Use a .m4 file.
10869         * m4/tanh.m4: New file.
10870         * modules/tanh (Files): Add it.
10871         (configure.ac): Just invoke gl_FUNC_TANH.
10872
10873 2011-10-08  Bruno Haible  <bruno@clisp.org>
10874
10875         Tests for module 'coshf'.
10876         * modules/coshf-tests: New file.
10877         * tests/test-coshf.c: New file.
10878
10879         New module 'coshf'.
10880         * lib/math.in.h (coshf): New declaration.
10881         * lib/coshf.c: New file.
10882         * m4/coshf.m4: New file.
10883         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
10884         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
10885         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
10886         * modules/coshf: New file.
10887         * tests/test-math-c++.cc: Check the declaration of coshf.
10888         * doc/posix-functions/coshf.texi: Mention the new module.
10889
10890         cosh: Use a .m4 file.
10891         * m4/cosh.m4: New file.
10892         * modules/cosh (Files): Add it.
10893         (configure.ac): Just invoke gl_FUNC_COSH.
10894
10895 2011-10-08  Bruno Haible  <bruno@clisp.org>
10896
10897         Tests for module 'sinhf'.
10898         * modules/sinhf-tests: New file.
10899         * tests/test-sinhf.c: New file.
10900
10901         New module 'sinhf'.
10902         * lib/math.in.h (sinhf): New declaration.
10903         * lib/sinhf.c: New file.
10904         * m4/sinhf.m4: New file.
10905         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
10906         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
10907         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
10908         * modules/sinhf: New file.
10909         * tests/test-math-c++.cc: Check the declaration of sinhf.
10910         * doc/posix-functions/sinhf.texi: Mention the new module.
10911
10912         sinh: Use a .m4 file.
10913         * m4/sinh.m4: New file.
10914         * modules/sinh (Files): Add it.
10915         (configure.ac): Just invoke gl_FUNC_SINH.
10916
10917 2011-10-08  Bruno Haible  <bruno@clisp.org>
10918
10919         Tests for module 'atan2f'.
10920         * modules/atan2f-tests: New file.
10921         * tests/test-atan2f.c: New file.
10922
10923         New module 'atan2f'.
10924         * lib/math.in.h (atan2f): New declaration.
10925         * lib/atan2f.c: New file.
10926         * m4/atan2f.m4: New file.
10927         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
10928         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
10929         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
10930         * modules/atan2f: New file.
10931         * tests/test-math-c++.cc: Check the declaration of atan2f.
10932         * doc/posix-functions/atan2f.texi: Mention the new module.
10933
10934         atan2: Use a .m4 file.
10935         * m4/atan2.m4: New file.
10936         * modules/atan2 (Files): Add it.
10937         (configure.ac): Just invoke gl_FUNC_ATAN2.
10938
10939 2011-10-08  Bruno Haible  <bruno@clisp.org>
10940
10941         Tests for module 'atanf'.
10942         * modules/atanf-tests: New file.
10943         * tests/test-atanf.c: New file.
10944
10945         New module 'atanf'.
10946         * lib/math.in.h (atanf): New declaration.
10947         * lib/atanf.c: New file.
10948         * m4/atanf.m4: New file.
10949         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
10950         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
10951         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
10952         * modules/atanf: New file.
10953         * tests/test-math-c++.cc: Check the declaration of atanf.
10954         * doc/posix-functions/atanf.texi: Mention the new module.
10955
10956         atan: Use a .m4 file.
10957         * m4/atan.m4: New file.
10958         * modules/atan (Files): Add it.
10959         (configure.ac): Just invoke gl_FUNC_ATAN.
10960
10961 2011-10-08  Bruno Haible  <bruno@clisp.org>
10962
10963         Tests for module 'acosf'.
10964         * modules/acosf-tests: New file.
10965         * tests/test-acosf.c: New file.
10966
10967         New module 'acosf'.
10968         * lib/math.in.h (acosf): New declaration.
10969         * lib/acosf.c: New file.
10970         * m4/acosf.m4: New file.
10971         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
10972         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
10973         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
10974         * modules/acosf: New file.
10975         * tests/test-math-c++.cc: Check the declaration of acosf.
10976         * doc/posix-functions/acosf.texi: Mention the new module.
10977
10978         acos: Use a .m4 file.
10979         * m4/acos.m4: New file.
10980         * modules/acos (Files): Add it.
10981         (configure.ac): Just invoke gl_FUNC_ACOS.
10982
10983 2011-10-08  Bruno Haible  <bruno@clisp.org>
10984
10985         Tests for module 'asinf'.
10986         * modules/asinf-tests: New file.
10987         * tests/test-asinf.c: New file.
10988
10989         New module 'asinf'.
10990         * lib/math.in.h (asinf): New declaration.
10991         * lib/asinf.c: New file.
10992         * m4/asinf.m4: New file.
10993         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
10994         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
10995         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
10996         * modules/asinf: New file.
10997         * tests/test-math-c++.cc: Check the declaration of asinf.
10998         * doc/posix-functions/asinf.texi: Mention the new module.
10999
11000         asin: Use a .m4 file.
11001         * m4/asin.m4: New file.
11002         * modules/asin (Files): Add it.
11003         (configure.ac): Just invoke gl_FUNC_ASIN.
11004
11005 2011-10-08  Bruno Haible  <bruno@clisp.org>
11006
11007         Tests for module 'tanf'.
11008         * modules/tanf-tests: New file.
11009         * tests/test-tanf.c: New file.
11010
11011         New module 'tanf'.
11012         * lib/math.in.h (tanf): New declaration.
11013         * lib/tanf.c: New file.
11014         * m4/tanf.m4: New file.
11015         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
11016         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
11017         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
11018         * modules/tanf: New file.
11019         * tests/test-math-c++.cc: Check the declaration of tanf.
11020         * doc/posix-functions/tanf.texi: Mention the new module.
11021
11022         tan: Use a .m4 file.
11023         * m4/tan.m4: New file.
11024         * modules/tan (Files): Add it.
11025         (configure.ac): Just invoke gl_FUNC_TAN.
11026
11027 2011-10-08  Bruno Haible  <bruno@clisp.org>
11028
11029         Tests for module 'cosf'.
11030         * modules/cosf-tests: New file.
11031         * tests/test-cosf.c: New file.
11032
11033         New module 'cosf'.
11034         * lib/math.in.h (cosf): New declaration.
11035         * lib/cosf.c: New file.
11036         * m4/cosf.m4: New file.
11037         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
11038         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
11039         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
11040         * modules/cosf: New file.
11041         * tests/test-math-c++.cc: Check the declaration of cosf.
11042         * doc/posix-functions/cosf.texi: Mention the new module.
11043
11044         cos: Use a .m4 file.
11045         * m4/cos.m4: New file.
11046         * modules/cos (Files): Add it.
11047         (configure.ac): Just invoke gl_FUNC_COS.
11048
11049 2011-10-08  Bruno Haible  <bruno@clisp.org>
11050
11051         Tests for module 'sinf'.
11052         * modules/sinf-tests: New file.
11053         * tests/test-sinf.c: New file.
11054
11055         New module 'sinf'.
11056         * lib/math.in.h (sinf): New declaration.
11057         * lib/sinf.c: New file.
11058         * m4/sinf.m4: New file.
11059         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
11060         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
11061         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
11062         * modules/sinf: New file.
11063         * tests/test-math-c++.cc: Check the declaration of sinf.
11064         * doc/posix-functions/sinf.texi: Mention the new module.
11065
11066         sin: Use a .m4 file.
11067         * m4/sin.m4: New file.
11068         * modules/sin (Files): Add it.
11069         (configure.ac): Just invoke gl_FUNC_SIN.
11070
11071 2011-10-08  Bruno Haible  <bruno@clisp.org>
11072
11073         Tests for module 'powf'.
11074         * modules/powf-tests: New file.
11075         * tests/test-powf.c: New file.
11076
11077         New module 'powf'.
11078         * lib/math.in.h (powf): New declaration.
11079         * lib/powf.c: New file.
11080         * m4/powf.m4: New file.
11081         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
11082         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
11083         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
11084         * modules/powf: New file.
11085         * tests/test-math-c++.cc: Check the declaration of powf.
11086         * doc/posix-functions/powf.texi: Mention the new module.
11087
11088         pow: Use a .m4 file.
11089         * m4/pow.m4: New file.
11090         * modules/pow (Files): Add it.
11091         (configure.ac): Just invoke gl_FUNC_POW.
11092
11093 2011-10-08  Bruno Haible  <bruno@clisp.org>
11094
11095         Tests for module 'log10f'.
11096         * modules/log10f-tests: New file.
11097         * tests/test-log10f.c: New file.
11098
11099         New module 'log10f'.
11100         * lib/math.in.h (log10f): New declaration.
11101         * lib/log10f.c: New file.
11102         * m4/log10f.m4: New file.
11103         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
11104         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
11105         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
11106         * modules/log10f: New file.
11107         * tests/test-math-c++.cc: Check the declaration of log10f.
11108         * doc/posix-functions/log10f.texi: Mention the new module.
11109
11110         log10: Use a .m4 file.
11111         * m4/log10.m4: New file.
11112         * modules/log10 (Files): Add it.
11113         (configure.ac): Just invoke gl_FUNC_LOG10.
11114
11115 2011-10-08  Bruno Haible  <bruno@clisp.org>
11116
11117         Tests for module 'logf'.
11118         * modules/logf-tests: New file.
11119         * tests/test-logf.c: New file.
11120
11121         New module 'logf'.
11122         * lib/math.in.h (logf): New declaration.
11123         * lib/logf.c: New file.
11124         * m4/logf.m4: New file.
11125         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
11126         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
11127         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
11128         * modules/logf: New file.
11129         * tests/test-math-c++.cc: Check the declaration of logf.
11130         * doc/posix-functions/logf.texi: Mention the new module.
11131
11132         log: Use a .m4 file.
11133         * m4/log.m4: New file.
11134         * modules/log (Files): Add it.
11135         (configure.ac): Just invoke gl_FUNC_LOG.
11136
11137 2011-10-08  Bruno Haible  <bruno@clisp.org>
11138
11139         Tests for module 'expf'.
11140         * modules/expf-tests: New file.
11141         * tests/test-expf.c: New file.
11142
11143         New module 'expf'.
11144         * lib/math.in.h (expf): New declaration.
11145         * lib/expf.c: New file.
11146         * m4/expf.m4: New file.
11147         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
11148         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
11149         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
11150         * modules/expf: New file.
11151         * tests/test-math-c++.cc: Check the declaration of expf.
11152         * doc/posix-functions/expf.texi: Mention the new module.
11153
11154         exp: Use a .m4 file.
11155         * m4/exp.m4: New file.
11156         * modules/exp (Files): Add it.
11157         (configure.ac): Just invoke gl_FUNC_EXP.
11158
11159 2011-10-08  Bruno Haible  <bruno@clisp.org>
11160
11161         Tests for module 'sqrtf'.
11162         * modules/sqrtf-tests: New file.
11163         * tests/test-sqrtf.c: New file.
11164
11165         New module 'sqrtf'.
11166         * lib/math.in.h (sqrtf): New declaration.
11167         * lib/sqrtf.c: New file.
11168         * m4/sqrtf.m4: New file.
11169         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
11170         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
11171         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
11172         * modules/sqrtf: New file.
11173         * tests/test-math-c++.cc: Check the declaration of sqrtf.
11174         * doc/posix-functions/sqrtf.texi: Mention the new module.
11175
11176 2011-10-08  Bruno Haible  <bruno@clisp.org>
11177
11178         Tests: Avoid link failures w.r.t. libintl.
11179         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
11180         $(LIBINTL).
11181         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
11182         $(LIBINTL).
11183         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
11184         against $(LIBINTL).
11185         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
11186         $(LIBINTL).
11187         * modules/openat-tests (Makefile.am): Link test-fchmodat against
11188         $(LIBINTL).
11189         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
11190
11191 2011-10-08  Bruno Haible  <bruno@clisp.org>
11192
11193         pow tests: Defeat compiler optimizations.
11194         * tests/test-pow.c (main): Assign arguments to x and y before use.
11195
11196 2011-10-08  Bruno Haible  <bruno@clisp.org>
11197
11198         gnulib-tool: Improve last commit.
11199         * gnulib-tool (func_modules_transitive_closure): Simplify code.
11200         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
11201         ignore dependencies that are not among the modules list.
11202
11203 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
11204
11205         gnulib-tool: don't follow dependencies to avoided modules
11206         This fixes a bug that is related to the previous one.
11207         * gnulib-tool (func_modules_transitive_closure)
11208         (func_emit_autoconf_snippets):
11209         Check whether a dependency is acceptable before using it.
11210         (--extract-dependencies): Report an error if --avoid is also used,
11211         since this combination of options is not yet supported.
11212
11213         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
11214         Problem reported by Peter Dyballa in
11215         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
11216         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
11217         when echoing "$condition".
11218
11219 2011-10-07  Bruno Haible  <bruno@clisp.org>
11220
11221         Fix documentation about math functions on MacOS X.
11222         * doc/posix-functions/exp2.texi: Don't say the function is missing on
11223         MacOS X 10.5.
11224         * doc/posix-functions/fdim.texi: Likewise.
11225         * doc/posix-functions/feclearexcept.texi: Likewise.
11226         * doc/posix-functions/fegetenv.texi: Likewise.
11227         * doc/posix-functions/fegetround.texi: Likewise.
11228         * doc/posix-functions/feholdexcept.texi: Likewise.
11229         * doc/posix-functions/feraiseexcept.texi: Likewise.
11230         * doc/posix-functions/fesetenv.texi: Likewise.
11231         * doc/posix-functions/fesetround.texi: Likewise.
11232         * doc/posix-functions/fetestexcept.texi: Likewise.
11233         * doc/posix-functions/feupdateenv.texi: Likewise.
11234         * doc/posix-functions/fmax.texi: Likewise.
11235         * doc/posix-functions/fmin.texi: Likewise.
11236         * doc/posix-functions/log2.texi: Likewise.
11237         * doc/posix-functions/modff.texi: Likewise.
11238         * doc/posix-functions/nan.texi: Likewise.
11239         * doc/posix-functions/nanf.texi: Likewise.
11240         * doc/posix-functions/nextafterf.texi: Likewise.
11241         * doc/posix-functions/remquo.texi: Likewise.
11242
11243 2011-10-07  Bruno Haible  <bruno@clisp.org>
11244
11245         modff: Drop assumption about library that defines modff.
11246         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
11247         AC_CHECK_FUNCS.
11248         * modules/modff (Files): Add m4/mathfunc.m4.
11249
11250 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
11251
11252         raise tests: Avoid a GCC warning.
11253         * tests/test-raise.c (handler): Use _Noreturn.
11254
11255 2011-10-07  Bruno Haible  <bruno@clisp.org>
11256
11257         Tests for module 'ldexpf'.
11258         * modules/ldexpf-tests: New file.
11259         * tests/test-ldexpf.c: New file.
11260
11261         New module 'ldexpf'.
11262         * lib/math.in.h (ldexpf): New declaration.
11263         * lib/ldexpf.c: New file.
11264         * m4/ldexpf.m4: New file.
11265         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
11266         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
11267         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
11268         * modules/ldexpf: New file.
11269         * tests/test-math-c++.cc: Check the declaration of ldexpf.
11270         * doc/posix-functions/ldexpf.texi: Mention the new module.
11271
11272 2011-10-06  Bruno Haible  <bruno@clisp.org>
11273
11274         frexpf: Work around problems on IRIX and mingw.
11275         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
11276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
11277         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
11278         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
11279         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
11280         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
11281         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
11282
11283 2011-10-06  Bruno Haible  <bruno@clisp.org>
11284
11285         fabsf: Drop assumption about library that defines fabsf.
11286         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
11287         AC_CHECK_FUNCS.
11288         * modules/fabsf (Files): Add m4/mathfunc.m4.
11289
11290 2011-10-06  Bruno Haible  <bruno@clisp.org>
11291
11292         frexpf: Drop assumption about library that defines frexpf.
11293         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
11294         'int *', 'float *', 'long double *', 'float', 'long double'.
11295         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
11296         AC_CHECK_FUNCS.
11297         * modules/frexpf (Files): Add m4/mathfunc.m4.
11298
11299         Tests for module 'frexpf'.
11300         * modules/frexpf-tests: New file.
11301         * tests/test-frexpf.c: New file.
11302
11303         New module 'frexpf'.
11304         * lib/math.in.h (frexpf): New declaration.
11305         * lib/frexpf.c: New file.
11306         * m4/frexpf.m4: New file.
11307         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
11308         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
11309         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
11310         * modules/frexpf: New file.
11311         * tests/test-math-c++.cc: Check the declaration of frexpf.
11312         * doc/posix-functions/frexpf.texi: Mention the new module.
11313
11314 2011-10-06  Bruno Haible  <bruno@clisp.org>
11315
11316         math: Sort function declarations of math.in.h.
11317         * lib/math.in.h (frexp, logb): Move declarations.
11318
11319 2011-10-05  Bruno Haible  <bruno@clisp.org>
11320
11321         Tests for module 'modff'.
11322         * modules/modff-tests: New file.
11323         * tests/test-modff.c: New file.
11324
11325         New module 'modff'.
11326         * lib/math.in.h (modff): New declaration.
11327         * lib/modff.c: New file.
11328         * m4/modff.m4: New file.
11329         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
11330         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
11331         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
11332         * modules/modff: New file.
11333         * tests/test-math-c++.cc: Check the declaration of modff.
11334         * doc/posix-functions/modff.texi: Mention the new module.
11335
11336         modf tests: Make test sharper.
11337         * tests/test-modf.c (main): Strengthen upper bound.
11338
11339         modf: Use a .m4 file.
11340         * m4/modf.m4: New file.
11341         * modules/modf (Files): Add it.
11342         (configure.ac): Just invoke gl_FUNC_MODF.
11343
11344 2011-10-05  Bruno Haible  <bruno@clisp.org>
11345
11346         Tests for module 'fmodf'.
11347         * modules/fmodf-tests: New file.
11348         * tests/test-fmodf.c: New file.
11349
11350         New module 'fmodf'.
11351         * lib/math.in.h (fmodf): New declaration.
11352         * lib/fmodf.c: New file.
11353         * m4/fmodf.m4: New file.
11354         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
11355         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
11356         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
11357         * modules/fmodf: New file.
11358         * tests/test-math-c++.cc: Check the declaration of fmodf.
11359         * doc/posix-functions/fmodf.texi: Mention the new module.
11360
11361         fmod: Use a .m4 file.
11362         * m4/fmod.m4: New file.
11363         * modules/fmod (Files): Add it.
11364         (configure.ac): Just invoke gl_FUNC_FMOD.
11365
11366 2011-10-05  Bruno Haible  <bruno@clisp.org>
11367
11368         Tests for module 'fabsf'.
11369         * modules/fabsf-tests: New file.
11370         * tests/test-fabsf.c: New file.
11371
11372         New module 'fabsf'.
11373         * lib/math.in.h (fabsf): New declaration.
11374         * lib/fabsf.c: New file.
11375         * m4/fabsf.m4: New file.
11376         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
11377         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
11378         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
11379         * modules/fabsf: New file.
11380         * tests/test-math-c++.cc: Check the declaration of fabsf.
11381         * doc/posix-functions/fabsf.texi: Mention the new module.
11382
11383         fabs: Use a .m4 file.
11384         * m4/fabs.m4: New file.
11385         * modules/fabs (Files): Add it.
11386         (configure.ac): Just invoke gl_FUNC_FABS.
11387
11388 2011-10-05  Jim Meyering  <meyering@redhat.com>
11389
11390         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
11391         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
11392         ls -lL regression introduced in coreutils-8.12, it does so at the
11393         cost of an additional stat call in the common case.  Besides, now
11394         that the kernel change that prompted commit 95f7c57f has been reverted
11395         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
11396         we have no use for commit 95f7c57f, "file-has-acl: use
11397         acl_extended_file_nofollow if available".
11398
11399 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
11400
11401         file-has-acl: revert unintended change in behavior of ls -L
11402         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
11403         derived from...
11404         (file_has_acl): ...code here.  Call it.
11405         This problem was introduced with 2011-07-22 commit 95f7c57f,
11406         "file-has-acl: use acl_extended_file_nofollow if available".
11407         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
11408
11409 2011-10-03  Bruno Haible  <bruno@clisp.org>
11410
11411         poll: Avoid link errors on MSVC.
11412         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
11413         * modules/poll (Depends-on): Add sockets.
11414         (Link): New section.
11415         * NEWS: Mention the change.
11416         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
11417         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
11418         $(LIB_POLL) instead of $(LIBSOCKET).
11419
11420 2011-10-03  Bruno Haible  <bruno@clisp.org>
11421
11422         sys_select tests: Fix link error on MSVC 9.
11423         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
11424         with $(LIB_SELECT) instead of $(LIBSOCKET).
11425
11426 2011-10-03  Bruno Haible  <bruno@clisp.org>
11427
11428         sys_select: Fix compilation error on mingw.
11429         * lib/sys_select.in.h: On native Windows, include <io.h>.
11430
11431 2011-10-03  Bruno Haible  <bruno@clisp.org>
11432
11433         wmemset: Support for MSVC.
11434         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
11435         whether wmemset() exists.
11436
11437 2011-10-03  Bruno Haible  <bruno@clisp.org>
11438
11439         wmemmove: Support for MSVC.
11440         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
11441         whether wmemmove() exists.
11442
11443 2011-10-03  Bruno Haible  <bruno@clisp.org>
11444
11445         wmemcpy: Support for MSVC.
11446         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
11447         whether wmemcpy() exists.
11448
11449 2011-10-03  Bruno Haible  <bruno@clisp.org>
11450
11451         wmemcmp: Support for MSVC.
11452         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
11453         whether wmemcmp() exists.
11454
11455 2011-10-03  Bruno Haible  <bruno@clisp.org>
11456
11457         wmemchr: Support for MSVC.
11458         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
11459         whether wmemchr() exists.
11460
11461 2011-10-03  Bruno Haible  <bruno@clisp.org>
11462
11463         glthread/*, strsignal: Support for MSVC.
11464         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
11465         including <winsock.h> on MSVC 9.
11466         * lib/glthread/lock.h: Likewise.
11467         * lib/glthread/thread.h: Likewise.
11468         * lib/glthread/tls.h: Likewise.
11469         * lib/glthread/yield.h: Likewise.
11470         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
11471         if HAVE_UNISTD_H is false.
11472         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
11473
11474 2011-10-03  Bruno Haible  <bruno@clisp.org>
11475
11476         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
11477         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
11478         Set to 100000.
11479
11480 2011-10-03  Bruno Haible  <bruno@clisp.org>
11481
11482         acl: Fix specification.
11483         * lib/file-has-acl.c (file_has_acl): Fix specification.
11484
11485 2011-10-03  Bruno Haible  <bruno@clisp.org>
11486
11487         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
11488         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
11489         (compute_curr_prefix, shared_library_fullname,
11490         find_shared_library_fullname, get_shared_library_fullname, relocate):
11491         Use it together with PIC && INSTALLDIR.
11492         Reported by <jojelino@gmail.com>
11493         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
11494
11495 2011-10-01  Jim Meyering  <meyering@redhat.com>
11496
11497         maint.mk: adjust a release-related rule not to require use of gzip
11498         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
11499         Instead, check each file in $(DIST_ARCHIVES).  This is better for
11500         projects that build only .tar.xz files.  Also fix an erroneous test.
11501
11502         test-linkat: don't leave behind a temporary file
11503         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
11504         Otherwise, coreutils' "make distcheck" would fail with this:
11505           Only in /c/cu/tests/torture/coreutils/test/\
11506             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
11507           make[2]: *** [my-distcheck] Error 1
11508
11509         float, math: add omitted file
11510         * lib/itold.c: Add file, required for yesterday's float change.
11511
11512 2011-10-01  Bruno Haible  <bruno@clisp.org>
11513
11514         isinf: Fix for OpenBSD/x86.
11515         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
11516         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
11517         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
11518
11519 2011-10-01  Bruno Haible  <bruno@clisp.org>
11520
11521         isfinite: Fix syntax error in configure test.
11522         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
11523
11524         isfinite: Fix typo.
11525         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
11526         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
11527
11528 2011-10-01  Bruno Haible  <bruno@clisp.org>
11529
11530         nonblocking tests: Fix test failure on Linux/IA-64.
11531         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
11532         Set to 270000.
11533
11534 2011-10-01  Bruno Haible  <bruno@clisp.org>
11535
11536         mkfifoat tests: Fix a test failure on mingw.
11537         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
11538         with error ENOSYS.
11539
11540 2011-09-30  Bruno Haible  <bruno@clisp.org>
11541
11542         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
11543         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
11544         'long double'. Set REPLACE_ITOLD.
11545         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
11546         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
11547         * lib/itold.c: New file.
11548         * modules/float (Files): Add lib/itold.c.
11549         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
11550         (Makefile.am): Substitute REPLACE_ITOLD.
11551         * modules/math (Depends-on): Add float.
11552         (Makefile.am): Substitute REPLACE_ITOLD.
11553         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
11554         * doc/posix-headers/math.texi: Likewise.
11555         * doc/posix-functions/logl.texi: Likewise.
11556
11557 2011-09-30  Bruno Haible  <bruno@clisp.org>
11558
11559         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
11560         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
11561         Set to 140000.
11562
11563 2011-09-30  Bruno Haible  <bruno@clisp.org>
11564
11565         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
11566         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
11567         invocation, say "right after AC_PROG_CC_STDC", not "right after
11568         AC_PROG_CC".
11569         Reported by Gary V. Vaughan <gary@gnu.org>.
11570
11571 2011-09-30  Bruno Haible  <bruno@clisp.org>
11572
11573         Centralize C99 requirement.
11574         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
11575         * modules/stdarg (configure.ac-early): Invoke it instead of
11576         AC_PROG_CC_STDC.
11577         Reported by Gary V. Vaughan and Paul Eggert.
11578
11579 2011-09-29  Bruno Haible  <bruno@clisp.org>
11580
11581         float: Fix LDBL_MAX value on Linux/PowerPC.
11582         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
11583         on Linux/PowerPC.
11584         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
11585         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
11586         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
11587         platform.
11588         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
11589
11590 2011-09-29  Bruno Haible  <bruno@clisp.org>
11591
11592         doc: Improve doc about gl_EARLY.
11593         * doc/gnulib-tool.texi (Initial import): Mention where to place an
11594         AC_PROG_CC_STDC invocation.
11595         Reported by Gary V. Vaughan <gary@gnu.org>.
11596
11597 2011-09-28  Bruno Haible  <bruno@clisp.org>
11598
11599         fgetc, fputc, fread, fwrite tests: Fix link error.
11600         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
11601         on non-MSVC platforms.
11602         * tests/test-fputc.c (main): Likewise.
11603         * tests/test-fread.c (main): Likewise.
11604         * tests/test-fwrite.c (main): Likewise.
11605         Reported by Jim Meyering.
11606
11607 2011-09-27  Bruno Haible  <bruno@clisp.org>
11608
11609         fputc, fwrite tests: Avoid test failure on MSVC.
11610         * tests/test-fgetc.c: Include msvc-inval.h.
11611         (main): Invoke gl_msvc_inval_ensure_handler.
11612         * tests/test-fputc.c: Include msvc-inval.h.
11613         (main): Invoke gl_msvc_inval_ensure_handler.
11614         * tests/test-fread.c: Include msvc-inval.h.
11615         (main): Invoke gl_msvc_inval_ensure_handler.
11616         * tests/test-fwrite.c: Include msvc-inval.h.
11617         (main): Invoke gl_msvc_inval_ensure_handler.
11618         * modules/fgetc-tests (Depends-on): Add msvc-inval.
11619         * modules/fputc-tests (Depends-on): Likewise.
11620         * modules/fread-tests (Depends-on): Likewise.
11621         * modules/fwrite-tests (Depends-on): Likewise.
11622
11623 2011-09-27  Bruno Haible  <bruno@clisp.org>
11624
11625         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
11626         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
11627         (raise): Remove older, duplicated declaration.
11628         (_gl_raise_SIGPIPE): New declaration.
11629         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
11630         (rpl_raise): Remove function.
11631         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
11632         a gnulib-defined SIGPIPE here.
11633         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
11634         'sigprocmask' has detected missing signal-blocking and the module
11635         'sigpipe' is enabled.
11636         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11637
11638 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
11639
11640         base64-tests: avoid memory leak
11641         * tests/test-base64.c (main): Plug memory leak.
11642
11643         base32: new module
11644         * modules/base32: New module.
11645         * lib/base32.c: New file.
11646         * lib/base32.h: Likewise.
11647         * m4/base32.m4: Likewise.
11648         * modules/base32-tests: New test.
11649         * tests/test-base32.c: Likewise.
11650         * MODULES.html.sh (Misc): Mention it.
11651
11652 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
11653
11654         gnulib: use more-standard license notice wording
11655         * gnulib-tool (func_emit_copyright_notice): When emitting a
11656         license notice into a file, use the standard wording as suggested
11657         by the current information for GNU maintainers, except say "file"
11658         rather than "program".  The new wording gives a license version
11659         number, which addresses an issue raised by Glenn Morris in
11660         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
11661         * m4/onceonly.m4: Use that same wording here, too.
11662
11663         dup2: minor simplification
11664         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
11665         as lib/dup2.c no longer uses 'inline'.
11666
11667 2011-09-25  Bruno Haible  <bruno@clisp.org>
11668
11669         strings: Fix compilation error on MSVC.
11670         * lib/strings.in.h: Include <stddef.h> for size_t.
11671
11672 2011-09-25  Bruno Haible  <bruno@clisp.org>
11673
11674         fflush et al.: Document limitation on MSVC.
11675         * doc/posix-functions/fflush.texi: Document possible crash in handling
11676         mode other than DEFAULT_HANDLING.
11677         * doc/posix-functions/fgetc.texi: Likewise.
11678         * doc/posix-functions/fputc.texi: Likewise.
11679         * doc/posix-functions/fread.texi: Likewise.
11680         * doc/posix-functions/fwrite.texi: Likewise.
11681
11682 2011-09-25  Bruno Haible  <bruno@clisp.org>
11683
11684         msvc-inval: Allow three invalid parameter handling modes.
11685         * lib/msvc-inval.h: Don't include <stdlib.h> here.
11686         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
11687         macros.
11688         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
11689         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
11690         SANE_LIBRARY_HANDLING as a no-op.
11691         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
11692         <stdlib.h>.
11693         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
11694
11695 2011-09-25  Bruno Haible  <bruno@clisp.org>
11696
11697         msvc-inval: Make handler multithread-safe.
11698         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
11699         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
11700         declarations.
11701         (gl_msvc_inval_current): New declaration.
11702         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11703         Operate on the structure returned by gl_msvc_inval_current().
11704         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
11705         Remove varaiables.
11706         (tls_index, tls_initialized): New variables.
11707         (not_per_thread): New variable.
11708         (gl_msvc_inval_current): New function.
11709         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
11710         returned by gl_msvc_inval_current().
11711
11712 2011-09-25  Bruno Haible  <bruno@clisp.org>
11713
11714         msvc-inval: Install handler globally.
11715         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
11716         !_MSC_VER.
11717         (gl_msvc_invalid_parameter_handler): Remove declaration.
11718         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
11719         declarations.
11720         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11721         Install the handler globally, don't uninstall it.
11722         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
11723         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
11724         currently valid, call RaiseException instead.
11725         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
11726         for !_MSC_VER.
11727
11728 2011-09-25  Bruno Haible  <bruno@clisp.org>
11729
11730         strerror_r-posix: Fix for MSVC 9.
11731         * lib/strerror_r.c (local_snprintf): New function.
11732         (snprintf): Define to local_snprintf, not to _snprintf.
11733
11734 2011-09-25  Bruno Haible  <bruno@clisp.org>
11735
11736         ftruncate: Support for MSVC 9.
11737         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
11738         (chsize_nothrow): New function.
11739         (chsize): Redefine as a macro.
11740         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
11741         * modules/ftruncate (Depends-on): Add msvc-inval.
11742
11743 2011-09-25  Bruno Haible  <bruno@clisp.org>
11744
11745         New module 'fstat'.
11746         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
11747         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
11748         * lib/fchdir.c (rpl_fstat): Remove function.
11749         * m4/fstat.m4: New file.
11750         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
11751         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
11752         declared.
11753         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
11754         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
11755         * modules/fstat: New file.
11756         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
11757         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
11758         is set.
11759         * doc/posix-functions/fstat.texi: Mention the new module and the
11760         problem on MSVC.
11761         * NEWS: Mention the change.
11762         * modules/acl (Depends-on): Add fstat.
11763         * modules/chdir-safer (Depends-on): Likewise.
11764         * modules/chown (Depends-on): Likewise.
11765         * modules/copy-file (Depends-on): Likewise.
11766         * modules/fchdir (Depends-on): Likewise.
11767         * modules/fdopendir (Depends-on): Likewise.
11768         * modules/fopen (Depends-on): Likewise.
11769         * modules/fts (Depends-on): Likewise.
11770         * modules/getcwd (Depends-on): Likewise.
11771         * modules/isapipe (Depends-on): Likewise.
11772         * modules/linkat (Depends-on): Likewise.
11773         * modules/lseek (Depends-on): Likewise.
11774         * modules/mkdir-p (Depends-on): Likewise.
11775         * modules/open (Depends-on): Likewise.
11776         * modules/openat (Depends-on): Likewise.
11777         * modules/read-file (Depends-on): Likewise.
11778         * modules/renameat (Depends-on): Likewise.
11779         * modules/utimens (Depends-on): Likewise.
11780
11781 2011-09-25  Bruno Haible  <bruno@clisp.org>
11782
11783         linkat: Fix compilation on MSVC 9.
11784         * lib/linkat.c: Don't include <stdint.h>.
11785
11786 2011-09-25  Bruno Haible  <bruno@clisp.org>
11787
11788         fclose: Support for MSVC 9.
11789         * lib/fclose.c: Include msvc-inval.h.
11790         (fclose_nothrow): New function.
11791         (rpl_fclose): Use it.
11792         * modules/fclose (Depends-on): Add msvc-inval.
11793         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
11794
11795 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
11796
11797         dup2: minor simplifications
11798         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
11799         that it's a performance win.
11800         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
11801         ! defined __CYGWIN__)" to "ifdef F_GETFL".
11802
11803 2011-09-24  Jim Meyering  <meyering@redhat.com>
11804
11805         test-futimens: avoid a warning from gcc -Wshadow
11806         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
11807         to avoid a shadowing warning.
11808
11809 2011-09-24  Bruno Haible  <bruno@clisp.org>
11810
11811         fdopen: Support for MSVC 9.
11812         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
11813         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
11814         * lib/fdopen.c: Include msvc-inval.h.
11815         (fdopen_nothrow): New function.
11816         (rpl_fdopen): Use it.
11817         * modules/fdopen (Depends-on): Add msvc-inval.
11818         * modules/fclose-tests (Depends-on): Add fdopen.
11819         * modules/fflush-tests (Depends-on): Likewise.
11820         * modules/fgetc-tests (Depends-on): Likewise.
11821         * modules/fputc-tests (Depends-on): Likewise.
11822         * modules/fread-tests (Depends-on): Likewise.
11823         * modules/freopen-tests (Depends-on): Likewise.
11824         * modules/fseeko-tests (Depends-on): Likewise.
11825         * modules/ftello-tests (Depends-on): Likewise.
11826         * modules/fwrite-tests  (Depends-on): Likewise.
11827         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
11828
11829 2011-09-24  Bruno Haible  <bruno@clisp.org>
11830
11831         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
11832         * modules/fgetc-tests (Depends-on): Add unistd.
11833         * modules/fputc-tests (Depends-on): Likewise.
11834         * modules/fread-tests (Depends-on): Likewise.
11835         * modules/fwrite-tests (Depends-on): Likewise.
11836
11837 2011-09-24  Bruno Haible  <bruno@clisp.org>
11838
11839         dup: Simplify autoconf test.
11840         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
11841         on gl_MSVC_INVAL's result.
11842
11843 2011-09-24  Bruno Haible  <bruno@clisp.org>
11844
11845         Tests for function fwrite().
11846         * modules/fwrite-tests: New file.
11847         * tests/test-fwrite.c: New file.
11848         * modules/stdio-tests (Depends-on): Add fwrite-tests.
11849
11850         Tests for function fread().
11851         * modules/fread-tests: New file.
11852         * tests/test-fread.c: New file.
11853         * modules/stdio-tests (Depends-on): Add fread-tests.
11854
11855         Activate fputc tests.
11856         * modules/stdio-tests (Depends-on): Add fputc-tests.
11857
11858         Enhance fgetc, fputc tests.
11859         * tests/test-fgetc.c (main): Also test the stream's error indicator.
11860         * tests/test-fputc.c (main): Likewise.
11861
11862 2011-09-24  Bruno Haible  <bruno@clisp.org>
11863
11864         write: Support for MSVC 9.
11865         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11866         is not 1.
11867         * lib/write.c (write_nothrow): New function.
11868         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
11869         not 1. Use write_nothrow.
11870         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
11871         invalid parameter handler.
11872         (gl_PREREQ_WRITE): New macro.
11873         * modules/write (Depends-on): Add msvc-inval.
11874         (configure.ac): Invoke gl_PREREQ_WRITE.
11875         * doc/posix-functions/write.texi: Mention the problem on MSVC.
11876
11877 2011-09-24  Bruno Haible  <bruno@clisp.org>
11878
11879         read: Fix last commit.
11880         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
11881
11882 2011-09-24  Bruno Haible  <bruno@clisp.org>
11883
11884         dup2: Fix last commit.
11885         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
11886         (rpl_dup2): Disable fcntl workaround on native Windows.
11887
11888         sigprocmask: Make code safer.
11889         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
11890         section that changes macro definitions for this compilation unit.
11891
11892 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11893
11894         dup2: clarify by coalescing Windows-specific material
11895         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
11896         "msvc-nothrow.h"' to the Windows-specific section, so that the
11897         Emacs source need not contain these include files.
11898         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
11899         Windows-specific fixes into this function rather than just the
11900         nothrow fix, as this shortens and clarifies the code.  Always
11901         define as a function, as that's a bit cleaner than having it be
11902         sometimes a function and sometimes a macro.
11903         (rpl_dup2): Move the Windows-specific stuff out of here and into
11904         ms_windows_dup2.  Don't protect the Haiku-related fix with
11905         "#if !defined __linux__", as the same code also works around
11906         a Linux kernel bug, and it doesn't add any system calls on any
11907         platform.  Add comment about FreeBSD 6.1.
11908
11909         sigprocmask: move #include directive
11910         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
11911         Windows-specific section, so that the Emacs source need not
11912         contain msvc-inval.h.
11913
11914 2011-09-23  Bruno Haible  <bruno@clisp.org>
11915
11916         read: Support for MSVC 9.
11917         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11918         is not 1.
11919         * lib/read.c (read_nothrow): New function.
11920         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
11921         read_nothrow.
11922         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
11923         invalid parameter handler.
11924         (gl_PREREQ_READ): New macro.
11925         * modules/read (Depends-on): Add msvc-inval.
11926         (configure.ac): Invoke gl_PREREQ_READ.
11927         * doc/posix-functions/read.texi: Mention the problem on MSVC.
11928
11929 2011-09-23  Bruno Haible  <bruno@clisp.org>
11930
11931         close: Support for MSVC 9.
11932         * lib/close.c: Include <errno.h>, msvc-inval.h.
11933         (close_nothrow): New function.
11934         (rpl_close): Use it.
11935         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
11936         invalid parameter handler.
11937         * modules/close (Depends-on): Add msvc-inval.
11938         * modules/dup2-tests (Depends-on): Add close.
11939         * modules/dup3-tests (Depends-on): Likewise.
11940         * modules/fcntl-tests (Depends-on): Likewise.
11941         * modules/spawn-pipe-tests (Depends-on): Likewise.
11942         * modules/unistd-safer-tests (Depends-on): Likewise.
11943         * doc/posix-functions/close.texi: Mention the problem on MSVC.
11944
11945 2011-09-23  Bruno Haible  <bruno@clisp.org>
11946
11947         New module 'dup'.
11948         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
11949         Allow replacement.
11950         * lib/dup.c: New file.
11951         * lib/fchdir.c (rpl_dup): Remove function.
11952         * m4/dup.m4: New file.
11953         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
11954         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
11955         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
11956         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
11957         * modules/dup: New file.
11958         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
11959         'dup' module is in use.
11960         * modules/fdopendir (Depends-on): Add dup.
11961         * modules/fdutimensat-tests (Depends-on): Likewise.
11962         * modules/fts (Depends-on): Likewise.
11963         * modules/futimens-tests (Depends-on): Likewise.
11964         * modules/posix_spawnp-tests (Depends-on): Likewise.
11965         * modules/unistd-safer-tests (Depends-on): Likewise.
11966         * modules/utimens-tests (Depends-on): Likewise.
11967         * doc/posix-functions/dup.texi: Mention the new module and the problem
11968         on MSVC.
11969
11970 2011-09-23  Bruno Haible  <bruno@clisp.org>
11971
11972         getdtablesize: Support for MSVC 9.
11973         * lib/getdtablesize.c: Include msvc-inval.h.
11974         (_setmaxstdio_nothrow): New function.
11975         (_setmaxstdio): Redefine it.
11976         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
11977         * modules/getdtablesize (Depends-on): Add msvc-inval.
11978         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
11979
11980 2011-09-23  Bruno Haible  <bruno@clisp.org>
11981
11982         signal-h: Rename from signal.
11983         * modules/signal-h: Renamed from modules/signal.
11984         * modules/pthread_sigmask (Depends-on): Update.
11985         * modules/raise (Depends-on): Likewise.
11986         * modules/sigaction (Depends-on): Likewise.
11987         * modules/sigpipe (Depends-on): Likewise.
11988         * modules/sigprocmask (Depends-on): Likewise.
11989         * modules/sys_select (Depends-on): Likewise.
11990         * modules/signal-h-tests: Renamed from modules/signal-tests.
11991         (Files, Depends-on, Makefile.am): Update.
11992         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
11993         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
11994         (Files, Makefile.am): Update.
11995         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
11996         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
11997         * modules/signal: New placeholder file.
11998         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
11999         * doc/posix-headers/signal.texi: Update.
12000         * NEWS: Mention the change.
12001
12002 2011-09-23  Bruno Haible  <bruno@clisp.org>
12003
12004         sigprocmask: Avoid crashes through signal() on MSVC 9.
12005         * lib/sigprocmask.c: Include msvc-inval.h.
12006         (signal_nothrow): New function.
12007         (signal): Redefine it.
12008         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
12009         * modules/sigprocmask (Depends-on): Add msvc-inval.
12010         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
12011
12012 2011-09-23  Bruno Haible  <bruno@clisp.org>
12013
12014         Tests for module 'raise'.
12015         * modules/raise-tests: New file.
12016         * tests/test-raise.c: New file.
12017
12018         raise: Support for MSVC.
12019         * lib/signal.in.h (raise): New declaration.
12020         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
12021         for native Windows platforms.
12022         * m4/raise.m4: New file.
12023         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
12024         HAVE_RAISE, REPLACE_RAISE.
12025         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
12026         REPLACE_RAISE.
12027         * modules/raise (Status, Notice): Remove fields.
12028         (Files): Add m4/raise.m4.
12029         (Depends-on): Add signal, msvc-inval.
12030         (configure.ac): Use the common idioms.
12031         (Maintainer): Add me.
12032         * tests/test-signal-c++.cc: Check the signature of raise.
12033         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
12034
12035 2011-09-23  Bruno Haible  <bruno@clisp.org>
12036
12037         pipe2: Fix compilation on pre-C99 compilers.
12038         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
12039
12040 2011-09-23  Bruno Haible  <bruno@clisp.org>
12041
12042         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
12043         * lib/msvc-nothrow.h: New file.
12044         * lib/msvc-nothrow.c: New file.
12045         * m4/msvc-nothrow.m4: New file.
12046         * modules/msvc-nothrow: New file.
12047         * lib/dup2.c: Include msvc-nothrow.h.
12048         (rpl_dup2): No need to protect _get_osfhandle call here.
12049         * lib/accept4.c: Include msvc-nothrow.h.
12050         * lib/error.c: Likewise.
12051         * lib/fcntl.c: Likewise.
12052         * lib/lseek.c: Likewise.
12053         * lib/nonblocking.c: Likewise.
12054         * lib/poll.c: Likewise.
12055         * lib/read.c: Likewise.
12056         * lib/select.c: Likewise.
12057         * lib/sockets.h: Likewise.
12058         * lib/sockets.c: Likewise.
12059         * lib/stdio-read.c: Likewise.
12060         * lib/stdio-write.c: Likewise.
12061         * lib/write.c: Likewise.
12062         * lib/w32sock.h: Likewise.
12063         * lib/w32spawn.h: Likewise.
12064         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
12065         * lib/fsync.c: Likewise.
12066         * lib/isapipe.c: Likewise.
12067         * modules/dup2 (Depends-on): Add msvc-nothrow.
12068         * modules/accept4 (Depends-on): Likewise.
12069         * modules/error (Depends-on): Likewise.
12070         * modules/fcntl (Depends-on): Likewise.
12071         * modules/lseek (Depends-on): Likewise.
12072         * modules/nonblocking (Depends-on): Likewise.
12073         * modules/poll (Depends-on): Likewise.
12074         * modules/read (Depends-on): Likewise.
12075         * modules/select (Depends-on): Likewise.
12076         * modules/sockets (Depends-on): Likewise.
12077         * modules/sigpipe (Depends-on): Likewise.
12078         * modules/write (Depends-on): Likewise.
12079         * modules/accept (Depends-on): Likewise.
12080         * modules/bind (Depends-on): Likewise.
12081         * modules/connect (Depends-on): Likewise.
12082         * modules/gethostname (Depends-on): Likewise.
12083         * modules/getpeername (Depends-on): Likewise.
12084         * modules/getsockname (Depends-on): Likewise.
12085         * modules/getsockopt (Depends-on): Likewise.
12086         * modules/ioctl (Depends-on): Likewise.
12087         * modules/listen (Depends-on): Likewise.
12088         * modules/recv (Depends-on): Likewise.
12089         * modules/recvfrom (Depends-on): Likewise.
12090         * modules/send (Depends-on): Likewise.
12091         * modules/sendto (Depends-on): Likewise.
12092         * modules/setsockopt (Depends-on): Likewise.
12093         * modules/shutdown (Depends-on): Likewise.
12094         * modules/socket (Depends-on): Likewise.
12095         * modules/execute (Depends-on): Likewise.
12096         * modules/spawn-pipe (Depends-on): Likewise.
12097         * modules/flock (Depends-on): Likewise.
12098         * modules/fsync (Depends-on): Likewise.
12099         * modules/isapipe (Depends-on): Likewise.
12100         * tests/test-cloexec.c: Include msvc-nothrow.h.
12101         * tests/test-dup-safer.c: Likewise.
12102         * tests/test-dup2.c: Likewise.
12103         * tests/test-dup3.c: Likewise.
12104         * tests/test-fcntl.c: Likewise.
12105         * tests/test-pipe.c: Likewise.
12106         * tests/test-pipe2.c: Likewise.
12107         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
12108         * modules/unistd-safer-tests (Depends-on): Likewise.
12109         * modules/dup2-tests (Depends-on): Likewise.
12110         * modules/dup3-tests (Depends-on): Likewise.
12111         * modules/fcntl-tests (Depends-on): Likewise.
12112         * modules/pipe-posix-tests (Depends-on): Likewise.
12113         * modules/pipe2-tests (Depends-on): Likewise.
12114
12115 2011-09-23  Bruno Haible  <bruno@clisp.org>
12116
12117         dup2: Make code more maintainable.
12118         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
12119         (rpl_dup2): Use it.
12120         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
12121         * modules/dup2 (configure.ac): Invoke it.
12122         Reported by Paul Eggert.
12123
12124 2011-09-23  Bruno Haible  <bruno@clisp.org>
12125
12126         msvc-inval: Fix compilation error.
12127         * lib/msvc-inval.h: Include <excpt.h>.
12128
12129 2011-09-23  Bruno Haible  <bruno@clisp.org>
12130
12131         mkdir: Tweak for MSVC 9.
12132         * lib/sys_stat.in.h: Update comments.
12133         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
12134
12135         Tests for module 'chdir'.
12136         * modules/chdir-tests: New file.
12137         * tests/test-chdir.c: New file.
12138
12139         New module 'chdir'.
12140         * modules/chdir: New file.
12141         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
12142         (chdir): New declaration.
12143         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
12144         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
12145         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
12146         * tests/test-unistd-c++.cc: Check signature of chdir.
12147         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
12148         * modules/chdir-long (Depends-on): Add chdir.
12149         * modules/fchdir (Depends-on): Likewise.
12150         * modules/rename (Depends-on): Likewise.
12151         * modules/savewd (Depends-on): Likewise.
12152
12153         rmdir: Support for mingw, MSVC 9.
12154         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
12155         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
12156
12157         getcwd: Tweak for MSVC 9.
12158         * lib/unistd.in.h: Update comments.
12159         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
12160
12161 2011-09-22  Bruno Haible  <bruno@clisp.org>
12162
12163         strerror_r-posix: Avoid a link error on MSVC.
12164         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
12165         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
12166
12167 2011-09-22  Bruno Haible  <bruno@clisp.org>
12168
12169         select: Avoid link errors on MSVC.
12170         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
12171         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
12172         * modules/pselect (Link): Likewise.
12173         * NEWS: Mention the change.
12174         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
12175         test-select-stdin against $(LIB_SELECT).
12176         * modules/pselect-tests (Makefile.am): Link test-pselect against
12177         $(LIB_SELECT).
12178
12179 2011-09-22  Bruno Haible  <bruno@clisp.org>
12180
12181         select: Avoid compilation error on MSVC.
12182         * lib/select.c: Don't include <stdbool.h>.
12183
12184 2011-09-21  Bruno Haible  <bruno@clisp.org>
12185
12186         Consolidate all uses of PATH_MAX in *.m4 files.
12187         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
12188         macros.
12189         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
12190         and gl_PATHMAX_SNIPPET.
12191         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12192         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12193         * modules/chdir-long (Files): Add m4/pathmax.m4.
12194         * modules/getcwd (Files): Likewise.
12195
12196 2011-09-21  Bruno Haible  <bruno@clisp.org>
12197
12198         ftruncate: Un-deprecate, concentrate on Win32 support.
12199         * modules/ftruncate (Status, Notice): Remove sections.
12200         (Depends-on): Add largefile.
12201         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
12202         non-mingw platforms.
12203         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
12204         include <io.h>.
12205         * modules/perror-tests (Depends-on): Add ftruncate.
12206         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
12207         'ftruncate' module.
12208
12209 2011-09-21  Bruno Haible  <bruno@clisp.org>
12210
12211         Add dependencies to new dirent related modules.
12212         * modules/opendir (Depends-on): Add closedir.
12213         * modules/getcwd (Depends-on): Add opendir, closedir.
12214         * modules/dirent-safer-tests (Depends-on): Likewise.
12215         * modules/fdopendir-tests (Depends-on): Likewise.
12216         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
12217         * modules/renameat-tests (Depends-on): Likewise.
12218
12219 2011-09-21  Bruno Haible  <bruno@clisp.org>
12220
12221         opendir: Avoid compilation error on mingw.
12222         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
12223         * modules/opendir (Depends-on): Add unistd.
12224
12225 2011-09-21  Bruno Haible  <bruno@clisp.org>
12226
12227         ftruncate tests: Avoid a test failure on mingw.
12228         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
12229
12230 2011-09-21  Bruno Haible  <bruno@clisp.org>
12231
12232         select tests: Avoid test failures on OSF/1 5.1 and mingw.
12233         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
12234         native Windows.
12235
12236 2011-09-21  Bruno Haible  <bruno@clisp.org>
12237
12238         New module 'fdopen'.
12239         * lib/stdio.in.h (fdopen): New declaration.
12240         * lib/fdopen.c: New file.
12241         * m4/fdopen.m4: New file.
12242         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
12243         REPLACE_FDOPEN.
12244         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
12245         REPLACE_FDOPEN.
12246         * modules/fdopen: New file.
12247         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
12248         * tests/test-stdio-c++.cc: Check signature of fdopen.
12249         * doc/posix-functions/fdopen.texi: Mention the new module.
12250
12251 2011-09-21  Bruno Haible  <bruno@clisp.org>
12252
12253         unlockpt tests: Avoid test failure on NetBSD 5.1.
12254         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
12255         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
12256
12257 2011-09-21  Bruno Haible  <bruno@clisp.org>
12258
12259         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
12260         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
12261         * tests/test-getlogin_r.c (main): Likewise.
12262
12263 2011-09-20  Bruno Haible  <bruno@clisp.org>
12264
12265         time tests: Don't require pid_t.
12266         * doc/posix-headers/time.texi: Revert last change.
12267         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
12268         * tests/test-time.c: Comment out the check for pid_t.
12269
12270 2011-09-20  Bruno Haible  <bruno@clisp.org>
12271
12272         fsync tests: Avoid a test failure on mingw.
12273         * tests/test-fsync.c (main): Allow a failure with EIO.
12274
12275 2011-09-20  Bruno Haible  <bruno@clisp.org>
12276
12277         euidaccess: Update comments.
12278         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
12279
12280 2011-09-20  Bruno Haible  <bruno@clisp.org>
12281
12282         Ensure EBADF returns for socket functions on mingw.
12283         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
12284         descriptor is invalid.
12285         * lib/bind.c (rpl_bind): Likewise.
12286         * lib/connect.c (rpl_connect): Likewise.
12287         * lib/getpeername.c (rpl_getpeername): Likewise.
12288         * lib/getsockname.c (rpl_getsockname): Likewise.
12289         * lib/getsockopt.c (rpl_getsockopt): Likewise.
12290         * lib/listen.c (rpl_listen): Likewise.
12291         * lib/recv.c (rpl_recv): Likewise.
12292         * lib/recvfrom.c (rpl_recvfrom): Likewise.
12293         * lib/send.c (rpl_send): Likewise.
12294         * lib/sendto.c (rpl_sendto): Likewise.
12295         * lib/setsockopt.c (rpl_setsockopt): Likewise.
12296         * lib/shutdown.c (rpl_shutdown): Likewise.
12297
12298 2011-09-20  Bruno Haible  <bruno@clisp.org>
12299
12300         select tests: EBADF tests.
12301         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
12302         test_bad_fd): New functions.
12303         (test_function): Invoke also test_bad_fd.
12304
12305 2011-09-20  Bruno Haible  <bruno@clisp.org>
12306
12307         Tests for module 'posix_spawn_file_actions_addopen.
12308         * modules/posix_spawn_file_actions_addopen-tests: New file.
12309         * tests/test-posix_spawn_file_actions_addopen.c: New file.
12310
12311         Tests for module 'posix_spawn_file_actions_adddup2'.
12312         * modules/posix_spawn_file_actions_adddup2-tests: New file.
12313         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
12314
12315         Tests for module 'posix_spawn_file_actions_addclose'.
12316         * modules/posix_spawn_file_actions_addclose-tests: New file.
12317         * tests/test-posix_spawn_file_actions_addclose.c: New file.
12318
12319 2011-09-20  Bruno Haible  <bruno@clisp.org>
12320
12321         Tests for module 'unlockpt'.
12322         * modules/unlockpt-tests: New file.
12323         * tests/test-unlockpt.c: New file.
12324         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
12325
12326         Tests for module 'grantpt'.
12327         * modules/grantpt-tests: New file.
12328         * tests/test-grantpt.c: New file.
12329         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
12330
12331 2011-09-20  Bruno Haible  <bruno@clisp.org>
12332
12333         freopen tests: EBADF tests.
12334         * tests/test-freopen.c: Include errno.h, unistd.h.
12335         (main): Add tests for EBADF, commented out for the moment.
12336
12337         fclose tests: EBADF tests.
12338         * tests/test-fclose.c (main): Add tests for EBADF.
12339
12340         fflush tests: EBADF tests.
12341         * tests/test-fflush.c: Include errno.h, macros.h.
12342         (main): Add tests for EBADF.
12343
12344         ftello tests: EBADF tests.
12345         * tests/test-ftello4.sh: New file.
12346         * tests/test-ftello4.c: New file.
12347         * modules/ftello-tests (Files): Add them.
12348         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
12349
12350         fseeko tests: EBADF tests.
12351         * tests/test-fseeko4.sh: New file.
12352         * tests/test-fseeko4.c: New file.
12353         * modules/fseeko-tests (Files): Add them.
12354         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
12355
12356         Tests for function fputc().
12357         * modules/fputc-tests: New file.
12358         * tests/test-fputc.c: New file.
12359         * modules/stdio-tests (Depends-on): Add fputc-tests.
12360
12361         Tests for function fgetc().
12362         * modules/fgetc-tests: New file.
12363         * tests/test-fgetc.c: New file.
12364         * modules/stdio-tests (Depends-on): Add fgetc-tests.
12365
12366         Tests for function fdopen().
12367         * modules/fdopen-tests: New file.
12368         * tests/test-fdopen.c: New file.
12369         * modules/stdio-tests (Depends-on): Add fdopen-tests.
12370
12371         Tests for module 'vdprintf'.
12372         * modules/vdprintf-tests: New file.
12373         * tests/test-vdprintf.c: New file.
12374
12375         Tests for module 'dprintf'.
12376         * modules/dprintf-tests: New file.
12377         * tests/test-dprintf.c: New file.
12378
12379 2011-09-20  Bruno Haible  <bruno@clisp.org>
12380
12381         Tests for module 'ioctl'.
12382         * modules/ioctl-tests: New file.
12383         * tests/test-ioctl.c: New file.
12384
12385 2011-09-20  Bruno Haible  <bruno@clisp.org>
12386
12387         fcntl tests: EBADF tests.
12388         * tests/test-fcntl.c (main): Add more tests for EBADF.
12389
12390 2011-09-20  Bruno Haible  <bruno@clisp.org>
12391
12392         utimensat tests: EBADF tests.
12393         * tests/test-utimensat.c (main): Add tests for EBADF.
12394
12395         renameat tests: EBADF tests.
12396         * tests/test-renameat.c (main): Add tests for EBADF.
12397
12398         mkfifoat tests: EBADF tests.
12399         * tests/test-mkfifoat.c (main): Add tests for EBADF.
12400
12401         readlinkat tests: EBADF tests.
12402         * tests/test-readlinkat.c (main): Add tests for EBADF.
12403
12404         symlinkat tests: EBADF tests.
12405         * tests/test-symlinkat.c (main): Add tests for EBADF.
12406
12407         linkat tests: EBADF tests.
12408         * tests/test-linkat.c (main): Add tests for EBADF.
12409
12410         Tests for module 'faccessat'.
12411         * modules/faccessat-tests: New file.
12412         * tests/test-faccessat.c: New file.
12413
12414         fdopendir tests: EBADF tests.
12415         * tests/test-fdopendir.c (main): Add more tests for EBADF.
12416
12417         openat tests: EBADF tests.
12418         * tests/test-fchownat.c (main): Add tests for EBADF.
12419         * tests/test-fstatat.c (main): Likewise.
12420         * tests/test-mkdirat.c (main): Likewise.
12421         * tests/test-openat.c (main): Likewise.
12422         * tests/test-unlinkat.c (main): Likewise.
12423         * tests/test-fchmodat.c: New file.
12424         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
12425         (Makefile.am): Also run 'test-fchmodat'.
12426
12427 2011-09-20  Bruno Haible  <bruno@clisp.org>
12428
12429         utimens, futimens, fdutimensat tests: EBADF tests.
12430         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
12431
12432         Tests for function fstat().
12433         * modules/fstat-tests: New file.
12434         * tests/test-fstat.c: New file.
12435         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
12436
12437 2011-09-20  Bruno Haible  <bruno@clisp.org>
12438
12439         test-ttyname_r tests: EBADF tests.
12440         * tests/test-ttyname_r.c (main): Add tests for EBADF.
12441
12442         Tests for module 'isatty'.
12443         * modules/isatty-tests: New file.
12444         * tests/test-isatty.c: New file.
12445
12446         Tests for module 'write'.
12447         * modules/write-tests: New file.
12448         * tests/test-write.c: New file.
12449
12450         Tests for module 'read'.
12451         * modules/read-tests: New file.
12452         * tests/test-read.c: New file.
12453
12454         pwrite tests: EBADF tests.
12455         * tests/test-pwrite.c (main): Add tests for EBADF.
12456
12457         pread tests: EBADF tests.
12458         * tests/test-pread.c (main): Add tests for EBADF.
12459
12460         lseek tests: EBADF tests.
12461         * tests/test-lseek.c (main): Add more tests for EBADF.
12462
12463         Tests for module 'ftruncate'.
12464         * modules/ftruncate-tests: New file.
12465         * tests/test-ftruncate.sh: New file.
12466         * tests/test-ftruncate.c: New file.
12467
12468         fsync tests: EBADF tests.
12469         * tests/test-fsync.c (main): Add more tests for EBADF.
12470
12471         fdatasync tests: EBADF tests.
12472         * tests/test-fdatasync.c (main): Add more tests for EBADF.
12473
12474         Tests for module 'fchown'.
12475         * modules/fchown-tests: New file.
12476         * tests/test-fchown.c: New file.
12477
12478         Tests for module 'fchmod'.
12479         * modules/fchmod-tests: New file.
12480         * tests/test-fchmod.c: New file.
12481
12482         fchdir tests: EBADF tests.
12483         * tests/test-fchdir.c (main): Add more tests for EBADF.
12484
12485         dup2 tests: EBADF tests.
12486         * tests/test-dup2.c (main): Add more tests for EBADF.
12487
12488         Tests for module 'dup'.
12489         * modules/dup-tests: New file.
12490         * tests/test-dup.c: New file.
12491
12492         Tests for module 'close'.
12493         * modules/close-tests: New file.
12494         * tests/test-close.c: New file.
12495
12496 2011-09-20  Bruno Haible  <bruno@clisp.org>
12497
12498         Tests for module 'shutdown'.
12499         * modules/shutdown-tests: New file.
12500         * tests/test-shutdown.c: New file.
12501
12502         Tests for module 'setsockopt'.
12503         * modules/setsockopt-tests: New file.
12504         * tests/test-setsockopt.c: New file.
12505
12506         Tests for module 'sendto'.
12507         * modules/sendto-tests: New file.
12508         * tests/test-sendto.c: New file.
12509
12510         Tests for module 'send'.
12511         * modules/send-tests: New file.
12512         * tests/test-send.c: New file.
12513
12514         Tests for module 'recvfrom'.
12515         * modules/recvfrom-tests: New file.
12516         * tests/test-recvfrom.c: New file.
12517
12518         Tests for module 'recv'.
12519         * modules/recv-tests: New file.
12520         * tests/test-recv.c: New file.
12521
12522         Tests for module 'listen'.
12523         * modules/listen-tests: New file.
12524         * tests/test-listen.c: New file.
12525
12526         Tests for module 'getsockopt'.
12527         * modules/getsockopt-tests: New file.
12528         * tests/test-getsockopt.c: New file.
12529
12530         Tests for module 'getsockname'.
12531         * modules/getsockname-tests: New file.
12532         * tests/test-getsockname.c: New file.
12533
12534         Tests for module 'getpeername'.
12535         * modules/getpeername-tests: New file.
12536         * tests/test-getpeername.c: New file.
12537
12538         Tests for module 'connect'.
12539         * modules/connect-tests: New file.
12540         * tests/test-connect.c: New file.
12541
12542         Tests for module 'bind'.
12543         * modules/bind-tests: New file.
12544         * tests/test-bind.c: New file.
12545
12546         accept4 tests: Fix for native Windows.
12547         * tests/test-accept4.c: Include sockets.h.
12548         (main): Invoke gl_sockets_startup.
12549         * modules/accept4-tests (Depends-on): Add sockets.
12550
12551         accept tests: Fix for native Windows.
12552         * tests/test-accept.c: Include sockets.h.
12553         (main): Invoke gl_sockets_startup.
12554         * modules/accept-tests (Depends-on): Add sockets.
12555
12556 2011-09-19  Bruno Haible  <bruno@clisp.org>
12557
12558         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
12559         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
12560         do...while(0).
12561         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
12562         Suggested by Paul Eggert.
12563
12564 2011-09-19  Bruno Haible  <bruno@clisp.org>
12565
12566         sched: Ensure pid_t is defined.
12567         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
12568         not define pid_t.
12569         * lib/sched.in.h: Include <sys/types.h>.
12570         * doc/posix-headers/sched.texi: Mention the pid_t problem.
12571         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12572
12573 2011-09-19  Bruno Haible  <bruno@clisp.org>
12574
12575         msvc-inval: Ensure the entire expansion is a single statement.
12576         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
12577         of braces.
12578
12579 2011-09-19  Jim Meyering  <meyering@redhat.com>
12580
12581         tests: use printf, not echo in init.sh's warn_ function
12582         * tests/init.sh (warn_): Use printf, not echo.  The latter would
12583         misbehave when given strings containing a backslash or starting
12584         with e.g., -n.  James Youngman suggested setting IFS.
12585
12586 2011-09-19  Eric Blake  <eblake@redhat.com>
12587
12588         futimens: enhance test
12589         * tests/test-futimens.h (test_futimens): Also check for EBADF on
12590         closed non-negative fd.
12591
12592         date: accept 'hence' as opposite of 'ago'
12593         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
12594         * tests/test-parse-datetime.c (main): Enhance test.
12595         Suggested by Jesse Wilson.
12596
12597 2011-09-19  Jim Meyering  <meyering@redhat.com>
12598
12599         getcwd: don't fail in a deep directory on a system without openat
12600         Before this change, getcwd would fail when called from a directory
12601         of depth PATH_MAX / 3 or greater.  That was due to the fact that
12602         the non-openat implementation used "..", "../..", "../../..", etc.
12603         to access ancestor directories.  With too many, that string would
12604         be longer than PATH_MAX.
12605         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
12606         using gnulib's openat replacement.
12607         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
12608         we're using the replacement function.
12609
12610 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
12611
12612         maint.mk: avoid warnings from perl about missing files
12613         * top/maint.mk (def_sym_regex): Ignore files listed in
12614         $(gl_other_headers_) that do not exist, say because a project
12615         does not use a corresponding module.
12616
12617 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
12618
12619         stat: use pathmax.h only if needed
12620         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
12621         This is better for Emacs, which does not have a mingw port and
12622         therefore can avoid the pathmax module.
12623
12624         utimens: remove dependency on dup2
12625         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
12626         to work around the Linux kernel bug.
12627         * modules/utimens (Depends-on): Remove dup2.
12628
12629 2011-09-18  Bruno Haible  <bruno@clisp.org>
12630
12631         inet_ntop, inet_pton: Look for it also in libresolv.
12632         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
12633         libnsl, search for it in libresolv.
12634         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12635         Needed on Solaris 7.
12636
12637 2011-09-18  Bruno Haible  <bruno@clisp.org>
12638
12639         accept, accept4 tests: Avoid link error on Solaris.
12640         * modules/accept-tests (Makefile.am): Link test-accept against
12641         $(LIBSOCKET).
12642         * modules/accept4-tests (Makefile.am): Link test-accept4 against
12643         $(LIBSOCKET).
12644
12645         accept4: Avoid link error on Solaris.
12646         * modules/accept4 (Link): New section.
12647
12648         socket functions: Avoid link errors on Solaris.
12649         * modules/accept (Depends-on): Add socketlib.
12650         (Link): New section.
12651         * modules/bind (Depends-on): Add socketlib.
12652         (Link): New section.
12653         * modules/connect (Depends-on): Add socketlib.
12654         (Link): New section.
12655         * modules/getpeername (Depends-on): Add socketlib.
12656         (Link): New section.
12657         * modules/getsockname (Depends-on): Add socketlib.
12658         (Link): New section.
12659         * modules/getsockopt (Depends-on): Add socketlib.
12660         (Link): New section.
12661         * modules/listen (Depends-on): Add socketlib.
12662         (Link): New section.
12663         * modules/recv (Depends-on): Add socketlib.
12664         (Link): New section.
12665         * modules/recvfrom (Depends-on): Add socketlib.
12666         (Link): New section.
12667         * modules/send (Depends-on): Add socketlib.
12668         (Link): New section.
12669         * modules/sendto (Depends-on): Add socketlib.
12670         (Link): New section.
12671         * modules/setsockopt (Depends-on): Add socketlib.
12672         (Link): New section.
12673         * modules/shutdown (Depends-on): Add socketlib.
12674         (Link): New section.
12675         * modules/socket (Depends-on): Add socketlib.
12676         (Link): New section.
12677
12678 2011-09-18  Bruno Haible  <bruno@clisp.org>
12679
12680         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
12681         * tests/test-ptsname.c (main): Terminate the test if it takes longer
12682         than 5 seconds.
12683         * modules/ptsname-tests (configure.ac): Test for alarm.
12684
12685 2011-09-18  Bruno Haible  <bruno@clisp.org>
12686
12687         posix_spawn_file_actions_add*: Fix module dependencies.
12688         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
12689         posix_spawn_file_actions_init.
12690         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
12691         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
12692
12693 2011-09-18  Bruno Haible  <bruno@clisp.org>
12694
12695         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
12696         * tests/test-rename.h (test_rename): Allow error code EEXIST.
12697         * tests/test-renameat.c (main): Likewise.
12698
12699 2011-09-18  Bruno Haible  <bruno@clisp.org>
12700
12701         Tests for module 'accept4'.
12702         * modules/accept4-tests: New file.
12703         * tests/test-accept4.c: New file.
12704
12705 2011-09-18  Bruno Haible  <bruno@clisp.org>
12706
12707         Tests for module 'accept'.
12708         * modules/accept-tests: New file.
12709         * tests/test-accept.c: New file.
12710
12711 2011-09-18  Bruno Haible  <bruno@clisp.org>
12712
12713         dup2: Support for MSVC.
12714         * lib/dup2.c: Include msvc-inval.h.
12715         (rpl_dup2): Handle invalid parameter notifications during dup2 and
12716         _get_osfhandle calls.
12717         * modules/dup2 (Depends-on): Add msvc-inval.
12718         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
12719
12720         New module 'msvc-inval'.
12721         * lib/msvc-inval.h: New file.
12722         * lib/msvc-inval.c: New file.
12723         * m4/msvc-inval.m4: New file.
12724         * modules/msvc-inval: New file.
12725
12726 2011-09-17  Bruno Haible  <bruno@clisp.org>
12727
12728         Tests for module 'pclose'.
12729         * modules/pclose-tests: New file.
12730
12731         New module 'pclose'.
12732         * lib/stdio.in.h (pclose): New declaration.
12733         * lib/pclose.c: New file.
12734         * m4/pclose.m4: New file.
12735         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
12736         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
12737         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
12738         * modules/pclose: New file.
12739         * modules/popen-tests (Depends-on): Add pclose.
12740         * modules/popen-safer-tests (Depends-on): Likewise.
12741         * doc/posix-functions/pclose.texi: Mention the new module.
12742
12743 2011-09-17  Bruno Haible  <bruno@clisp.org>
12744
12745         popen: Support for MSVC.
12746         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
12747         * lib/popen.c (popen): Provide alternate definition for native Windows.
12748         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
12749         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
12750         * modules/popen (Depends-on, configure.ac): Update condition.
12751         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
12752         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
12753         fixed.
12754
12755 2011-09-17  Bruno Haible  <bruno@clisp.org>
12756
12757         isnanl, isnand, isnanf: Work around MSVC bug.
12758         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
12759
12760 2011-09-17  Bruno Haible  <bruno@clisp.org>
12761
12762         sys_socket tests: Fix recent mistake.
12763         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
12764
12765 2011-09-17  Bruno Haible  <bruno@clisp.org>
12766
12767         putenv: Support for MSVC.
12768         * modules/putenv (Depends-on): Add environ.
12769         * lib/putenv.c (environ): Disable declaration.
12770         * lib/unistd.in.h: Update comment.
12771
12772 2011-09-17  Bruno Haible  <bruno@clisp.org>
12773
12774         math: Avoid macro redefinition warnings on MSVC.
12775         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
12776         Undefine before redefining.
12777
12778 2011-09-17  Bruno Haible  <bruno@clisp.org>
12779
12780         doc: Mention functions which are declared as macros.
12781         * doc/posix-functions/*[fl].texi: Mention that some functions are
12782         defined as macros with arguments only.
12783
12784 2011-09-17  Bruno Haible  <bruno@clisp.org>
12785
12786         Add dependencies to new dirent related modules.
12787         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
12788         * modules/fts (Depends-on): Likewise.
12789         * modules/glob (Depends-on): Likewise.
12790         * modules/savedir (Depends-on): Likewise.
12791         * modules/scandir (Depends-on): Likewise.
12792         * modules/dirent-safer (Depends-on): Add opendir, closedir.
12793         * modules/fdopendir (Depends-on): Add opendir.
12794
12795 2011-09-17  Bruno Haible  <bruno@clisp.org>
12796
12797         inet_pton: Support for MSVC on Windows Vista or newer.
12798         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
12799         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
12800         HAVE_DECL_INET_PTON is defined.
12801         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12802         On platforms with <winsock2.h>, test whether inet_pton is declared in
12803         <ws2tcpip.h>. If so, arrange to replace it.
12804         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12805         REPLACE_INET_PTON.
12806         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
12807         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
12808         (Depends-on, configure.ac): Update condition.
12809         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
12810
12811 2011-09-17  Bruno Haible  <bruno@clisp.org>
12812
12813         inet_ntop: Support for MSVC on Windows Vista or newer.
12814         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
12815         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
12816         HAVE_DECL_INET_NTOP is defined.
12817         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12818         On platforms with <winsock2.h>, test whether inet_ntop is declared in
12819         <ws2tcpip.h>. If so, arrange to replace it.
12820         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12821         REPLACE_INET_NTOP.
12822         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
12823         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
12824         (Depends-on, configure.ac): Update condition.
12825         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
12826
12827 2011-09-16  Eric Blake  <eblake@redhat.com>
12828
12829         test-fsync: yet another enhancement
12830         * tests/test-fsync.c (main): Also test behavior on read-only text
12831         file.
12832
12833 2011-09-16  Bruno Haible  <bruno@clisp.org>
12834
12835         Enhance fsync, fdatasync tests.
12836         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
12837         * tests/test-fdatasync.c (main): Likewise.
12838
12839 2011-09-16  Bruno Haible  <bruno@clisp.org>
12840
12841         Support for MSVC compiler: Ensure mode_t gets defined.
12842         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
12843         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12844         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12845         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
12846         * tests/test-fcntl-h.c: Check that mode_t is defined.
12847         * tests/test-sys_stat.c: Likewise.
12848         * tests/test-sys_types.c: Likewise.
12849         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
12850         * doc/posix-headers/sys_stat.texi: Likewise.
12851         * doc/posix-headers/sys_types.texi: Likewise.
12852
12853 2011-09-16  Bruno Haible  <bruno@clisp.org>
12854
12855         sys_stat: Support for MSVC.
12856         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
12857         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
12858         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
12859         MSVC.
12860
12861 2011-09-16  Bruno Haible  <bruno@clisp.org>
12862
12863         Support for MSVC compiler: Ensure off_t gets defined.
12864         * lib/unistd.in.h: Include <sys/types.h>.
12865         * tests/test-fcntl-h.c: Check that off_t is defined.
12866         * tests/test-sys_stat.c: Likewise.
12867         * tests/test-sys_types.c: Likewise.
12868
12869 2011-09-16  Eric Blake  <eblake@redhat.com>
12870
12871         fdatasync: port to Solaris
12872         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
12873         * modules/fdatasync (Link): Document it.
12874         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
12875
12876         fdatasync: port to MacOS X 10.7
12877         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
12878         declared.
12879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
12880         * modules/unistd (Makefile.am): Substitute it.
12881         * lib/unistd.in.h (fdatasync): Declare on MacOS.
12882         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
12883
12884         fdatasync: minor improvements
12885         * modules/fdatasync (Depends-on): Add condition for fsync.
12886         * lib/fdatasync.c (fdatasync): Add comment.
12887         * tests/test-unistd-c++.cc: Test fdatasync.
12888
12889         unistd: update refs to newer POSIX
12890         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
12891         Suggested by Bruno Haible.
12892
12893         fdatasync: new module
12894         * modules/fsync (Description): Document difference to fdatasync.
12895         * modules/fdatasync: New module.
12896         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
12897         * lib/fdatasync.c (fdatasync): Likewise.
12898         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
12899         defaults.
12900         * modules/unistd (Makefile.am): Set witnesses.
12901         * lib/unistd.in.h (fdatasync): Declare.
12902         * MODULES.html.sh: Document it.
12903         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
12904         * modules/fdatasync-tests: New test.
12905         * tests/test-fdatasync.c: Likewise.
12906
12907 2011-09-16  Eric Blake  <eblake@redhat.com>
12908
12909         test-fsync: enhance tests
12910         * modules/fsync-tests (Depends-on): Add errno, for mingw.
12911         * tests/test-fsync.c (main): Enhance test.
12912
12913 2011-09-15  Bruno Haible  <bruno@clisp.org>
12914
12915         Support for MSVC compiler: Ensure ssize_t gets defined.
12916         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
12917         * doc/posix-headers/stdio.texi: Likewise.
12918         * modules/stdio (Depends-on): Add ssize_t.
12919         * modules/sys_socket (Depends-on): Likewise.
12920         * modules/sys_types (Depends-on): Likewise.
12921         * modules/sys_uio (Depends-on): Likewise.
12922         * modules/unistd (Depends-on): Likewise.
12923         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
12924         * tests/test-sys_types.c: Check that ssize_t is defined.
12925
12926 2011-09-14  Bruno Haible  <bruno@clisp.org>
12927
12928         Avoid using #, the m4 comment starter character, near brackets.
12929         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
12930         delimiter character in sed expressions.
12931         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12932         Suggested by Eric Blake.
12933
12934         Properly quote AC_CHECK_DECLS' 4th argument.
12935         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
12936         argument.
12937         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12938         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12939         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12940         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12941         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
12942         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
12943         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
12944         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
12945         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
12946         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
12947         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
12948         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12949         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12950         * m4/isinf.m4 (gl_ISINF): Likewise.
12951         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
12952         * m4/readutmp.m4 (gl_READUTMP): Likewise.
12953         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12954         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12955         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12956         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12957         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12958         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12959         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
12960         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12961         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12962         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12963         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
12964         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12965         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12966         Reported by Eric Blake.
12967
12968         Properly quote AC_CHECK_DECL's 4th argument.
12969         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
12970         argument.
12971         * m4/argp.m4 (gl_ARGP): Likewise.
12972         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12973         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12974         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12975         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12976         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
12977         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
12978         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
12979         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12980         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12981         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12982         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12983         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12984         Reported by Eric Blake.
12985
12986 2011-09-14  Eric Blake  <eblake@redhat.com>
12987
12988         opendir: avoid compile warning
12989         * lib/opendir.c (includes): Always include errno.h.
12990         Reported by Tatsuro MATSUOKA.
12991
12992 2011-09-14  Jim Meyering  <meyering@redhat.com>
12993
12994         maint.mk: sc_tight_scope: propagate failure from sub-make
12995         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
12996         Reported by Martin von Gagern.
12997
12998 2011-09-13  Bruno Haible  <bruno@clisp.org>
12999
13000         tempname: Support for MSVC.
13001         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
13002         MSVC.
13003         * modules/tempname (Depends-on): Add fcntl-h.
13004
13005 2011-09-13  Bruno Haible  <bruno@clisp.org>
13006
13007         sys_time: Support for MSVC.
13008         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
13009         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
13010         include <winsock2.h>.
13011         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
13012         function declarations that collide with POSIX.
13013         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
13014         (Makefile.am): Substitute HAVE_WINSOCK2_H.
13015
13016 2011-09-13  Bruno Haible  <bruno@clisp.org>
13017
13018         stat: Support for MSVC.
13019         * lib/stat.c: Include pathmax.h.
13020         * modules/stat (Depends-on): Add pathmax.
13021
13022         pathmax: Support for native Windows.
13023         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
13024
13025 2011-09-12  Bruno Haible  <bruno@clisp.org>
13026
13027         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
13028         * lib/dirent.in.h (struct dirent): New type.
13029         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
13030         DT_WHT): New macros.
13031         (DIR): New type.
13032         (opendir, closedir): Declare only if the module 'opendir' is enabled.
13033         (readdir, rewinddir): New declarations.
13034         * lib/dirent-private.h: New file.
13035         * lib/opendir.c: New file.
13036         * lib/readdir.c: New file.
13037         * lib/rewinddir.c: New file.
13038         * lib/closedir.c: New file.
13039         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
13040         * m4/opendir.m4: New file.
13041         * m4/readdir.m4: New file.
13042         * m4/rewinddir.m4: New file.
13043         * m4/closedir.m4: New file.
13044         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
13045         REPLACE_CLOSEDIR here.
13046         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
13047         readdir, rewinddir are declared.
13048         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
13049         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
13050         HAVE_REWINDDIR, HAVE_CLOSEDIR.
13051         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
13052         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
13053         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
13054         * modules/opendir: New file.
13055         * modules/readdir: New file.
13056         * modules/rewinddir: New file.
13057         * modules/closedir: New file.
13058         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
13059         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
13060         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
13061         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
13062         * NEWS: Mention the 'fchdir' change.
13063
13064 2011-09-11  Bruno Haible  <bruno@clisp.org>
13065
13066         asm-underscore.m4: Support for MSVC.
13067         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
13068         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
13069
13070 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
13071
13072         Doc about crypt functions.
13073         * doc/posix-functions/crypt.texi: Expand range of glibc versions
13074         needing for _GNU_SOURCE to get crypt.
13075         * doc/posix-functions/encrypt.texi: Likewise.
13076         * doc/posix-functions/setkey.texi: Likewise.
13077
13078 2011-09-11  Bruno Haible  <bruno@clisp.org>
13079
13080         doc: Update regarding MSVC 9.
13081         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
13082         tested".
13083         * doc/posix-functions/*.texi: Update with info about MSVC 9.
13084         * doc/posix-headers/*.texi: Likewise.
13085         * doc/pastposix-functions/*.texi: Likewise.
13086         * doc/glibc-functions/*.texi: Likewise.
13087         * doc/glibc-headers/*.texi: Likewise.
13088
13089 2011-09-11  Bruno Haible  <bruno@clisp.org>
13090
13091         unistd et al.: Don't assume <unistd.h> exists.
13092         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
13093         does not exist.
13094         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
13095         exist. But include <stdlib.h>.
13096         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
13097         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
13098         symlink() does not exist.
13099         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
13100         include <io.h> instead.
13101         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
13102         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
13103         include <direct.h> instead.
13104         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13105         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13106         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
13107         <io.h> instead.
13108         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
13109         correctly if the system does not have hard links.
13110         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
13111         <direct.h> instead.
13112         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
13113         it when looking for function declarations.
13114         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
13115         <direct.h> and <io.h> instead.
13116         * doc/posix-headers/unistd.texi: More details about MSVC problem.
13117
13118 2011-09-11  Bruno Haible  <bruno@clisp.org>
13119
13120         strcase: Support for MSVC.
13121         * modules/strcase (Status, Notice): Remove obsoletion mark.
13122         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
13123         * doc/posix-functions/strncasecmp.texi: Likewise.
13124
13125         strings: Don't assume <strings.h> exists.
13126         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
13127         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
13128         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
13129         * doc/posix-headers/strings.texi: Mention the MSVC problem.
13130
13131 2011-09-11  Bruno Haible  <bruno@clisp.org>
13132
13133         dirent: Don't assume <dirent.h> exists.
13134         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
13135         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
13136         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
13137         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
13138
13139 2011-09-11  Bruno Haible  <bruno@clisp.org>
13140
13141         Fix wint_t on MSVC.
13142         * lib/wchar.in.h (wint_t): On MSVC, override it.
13143         * lib/wctype.in.h (wint_t): Likewise.
13144         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
13145         MSVC.
13146         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
13147         * doc/posix-headers/wctype.texi: Likewise.
13148
13149 2011-09-11  Bruno Haible  <bruno@clisp.org>
13150
13151         sys_types: Fix typo.
13152         * lib/sys_types.in.h: Fix typo in comment.
13153         Reported by Paul Eggert.
13154
13155         Support for MSVC compiler: Ensure size_t gets defined.
13156         * modules/strings (Depends-on): Add 'sys_types'.
13157         * modules/sys_uio (Depends-on): Likewise.
13158         * lib/sys_uio.in.h: Update comment.
13159
13160         C++ tests for module 'sys_types'.
13161         * modules/sys_types-c++-tests: New file.
13162         * tests/test-sys_types-c++.cc: New file.
13163
13164         Tests for module 'sys_types'.
13165         * modules/sys_types-tests: New file.
13166         * tests/test-sys_types.c: New file.
13167
13168         New module 'sys_types'.
13169         * lib/sys_types.in.h: New file.
13170         * m4/sys_types_h.m4: New file.
13171         * modules/sys_types: New file.
13172         * doc/posix-headers/sys_types.texi: Mention the new module and the
13173         size_t problem on MSVC 9.
13174
13175 2011-09-11  Bruno Haible  <bruno@clisp.org>
13176
13177         Support for MSVC compiler: Avoid division by a literal 0.
13178         * lib/math.in.h (NAN): Define through a function call also on MSVC.
13179         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
13180         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
13181         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
13182         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
13183         * tests/infinity.h: New file.
13184         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
13185         on MSVC.
13186         * tests/test-ceilf1.c: Include infinity.h.
13187         (main): Use Infinityf.
13188         * tests/test-ceil1.c: Include infinity.h.
13189         (main): Use Infinityd.
13190         * tests/test-ceill.c: Include infinity.h.
13191         (main): Use Infinityl.
13192         * tests/test-dprintf-posix.c: Include infinity.h.
13193         (test_function): Use Infinityd.
13194         * tests/test-floorf1.c: Include infinity.h.
13195         (main): Use Infinityf.
13196         * tests/test-floor1.c: Include infinity.h.
13197         (main): Use Infinityd.
13198         * tests/test-floorl.c: Include infinity.h.
13199         (main): Use Infinityl.
13200         * tests/test-fprintf-posix.c: Include infinity.h.
13201         (test_function): Use Infinityd.
13202         * tests/test-frexp.c: Include infinity.h.
13203         (main): Use Infinityd.
13204         * tests/test-frexpl.c: Include infinity.h.
13205         (main): Use Infinityl.
13206         * tests/test-isfinite.c: Include infinity.h.
13207         (test_isfinitef): Use Infinityf.
13208         (test_isfinited): Use Infinityd.
13209         (test_isfinitel): Use Infinityl.
13210         * tests/test-isinf.c: Include infinity.h.
13211         (test_isinff): Use Infinityf.
13212         (test_isinfd): Use Infinityd.
13213         (test_isinfl): Use Infinityl.
13214         * tests/test-isnan.c: Include infinity.h.
13215         (test_float): Use Infinityf.
13216         (test_double): Use Infinityd.
13217         (test_long_double): Use Infinityl.
13218         * tests/test-isnanf.h: Include infinity.h.
13219         (main): Use Infinityf.
13220         * tests/test-isnand.h: Include infinity.h.
13221         (main): Use Infinityd.
13222         * tests/test-isnanl.h: Include infinity.h.
13223         (main): Use Infinityl.
13224         * tests/test-ldexpl.c: Include infinity.h.
13225         (main): Use Infinityl.
13226         * tests/test-printf-posix.h: Include infinity.h.
13227         (test_function): Use Infinityd.
13228         * tests/test-roundf1.c: Include infinity.h.
13229         (main): Use Infinityf.
13230         * tests/test-round1.c: Include infinity.h.
13231         (main): Use Infinityd.
13232         * tests/test-roundl.c: Include infinity.h.
13233         (main): Use Infinityl.
13234         * tests/test-signbit.c: Include infinity.h.
13235         (test_signbitf): Use Infinityf.
13236         (test_signbitd): Use Infinityd.
13237         (test_signbitl): Use Infinityl.
13238         * tests/test-snprintf-posix.h: Include infinity.h.
13239         (test_function): Use Infinityd, Infinityl.
13240         * tests/test-sprintf-posix.h: Include infinity.h.
13241         (test_function): Use Infinityd, Infinityl.
13242         * tests/test-truncf1.c: Include infinity.h.
13243         (main): Use Infinityf.
13244         * tests/test-trunc1.c: Include infinity.h.
13245         (main): Use Infinityd.
13246         * tests/test-truncl.c: Include infinity.h.
13247         (main): Use Infinityl.
13248         * tests/test-vasnprintf-posix.c: Include infinity.h.
13249         (test_function): Use Infinityd, Infinityl.
13250         * tests/test-vasprintf-posix.c: Include infinity.h.
13251         (test_function): Use Infinityd, Infinityl.
13252         * modules/ceilf-tests (Files): Add tests/infinity.h.
13253         * modules/ceil-tests (Files): Likewise.
13254         * modules/ceill-tests (Files): Likewise.
13255         * modules/dprintf-posix-tests (Files): Likewise.
13256         * modules/floorf-tests (Files): Likewise.
13257         * modules/floor-tests (Files): Likewise.
13258         * modules/floorl-tests (Files): Likewise.
13259         * modules/fprintf-posix-tests (Files): Likewise.
13260         * modules/frexp-tests (Files): Likewise.
13261         * modules/frexp-nolibm-tests (Files): Likewise.
13262         * modules/frexpl-tests (Files): Likewise.
13263         * modules/frexpl-nolibm-tests (Files): Likewise.
13264         * modules/isfinite-tests (Files): Likewise.
13265         * modules/isinf-tests (Files): Likewise.
13266         * modules/isnan-tests (Files): Likewise.
13267         * modules/isnanf-tests (Files): Likewise.
13268         * modules/isnanf-nolibm-tests (Files): Likewise.
13269         * modules/isnand-tests (Files): Likewise.
13270         * modules/isnand-nolibm-tests (Files): Likewise.
13271         * modules/isnanl-tests (Files): Likewise.
13272         * modules/isnanl-nolibm-tests (Files): Likewise.
13273         * modules/ldexpl-tests (Files): Likewise.
13274         * modules/printf-posix-tests (Files): Likewise.
13275         * modules/roundf-tests (Files): Likewise.
13276         * modules/round-tests (Files): Likewise.
13277         * modules/roundl-tests (Files): Likewise.
13278         * modules/signbit-tests (Files): Likewise.
13279         * modules/snprintf-posix-tests (Files): Likewise.
13280         * modules/sprintf-posix-tests (Files): Likewise.
13281         * modules/truncf-tests (Files): Likewise.
13282         * modules/trunc-tests (Files): Likewise.
13283         * modules/truncl-tests (Files): Likewise.
13284         * modules/vasnprintf-posix-tests (Files): Likewise.
13285         * modules/vasprintf-posix-tests (Files): Likewise.
13286         * modules/vdprintf-posix-tests (Files): Likewise.
13287         * modules/vfprintf-posix-tests (Files): Likewise.
13288         * modules/vprintf-posix-tests (Files): Likewise.
13289         * modules/vsnprintf-posix-tests (Files): Likewise.
13290         * modules/vsprintf-posix-tests (Files): Likewise.
13291         * modules/xprintf-posix-tests (Files): Likewise.
13292
13293 2011-09-11  Bruno Haible  <bruno@clisp.org>
13294
13295         Ensure pid_t gets defined.
13296         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
13297         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
13298         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13299         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13300         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
13301         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
13302         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
13303         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13304         * tests/test-fcntl-h.c: Check that pid_t is defined.
13305         * tests/test-sched.c: Likewise.
13306         * tests/test-termios.c: Likewise.
13307         * tests/test-time.c: Likewise.
13308         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
13309         * doc/posix-headers/signal.texi: Likewise.
13310         * doc/posix-headers/sys_types.texi: Likewise.
13311         * doc/posix-headers/time.texi: Likewise.
13312
13313 2011-09-11  Bruno Haible  <bruno@clisp.org>
13314
13315         acl: Fix compilation on Solaris 10 (older version).
13316         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
13317         of ACE_EVERYONE.
13318         * lib/set-mode-acl.c (qset_acl): Likewise.
13319         Reported by Christian Jullien <eligis@orange.fr>.
13320
13321 2011-09-10  Bruno Haible  <bruno@clisp.org>
13322
13323         iconv, unsetenv: Add support for MSVC compiler.
13324         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
13325         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
13326
13327 2011-09-10  Bruno Haible  <bruno@clisp.org>
13328
13329         *printf: Add support for MSVC compiler.
13330         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
13331         handles the exception caused by the %n directive. When cross-compiling,
13332         guess no on native Windows.
13333         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13334         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
13335         emulate it through vsnprintf.
13336         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
13337         * doc/posix-functions/dprintf.texi: Update documentation regarding
13338         MSVC 9.
13339         * doc/posix-functions/fprintf.texi: Likewise.
13340         * doc/posix-functions/printf.texi: Likewise.
13341         * doc/posix-functions/snprintf.texi: Likewise.
13342         * doc/posix-functions/sprintf.texi: Likewise.
13343         * doc/posix-functions/swprintf.texi: Likewise.
13344         * doc/posix-functions/vdprintf.texi: Likewise.
13345         * doc/posix-functions/vfprintf.texi: Likewise.
13346         * doc/posix-functions/vprintf.texi: Likewise.
13347         * doc/posix-functions/vsnprintf.texi: Likewise.
13348         * doc/posix-functions/vsprintf.texi: Likewise.
13349         * doc/glibc-functions/asprintf.texi: Likewise.
13350         * doc/glibc-functions/obstack_printf.texi: Likewise.
13351         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13352         * doc/glibc-functions/vasprintf.texi: Likewise.
13353
13354 2011-09-10  Bruno Haible  <bruno@clisp.org>
13355
13356         nocrash: Add support for native Windows.
13357         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
13358
13359 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
13360             Bruno Haible  <bruno@clisp.org>
13361
13362         absolute-header, include-next: Add support for MSVC compiler.
13363         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
13364         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
13365         directory separator in #line directives.
13366         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
13367         recognize also backslash as directory separator in #line directives.
13368
13369 2011-09-08  Jim Meyering  <meyering@redhat.com>
13370
13371         maint.mk: mark the post-release commit log with "maint: " prefix
13372         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
13373         one-line commit-log summary.
13374
13375 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
13376             Bruno Haible  <bruno@clisp.org>
13377
13378         Doc about crypt functions.
13379         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
13380         systems.
13381         * doc/posix-functions/encrypt.texi: Likewise.
13382         * doc/posix-functions/setkey.texi: Likewise.
13383
13384 2011-09-08  Simon Josefsson  <simon@josefsson.org>
13385
13386         * lib/gc.h: Fix copyright header.
13387
13388 2011-09-07  Bruno Haible  <bruno@clisp.org>
13389
13390         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
13391         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
13392         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
13393
13394 2011-09-07  Bruno Haible  <bruno@clisp.org>
13395
13396         openat: Work around compilation error with OSF/1 5.1 DTK cc.
13397         * lib/fopen.c: Use different syntax for include of <stdio.h>.
13398         * lib/freopen.c: Likewise.
13399         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
13400         * lib/lstat.c: Likewise.
13401         * lib/stat.c: Likewise.
13402         * lib/open.c: Use different syntax for include of <fcntl.h>.
13403         * lib/openat.c: Include fcntl.h again, explicitly.
13404
13405 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
13406
13407         parse-datetime: document the newly accepted format
13408         * doc/parse-datetime.texi (Combined date and time of day items):
13409         New section.
13410
13411 2011-09-06  Bruno Haible  <bruno@clisp.org>
13412
13413         acl: Fix a test failure on newer Solaris 10 with ZFS.
13414         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
13415         ENOSYS as no ACL.
13416         Reported by Jim Meyering.
13417
13418 2011-09-06  Bruno Haible  <bruno@clisp.org>
13419
13420         acl: Update for AIX >= 5.3 with NFS.
13421         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
13422         ENOSYS as no ACL.
13423
13424         acl: Fix a test failure on AIX >= 5.3 with NFS.
13425         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
13426         as no ACL.
13427
13428 2011-09-06  Bruno Haible  <bruno@clisp.org>
13429
13430         acl: Fix a test failure on IRIX 6.5 with NFS.
13431         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
13432         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
13433         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
13434         * lib/copy-acl.c (qcopy_acl): Likewise.
13435
13436 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
13437
13438         openat: port to AIX 7.1 with large files
13439         AIX 7.1 does a "#define openat open64at" if large files are in use,
13440         so we can't simply #undef openat.  Use the orig_openat trick (similar
13441         to orig_open in lib/open.c) to work around the problem.  Problem
13442         reported by Kevin Brott for GNU tar, in the thread containing
13443         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
13444         * lib/openat.c (__need_system_fcntl_h): Define first.
13445         Include <fcntl.h> and <sys/types.h> before undefining.
13446         (orig_openat) [HAVE_OPENAT]: New inline function.
13447         (openat) [HAVE_OPENAT]: Do not undef.
13448         (rpl_openat): Use orig_openat, not openat.
13449
13450 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13451             Bruno Haible  <bruno@clisp.org>
13452
13453         acl: Avoid errors on NonStop Kernel.
13454         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
13455         ENOTSUP errors.
13456
13457 2011-09-05  Bruno Haible  <bruno@clisp.org>
13458
13459         acl: Clean up Solaris code.
13460         * lib/acl-internal.h: Remove no-op #if.
13461         * lib/file-has-acl.c: Likewise.
13462         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
13463         * lib/copy-acl.c (qcopy_acl): Likewise.
13464
13465 2011-09-05  Bruno Haible  <bruno@clisp.org>
13466
13467         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
13468         binaries built on the original Solaris 10.
13469         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
13470         trivial.
13471
13472 2011-09-05  Bruno Haible  <bruno@clisp.org>
13473
13474         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13475         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
13476         10.
13477         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
13478         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
13479         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
13480         instead of acl_get, facl_get, acl_set, facl_set.
13481
13482 2011-09-05  Bruno Haible  <bruno@clisp.org>
13483
13484         copy-file: Try unit tests on more file systems.
13485         * tests/test-copy-file-1.sh: New file.
13486         * tests/test-copy-file-2.sh: New file.
13487         * modules/copy-file-tests (Files): Add them.
13488         (Makefile.am): Add them to TESTS.
13489
13490         acl: Try unit tests on more file systems.
13491         * tests/test-file-has-acl-1.sh: New file.
13492         * tests/test-file-has-acl-2.sh: New file.
13493         * tests/test-set-mode-acl-1.sh: New file.
13494         * tests/test-set-mode-acl-2.sh: New file.
13495         * tests/test-copy-acl-1.sh: New file.
13496         * tests/test-copy-acl-2.sh: New file.
13497         * modules/acl-tests (Files): Add them.
13498         (Makefile.am): Add them to TESTS.
13499
13500 2011-09-04  Bruno Haible  <bruno@clisp.org>
13501
13502         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13503         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
13504         10.
13505         (OLD_ALLOW, OLD_DENY): New macros.
13506         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
13507         ACE_ACCESS_ALLOWED_ACE_TYPE.
13508         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
13509         ACE_ACCESS_DENIED_ACE_TYPE.
13510         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
13511         (NEW_ACE_EXECUTE): Fix value.
13512         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
13513         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
13514         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
13515         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
13516         NEW_ACE_SYNCHRONIZE): New macros.
13517         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
13518         instead of acl_fromtext, acl_set, facl_set.
13519         Fixes a coreutils/tests/cp/perm failure.
13520
13521 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
13522
13523         openat: test for fstatat (..., 0) bug
13524         Further testing with tar suggests that fstatat (..., 0)
13525         does not work in general, on AIX 7.1; see
13526         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
13527         So, give up entirely on AIX 7.1's fstatat, and fall back on our
13528         replacement fstatat (which is what older AIX releases were using
13529         anyway).
13530         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
13531         use is now changed to orig_fstatat.  This was probably the right
13532         thing to do anyway.
13533         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
13534         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
13535         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
13536         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
13537         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
13538         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
13539         if the bug is found.
13540
13541         openat: test for fstatat (AT_FDCWD, ..., 0) bug
13542         This tests for another fstatat bug on AIX 7.1:
13543         fstatat (AT_FDCWD, ..., 0) does not work.  See
13544         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
13545         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
13546         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
13547         (rpl_fstatat): Adjust so that it works around either (or both)
13548         bugs if present.
13549         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
13550
13551 2011-09-03  Karl Berry  <karl@gnu.org>
13552
13553         * doc/regex.texi (Character Class Operators): Avoid literal ":"
13554         in index entries.
13555
13556 2011-09-02  Bruno Haible  <bruno@clisp.org>
13557
13558         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
13559         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
13560         values of AR, ARFLAGS, RANLIB.
13561         Reported by John W. Eaton <jwe@gnu.org> for Octave.
13562
13563 2011-09-02  Bruno Haible  <bruno@clisp.org>
13564
13565         Find 'ar' program that fits with --host argument.
13566         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
13567
13568 2011-09-02  Bruno Haible  <bruno@clisp.org>
13569
13570         tests: init.sh: Support any non-GNU diff.
13571         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
13572         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
13573         Solaris 8.
13574
13575 2011-09-02  Bruno Haible  <bruno@clisp.org>
13576
13577         tests: init.sh: work also with any non-GNU diff that supports -u
13578         * tests/init.sh: Relax check for diff -u support.
13579         Rather than checking for GNU diff via --version, simply check
13580         for support for -u itself.  Useful at least on OpenBSD 4.9,
13581         AIX 7.1, IRIX 6.5, and Solaris 10.
13582
13583 2011-09-01  Bruno Haible  <bruno@clisp.org>
13584
13585         strtoimax, strtoumax: Document problem on HP-UX 11.
13586         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
13587         * doc/posix-functions/strtoumax.texi: Likewise.
13588
13589 2011-09-01  Bruno Haible  <bruno@clisp.org>
13590
13591         strtoumax: Avoid link error on OSF/1 with DTK cc.
13592         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
13593         defined as a function.
13594         * modules/strtoumax (Depends-on, configure.ac): Test only whether
13595         strtoumax is defined, not whether it is declared.
13596
13597 2011-09-01  Bruno Haible  <bruno@clisp.org>
13598
13599         strtoimax: Avoid link error on OSF/1 with DTK cc.
13600         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
13601         defined as a function.
13602         * modules/strtoimax (Depends-on, configure.ac): Test only whether
13603         strtoimax is defined, not whether it is declared.
13604
13605 2011-09-01  Bruno Haible  <bruno@clisp.org>
13606
13607         imaxdiv: Avoid link error on OSF/1 with DTK cc.
13608         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
13609         as a function.
13610         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
13611         whether it is declared.
13612
13613 2011-09-01  Bruno Haible  <bruno@clisp.org>
13614
13615         imaxabs: Avoid link error on OSF/1 with DTK cc.
13616         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
13617         as a function.
13618         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
13619         whether it is declared.
13620
13621 2011-09-01  Bruno Haible  <bruno@clisp.org>
13622
13623         Tests for module 'strtoumax'.
13624         * modules/strtoumax-tests: New file.
13625         * tests/test-strtoumax.c: New file.
13626
13627         Tests for module 'strtoimax'.
13628         * modules/strtoimax-tests: New file.
13629         * tests/test-strtoimax.c: New file.
13630
13631         Tests for module 'imaxdiv'.
13632         * modules/imaxdiv-tests: New file.
13633         * tests/test-imaxdiv.c: New file.
13634
13635         Tests for module 'imaxabs'.
13636         * modules/imaxabs-tests: New file.
13637         * tests/test-imaxabs.c: New file.
13638
13639 2011-09-01  Bruno Haible  <bruno@clisp.org>
13640
13641         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
13642         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
13643         pthread_create.
13644
13645 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13646
13647         openat: work around AIX 7.1 fstatat issue
13648         This should fix the problem that was not properly fixed
13649         in the previous change, dated 2011-08-30.
13650         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
13651         __need_system_stat_h defined.
13652         (orig_fstatat) [HAVE_FSTATAT]: New function.
13653         (rpl_fstatat): Go back to the old way of doing things,
13654         except call orig_fstatat instead of fstatat.
13655         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
13656         Remove unnecessary check whether fstatat fills in st_size etc.
13657
13658 2011-09-01  Bruno Haible  <bruno@clisp.org>
13659
13660         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
13661         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
13662         just include the system's header.
13663
13664 2011-08-31  Jim Meyering  <meyering@redhat.com>
13665
13666         tests: avoid spurious assertion failure in test-float.c on ppc64
13667         * tests/test-float.c (test_long_double): Comment out an assertion,
13668         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
13669         with gcc-4.4.4.
13670
13671         maint: indent with spaces, not TABs
13672         I need to get in the habit of running gnulib's "make check".
13673         Both of these would have been caught.
13674         * m4/largefile.m4: Indent with spaces, not TABs.
13675         * lib/parse-datetime.y (iso_8601_time): Likewise.
13676         Spotted by Pádraig Brady.
13677
13678         test-parse-datetime.c: accommodate a relatively strict gcc warning
13679         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
13680         to avoid a warning from gcc's -Werror=missing-declarations.
13681         Insert a few spaces-before-funcall-parenthesis.
13682
13683 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
13684
13685         parse-datetime: accept ISO 8601 date and time rep with "T" separator
13686         The parser now accepts ISO 8601 date-time strings with "T" as the
13687         separator.  It has long parsed dates like "2004-02-29 16:21:42"
13688         with a space between the date and time strings.  Now it also parses
13689         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
13690         variants like "2004-02-29T16:21:42.333-07:00"
13691         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
13692         of day representation using the 'T' separator character.
13693         * doc/parse-datetime.texi (General date syntax): replace use of
13694         deprecated --iso-8601 option with --rfc-3339 in example of date
13695         command output formats that can be parsed.
13696         * tests/test-parse-datetime.c (tm_diff): New function, taken from
13697         lib/parse-datetime.y.
13698         (gmt_offset): New function.
13699         (main): Add additional test cases to validate ISO8601 extended
13700         date and time of day parsing.
13701
13702 2011-08-31  Bruno Haible  <bruno@clisp.org>
13703
13704         freopen: Documentation.
13705         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
13706         name.
13707         Reported by Claudio Bley <claudio.bley@gmail.com>.
13708
13709 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
13710
13711         freopen: Don't crash if the filename argument is NULL.
13712         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
13713         NULL.
13714
13715 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
13716
13717         openat: work around AIX 7.1 fstatat bug
13718         Problem reported by Kevin Brott for GNU tar, in the thread containing
13719         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
13720         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
13721         FSTATAT_ST_SIZE_ETC_BROKEN.
13722         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
13723         rpl_fstatat.
13724         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
13725         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
13726         AC_CHECK_FUNCS_ONCE for fstatat.
13727         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
13728         fchmodat, mkdirat, openat and unlinkat.
13729
13730 2011-08-30  Bruno Haible  <bruno@clisp.org>
13731
13732         Avoid endless recursions if config.h includes some header files.
13733         * lib/fopen.c (__need_FILE): Define already before including config.h.
13734         * lib/freopen.c (__need_FILE): Likewise.
13735         * lib/open.c (__need_system_fcntl_h): Likewise.
13736         * lib/stat.c (__need_system_sys_stat_h): Likewise.
13737         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
13738         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
13739
13740 2011-08-25  Karl Berry  <karl@gnu.org>
13741
13742         * config/srclist.txt (ylwrap): new try.
13743         * build-aux/ylwrap: new file.
13744
13745 2011-08-23  Bruno Haible  <bruno@clisp.org>
13746
13747         tmpdir: Use a good default directory on native Windows.
13748         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
13749         (P_tmpdir): Default to _P_tmpdir on native Windows.
13750         (path_search): On native Windows, try the value returned by GetTempPath
13751         before trying P_tmpdir.
13752         * modules/tmpdir (Depends-on): Add pathmax.
13753         Suggested by John Darrington <john@darrington.wattle.id.au>.
13754
13755 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
13756
13757         doc: fix typo in README-release
13758         * top/README-release: Capitalize first word of a sentence.
13759
13760 2011-08-19  Jim Meyering  <meyering@redhat.com>
13761
13762         fts: do not exhaust memory when processing million-entry directories
13763         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
13764         directory would require about 256*N bytes of memory.  Thus, it was
13765         easy to construct a directory too large to be processed by any of
13766         those tools.  With this change, fts' maximum memory utilization is
13767         now limited to around 30MB.
13768         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
13769         (fts_read): When we've processed the final entry (i.e., when
13770         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
13771         using the parent entry to read any remaining entries.  Dispatch
13772         depending on what fts_build returns:
13773         - NULL+stop, aka failure: stop
13774         - NULL otherwise: move up in the dir hierarchy
13775         - non-NULL: handle this new entry
13776         (fts_build): Declare and use new local, continue_readdir.
13777         Prepare to be called from fts_read, when the entries
13778         from a partially-read directory have just been exhausted.
13779         In that case, we'll skip the opendir and instead use the parent's
13780         fts_dirp and derive dir_fd from that.
13781         Finally, in the readdir loop, if we read max_entries entries,
13782         exit the loop ensuring *not* to call closedir.  This is required
13783         so that fts_dirp can be reused on a subsequent call.
13784         Prompted by Ben England's report of memory exhaustion in find
13785         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
13786
13787         maint: fts: move decl of `dp' down into while loop; split a long line
13788         * lib/fts.c (fts_build): No semantic change.
13789
13790         fts: add/use new struct member, fts_dirp
13791         We are about to use this to manage any directory with
13792         too many entries to read all of them into memory at once.
13793         To do that, we'll need to save the DIR* pointer in each
13794         affected FTSENT struct.
13795         * lib/fts_.h: Include <dirent.h>.
13796         (struct FTSENT) [fts_dirp]: New member.
13797         * lib/fts.c (closedir_and_clear): Define.
13798         Use it in place of closedir so that we are sure to
13799         clear the new fts_dirp member when done with it.
13800         (fts_alloc): Initialize the new member.
13801         (fts_lfree): Free, if needed.
13802
13803         maint: fts: give __opendir2 a new parameter and rename
13804         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
13805         than surreptitiously using sole caller's "dir_fd".
13806         (fts_opendir): Rename from __opendir2.
13807
13808         maint: fts.c: remove __opendir2's now-unused parameter, oflag
13809         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
13810
13811         maint: fts.c: correct off-by-one indentation
13812         * lib/fts.c (fts_build): Correct indentation, change style
13813         of a couple of block comments, and bracing style.
13814
13815         maint: fts.c: move __opendir2 #define "up" out of function body
13816         * lib/fts.c (__opendir2): Move "up".  No semantic change.
13817
13818         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
13819         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
13820         out for a long time and besides was useful only on BSD systems.
13821
13822 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13823
13824         regex: port to Stratus OpenVOS
13825         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
13826         define to empty, rather than attempting nonportable optimizations.
13827         Problem reported by Paul Green in:
13828         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
13829         and fix suggested by Eric Blake in:
13830         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
13831
13832 2011-08-17  Eric Blake  <eblake@redhat.com>
13833
13834         getcwd: fix test failures on mingw
13835         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
13836         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
13837         test if long directory cannot be created, and allow mingw errno.
13838
13839         getcwd-lgpl: fix m4 to match relaxed test for BSD
13840         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
13841         (gl_FUNC_GETCWD_SIGNATURE): New macro.
13842         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
13843         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
13844         signature problem.
13845
13846         getcwd: fix compilation on mingw64
13847         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
13848         getcwd.
13849         Reported by Marc-André Lureau.
13850
13851         pipe2: silence compiler warning
13852         * lib/pipe2.c (pipe2): Hide label if it is not used.
13853
13854 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
13855
13856         relocatable-prog: fix link error
13857         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
13858         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
13859         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
13860         into modules/relocatable-lib without noticing that
13861         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
13862         also needs to build relocatable.c.
13863
13864 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13865
13866         getaddrinfo: fix sh typo in gai_strerrorA decl checking
13867         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
13868         shell code: it contained a 'break' that was not in a loop.
13869         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
13870         via a shell-language loop; this may have been true in old Autoconf
13871         versions, but it's not true in Autoconf 2.68.  I found this bug
13872         when testing coreutils git on Solaris 8, whose shell complains
13873         about the syntax error.
13874
13875 2011-08-12  Simon Josefsson  <simon@josefsson.org>
13876
13877         * lib/base64.c: Fix comment to reference RFC 4648.
13878         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
13879         <gvtulder@gmail.com>.
13880
13881 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13882
13883         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
13884
13885         po/Makefile.in.in: fix make -q problem
13886         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
13887         rule, since there's no file named 'check-macro-version' and its
13888         use as a file breaks make -q.
13889         (all): Don't depend on check-macro-version.
13890         (CHECK_MACRO_VERSION): New macro.
13891         (stamp-po): Use it.
13892
13893         configmake: fix make -q problem
13894         * modules/configmake (configmake.h): Update configmake.h's time stamp
13895         even if the file does not change.  Otherwise, 'make -q' fails.
13896         Problem reported by Simon Josefsson in
13897         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
13898
13899 2011-08-11  Jim Meyering  <meyering@redhat.com>
13900
13901         git-version-gen: correct the advice in a comment
13902         * build-aux/git-version-gen: Correct comment.
13903         Don't recommend to list .tarball-version in .gitignore.
13904
13905 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13906
13907         base64: fix off-by-one buffer size bug
13908         Problem and (trivial) fix reported by Gijs van Tulder in
13909         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
13910         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
13911         * tests/test-base64.c (main): Catch the bug.
13912
13913 2011-08-10  Eric Blake  <eblake@redhat.com>
13914
13915         closein: correct comments
13916         * lib/closein.c (close_stdin): Improve comments.
13917
13918 2011-08-09  Bruno Haible  <bruno@clisp.org>
13919
13920         More tests for 'fseeko'.
13921         * tests/test-fseeko3.c: New file, from Eric Blake.
13922         * tests/test-fseeko3.sh: New file.
13923         * modules/fseeko-tests (Files): Add them.
13924         (TESTS): Add test-fseeko3.sh.
13925         (check_PROGRAMS): Add test-fseeko3.
13926
13927 2011-08-09  Eric Blake  <eblake@redhat.com>
13928
13929         fseeko: remove unneeded hack
13930         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
13931
13932         fseeko: fix bug on glibc
13933         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
13934         Reported by John W. Eaton.
13935
13936 2011-08-08  Bruno Haible  <bruno@clisp.org>
13937
13938         unictype/base: Fix interoperability with preinstalled libunistring.
13939         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
13940         Reported by Simon Josefsson.
13941
13942 2011-08-08  Bruno Haible  <bruno@clisp.org>
13943
13944         iswblank: Detect declaration correctly.
13945         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
13946         AC_CHECK_DECLS invocation.
13947
13948 2011-08-08  Bruno Haible  <bruno@clisp.org>
13949
13950         tcgetsid: Detect declaration correctly.
13951         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
13952         AC_CHECK_DECLS invocation.
13953         Reported by Simon Josefsson.
13954
13955 2011-08-08  Eric Blake  <eblake@redhat.com>
13956
13957         largefile: fix typo that regressed large file support
13958         * modules/largefile (configure.ac-early): Fix section name.
13959
13960 2011-08-06  Karl Berry  <karl@gnu.org>
13961
13962         * MODULES.html.sh (func_all_files): _Noreturn is no longer
13963         a separate module.
13964
13965 2011-08-05  Simon Josefsson  <simon@josefsson.org>
13966
13967         openat: Fix warnings and commens when building unlinkat.c on Hurd.
13968         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
13969         get prototype for free.
13970
13971 2011-08-04  Bruno Haible  <bruno@clisp.org>
13972
13973         Tests for module 'pathmax'.
13974         * modules/pathmax-tests: New file.
13975         * tests/test-pathmax.c: New file.
13976
13977         canonicalize-lgpl: Support larger filenames on the Hurd.
13978         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
13979         Reported by Paul Eggert.
13980
13981         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
13982         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
13983         * lib/chdir-long.h: Include pathmax.h.
13984         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
13985         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
13986         (PATH_MAX): Remove code that is done by pathmax.h.
13987         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
13988         * lib/tmpfile.c: Add a comment.
13989         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
13990         * modules/chdir-long (Depends-on): Add pathmax.
13991         * modules/getcwd (Depends-on): Add pathmax.
13992         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
13993         is not defined.
13994         * doc/posix-headers/limits.texi: Mention the pathmax module.
13995         * NEWS: Mention the change.
13996
13997 2011-08-02  Bruno Haible  <bruno@clisp.org>
13998
13999         pthread_sigmask: Actually use results of gl_THREADLIB.
14000         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
14001         gl_THREADLIB, not gl_[]THREADLIB.
14002         Reported by Eric Blake.
14003
14004 2011-08-02  Jim Meyering  <meyering@redhat.com>
14005
14006         maint.mk: relax the default _gl_TS_function_match regexp
14007         * top/maint.mk (_gl_TS_function_match): Don't require at least one
14008         space between function name and "(" in an "extern" declaration.
14009         That would fail to match a decl with no space there: extern void foo();
14010
14011 2011-07-31  Iain Nicol  <iain@thenicols.net>
14012
14013         git-version-gen: document that EXTRA_DIST must include .version
14014         * build-aux/git-version-gen: In the how-to-use comment, document
14015         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
14016         will fail when run from an unpacked distribution tarball.
14017
14018 2011-08-01  Bruno Haible  <bruno@clisp.org>
14019
14020         wctype-h: Fix last change.
14021         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
14022         REPLACE_TOWLOWER to 0.
14023         Reported by Sam Steingold <sds@gnu.org>.
14024
14025 2011-07-31  Bruno Haible  <bruno@clisp.org>
14026
14027         frexpl: Update autoconf test.
14028         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
14029         according to changes of 2011-06-20.
14030
14031 2011-07-31  Bruno Haible  <bruno@clisp.org>
14032
14033         sys_utsname: Add support for Minix.
14034         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
14035         <sys/utsname.h>.
14036         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14037         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
14038
14039 2011-07-31  Bruno Haible  <bruno@clisp.org>
14040
14041         strings: Add support for Minix.
14042         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
14043         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
14044         * doc/posix-headers/strings.texi: Document the Minix problem.
14045
14046 2011-07-31  Bruno Haible  <bruno@clisp.org>
14047
14048         wctype-h: Add support for Minix.
14049         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
14050         REPLACE_TOWLOWER.
14051         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
14052         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
14053         REPLACE_ISWCNTRL.
14054
14055 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
14056
14057         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
14058         This is a performance improvement for 64-bit hosts: it causes the
14059         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
14060
14061 2011-07-31  Bruno Haible  <bruno@clisp.org>
14062
14063         stdioext: Add support for Minix.
14064         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
14065         * lib/fpurge.c (fpurge): Likewise.
14066         * lib/freadahead.c (freadahead): Likewise.
14067         * lib/freadable.c (freadable): Likewise.
14068         * lib/freading.c (freading): Likewise.
14069         * lib/freadptr.c (freadptr): Likewise.
14070         * lib/freadseek.c (freadptrinc): Likewise.
14071         * lib/fseeko.c (rpl_fseeko): Likewise.
14072         * lib/fseterr.c (fseterr): Likewise.
14073         * lib/fwritable.c (fwritable): Likewise.
14074         * lib/fwriting.c (fwriting): Likewise.
14075         * lib/fflush.c (clear_ungetc_buffer): Update comment.
14076         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
14077
14078 2011-07-31  Bruno Haible  <bruno@clisp.org>
14079
14080         errno: Port to Minix.
14081         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
14082         ECONNABORTED are defined.
14083         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
14084         GNULIB_defined_ECONNABORTED): New macros.
14085         * lib/strerror-override.h (strerror_override): Test also
14086         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
14087         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
14088         ECONNABORTED.
14089         * doc/posix-headers/errno.texi: Mention the Minix problem.
14090
14091 2011-07-31  Bruno Haible  <bruno@clisp.org>
14092
14093         Work around declaration collisions on Minix.
14094         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
14095         defined, set REPLACE_MBSINIT.
14096         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
14097         defined, set REPLACE_MBRTOWC.
14098         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
14099         set REPLACE_MBRLEN.
14100         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
14101         defined, set REPLACE_MBSRTOWCS.
14102         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
14103         defined, set REPLACE_WCRTOMB.
14104         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
14105         defined, set REPLACE_WCSRTOMBS.
14106
14107 2011-07-31  Bruno Haible  <bruno@clisp.org>
14108
14109         Add support for Minix with ACK compiler.
14110         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
14111         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
14112         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
14113
14114 2011-07-31  Bruno Haible  <bruno@clisp.org>
14115
14116         Documentation about Minix.
14117         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
14118         * doc/glibc-headers/*.texi: Likewise.
14119         * doc/posix-functions/*.texi: Likewise.
14120         * doc/glibc-functions/*.texi: Likewise.
14121
14122 2011-07-31  Bruno Haible  <bruno@clisp.org>
14123
14124         snippet/warn-on-use: Fix indentation.
14125         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
14126
14127 2011-07-25  Jim Meyering  <meyering@redhat.com>
14128
14129         tests: test-update-copyright.sh: remove unnecessary "rm" commands
14130         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
14131         commands.
14132
14133 2011-07-27  Jim Meyering  <meyering@redhat.com>
14134
14135         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
14136         * top/maint.mk (gl_extract_significant_defines_): Now that
14137         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
14138         gnulib/lib/signal.in.h, and now that we recommend to
14139         define-if-undefined those two symbols in application code,
14140         we must filter them out of the "significant" list.
14141         This avoids a "make syntax-check" failure in coreutils.
14142
14143 2011-07-26  Eric Blake  <eblake@redhat.com>
14144
14145         warnings: add comments about previous patch
14146         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
14147         * m4/include_next.m4: Likewise.
14148         * m4/warn-on-use.m4: Likewise.
14149         * m4/warnings.m4: Likewise, and simplify use.
14150         Suggested by Stefano Lattarini.
14151
14152         include-next, warnings: support older autoconf
14153         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
14154         AS_VAR_PUSHDEF in a way that works with older autoconf.
14155         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
14156         Reported by Daniel P. Berrange.
14157
14158 2011-07-25  Bruno Haible  <bruno@clisp.org>
14159
14160         fseek, ftell: Fix doc.
14161         * doc/posix-functions/fseek.texi: Reword statement about
14162         AC_SYS_LARGEFILE.
14163         * doc/posix-functions/ftell.texi: Likewise.
14164
14165 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14166             Bruno Haible  <bruno@clisp.org>
14167
14168         Add dependencies to the 'largefile' module.
14169         * modules/fopen (Depends-on): Add 'largefile'.
14170         * modules/freopen (Depends-on): Likewise.
14171         * modules/fseeko (Depends-on): Likewise.
14172         * modules/ftello (Depends-on): Likewise.
14173         * modules/glob (Depends-on): Likewise.
14174         * modules/lseek (Depends-on): Likewise.
14175         * modules/lstat (Depends-on): Likewise.
14176         * modules/mkostemp (Depends-on): Likewise.
14177         * modules/mkostemps (Depends-on): Likewise.
14178         * modules/mkstemp (Depends-on): Likewise.
14179         * modules/mkstemps (Depends-on): Likewise.
14180         * modules/open (Depends-on): Likewise.
14181         * modules/openat (Depends-on): Likewise.
14182         * modules/pread (Depends-on): Likewise.
14183         * modules/pwrite (Depends-on): Likewise.
14184         * modules/scandir (Depends-on): Likewise.
14185         * modules/stat (Depends-on): Likewise.
14186         * modules/tmpfile (Depends-on): Likewise.
14187         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
14188         since the containing module now depends on the largefile module.
14189         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
14190         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
14191         off_t is fixed by gnulib.
14192         * doc/posix-functions/freopen.texi: Likewise.
14193         * doc/posix-functions/fseeko.texi: Likewise.
14194         * doc/posix-functions/fstatat.texi: Likewise.
14195         * doc/posix-functions/ftello.texi: Likewise.
14196         * doc/posix-functions/glob.texi: Likewise.
14197         * doc/posix-functions/lseek.texi: Likewise.
14198         * doc/posix-functions/lstat.texi: Likewise.
14199         * doc/posix-functions/mkstemp.texi: Likewise.
14200         * doc/posix-functions/open.texi: Likewise.
14201         * doc/posix-functions/openat.texi: Likewise.
14202         * doc/posix-functions/pread.texi: Likewise.
14203         * doc/posix-functions/pwrite.texi: Likewise.
14204         * doc/posix-functions/scandir.texi: Likewise.
14205         * doc/posix-functions/stat.texi: Likewise.
14206         * doc/posix-functions/tmpfile.texi: Likewise.
14207         * doc/glibc-functions/mkostemp.texi: Likewise.
14208         * doc/glibc-functions/mkostemps.texi: Likewise.
14209         * doc/glibc-functions/mkstemps.texi: Likewise.
14210
14211 2011-07-25  Bruno Haible  <bruno@clisp.org>
14212
14213         fcntl: Move AC_LIBOBJ invocation to module description.
14214         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
14215         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
14216
14217         fcntl: Remove call-in from fchdir.m4.
14218         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
14219         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
14220
14221         dup3: Remove potential call-in from fchdir.m4.
14222         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
14223         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
14224
14225         dup2: Move AC_LIBOBJ invocation to module description.
14226         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
14227         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
14228         Don't invoke AC_LIBOBJ.
14229         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
14230
14231         dup2: Remove call-in from fchdir.m4.
14232         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
14233         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
14234
14235         fclose: Move AC_LIBOBJ invocation to module description.
14236         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
14237         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
14238         to 1.
14239         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
14240
14241         fclose: Remove call-in from close.m4.
14242         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
14243         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
14244
14245         close: Move AC_LIBOBJ invocation to module description.
14246         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
14247         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
14248         1.
14249         * modules/close (configure.ac): Invoke AC_LIBOBJ.
14250
14251         close: Remove call-in from fchdir.m4.
14252         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
14253         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
14254
14255         open: Move AC_LIBOBJ invocation to module description.
14256         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
14257         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
14258         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
14259
14260         open: Remove call-in from fchdir.m4.
14261         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
14262         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
14263
14264         fchdir: Start to remove gl_REPLACE_* idiom.
14265         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
14266         (gl_FUNC_FCHDIR): Invoke it.
14267
14268 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14269
14270         * lib/ftell.c (ftell): Comment out cast.
14271
14272         close: use gl_REPLACE_FCLOSE only if defined
14273         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
14274         is defined.  The close module doesn't depend on the fclose module
14275         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
14276         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
14277         I reproduced the problem with "./gnulib-tool --test close sys_socket".
14278
14279 2011-07-24  Jim Meyering  <meyering@redhat.com>
14280
14281         test-select.h: avoid warning when using gcc's -Wmissing-declarations
14282         * tests/test-select.h (test_function): Declare as "static".
14283
14284 2011-07-24  Bruno Haible  <bruno@clisp.org>
14285
14286         doc: Mention the effects of AC_SYS_LARGEFILE.
14287         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
14288         on this function.
14289         * doc/posix-functions/aio_error.texi: Likewise.
14290         * doc/posix-functions/aio_fsync.texi: Likewise.
14291         * doc/posix-functions/aio_read.texi: Likewise.
14292         * doc/posix-functions/aio_return.texi: Likewise.
14293         * doc/posix-functions/aio_suspend.texi: Likewise.
14294         * doc/posix-functions/aio_write.texi: Likewise.
14295         * doc/posix-functions/fgetpos.texi: Likewise.
14296         * doc/posix-functions/fopen.texi: Likewise.
14297         * doc/posix-functions/freopen.texi: Likewise.
14298         * doc/posix-functions/fsetpos.texi: Likewise.
14299         * doc/posix-functions/fstatvfs.texi: Likewise.
14300         * doc/posix-functions/ftruncate.texi: Likewise.
14301         * doc/posix-functions/ftw.texi: Likewise.
14302         * doc/posix-functions/getrlimit.texi: Likewise.
14303         * doc/posix-functions/glob.texi: Likewise.
14304         * doc/posix-functions/lio_listio.texi: Likewise.
14305         * doc/posix-functions/lockf.texi: Likewise.
14306         * doc/posix-functions/mkstemp.texi: Likewise.
14307         * doc/posix-functions/mmap.texi: Likewise.
14308         * doc/posix-functions/nftw.texi: Likewise.
14309         * doc/posix-functions/openat.texi: Likewise.
14310         * doc/posix-functions/opendir.texi: Likewise.
14311         * doc/posix-functions/posix_fadvise.texi: Likewise.
14312         * doc/posix-functions/posix_fallocate.texi: Likewise.
14313         * doc/posix-functions/pread.texi: Likewise.
14314         * doc/posix-functions/pwrite.texi: Likewise.
14315         * doc/posix-functions/readdir.texi: Likewise.
14316         * doc/posix-functions/readdir_r.texi: Likewise.
14317         * doc/posix-functions/rewinddir.texi: Likewise.
14318         * doc/posix-functions/scandir.texi: Likewise.
14319         * doc/posix-functions/seekdir.texi: Likewise.
14320         * doc/posix-functions/setrlimit.texi: Likewise.
14321         * doc/posix-functions/statvfs.texi: Likewise.
14322         * doc/posix-functions/telldir.texi: Likewise.
14323         * doc/posix-functions/tmpfile.texi: Likewise.
14324         * doc/posix-functions/truncate.texi: Likewise.
14325         * doc/glibc-functions/fallocate.texi: Likewise.
14326         * doc/glibc-functions/fstatfs.texi: Likewise.
14327         * doc/glibc-functions/fts_children.texi: Likewise.
14328         * doc/glibc-functions/fts_read.texi: Likewise.
14329         * doc/glibc-functions/getdirentries.texi: Likewise.
14330         * doc/glibc-functions/mkostemp.texi: Likewise.
14331         * doc/glibc-functions/mkostemps.texi: Likewise.
14332         * doc/glibc-functions/mkstemps.texi: Likewise.
14333         * doc/glibc-functions/preadv.texi: Likewise.
14334         * doc/glibc-functions/pwritev.texi: Likewise.
14335         * doc/glibc-functions/sendfile.texi: Likewise.
14336         * doc/glibc-functions/statfs.texi: Likewise.
14337
14338 2011-07-24  Bruno Haible  <bruno@clisp.org>
14339
14340         doc: Fix typo.
14341         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
14342
14343 2011-07-24  Bruno Haible  <bruno@clisp.org>
14344
14345         doc: Mention fsusage.
14346         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
14347
14348 2011-07-24  Bruno Haible  <bruno@clisp.org>
14349
14350         doc: Mention new glibc headers and functions.
14351         * doc/glibc-headers/gshadow.texi: New file.
14352         * doc/glibc-functions/endsgent.texi: New file.
14353         * doc/glibc-functions/fgetsgent.texi: New file.
14354         * doc/glibc-functions/fgetsgent_r.texi: New file.
14355         * doc/glibc-functions/getsgent.texi: New file.
14356         * doc/glibc-functions/getsgent_r.texi: New file.
14357         * doc/glibc-functions/getsgnam.texi: New file.
14358         * doc/glibc-functions/getsgnam_r.texi: New file.
14359         * doc/glibc-functions/putsgent.texi: New file.
14360         * doc/glibc-functions/setsgent.texi: New file.
14361         * doc/glibc-functions/sgetsgent.texi: New file.
14362         * doc/glibc-functions/sgetsgent_r.texi: New file.
14363         * doc/glibc-functions/malloc_info.texi: New file.
14364         * doc/glibc-functions/preadv.texi: New file.
14365         * doc/glibc-functions/pwritev.texi: New file.
14366         * doc/glibc-functions/register_printf_modifier.texi: New file.
14367         * doc/glibc-functions/register_printf_specifier.texi: New file.
14368         * doc/glibc-functions/register_printf_type.texi: New file.
14369         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
14370         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
14371         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
14372         * doc/glibc-functions/pthread_getname_np.texi: New file.
14373         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
14374         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
14375         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
14376         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
14377         * doc/glibc-functions/pthread_setname_np.texi: New file.
14378         * doc/glibc-functions/pthread_sigqueue.texi: New file.
14379         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
14380         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
14381         * doc/glibc-functions/qsort_r.texi: New file.
14382         * doc/glibc-functions/quick_exit.texi: New file.
14383         * doc/glibc-functions/syncfs.texi: New file.
14384         * doc/gnulib.texi: Include them.
14385         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
14386         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
14387         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
14388         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
14389         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
14390         * doc/glibc-functions/execvpe.texi: Likewise.
14391
14392 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14393
14394         ftell: don't include <unistd.h>
14395         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
14396         guaranteed to define off_t, and the ftell module depends on the
14397         stdio module.
14398
14399         ftell: do not assume wraparound signed arithmetic
14400         * lib/ftell.c: Include <limits.h>.
14401         (ftell): Don't assume wraparound signed arithmetic.
14402
14403 2011-07-24  Bruno Haible  <bruno@clisp.org>
14404
14405         close: No longer depend on module 'fclose'.
14406         * modules/close (Depends-on): Remove fclose.
14407         * NEWS: Mention the change.
14408         Suggested by Sam Steingold <sds@gnu.org>.
14409
14410 2011-07-24  Bruno Haible  <bruno@clisp.org>
14411
14412         fsusage: Enable large volume support on AIX >= 5.2.
14413         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
14414         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
14415         instead of STAT_STATVFS.
14416         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
14417
14418         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
14419         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
14420         f_blocks field only on MacOS X.
14421
14422         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
14423         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
14424         * modules/fsusage (Depends-on): Add largefile.
14425
14426 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14427
14428         * README: Modernize discussion of signed integers.
14429         Assuming overflow wraparound is no longer safe.
14430         Mention ones' complement and signed magnitude.
14431
14432 2011-07-22  Bruno Haible  <bruno@clisp.org>
14433
14434         select tests, pselect tests: Refactor.
14435         * tests/test-select.h: New file, extracted from tests/test-select.c.
14436         (select_fn): New type.
14437         (test, do_select, do_select_nowait, do_select_wait, test_tty,
14438         test_connect_first, test_accept_first, test_pair, test_socket_pair,
14439         test_pipe): Add my_select argument.
14440         (test_function): Renamed from main. Add my_select argument.
14441         * tests/test-select.c: Move most code to tests/test-select.h. Include
14442         test-select.h.
14443         * modules/select-tests (Files): Add tests/test-select.h.
14444         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
14445         (my_select, main): New functions.
14446         * modules/pselect-tests (Files): Add tests/test-select.h,
14447         tests/macros.h, tests/signature.h.
14448         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
14449         (configure.ac): Check for <sys/wait.h>.
14450
14451 2011-07-22  Bruno Haible  <bruno@clisp.org>
14452
14453         sys_select tests: Check the signature of FD_*.
14454         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
14455         signature tests from here...
14456         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
14457         here.
14458         * modules/sys_select-tests (Files): Add tests/signature.h.
14459
14460 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
14461
14462         largefile: new module, replacing large-inode
14463         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
14464         * MODULES.html.sh: Add largefile, remove large-inode.
14465         * modules/largefile, m4/largefile.m4: New files.
14466         * modules/large-inode, m4/large-inode.m4: Remove.
14467
14468         fsusage: port to MacOS X 10.7 with 4 TiB file systems
14469         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
14470         implementations that use only 32 bits to count blocks.
14471         On typical hosts with 1024-byte blocks, this fails with file
14472         systems as small as 4 TiB.  Problem reported by Herb Wartens
14473         <http://debbugs.gnu.org/9140> and this should also fix a similar
14474         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
14475
14476         large-inode: New module
14477         * MODULES.html.sh: Add it.
14478         * modules/large-inode, m4/large-inode.m4: New files.
14479
14480         extensions: Enable extensions on MacOS X 10.5 and later.
14481         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
14482
14483 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
14484
14485         file-has-acl: use acl_extended_file_nofollow if available
14486         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
14487         (acl_extended_file): New macro.
14488         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
14489         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
14490
14491 2011-07-21  Bruno Haible  <bruno@clisp.org>
14492
14493         Declare system functions in a way that works with C++.
14494         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
14495         declare fdopendir as extern "C".
14496         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
14497         declare frexpl as extern "C".
14498         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
14499         declare gai_strerror as extern "C".
14500         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
14501         programs, declare gai_strerror as extern "C".
14502         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
14503         declare getlogin_r as extern "C".
14504         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
14505         as extern "C".
14506         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
14507         declare ldexpl as extern "C".
14508         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
14509         as extern "C".
14510         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
14511         program, declare getmntinfo as extern "C".
14512         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
14513         stpncpy as extern "C".
14514         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
14515         program, declare __xpg_strerror_r as extern "C".
14516         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
14517         strndup as extern "C".
14518         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
14519         declare memset and bzero as extern "C".
14520         Reported by Sam Steingold <sds@gnu.org>.
14521
14522 2011-07-12  Jim Meyering  <meyering@redhat.com>
14523
14524         maint.mk: prohibit inclusion of "verify.h" without use
14525         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
14526
14527 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14528
14529         timer-time: A new module to check for timer_settime()
14530         * m4/timer_time.m4: Check for the posix function.
14531         * modules/timer-time: Add the new module.
14532         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
14533         Mention it.
14534
14535 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
14536             Bruno Haible  <bruno@clisp.org>
14537
14538         pthread_sigmask: assume POSIX threads if --avoid=threadlib
14539         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
14540         not defined, assume POSIX threads and look for pthread_sigmask in
14541         $LIBS, without changing $CPPFLAGS.
14542
14543 2011-07-19  Bruno Haible  <bruno@clisp.org>
14544
14545         strstr: Update cross-compilation guess.
14546         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
14547         CPUs, guess no, in view of glibc
14548         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
14549         Suggested by Eric Blake. Reported by Reuben Thomas.
14550
14551 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14552
14553         getopt-gnu: suppress core dumps from detection code
14554         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
14555         to suppress core dumps that may well occur on glibc systems.
14556         * modules/getopt-gnu: Depend on nocrash.
14557
14558 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
14559
14560         pthread_sigmask: ensure usleep is declared
14561         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
14562         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
14563
14564 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
14565
14566         doc: Document NonStop portability issues.
14567         * doc/posix-functions/sigaction.texi (sigaction):
14568         * doc/posix-headers/signal.texi (signal.h):
14569         Document NonStop.  See Joachim Schmitz in
14570         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
14571
14572 2011-07-15  Bruno Haible  <bruno@clisp.org>
14573
14574         ffsl, ffsll: Avoid unportable behaviour.
14575         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
14576
14577 2011-07-15  Bruno Haible  <bruno@clisp.org>
14578
14579         ffs: More tests.
14580         * tests/test-ffs.c (NBITS): New macro.
14581         (main): Add more tests.
14582         * tests/test-ffsl.c (NBITS): New macro.
14583         (main): Add more tests.
14584         * tests/test-ffsll.c (NBITS): New macro.
14585         (main): Add more tests.
14586
14587 2011-07-15  Eric Blake  <eblake@redhat.com>
14588
14589         ffsl, ffsll: new modules
14590         * modules/ffsl: New file.
14591         * modules/ffsll: Likewise.
14592         * m4/ffsl.m4: Likewise.
14593         * m4/ffsll.m4: Likewise.
14594         * lib/ffsl.c: Likewise.
14595         * lib/ffsl.h: Likewise.
14596         * lib/ffsll.c: Likewise.
14597         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
14598         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
14599         * modules/string (Makefile.am): Substitute witnesses.
14600         * lib/strings.in.h (ffsl, ffsll): Declare.
14601         * modules/ffsl-tests: New test file.
14602         * modules/ffsll-tests: Likewise.
14603         * tests/test-ffsl.c: Likewise.
14604         * tests/test-ffsll.c: Likewise.
14605         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14606         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
14607         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
14608
14609         ffs: fix m4 prerequisite
14610         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
14611
14612         ffs: avoid undefined behavior
14613         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
14614         * tests/test-ffs.c (naive, main): Avoid signed shifts.
14615         Reported by Bruno Haible.
14616
14617 2011-07-12  Bruno Haible  <bruno@clisp.org>
14618
14619         pthread_sigmask: Rely on module 'threadlib'.
14620         * modules/pthread_sigmask (Depends-on): Add threadlib.
14621         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
14622         is defined.
14623
14624 2011-07-12  Bruno Haible  <bruno@clisp.org>
14625
14626         regex: Depend on module 'strcase'.
14627         * modules/regex (Depends-on): Add strcase, for strcasecmp().
14628
14629 2011-07-12  Jim Meyering  <meyering@redhat.com>
14630
14631         warn-on-use: fix typo in file name
14632         * modules/snippet/warn-on-use (Files): Correct file name:
14633         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
14634
14635 2011-07-12  Bruno Haible  <bruno@clisp.org>
14636
14637         strings: Document module.
14638         * doc/posix-headers/strings.texi: Mention module 'strings'.
14639
14640 2011-07-12  Bruno Haible  <bruno@clisp.org>
14641
14642         Rename module '_Noreturn' to 'snippet/_Noreturn'.
14643         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
14644         (Files, Makefile.am): Update.
14645         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
14646         * modules/stdlib (Depends-on): Update.
14647
14648 2011-07-12  Bruno Haible  <bruno@clisp.org>
14649
14650         * NEWS: Mention the changes.
14651
14652         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
14653         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
14654         (Files, Makefile.am): Update.
14655         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.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/inttypes-incomplete (Depends-on): Update.
14663         * modules/langinfo (Depends-on): Update.
14664         * modules/locale (Depends-on): Update.
14665         * modules/math (Depends-on): Update.
14666         * modules/netdb (Depends-on): Update.
14667         * modules/poll-h (Depends-on): Update.
14668         * modules/pty (Depends-on): Update.
14669         * modules/search (Depends-on): Update.
14670         * modules/signal (Depends-on): Update.
14671         * modules/spawn (Depends-on): Update.
14672         * modules/stdio (Depends-on): Update.
14673         * modules/stdlib (Depends-on): Update.
14674         * modules/string (Depends-on): Update.
14675         * modules/strings (Depends-on): Update.
14676         * modules/sys_file (Depends-on): Update.
14677         * modules/sys_ioctl (Depends-on): Update.
14678         * modules/sys_select (Depends-on): Update.
14679         * modules/sys_socket (Depends-on): Update.
14680         * modules/sys_stat (Depends-on): Update.
14681         * modules/sys_time (Depends-on): Update.
14682         * modules/sys_times (Depends-on): Update.
14683         * modules/sys_utsname (Depends-on): Update.
14684         * modules/sys_wait (Depends-on): Update.
14685         * modules/termios (Depends-on): Update.
14686         * modules/time (Depends-on): Update.
14687         * modules/unistd (Depends-on): Update.
14688         * modules/wchar (Depends-on): Update.
14689         * modules/wctype-h (Depends-on): Update.
14690         * MODULES.html.sh (Support for building libraries and executables):
14691         Update.
14692
14693         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
14694         * modules/snippet/unused-parameter: Renamed from
14695         modules/unused-parameter.
14696         (Files, Makefile.am): Update.
14697         * build-aux/snippet/unused-parameter.h: Renamed from
14698         build-aux/unused-parameter.h.
14699         * modules/selinux-h (Depends-on): Update.
14700         * modules/unistr/base (Depends-on): Update.
14701         * MODULES.html.sh (Core language properties): Update.
14702
14703         Rename module 'link-warning' to 'snippet/link-warning'.
14704         * modules/snippet/link-warning: Renamed from modules/link-warning.
14705         (Files, Makefile.am): Update.
14706         * build-aux/snippet/link-warning.h: Renamed from
14707         build-aux/link-warning.h.
14708         * MODULES.html.sh (Support for building libraries and executables):
14709         Update.
14710
14711         Rename module 'c++defs' to 'snippet/c++defs'.
14712         * modules/snippet/c++defs: Renamed from modules/c++defs.
14713         (Files, Makefile.am): Update.
14714         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
14715         * modules/arpa_inet (Depends-on): Update.
14716         * modules/ctype (Depends-on): Update.
14717         * modules/dirent (Depends-on): Update.
14718         * modules/fcntl-h (Depends-on): Update.
14719         * modules/glob (Depends-on): Update.
14720         * modules/iconv-h (Depends-on): Update.
14721         * modules/langinfo (Depends-on): Update.
14722         * modules/locale (Depends-on): Update.
14723         * modules/math (Depends-on): Update.
14724         * modules/netdb (Depends-on): Update.
14725         * modules/poll-h (Depends-on): Update.
14726         * modules/pty (Depends-on): Update.
14727         * modules/search (Depends-on): Update.
14728         * modules/signal (Depends-on): Update.
14729         * modules/spawn (Depends-on): Update.
14730         * modules/stdio (Depends-on): Update.
14731         * modules/stdlib (Depends-on): Update.
14732         * modules/string (Depends-on): Update.
14733         * modules/strings (Depends-on): Update.
14734         * modules/sys_ioctl (Depends-on): Update.
14735         * modules/sys_select (Depends-on): Update.
14736         * modules/sys_socket (Depends-on): Update.
14737         * modules/sys_stat (Depends-on): Update.
14738         * modules/sys_time (Depends-on): Update.
14739         * modules/sys_wait (Depends-on): Update.
14740         * modules/termios (Depends-on): Update.
14741         * modules/time (Depends-on): Update.
14742         * modules/unistd (Depends-on): Update.
14743         * modules/wchar (Depends-on): Update.
14744         * modules/wctype-h (Depends-on): Update.
14745
14746         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
14747         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
14748         (Files, Makefile.am): Update.
14749         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
14750         * modules/argv-iter (Depends-on): Update.
14751         * modules/arpa_inet (Depends-on): Update.
14752         * modules/dirent (Depends-on): Update.
14753         * modules/fcntl-h (Depends-on): Update.
14754         * modules/fnmatch (Depends-on): Update.
14755         * modules/getopt-posix (Depends-on): Update.
14756         * modules/glob (Depends-on): Update.
14757         * modules/iconv-h (Depends-on): Update.
14758         * modules/inttypes-incomplete (Depends-on): Update.
14759         * modules/locale (Depends-on): Update.
14760         * modules/math (Depends-on): Update.
14761         * modules/netdb (Depends-on): Update.
14762         * modules/search (Depends-on): Update.
14763         * modules/signal (Depends-on): Update.
14764         * modules/spawn (Depends-on): Update.
14765         * modules/stdio (Depends-on): Update.
14766         * modules/stdlib (Depends-on): Update.
14767         * modules/string (Depends-on): Update.
14768         * modules/strings (Depends-on): Update.
14769         * modules/sys_socket (Depends-on): Update.
14770         * modules/sys_stat (Depends-on): Update.
14771         * modules/sys_time (Depends-on): Update.
14772         * modules/sys_times (Depends-on): Update.
14773         * modules/sys_utsname (Depends-on): Update.
14774         * modules/time (Depends-on): Update.
14775         * modules/unistd (Depends-on): Update.
14776         * modules/wchar (Depends-on): Update.
14777         * MODULES.html.sh (Support for building libraries and executables):
14778         Update.
14779
14780 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14781
14782         Improvements on _Noreturn and related modules.
14783
14784         modules/_Exit-tests: test _Noreturn too
14785         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
14786         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
14787         (main): Use them.
14788
14789         stdnoreturn, stdnoreturn-tests: remove modules
14790         They're not needed here and a bit premature for use elsewhere.  See
14791         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
14792         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
14793         * tests/test-stdnoreturn.c: Remove files.
14794         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
14795         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
14796         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
14797         and using noreturn.
14798         * modules/openat, modules/sigpipe-die, modules/xalloc:
14799         * modules/xmemdup0, modules/xstrtol:
14800         Remove dependency on stdnoreturn.
14801
14802         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
14803         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
14804         Reparenthesize to avoid GCC warning.
14805         Support Microsoft's syntax.
14806         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
14807
14808         _Noreturn-tests: remove module
14809         * modules/_Noreturn-tests: Remove.
14810         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
14811         * tests/test-_Noreturn.c: Remove.
14812         * tests/test-stdnoreturn.c: Merge from the old
14813         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
14814
14815 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14816
14817         _Noreturn, stdnoreturn, and related modules.
14818
14819         * top/maint.mk: Adjust to new noreturn support.
14820         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
14821         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
14822
14823         xalloc: use stdnoreturn.h
14824         * lib/xalloc.h: Include <stdnoreturn.h>.
14825         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14826         * modules/xalloc (Depends-on): Add stdnoreturn.
14827
14828         xstrtol: use stdnoreturn.h
14829         * lib/xstrtol.h: Include <stdnoreturn.h>.
14830         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14831         * modules/xstrtol (Depends-on): Add stdnoreturn.
14832
14833         xmemdup0: use stdnoreturn.h
14834         * lib/xmemdup0.h: Include <stdnoreturn.h>.
14835         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14836         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
14837
14838         sigpipe-die: use stdnoreturn.h
14839         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
14840         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14841         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
14842
14843         openat: use stdnoreturn.h
14844         * lib/openat.h: Include <stdnoreturn.h>.
14845         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14846         * modules/openat (Depends-on): Add stdnoreturn.
14847
14848         * lib/openat-die.c (openat_save_fail): Modernize comment.
14849
14850         * lib/xalloc-die.c (xalloc_die): Modernize comment.
14851
14852         * lib/glthread/thread.h: Modernize comment.
14853
14854         obstack: use _Noreturn
14855         * lib/obstack.c (__attribute__): Remove macro.
14856         (print_and_abort): Use _Noreturn.
14857
14858         c-stack: use _Noreturn
14859         * lib/c-stack.c (die, overflow_handler, segv_handler):
14860         Use _Noreturn rather than __attribute__((noreturn)).
14861
14862         argmatch-tests, exclude_tests: use _Noreturn
14863         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
14864         Remove.
14865         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
14866
14867         stdlib: use _Noreturn
14868         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
14869         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
14870         * modules/stdlib (Depends-on): Add _Noreturn.
14871         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
14872
14873         stdnoreturn-tests: new module
14874         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
14875
14876         stdnoreturn: new module
14877         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
14878         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
14879
14880         _Noreturn-tests: new module
14881         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
14882
14883         _Noreturn: new module
14884         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
14885         New section, mentioning it.
14886         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
14887
14888         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
14889
14890 2011-07-11  Eric Blake  <eblake@redhat.com>
14891
14892         ffs: new module
14893         * modules/ffs: New file.
14894         * m4/ffs.m4: Likewise.
14895         * lib/ffs.c: Likewise.
14896         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
14897         * modules/strings (Makefile.am): Substitute witness.
14898         (Depends-on): Add c++defs.
14899         * lib/strings.in.h (ffs): Declare.
14900         * modules/ffs-tests: New test file.
14901         * tests/test-ffs.c: Test new module.
14902         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14903         * doc/posix-functions/ffs.texi (ffs): Likewise.
14904
14905         regex: avoid compiler warning
14906         * lib/regex.c (includes): Include <strings.h>, for use of
14907         strcasecmp in regcomp.c.
14908         Reported by Joachim Schmitz.
14909
14910 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14911
14912         stdint: respect system's intmax_t if INTMAX_MAX
14913         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
14914         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
14915         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
14916         long but int64_t is long long, and where we will clash with the
14917         system intmax_t if we override it.  See
14918         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
14919         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
14920         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
14921         similarly for UINTMAX_C.
14922
14923 2011-07-08  Bruno Haible  <bruno@clisp.org>
14924
14925         pthread_sigmask tests: Avoid a compiler warning.
14926         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
14927         non-zero.
14928
14929         sigprocmask tests: A better way to avoid a compiler warning.
14930         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
14931         (main): Complain if system() returns non-zero.
14932         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
14933
14934 2011-07-08  Bruno Haible  <bruno@clisp.org>
14935
14936         pthread_sigmask: Work around IRIX bug.
14937         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
14938         bug.
14939         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
14940         there may be unblocked pending signals.
14941         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
14942
14943 2011-07-08  Bruno Haible  <bruno@clisp.org>
14944
14945         pthread_sigmask: Work around Cygwin bug.
14946         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
14947         bug.
14948         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
14949         the system's pthread_sigmask function.
14950         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
14951
14952 2011-07-08  Bruno Haible  <bruno@clisp.org>
14953
14954         pthread_sigmask: Work around bug in single-threaded implementation.
14955         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
14956         FreeBSD, HP-UX, Solaris bug.
14957         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
14958         * lib/pthread_sigmask.c: Include <stddef.h>.
14959         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
14960         the system's pthread_sigmask function.
14961         * modules/pthread_sigmask (configure.ac): Invoke
14962         gl_PREREQ_PTHREAD_SIGMASK.
14963         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
14964         HP-UX, Solaris.
14965
14966 2011-07-08  Eric Blake  <eblake@redhat.com>
14967
14968         test-sigprocmask: avoid compiler warning
14969         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
14970         * tests/test-sigprocmask.c (main): Use it to silence warning.
14971         Reported by Jim Meyering.
14972
14973         test-snprintf: avoid compiler warning
14974         * tests/test-snprintf.c (main): Avoid shadowed declaration.
14975         * tests/test-vsnprintf.c (main): Likewise.
14976         Reported by Jim Meyering.
14977
14978 2011-07-08  Bruno Haible  <bruno@clisp.org>
14979
14980         Tests for module 'pthread_sigmask'.
14981         * modules/pthread_sigmask-tests: New file.
14982         * tests/test-pthread_sigmask1.c: New file, based on
14983         tests/test-sigprocmask.c.
14984         * tests/test-pthread_sigmask2.c: New file.
14985
14986 2011-07-08  Jim Meyering  <meyering@redhat.com>
14987
14988         test-getopt.h: avoid warning about an unused variable
14989         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
14990
14991 2011-07-07  Jim Meyering  <meyering@redhat.com>
14992
14993         maint: reduce list of files exempt from sc_prohibit_leading_TABs
14994         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
14995         now that it no longer contains leading TABs.
14996         Remove unused "url=FIXME" statement.
14997
14998 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14999
15000         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
15001         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15002         When gl_THREADLIB is not in use, assume that the POSIX sematics
15003         are desired.  This is better for Emacs, which uses POSIX semantics
15004         on GNUish and/or POSIXish platforms, and does not use threads at
15005         all otherwise.
15006
15007         pthread_sigmask: fix typo when testing for libraries
15008         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15009         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
15010
15011 2011-07-08  Eric Blake  <eblake@redhat.com>
15012
15013         fts: introduce FTS_NOATIME
15014         * lib/fts_.h (FTS_NOATIME): New bit flag.
15015         (FTS_OPTIONMASK): Adjust.
15016         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
15017         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
15018
15019 2011-07-08  Bruno Haible  <bruno@clisp.org>
15020
15021         Tests for module 'thread'.
15022         * modules/thread-tests: New file.
15023         * tests/test-thread_self.c: New file.
15024         * tests/test-thread_create.cc: New file.
15025
15026 2011-07-08  Bruno Haible  <bruno@clisp.org>
15027
15028         thread: Avoid gcc warnings when using gl_thread_self().
15029         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
15030         'void *'.
15031         (gl_thread_self_pointer): Update.
15032
15033 2011-07-07  Bruno Haible  <bruno@clisp.org>
15034
15035         signal-c++-tests: Check declaration of pthread_sigmask.
15036         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
15037         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
15038         $(LIB_PTHREAD_SIGMASK).
15039
15040 2011-07-07  Bruno Haible  <bruno@clisp.org>
15041
15042         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
15043         * lib/signal.in.h (pthread_sigmask): Override if
15044         REPLACE_PTHREAD_SIGMASK is 1.
15045         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15046         REPLACE_PTHREAD_SIGMASK.
15047         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
15048         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
15049         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
15050         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15051         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
15052
15053 2011-07-07  Bruno Haible  <bruno@clisp.org>
15054
15055         pthread_sigmask: Ensure declaration in <signal.h>.
15056         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
15057         include <pthread.h>.
15058         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
15059         problem.
15060
15061 2011-07-07  Bruno Haible  <bruno@clisp.org>
15062
15063         pthread_sigmask: Document the module.
15064         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
15065
15066 2011-07-07  Bruno Haible  <bruno@clisp.org>
15067
15068         pthread_sigmask: Follow gnulib conventions.
15069         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
15070         gl_PTHREAD_SIGMASK.
15071         * modules/pthread_sigmask (configure.ac): Update.
15072
15073 2011-07-07  Bruno Haible  <bruno@clisp.org>
15074
15075         pthread_sigmask: Make declaration C++ safe.
15076         * lib/signal.in.h: In two special conditions, just do an #include_next.
15077         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15078         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
15079         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15080         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15081         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
15082         not REPLACE_PTHREAD_MASK.
15083         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
15084         not REPLACE_PTHREAD_MASK.
15085         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15086
15087 2011-07-07  Bruno Haible  <bruno@clisp.org>
15088
15089         pthread_sigmask: Fix return value.
15090         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
15091         * lib/pthread_sigmask.c: New file.
15092         * modules/pthread_sigmask (Files): Add it.
15093         (configure.ac): Invoke AC_LIBOBJ.
15094
15095 2011-07-07  Eric Blake  <eblake@redhat.com>
15096
15097         getopt: more portable argv creation
15098         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
15099         const, use char arrays rather than strings.
15100         Suggested by Paul Eggert.
15101
15102 2011-07-07  Bruno Haible  <bruno@clisp.org>
15103
15104         Tests for module 'sigprocmask'.
15105         * modules/sigprocmask-tests: New file.
15106         * tests/test-sigprocmask.c: New file.
15107
15108 2011-07-07  Bruno Haible  <bruno@clisp.org>
15109
15110         float tests: Tweak.
15111         * tests/test-float.c (main): Tweak skip message.
15112
15113 2011-07-07  Eric Blake  <eblake@redhat.com>
15114
15115         getopt: avoid compiler warning during configure
15116         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
15117         assigning string literals to non-const pointer.
15118
15119         getopt-gnu: avoid crash in glibc getopt
15120         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
15121         * tests/test-getopt.h (test_getopt): Enhance test.
15122         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15123         * doc/posix-functions/getopt.texi (getopt): Document it.
15124         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15125         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15126         Likewise.
15127
15128 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
15129
15130         getopt: handle W; without long options in getopt [BZ #12922]
15131         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
15132         but no long options are defined, just return 'W'.
15133
15134 2011-07-07  Bruno Haible  <bruno@clisp.org>
15135
15136         Avoid literal tabs.
15137         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
15138         variable containing a tab instead of a literal tab.
15139         Reported by Jim Meyering.
15140
15141 2011-07-07  Bruno Haible  <bruno@clisp.org>
15142
15143         Comments.
15144         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
15145
15146 2011-07-06  Bruno Haible  <bruno@clisp.org>
15147
15148         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
15149         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
15150         <winsock2.h>.
15151         (rpl_fd_isset, FD_ISSET): New definitions, copied from
15152         lib/sys_socket.in.h.
15153         (close, gethostname): Hide declarations from <winsock2.h>.
15154         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15155         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
15156         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
15157         (select): Don't override if gnulib's <sys/select.h> was already
15158         included.
15159         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15160         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15161         setsockopt, shutdown, select): Tweak indentation.
15162
15163 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15164
15165         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
15166         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
15167         in an application that does not use the sys_select module.
15168
15169 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
15170
15171         poll: do not return 0 on timeout=-1
15172         * lib/poll.c: Loop with yield if no events occurred.
15173
15174 2011-07-06  Eric Blake  <eblake@redhat.com>
15175
15176         pthread_sigmask: always replace when not using pthread
15177         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
15178         replacement when using some threading other than pthread.  Fix
15179         logic bug.
15180
15181 2011-07-06  Bruno Haible  <bruno@clisp.org>
15182
15183         Comments.
15184         * m4/printf.m4: Update comments about mingw.
15185
15186 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15187
15188         sys_select: define sigset_t more portably
15189         * lib/sys_select.in.h: Always include <sys/types.h>, since
15190         we now need sigset_t and mingw defines it there.
15191         Include <signal.h> before split inclusion guard, to avoid
15192         mishaps on Solaris, whose <signal.h> eventually includes us.
15193         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
15194         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
15195         which come from ...
15196         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
15197         gl_CHECK_TYPE_SIGSET_T.
15198         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
15199         does the real work.
15200         * modules/sys_select (Depends-on): Add 'signal'.
15201
15202         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
15203         Suggested by Bruno Haible.
15204
15205         pselect: Use pthread_sigmask, not sigprocmask.
15206         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
15207         multithreaded apps better than sigprocmask does.
15208         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
15209         sigprocmask directly.
15210
15211 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15212
15213         * lib/pselect.c (pselect): Use plain name, without "rpl_".
15214         Don't #undef,  since we don't need any underlying pselect.
15215         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
15216         (Depends-on): Add select.
15217         (Link): Add $(LIBSOCKET).
15218         These changes suggested by Bruno Haible.
15219
15220         pselect: document better
15221         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15222         * doc/posix-functions/pselect.texi (pselect): Document new module.
15223
15224         pthread_sigmask: new module
15225         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15226         * doc/posix-functions/pthread_sigmask.texi: Document new module.
15227         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
15228         This is done only as a macro; I don't know how well that'll
15229         work for C++.  Move <sys/types.h> include before the include_next,
15230         to avoid mishap on Solaris.
15231         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
15232         * modules/signal (Makefile.am): Substitute the check's results.
15233         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
15234
15235         test-pselect: new module
15236         * modules/pselect-tests, tests/test-pselect.c: New files.
15237         * tests/test-select.c, tests/test-sys_select-c++.cc:
15238         If TEST_PSELECT is defined, test pselect instead of testing select.
15239
15240         * tests/test-sys_select.c (sigset_t): Test for it, too.
15241         Suggested by Bruno Haible.
15242
15243 2011-07-05  Eric Blake  <eblake@redhat.com>
15244
15245         snprintf: guarantee %1$d, for libintl
15246         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
15247         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
15248         * doc/posix-functions/snprintf.texi (snprintf): Update.
15249         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15250         * tests/test-snprintf.c (main): Enhance test.
15251         * tests/test-vsnprintf.c (main): Likewise.
15252
15253 2011-07-05  Jim Meyering  <meyering@redhat.com>
15254
15255         maint: exempt stdio-read.c and stdio-write.c from the cppi check
15256         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
15257         per Bruno's request, to accommodate this idiom (no space after "#")
15258         even when the function is inside an #if block:
15259         char *
15260         gets (char *s)
15261         #undef gets
15262         {
15263           ...
15264         }
15265
15266 2011-07-04  Jim Meyering  <meyering@redhat.com>
15267
15268         maint: indent with spaces, not TABs, and add a rule to check this
15269         * tests/test-userspec.c: Indent with spaces, not TABs.
15270         * tests/test-argp.c: Likewise.
15271         * tests/test-c-stack2.sh: Likewise.
15272         * tests/test-parse-duration.sh: Likewise
15273         * m4/strtod.m4: Likewise.
15274         * m4/alloca.m4: Likewise.
15275         * m4/pselect.m4: Likewise.
15276         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
15277
15278 2011-07-03  Jim Meyering  <meyering@redhat.com>
15279
15280         maint.mk: correct omissions in prohibit_argmatch_without_use check
15281         This rule would mistakenly report that argmatch.h is included without
15282         use even when both the argmatch and invalid_arg macro were used.
15283         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
15284         of argmatch and invalid_arg.
15285
15286 2011-07-03  Bruno Haible  <bruno@clisp.org>
15287
15288         Comments about EINTR.
15289         * lib/safe-read.h: Explain the purpose of this module.
15290         * lib/safe-write.h: Likewise.
15291         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
15292         module.
15293         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
15294         module.
15295         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15296
15297 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
15298
15299         xnanosleep: Rewrite to use new dtotimespec module.
15300         It has the conversion code that used to be in xnanosleep.
15301         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
15302         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
15303         (TIME_T_MAX): Remove.
15304         (xnanosleep): Rewrite in terms of dtotimespec.
15305         * modules/xnanosleep (Depends-on): Add dtotimespec.
15306         Remove intprops, stdbool.
15307
15308         timespec-add, timespec-sub: new modules
15309         * lib/timespec.h (timespec_add, timespec_sub): New decls.
15310         * lib/timespec-add.c, lib/timespec-sub.c:
15311         * modules/timespec-add, modules/timespec-sub: New files.
15312
15313         dtotimespec: new module
15314         * lib/timespec.h (dtotimespec): New decl.
15315         * lib/dtotimespec.c, modules/dtotimespec: New files.
15316
15317         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
15318
15319         pselect: new module
15320         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
15321         (pselect): New decls.
15322         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
15323         since the standard pselect decl uses 'restrict'.
15324         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
15325         HAVE_PSELECT, REPLACE_PSELECT.
15326         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
15327         HAVE_PSELECT, REPLACE_PSELECT.
15328         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
15329
15330         sys_select: don't depend on sys_socket
15331         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
15332         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
15333         This fix works on GNU and GNU-like platforms, but has not been tested
15334         on native Windows.
15335         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
15336         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
15337         gl_HEADER_SYS_SOCKET.
15338         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
15339         gl_PREREQ_SYS_H_WINSOCK2.
15340
15341 2011-06-29  Eric Blake  <eblake@redhat.com>
15342
15343         pipe2: fix C89 compile problem
15344         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
15345         Reported by Bruno Haible.
15346
15347         pipe, pipe2: don't corrupt fd on error
15348         * lib/pipe.c (pipe): Leave fd unchanged on error.
15349         * lib/pipe2.c (pipe2): Likewise.
15350         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
15351         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15352
15353 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
15354
15355         mmap-anon: do not use regular expressions inadvertently
15356         * m4/mmap-anon.m4: Remove trailing period from strings sought
15357         in the output.
15358
15359 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
15360
15361         nanosleep: fix integer overflow problem
15362         * lib/nanosleep.c (my_usleep): Don't assume signed integer
15363         arithmetic wraps around on overflow.
15364
15365         nanosleep: simplify carrying
15366         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
15367         first call to the underyling nanosleep, not for the last one.
15368         This doesn't fix any bugs, but it simplifies the computation of
15369         the remaining delay.  Found while auditing integer overflow issues.
15370
15371         dup2: remove test for existence of fcntl
15372         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
15373         "#if HAVE_FCNTL", in the configure-time test program.
15374         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
15375         and therefore speeds up "configure" a bit.  Found while
15376         adding the dup2 module to Emacs.
15377
15378 2011-06-24  Eric Blake  <eblake@redhat.com>
15379
15380         maint.mk: enhance useless header checks
15381         * top/maint.mk (_sc_header_without_use): Check both include
15382         styles.
15383         (sc_prohibit_assert_without_use)
15384         (sc_prohibit_close_stream_without_use)
15385         (sc_prohibit_getopt_without_use)
15386         (sc_prohibit_quotearg_without_use)
15387         (sc_prohibit_quote_without_use)
15388         (sc_prohibit_long_options_without_use)
15389         (sc_prohibit_inttostr_without_use)
15390         (sc_prohibit_ignore_value_without_use)
15391         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
15392         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
15393         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
15394         (sc_prohibit_hash_pjw_without_use)
15395         (sc_prohibit_safe_read_without_use)
15396         (sc_prohibit_argmatch_without_use)
15397         (sc_prohibit_canonicalize_without_use)
15398         (sc_prohibit_root_dev_ino_without_use)
15399         (sc_prohibit_openat_without_use)
15400         (sc_prohibit_c_ctype_without_use)
15401         (sc_prohibit_signal_without_use)
15402         (sc_prohibit_stdio--_without_use)
15403         (sc_prohibit_stdio-safer_without_use)
15404         (sc_prohibit_strings_without_use)
15405         (sc_prohibit_intprops_without_use)
15406         (sc_prohibit_stddef_without_use)
15407         (sc_prohibit_xfreopen_without_use): Update clients.
15408
15409 2011-06-24  Jim Meyering  <meyering@redhat.com>
15410
15411         syntax-check: keep one maint.mk rule in sync with its header
15412         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
15413         of the bug Eric has just fixed, with today's commit 25e4c2ec.
15414         I prefer to avoid temporary files here, so use <(...), but that
15415         is not supported by /bin/sh, so...
15416         (SHELL): Define to /bin/bash.
15417
15418 2011-06-24  Eric Blake  <eblake@redhat.com>
15419
15420         maint.mk: update sc_prohibit_intprops_without_use
15421         * top/maint.mk (_intprops_names): Match recent changes.
15422
15423 2011-06-24  Bruno Haible  <bruno@clisp.org>
15424
15425         strerror-override: No-op tweak.
15426         * lib/strerror-override.h (strerror_override): Reorder conditions,
15427         for consistency with lib/strerror-override.c.
15428
15429 2011-06-23  Eric Blake  <eblake@redhat.com>
15430
15431         maint.mk: test further PATH_MAX issues
15432         * top/maint.mk (sc_prohibit_path_max_array): Rename...
15433         (sc_prohibit_path_max_allocation): ...and also test alloca.
15434         Suggested by Jim Meyering.
15435
15436 2011-06-22  Eric Blake  <eblake@redhat.com>
15437
15438         maint.mk: add syntax-check to avoid char[PATH_MAX]
15439         * top/maint.mk (sc_prohibit_path_max_array): New rule.
15440
15441         stat: be robust to PATH_MAX definition
15442         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
15443         * modules/stat (Depends-on): Add verify.
15444
15445         link: work around IRIX bug
15446         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
15447         * lib/link.c (rpl_link): Work around it.
15448         * tests/test-link.h (test_link): Enhance test.
15449         * doc/posix-functions/link.texi (link): Document the bug.
15450
15451         getopt: silence clang warning
15452         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
15453         dereference.
15454         Reported by Gustavo Martin Domato.
15455
15456 2011-06-22  Jim Meyering  <meyering@redhat.com>
15457
15458         bootstrap: do not insert a blank line into each .gitignore file
15459         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
15460
15461 2011-06-21  Eric Blake  <eblake@redhat.com>
15462
15463         perror: test for output mismatch
15464         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
15465         perror on IRIX.
15466
15467         strerror_r: fix OpenBSD behavior on out-of-range
15468         * lib/strerror_r.c (strerror_r): Always use maximal string.
15469         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15470
15471         strerror_r: fix OpenBSD behavior on 0
15472         * lib/strerror-override.c (strerror_override): Also override 0
15473         when needed.
15474         * lib/strerror-override.h (strerror_override): Likewise.
15475         * lib/strerror.c (strerror): Simplify, now that 0 override is done
15476         earlier.
15477         * lib/strerror_r.c (strerror_r): Likewise.
15478         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
15479         behavior...
15480         (gl_FUNC_STRERROR_0): ...into new macro.
15481         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
15482         is overridden.
15483         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
15484         * modules/strerror-override (Files): Add strerror.m4.
15485         (configure.ac): Also provide override for 0 when needed.
15486         * doc/posix-functions/strerror.texi (strerror): Document this.
15487         * doc/posix-functions/perror.texi (perror): Likewise.
15488
15489         perror: adjust array size
15490         * modules/perror (Depends-on): Add strerror-override.
15491         * lib/perror.c (perror): Use it to avoid magic number.
15492
15493         strerror-override: reduce size
15494         * lib/strerror-override.c (strerror_override): Use fewer lines.
15495
15496 2011-06-20  Bruno Haible  <bruno@clisp.org>
15497
15498         pathmax: Ensure correct value for PATH_MAX on HP-UX.
15499         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
15500
15501 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
15502
15503         alloca: port to compilers that can optimize like GCC 4.6.0
15504         * lib/alloca.c (find_stack_direction): New signature, taken from
15505         Autoconf git.  This works with GCC 4.6.0.  This code should never
15506         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
15507         be used with other compilers that optimize as well as GCC 4.6.0 does.
15508         (alloca): Adjust to new signature.
15509         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
15510         New macro, which patches Autoconf in a similar way.
15511
15512         c-stack: stop worrying about stack direction
15513         * lib/c-stack.c (find_stack_direction): Remove.
15514         (segv_handler): Don't worry about stack direction growth, as it's
15515         too much of a pain to configure this correctly, given how compilers
15516         are optimizing-away our stack-growth detection code.  Instead, assume
15517         that any access to just before or just after the stack is OK.
15518         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
15519         Don't require AC_FUNC_ALLOCA; no longer needed.
15520
15521 2011-06-20  Eric Blake  <eblake@redhat.com>
15522
15523         test-stat: don't allocate PATH_MAX bytes
15524         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
15525         PATH_MAX-sized buffer.
15526         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
15527         * modules/stat-tests (Depends-on): Likewise.
15528         * tests/test-fstatat.c (includes): Drop pathmax.h.
15529         * tests/test-stat.c (includes): Likewise.
15530         Reported by Bruno Haible.
15531
15532 2011-06-20  Bruno Haible  <bruno@clisp.org>
15533
15534         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
15535         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
15536         * lib/float.c: New file.
15537         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
15538         REPLACE_FLOAT_LDBL.
15539         * modules/float (Files): Add lib/float.c.
15540         (configure.ac): Invoke AC_LIBOBJ.
15541         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
15542
15543 2011-06-20  Bruno Haible  <bruno@clisp.org>
15544
15545         Tests for module 'float'.
15546         * modules/float-tests: New file.
15547         * tests/test-float.c: New file.
15548
15549 2011-06-19  Bruno Haible  <bruno@clisp.org>
15550
15551         isinf: Coding style.
15552         * lib/isinf.c: Use GNU coding style.
15553
15554 2011-06-19  Bruno Haible  <bruno@clisp.org>
15555
15556         linkat test: Avoid test failure on AIX 7.1.
15557         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
15558         * tests/test-link.h (test_link): Likewise.
15559
15560 2011-06-19  Bruno Haible  <bruno@clisp.org>
15561
15562         pread test: Avoid test failure on OpenBSD 4.9.
15563         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
15564
15565 2011-06-19  Bruno Haible  <bruno@clisp.org>
15566
15567         sprintf-posix: Fix test failure on AIX 7.1.
15568         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
15569         * doc/posix-functions/dprintf.texi: Mention limited precision problem
15570         on AIX.
15571         * doc/posix-functions/fprintf.texi: Likewise.
15572         * doc/posix-functions/printf.texi: Likewise.
15573         * doc/posix-functions/snprintf.texi: Likewise.
15574         * doc/posix-functions/sprintf.texi: Likewise.
15575         * doc/posix-functions/vdprintf.texi: Likewise.
15576         * doc/posix-functions/vfprintf.texi: Likewise.
15577         * doc/posix-functions/vprintf.texi: Likewise.
15578         * doc/posix-functions/vsnprintf.texi: Likewise.
15579         * doc/posix-functions/vsprintf.texi: Likewise.
15580
15581 2011-06-19  Bruno Haible  <bruno@clisp.org>
15582
15583         roundl-ieee: Fix test failure on AIX 7.1.
15584         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
15585         * doc/posix-functions/roundl.texi: Mention problem with negative
15586         arguments.
15587
15588 2011-06-19  Bruno Haible  <bruno@clisp.org>
15589
15590         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15591         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
15592         * doc/posix-functions/round.texi: Mention problem with negative
15593         arguments.
15594         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
15595
15596 2011-06-19  Bruno Haible  <bruno@clisp.org>
15597
15598         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15599         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
15600         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
15601         * doc/posix-functions/roundf.texi: Mention problem with negative
15602         arguments.
15603         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
15604
15605 2011-06-19  Bruno Haible  <bruno@clisp.org>
15606
15607         ceilf-ieee: Work around bug on MacOS X 10.5.
15608         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
15609
15610         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
15611         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
15612         IEEE compliant, avoid compiler optimizations.
15613         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15614         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15615         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15616         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15617         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15618         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15619         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15620         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15621         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15622         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15623
15624 2011-06-19  Bruno Haible  <bruno@clisp.org>
15625
15626         ceilf-ieee: Work around bug on AIX 7.1.
15627         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
15628         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
15629
15630 2011-06-19  Bruno Haible  <bruno@clisp.org>
15631
15632         ceil-ieee: Work around bug on AIX 7.1.
15633         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
15634         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
15635
15636 2011-06-18  Bruno Haible  <bruno@clisp.org>
15637
15638         fsync test: Avoid test failure on MacOS X and AIX.
15639         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
15640         EINVAL.
15641
15642 2011-06-18  Bruno Haible  <bruno@clisp.org>
15643
15644         openat, fdopendir tests: Fix link errors.
15645         * modules/openat-tests (Depends-on): Add progname.
15646         * modules/fdopendir-tests (Depends-on): Likewise.
15647         * tests/test-fchownat.c: Include progname.h.
15648         (main): Call set_program_name.
15649         * tests/test-fstatat.c: Include progname.h.
15650         (main): Call set_program_name.
15651         * tests/test-mkdirat.c: Include progname.h.
15652         (main): Call set_program_name.
15653         * tests/test-openat.c: Include progname.h.
15654         (main): Call set_program_name.
15655         * tests/test-unlinkat.c: Include progname.h.
15656         (main): Call set_program_name.
15657         * tests/test-fdopendir.c: Include progname.h.
15658         (main): Call set_program_name.
15659
15660 2011-06-18  Bruno Haible  <bruno@clisp.org>
15661
15662         Doc update.
15663         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
15664         HP-UX.
15665         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
15666
15667 2011-06-18  Bruno Haible  <bruno@clisp.org>
15668
15669         getcwd tests: Avoid compilation error on HP-UX 11.31.
15670         * modules/getcwd-tests (Depends-on): Add pathmax.
15671         * tests/test-getcwd.c: Include pathmax.h.
15672
15673 2011-06-18  Bruno Haible  <bruno@clisp.org>
15674
15675         isfinite, isinf: Fix link error on AIX 6 and 7.
15676         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
15677         needed, also test the macro with a 'float' argument.
15678         * m4/isinf.m4 (gl_ISINF): Likewise.
15679
15680 2011-06-18  Bruno Haible  <bruno@clisp.org>
15681
15682         getloadavg: Don't clobber LIBS. Regression from previous commit.
15683         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
15684         AC_CHECK_LIB from here...
15685         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
15686         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
15687         gl_func_getloadavg_done.
15688         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15689
15690 2011-06-18  Bruno Haible  <bruno@clisp.org>
15691
15692         clean-temp: Improve documentation.
15693         * lib/clean-temp.h: Explain better how to use this module.
15694         Reported by John Darrington <john@darrington.wattle.id.au>.
15695
15696 2011-06-17  Bruno Haible  <bruno@clisp.org>
15697
15698         pread, pwrite: Avoid cc warning on AIX.
15699         * lib/unistd.in.h (pread): Undefine before defining as a macro.
15700         (pwrite): Likewise.
15701
15702 2011-06-17  Bruno Haible  <bruno@clisp.org>
15703
15704         spawn-pipe tests: Fix link error.
15705         * tests/test-spawn-pipe-child.c: Undefine fprintf.
15706         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15707
15708 2011-06-17  Bruno Haible  <bruno@clisp.org>
15709
15710         Tests: Remove unnecessary dependency.
15711         * modules/canonicalize-tests (Depends-on): Remove progname.
15712         * modules/chown-tests (Depends-on): Likewise.
15713         * modules/dirname-tests (Depends-on): Likewise.
15714         * modules/fdopendir-tests (Depends-on): Likewise.
15715         * modules/fdutimensat-tests (Depends-on): Likewise.
15716         * modules/hash-tests (Depends-on): Likewise.
15717         * modules/lchown-tests (Depends-on): Likewise.
15718         * modules/linkat-tests (Depends-on): Likewise.
15719         * modules/renameat-tests (Depends-on): Likewise.
15720         * modules/spawn-pipe-tests (Depends-on): Likewise.
15721         * modules/utimensat-tests (Depends-on): Likewise.
15722
15723 2011-06-17  Bruno Haible  <bruno@clisp.org>
15724
15725         spawn-pipe tests: Fix link error.
15726         * tests/test-spawn-pipe-child.c: Undefine fflush.
15727
15728 2011-06-17  Bruno Haible  <bruno@clisp.org>
15729
15730         Fix tests link errors.
15731         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
15732         * modules/chown-tests (Makefile.am): Don't link test-chown with
15733         LIBINTL.
15734         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
15735         LIBINTL.
15736         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
15737         LIBINTL.
15738         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
15739         LIBINTL.
15740
15741 2011-06-16  Bruno Haible  <bruno@clisp.org>
15742
15743         crypto/gc-sha1: Fix recent regression.
15744         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
15745         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
15746
15747         crypto/gc-md5: Fix recent regression.
15748         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
15749
15750         crypto/gc-md4: Fix recent regression.
15751         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
15752         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
15753
15754         crypto/gc-arctwo: Fix recent regression.
15755         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
15756         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
15757
15758         crypto/gc-rijndael: Fix recent regression.
15759         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
15760         (configure.ac): Invoke AC_LIBOBJ here.
15761         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
15762         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15763
15764         crypto/gc-hmac-sha1: Fix recent regression.
15765         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
15766         (configure.ac): Invoke AC_LIBOBJ here.
15767         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
15768         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15769
15770         crypto/gc-hmac-md5: Fix recent regression.
15771         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
15772         (configure.ac): Invoke AC_LIBOBJ here.
15773         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
15774         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15775
15776         crypto/gc-des: Fix recent regression.
15777         * modules/crypto/gc-des (Files): Remove m4/des.m4.
15778         (configure.ac): Invoke AC_LIBOBJ here.
15779         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
15780         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15781
15782         crypto/gc-arcfour: Fix recent regression.
15783         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
15784         (configure.ac): Invoke AC_LIBOBJ here.
15785         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
15786         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15787
15788 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
15789
15790         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
15791         After the 2011-05-21 change, this macro requires
15792         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
15793         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
15794
15795 2011-06-16  Bruno Haible  <bruno@clisp.org>
15796
15797         fprintftime: Move AC_LIBOBJ invocations to module description.
15798         * m4/fprintftime.m4: Remove file.
15799         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
15800         (configure.ac): Remove gl_FPRINTFTIME call.
15801         (Makefile.am): Augment lib_SOURCES.
15802         Reported by Jim Meyering.
15803
15804 2011-06-16  Bruno Haible  <bruno@clisp.org>
15805
15806         tmpfile-safer: Finish 2011-05-23 commit.
15807         * m4/stdio-safer.m4: Really remove file.
15808         Reported by Jim Meyering.
15809
15810 2011-06-16  Bruno Haible  <bruno@clisp.org>
15811
15812         syntax-check: Fix typo.
15813         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
15814         printf-posix.m4.
15815         Reported by Jim Meyering.
15816
15817 2011-06-13  Jim Meyering  <meyering@redhat.com>
15818
15819         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
15820         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
15821
15822 2011-05-23  Bruno Haible  <bruno@clisp.org>
15823
15824         yesno: Move AC_LIBOBJ invocations to module description.
15825         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
15826         * modules/yesno (Makefile.am): Augment lib_SOURCES.
15827
15828 2011-05-23  Bruno Haible  <bruno@clisp.org>
15829
15830         xstrtol: Move AC_LIBOBJ invocations to module description.
15831         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
15832         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
15833
15834 2011-05-23  Bruno Haible  <bruno@clisp.org>
15835
15836         xstrtold: Move AC_LIBOBJ invocations to module description.
15837         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
15838         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
15839
15840 2011-05-23  Bruno Haible  <bruno@clisp.org>
15841
15842         xstrtod: Move AC_LIBOBJ invocations to module description.
15843         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
15844         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
15845
15846 2011-05-23  Bruno Haible  <bruno@clisp.org>
15847
15848         xnanosleep: Move AC_LIBOBJ invocations to module description.
15849         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
15850         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
15851
15852 2011-05-23  Bruno Haible  <bruno@clisp.org>
15853
15854         xgetcwd: Move AC_LIBOBJ invocations to module description.
15855         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
15856         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
15857
15858 2011-05-23  Bruno Haible  <bruno@clisp.org>
15859
15860         xalloc: Move AC_LIBOBJ invocations to module description.
15861         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
15862         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
15863
15864 2011-05-23  Bruno Haible  <bruno@clisp.org>
15865
15866         write-any-file: Move AC_LIBOBJ invocations to module description.
15867         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
15868         invocation.
15869         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
15870
15871 2011-05-23  Bruno Haible  <bruno@clisp.org>
15872
15873         utimens: Move AC_LIBOBJ invocations to module description.
15874         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
15875         * modules/utimens (Makefile.am): Augment lib_SOURCES.
15876
15877 2011-05-23  Bruno Haible  <bruno@clisp.org>
15878
15879         utimecmp: Move AC_LIBOBJ invocations to module description.
15880         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
15881         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
15882
15883 2011-05-23  Bruno Haible  <bruno@clisp.org>
15884
15885         userspec: Move AC_LIBOBJ invocations to module description.
15886         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
15887         * modules/userspec (Makefile.am): Augment lib_SOURCES.
15888
15889 2011-05-23  Bruno Haible  <bruno@clisp.org>
15890
15891         unlinkdir: Move AC_LIBOBJ invocations to module description.
15892         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
15893         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
15894
15895 2011-05-23  Bruno Haible  <bruno@clisp.org>
15896
15897         unistd-safer: Move AC_LIBOBJ invocations to module description.
15898         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
15899         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
15900
15901 2011-05-23  Bruno Haible  <bruno@clisp.org>
15902
15903         tempname: Move AC_LIBOBJ invocations to module description.
15904         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
15905         * modules/tempname (Makefile.am): Augment lib_SOURCES.
15906
15907 2011-05-23  Bruno Haible  <bruno@clisp.org>
15908
15909         strftime: Move AC_LIBOBJ invocations to module description.
15910         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
15911         * modules/strftime (Makefile.am): Augment lib_SOURCES.
15912
15913 2011-05-23  Bruno Haible  <bruno@clisp.org>
15914
15915         stdlib-safer: Move AC_LIBOBJ invocations to module description.
15916         * m4/stdlib-safer.m4: Remove file.
15917         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
15918         (configure.ac): Remove gl_STDLIB_SAFER call.
15919         (Makefile.am): Augment lib_SOURCES.
15920
15921 2011-05-23  Bruno Haible  <bruno@clisp.org>
15922
15923         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
15924         * m4/stdio-safer.m4: Remove file.
15925         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
15926         (configure.ac): Remove gl_TMPFILE_SAFER call.
15927         (Makefile.am): Augment lib_SOURCES.
15928
15929 2011-05-23  Bruno Haible  <bruno@clisp.org>
15930
15931         popen-safer: Move AC_LIBOBJ invocations to module description.
15932         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
15933         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
15934         (configure.ac): Remove gl_POPEN_SAFER call.
15935         (Makefile.am): Augment lib_SOURCES.
15936
15937 2011-05-23  Bruno Haible  <bruno@clisp.org>
15938
15939         freopen-safer: Move AC_LIBOBJ invocations to module description.
15940         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
15941         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
15942         (configure.ac): Remove gl_FREOPEN_SAFER call.
15943         (Makefile.am): Augment lib_SOURCES.
15944
15945 2011-05-23  Bruno Haible  <bruno@clisp.org>
15946
15947         fopen-safer: Move AC_LIBOBJ invocations to module description.
15948         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
15949         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
15950         (configure.ac): Remove gl_FOPEN_SAFER call.
15951         (Makefile.am): Augment lib_SOURCES.
15952
15953 2011-05-23  Bruno Haible  <bruno@clisp.org>
15954
15955         crypto/sha512: Move AC_LIBOBJ invocations to module description.
15956         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
15957         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
15958
15959 2011-05-23  Bruno Haible  <bruno@clisp.org>
15960
15961         crypto/sha256: Move AC_LIBOBJ invocations to module description.
15962         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
15963         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
15964
15965 2011-05-23  Bruno Haible  <bruno@clisp.org>
15966
15967         crypto/sha1: Move AC_LIBOBJ invocations to module description.
15968         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
15969         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
15970
15971 2011-05-23  Bruno Haible  <bruno@clisp.org>
15972
15973         settime: Move AC_LIBOBJ invocations to module description.
15974         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
15975         * modules/settime (Makefile.am): Augment lib_SOURCES.
15976
15977 2011-05-23  Bruno Haible  <bruno@clisp.org>
15978
15979         savedir: Move AC_LIBOBJ invocations to module description.
15980         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
15981         * modules/savedir (Makefile.am): Augment lib_SOURCES.
15982
15983 2011-05-23  Bruno Haible  <bruno@clisp.org>
15984
15985         save-cwd: Move AC_LIBOBJ invocations to module description.
15986         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
15987         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
15988
15989 2011-05-23  Bruno Haible  <bruno@clisp.org>
15990
15991         same: Move AC_LIBOBJ invocations to module description.
15992         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
15993         * modules/same (Makefile.am): Augment lib_SOURCES.
15994
15995 2011-05-23  Bruno Haible  <bruno@clisp.org>
15996
15997         safe-write: Move AC_LIBOBJ invocations to module description.
15998         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
15999         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
16000         instead of gl_SAFE_WRITE.
16001         (Makefile.am): Augment lib_SOURCES.
16002
16003 2011-05-23  Bruno Haible  <bruno@clisp.org>
16004
16005         safe-read: Move AC_LIBOBJ invocations to module description.
16006         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
16007         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
16008         of gl_SAFE_READ.
16009         (Makefile.am): Augment lib_SOURCES.
16010
16011 2011-05-23  Bruno Haible  <bruno@clisp.org>
16012
16013         safe-alloc: Move AC_LIBOBJ invocations to module description.
16014         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
16015         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
16016
16017 2011-05-23  Bruno Haible  <bruno@clisp.org>
16018
16019         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
16020         * m4/rijndael.m4: Remove file.
16021         * modules/crypto/rijndael (Files): Remove it.
16022         (configure.ac): Remove gl_RIJNDAEL call.
16023         (Makefile.am): Augment lib_SOURCES.
16024
16025 2011-05-23  Bruno Haible  <bruno@clisp.org>
16026
16027         readtokens: Move AC_LIBOBJ invocations to module description.
16028         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
16029         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
16030
16031 2011-05-23  Bruno Haible  <bruno@clisp.org>
16032
16033         read-file: Move AC_LIBOBJ invocations to module description.
16034         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
16035         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
16036         of gl_FUNC_READ_FILE.
16037         (Makefile.am): Augment lib_SOURCES.
16038
16039 2011-05-23  Bruno Haible  <bruno@clisp.org>
16040
16041         quotearg: Move AC_LIBOBJ invocations to module description.
16042         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
16043         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
16044
16045 2011-05-23  Bruno Haible  <bruno@clisp.org>
16046
16047         quote: Move AC_LIBOBJ invocations to module description.
16048         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
16049         * modules/quote (Makefile.am): Augment lib_SOURCES.
16050
16051 2011-05-23  Bruno Haible  <bruno@clisp.org>
16052
16053         posixver: Move AC_LIBOBJ invocations to module description.
16054         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
16055         * modules/posixver (Makefile.am): Augment lib_SOURCES.
16056
16057 2011-05-23  Bruno Haible  <bruno@clisp.org>
16058
16059         posixtm: Move AC_LIBOBJ invocations to module description.
16060         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
16061         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
16062
16063 2011-05-23  Bruno Haible  <bruno@clisp.org>
16064
16065         physmem: Move AC_LIBOBJ invocations to module description.
16066         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
16067         * modules/physmem (Makefile.am): Augment lib_SOURCES.
16068
16069 2011-05-23  Bruno Haible  <bruno@clisp.org>
16070
16071         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
16072         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
16073         invocation.
16074         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
16075
16076 2011-05-23  Bruno Haible  <bruno@clisp.org>
16077
16078         mpsort: Move AC_LIBOBJ invocations to module description.
16079         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
16080         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
16081
16082 2011-05-23  Bruno Haible  <bruno@clisp.org>
16083
16084         modechange: Move AC_LIBOBJ invocations to module description.
16085         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
16086         * modules/modechange (Makefile.am): Augment lib_SOURCES.
16087
16088 2011-05-23  Bruno Haible  <bruno@clisp.org>
16089
16090         mkdir-p: Move AC_LIBOBJ invocations to module description.
16091         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
16092         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
16093
16094 2011-05-23  Bruno Haible  <bruno@clisp.org>
16095
16096         mkancesdirs: Move AC_LIBOBJ invocations to module description.
16097         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
16098         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
16099
16100 2011-05-23  Bruno Haible  <bruno@clisp.org>
16101
16102         mgetgroups: Move AC_LIBOBJ invocations to module description.
16103         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
16104         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
16105
16106 2011-05-23  Bruno Haible  <bruno@clisp.org>
16107
16108         memxor: Move AC_LIBOBJ invocations to module description.
16109         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
16110         * modules/memxor (Makefile.am): Augment lib_SOURCES.
16111
16112 2011-05-23  Bruno Haible  <bruno@clisp.org>
16113
16114         memcoll: Move AC_LIBOBJ invocations to module description.
16115         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
16116         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
16117
16118 2011-05-23  Bruno Haible  <bruno@clisp.org>
16119
16120         memcasecmp: Move AC_LIBOBJ invocations to module description.
16121         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
16122         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
16123
16124 2011-05-23  Bruno Haible  <bruno@clisp.org>
16125
16126         crypto/md5: Move AC_LIBOBJ invocations to module description.
16127         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
16128         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
16129
16130 2011-05-23  Bruno Haible  <bruno@clisp.org>
16131
16132         crypto/md4: Move AC_LIBOBJ invocations to module description.
16133         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
16134         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
16135
16136 2011-05-23  Bruno Haible  <bruno@clisp.org>
16137
16138         crypto/md2: Move AC_LIBOBJ invocations to module description.
16139         * m4/md2.m4: Remove file.
16140         * modules/crypto/md2 (Files): Remove it.
16141         (configure.ac): Remove gl_MD2 call.
16142         (Makefile.am): Augment lib_SOURCES.
16143
16144 2011-05-23  Bruno Haible  <bruno@clisp.org>
16145
16146         long-options: Move AC_LIBOBJ invocations to module description.
16147         * m4/long-options.m4: Remove file.
16148         * modules/long-options (Files): Remove it.
16149         (configure.ac): Remove gl_LONG_OPTIONS call.
16150         (Makefile.am): Augment lib_SOURCES.
16151
16152 2011-05-23  Bruno Haible  <bruno@clisp.org>
16153
16154         i-ring: Move AC_LIBOBJ invocations to module description.
16155         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
16156         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
16157
16158 2011-05-23  Bruno Haible  <bruno@clisp.org>
16159
16160         idcache: Move AC_LIBOBJ invocations to module description.
16161         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
16162         * modules/idcache (Makefile.am): Augment lib_SOURCES.
16163
16164 2011-05-23  Bruno Haible  <bruno@clisp.org>
16165
16166         human: Move AC_LIBOBJ invocations to module description.
16167         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
16168         * modules/human (Makefile.am): Augment lib_SOURCES.
16169
16170 2011-05-23  Bruno Haible  <bruno@clisp.org>
16171
16172         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
16173         * m4/hmac-sha1.m4: Remove file.
16174         * modules/crypto/hmac-sha1 (Files): Remove it.
16175         (configure.ac): Remove gl_HMAC_SHA1 call.
16176         (Makefile.am): Augment lib_SOURCES.
16177
16178 2011-05-23  Bruno Haible  <bruno@clisp.org>
16179
16180         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
16181         * m4/hmac-md5.m4: Remove file.
16182         * modules/crypto/hmac-md5 (Files): Remove it.
16183         (configure.ac): Remove gl_HMAC_MD5 call.
16184         (Makefile.am): Augment lib_SOURCES.
16185
16186 2011-05-23  Bruno Haible  <bruno@clisp.org>
16187
16188         hash: Move AC_LIBOBJ invocations to module description.
16189         * m4/hash.m4: Remove file.
16190         * modules/hash (Files): Remove it.
16191         (configure.ac): Remove gl_HASH call.
16192         (Makefile.am): Augment lib_SOURCES.
16193
16194 2011-05-23  Bruno Haible  <bruno@clisp.org>
16195
16196         hard-locale: Move AC_LIBOBJ invocations to module description.
16197         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
16198         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
16199
16200 2011-05-23  Bruno Haible  <bruno@clisp.org>
16201
16202         getugroups: Move AC_LIBOBJ invocations to module description.
16203         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
16204         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
16205
16206 2011-05-23  Bruno Haible  <bruno@clisp.org>
16207
16208         gettime: Move AC_LIBOBJ invocations to module description.
16209         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
16210         * modules/gettime (Makefile.am): Augment lib_SOURCES.
16211
16212 2011-05-23  Bruno Haible  <bruno@clisp.org>
16213
16214         getndelim2: Move AC_LIBOBJ invocations to module description.
16215         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
16216         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
16217
16218 2011-05-23  Bruno Haible  <bruno@clisp.org>
16219
16220         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
16221         * m4/gc-pbkdf2-sha1.m4: Remove file.
16222         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
16223         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
16224         (Makefile.am): Augment lib_SOURCES.
16225
16226 2011-05-23  Bruno Haible  <bruno@clisp.org>
16227
16228         fts: Move AC_LIBOBJ invocations to module description.
16229         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
16230         * modules/fts (configure.ac): ... to here.
16231
16232 2011-05-23  Bruno Haible  <bruno@clisp.org>
16233
16234         file-type: Move AC_LIBOBJ invocations to module description.
16235         * m4/file-type.m4: Remove file.
16236         * modules/file-type (Files): Remove it.
16237         (configure.ac): Remove gl_FILE_TYPE call.
16238         (Makefile.am): Augment lib_SOURCES.
16239
16240 2011-05-23  Bruno Haible  <bruno@clisp.org>
16241
16242         filenamecat*: Respect rules for use of AC_LIBOBJ.
16243         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
16244         Remove AC_LIBOBJ invocation.
16245         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
16246         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
16247
16248 2011-05-23  Bruno Haible  <bruno@clisp.org>
16249
16250         filemode: Move AC_LIBOBJ invocations to module description.
16251         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
16252         * modules/filemode (Makefile.am): Augment lib_SOURCES.
16253
16254 2011-05-23  Bruno Haible  <bruno@clisp.org>
16255
16256         openat-safer: Move AC_LIBOBJ invocations to module description.
16257         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
16258         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
16259
16260 2011-05-23  Bruno Haible  <bruno@clisp.org>
16261
16262         fcntl-safer: Move AC_LIBOBJ invocations to module description.
16263         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
16264         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
16265
16266 2011-05-23  Bruno Haible  <bruno@clisp.org>
16267
16268         exclude: Move AC_LIBOBJ invocations to module description.
16269         * m4/exclude.m4: Remove file.
16270         * modules/exclude (Files): Remove it.
16271         (configure.ac): Remove gl_EXCLUDE call.
16272         (Makefile.am): Augment lib_SOURCES.
16273
16274 2011-05-23  Bruno Haible  <bruno@clisp.org>
16275
16276         dirname*: Respect rules for use of AC_LIBOBJ.
16277         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
16278         invocations.
16279         * modules/dirname (Makefile.am): Augment lib_SOURCES.
16280         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
16281
16282 2011-05-23  Bruno Haible  <bruno@clisp.org>
16283
16284         dirent-safer: Move AC_LIBOBJ invocations to module description.
16285         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
16286         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
16287
16288 2011-05-23  Bruno Haible  <bruno@clisp.org>
16289
16290         crypto/des: Move AC_LIBOBJ invocations to module description.
16291         * m4/des.m4: Remove file.
16292         * modules/crypto/des (Files): Remove it.
16293         (configure.ac): Remove gl_DES call.
16294         (Makefile.am): Augment lib_SOURCES.
16295
16296 2011-05-23  Bruno Haible  <bruno@clisp.org>
16297
16298         cycle-check: Move AC_LIBOBJ invocations to module description.
16299         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
16300         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
16301
16302 2011-05-23  Bruno Haible  <bruno@clisp.org>
16303
16304         c-strtold: Move AC_LIBOBJ invocations to module description.
16305         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
16306         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
16307
16308 2011-05-23  Bruno Haible  <bruno@clisp.org>
16309
16310         c-strtod: Move AC_LIBOBJ invocations to module description.
16311         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
16312         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
16313
16314 2011-05-23  Bruno Haible  <bruno@clisp.org>
16315
16316         crc: Move AC_LIBOBJ invocations to module description.
16317         * m4/crc.m4: Remove file.
16318         * modules/crc (Files): Remove it.
16319         (configure.ac): Remove gl_CRC call.
16320         (Makefile.am): Augment lib_SOURCES.
16321
16322 2011-05-23  Bruno Haible  <bruno@clisp.org>
16323
16324         close-stream: Move AC_LIBOBJ invocations to module description.
16325         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
16326         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
16327
16328 2011-05-23  Bruno Haible  <bruno@clisp.org>
16329
16330         closeout: Move AC_LIBOBJ invocations to module description.
16331         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
16332         * modules/closeout (Makefile.am): Augment lib_SOURCES.
16333
16334 2011-05-23  Bruno Haible  <bruno@clisp.org>
16335
16336         closein: Move AC_LIBOBJ invocations to module description.
16337         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
16338         * modules/closein (Makefile.am): Augment lib_SOURCES.
16339
16340 2011-05-23  Bruno Haible  <bruno@clisp.org>
16341
16342         cloexec: Move AC_LIBOBJ invocations to module description.
16343         * m4/cloexec.m4: Remove file.
16344         * modules/cloexec (Files): Remove it.
16345         (configure.ac): Remove gl_CLOEXEC call.
16346         (Makefile.am): Augment lib_SOURCES.
16347
16348 2011-05-23  Bruno Haible  <bruno@clisp.org>
16349
16350         check-version: Move AC_LIBOBJ invocations to module description.
16351         * m4/check-version.m4: Remove file.
16352         * modules/check-version (Files): Remove it.
16353         (configure.ac): Remove gl_CHECK_VERSION call.
16354         (Makefile.am): Augment lib_SOURCES.
16355
16356 2011-05-23  Bruno Haible  <bruno@clisp.org>
16357
16358         chdir-safer: Move AC_LIBOBJ invocations to module description.
16359         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
16360         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
16361
16362 2011-05-23  Bruno Haible  <bruno@clisp.org>
16363
16364         canonicalize: Move AC_LIBOBJ invocations to module description.
16365         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
16366         AC_LIBOBJ invocation.
16367         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
16368
16369 2011-05-23  Bruno Haible  <bruno@clisp.org>
16370
16371         canon-host: Move AC_LIBOBJ invocations to module description.
16372         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
16373         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
16374         instead of gl_CANON_HOST.
16375         (Makefile.am): Augment lib_SOURCES.
16376
16377 2011-05-23  Bruno Haible  <bruno@clisp.org>
16378
16379         backupfile: Move AC_LIBOBJ invocations to module description.
16380         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
16381         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
16382
16383 2011-05-23  Bruno Haible  <bruno@clisp.org>
16384
16385         argmatch: Move AC_LIBOBJ invocations to module description.
16386         * m4/argmatch.m4: Remove file.
16387         * modules/argmatch (Files): Remove it.
16388         (configure.ac): Remove gl_ARGMATCH call.
16389         (Makefile.am): Augment lib_SOURCES.
16390
16391 2011-05-23  Bruno Haible  <bruno@clisp.org>
16392
16393         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
16394         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
16395         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
16396
16397 2011-05-23  Bruno Haible  <bruno@clisp.org>
16398
16399         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
16400         * m4/arcfour.m4: Remove file.
16401         * modules/crypto/arcfour (Files): Remove it.
16402         (configure.ac): Remove gl_ARCFOUR call.
16403         (Makefile.am): Augment lib_SOURCES.
16404
16405 2011-05-22  Bruno Haible  <bruno@clisp.org>
16406
16407         write: Move AC_LIBOBJ invocations to module description.
16408         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
16409         * modules/write (configure.ac): ... to here.
16410
16411 2011-05-22  Bruno Haible  <bruno@clisp.org>
16412
16413         wmemset: Move AC_LIBOBJ invocations to module description.
16414         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
16415         here...
16416         * modules/wmemset (configure.ac): ... to here.
16417
16418 2011-05-22  Bruno Haible  <bruno@clisp.org>
16419
16420         wmemmove: Move AC_LIBOBJ invocations to module description.
16421         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
16422         here...
16423         * modules/wmemmove (configure.ac): ... to here.
16424
16425 2011-05-22  Bruno Haible  <bruno@clisp.org>
16426
16427         wmemcpy: Move AC_LIBOBJ invocations to module description.
16428         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
16429         here...
16430         * modules/wmemcpy (configure.ac): ... to here.
16431
16432 2011-05-22  Bruno Haible  <bruno@clisp.org>
16433
16434         wmemcmp: Move AC_LIBOBJ invocations to module description.
16435         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
16436         here...
16437         * modules/wmemcmp (configure.ac): ... to here.
16438
16439 2011-05-22  Bruno Haible  <bruno@clisp.org>
16440
16441         wmemchr: Move AC_LIBOBJ invocations to module description.
16442         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
16443         here...
16444         * modules/wmemchr (configure.ac): ... to here.
16445
16446 2011-05-22  Bruno Haible  <bruno@clisp.org>
16447
16448         wcswidth: Move AC_LIBOBJ invocations to module description.
16449         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
16450         here...
16451         * modules/wcswidth (configure.ac): ... to here.
16452
16453 2011-05-22  Bruno Haible  <bruno@clisp.org>
16454
16455         wcwidth: Respect rules for use of AC_LIBOBJ.
16456         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
16457         invocation from here...
16458         * modules/wcwidth (configure.ac): ... to here.
16459         (Depends-on): Update conditions.
16460
16461 2011-05-22  Bruno Haible  <bruno@clisp.org>
16462
16463         wctype: Move AC_LIBOBJ invocations to module description.
16464         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
16465         invocation from here...
16466         * modules/wctype (configure.ac): ... to here.
16467         (Depends-on): Update conditions.
16468
16469 2011-05-22  Bruno Haible  <bruno@clisp.org>
16470
16471         wctrans: Move AC_LIBOBJ invocations to module description.
16472         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
16473         invocation from here...
16474         * modules/wctrans (configure.ac): ... to here.
16475
16476 2011-05-22  Bruno Haible  <bruno@clisp.org>
16477
16478         wctomb: Move AC_LIBOBJ invocations to module description.
16479         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
16480         invocations from here...
16481         * modules/wctomb (configure.ac): ... to here.
16482
16483 2011-05-22  Bruno Haible  <bruno@clisp.org>
16484
16485         wctob: Move AC_LIBOBJ invocations to module description.
16486         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
16487         gl_PREREQ_WCTOB invocations from here...
16488         * modules/wctob (configure.ac): ... to here.
16489         (Depends-on): Update conditions.
16490
16491 2011-05-22  Bruno Haible  <bruno@clisp.org>
16492
16493         wcsxfrm: Move AC_LIBOBJ invocations to module description.
16494         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
16495         here...
16496         * modules/wcsxfrm (configure.ac): ... to here.
16497
16498 2011-05-22  Bruno Haible  <bruno@clisp.org>
16499
16500         wcstok: Move AC_LIBOBJ invocations to module description.
16501         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
16502         * modules/wcstok (configure.ac): ... to here.
16503
16504 2011-05-22  Bruno Haible  <bruno@clisp.org>
16505
16506         wcsstr: Move AC_LIBOBJ invocations to module description.
16507         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
16508         * modules/wcsstr (configure.ac): ... to here.
16509
16510 2011-05-22  Bruno Haible  <bruno@clisp.org>
16511
16512         wcsspn: Move AC_LIBOBJ invocations to module description.
16513         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
16514         * modules/wcsspn (configure.ac): ... to here.
16515
16516 2011-05-22  Bruno Haible  <bruno@clisp.org>
16517
16518         wcsrtombs: Move AC_LIBOBJ invocations to module description.
16519         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
16520         gl_PREREQ_WCSRTOMBS invocations from here...
16521         * modules/wcsrtombs (configure.ac): ... to here.
16522
16523 2011-05-22  Bruno Haible  <bruno@clisp.org>
16524
16525         wcsrchr: Move AC_LIBOBJ invocations to module description.
16526         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
16527         here...
16528         * modules/wcsrchr (configure.ac): ... to here.
16529
16530 2011-05-22  Bruno Haible  <bruno@clisp.org>
16531
16532         wcspbrk: Move AC_LIBOBJ invocations to module description.
16533         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
16534         here...
16535         * modules/wcspbrk (configure.ac): ... to here.
16536
16537 2011-05-22  Bruno Haible  <bruno@clisp.org>
16538
16539         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
16540         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
16541         gl_PREREQ_WCSNRTOMBS invocations from here...
16542         * modules/wcsnrtombs (configure.ac): ... to here.
16543
16544 2011-05-22  Bruno Haible  <bruno@clisp.org>
16545
16546         wcsnlen: Move AC_LIBOBJ invocations to module description.
16547         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
16548         here...
16549         * modules/wcsnlen (configure.ac): ... to here.
16550
16551 2011-05-22  Bruno Haible  <bruno@clisp.org>
16552
16553         wcsncpy: Move AC_LIBOBJ invocations to module description.
16554         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
16555         here...
16556         * modules/wcsncpy (configure.ac): ... to here.
16557
16558 2011-05-22  Bruno Haible  <bruno@clisp.org>
16559
16560         wcsncmp: Move AC_LIBOBJ invocations to module description.
16561         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
16562         here...
16563         * modules/wcsncmp (configure.ac): ... to here.
16564
16565 2011-05-22  Bruno Haible  <bruno@clisp.org>
16566
16567         wcsncat: Move AC_LIBOBJ invocations to module description.
16568         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
16569         here...
16570         * modules/wcsncat (configure.ac): ... to here.
16571
16572 2011-05-22  Bruno Haible  <bruno@clisp.org>
16573
16574         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
16575         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
16576         from here...
16577         * modules/wcsncasecmp (configure.ac): ... to here.
16578
16579 2011-05-22  Bruno Haible  <bruno@clisp.org>
16580
16581         wcslen: Move AC_LIBOBJ invocations to module description.
16582         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
16583         * modules/wcslen (configure.ac): ... to here.
16584
16585 2011-05-22  Bruno Haible  <bruno@clisp.org>
16586
16587         wcsdup: Move AC_LIBOBJ invocations to module description.
16588         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
16589         * modules/wcsdup (configure.ac): ... to here.
16590
16591 2011-05-22  Bruno Haible  <bruno@clisp.org>
16592
16593         wcscspn: Move AC_LIBOBJ invocations to module description.
16594         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
16595         here...
16596         * modules/wcscspn (configure.ac): ... to here.
16597
16598 2011-05-22  Bruno Haible  <bruno@clisp.org>
16599
16600         wcscpy: Move AC_LIBOBJ invocations to module description.
16601         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
16602         * modules/wcscpy (configure.ac): ... to here.
16603
16604 2011-05-22  Bruno Haible  <bruno@clisp.org>
16605
16606         wcscoll: Move AC_LIBOBJ invocations to module description.
16607         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
16608         here...
16609         * modules/wcscoll (configure.ac): ... to here.
16610
16611 2011-05-22  Bruno Haible  <bruno@clisp.org>
16612
16613         wcscmp: Move AC_LIBOBJ invocations to module description.
16614         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
16615         * modules/wcscmp (configure.ac): ... to here.
16616
16617 2011-05-22  Bruno Haible  <bruno@clisp.org>
16618
16619         wcschr: Move AC_LIBOBJ invocations to module description.
16620         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
16621         * modules/wcschr (configure.ac): ... to here.
16622
16623 2011-05-22  Bruno Haible  <bruno@clisp.org>
16624
16625         wcscat: Move AC_LIBOBJ invocations to module description.
16626         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
16627         * modules/wcscat (configure.ac): ... to here.
16628
16629 2011-05-22  Bruno Haible  <bruno@clisp.org>
16630
16631         wcscasecmp: Move AC_LIBOBJ invocations to module description.
16632         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
16633         here...
16634         * modules/wcscasecmp (configure.ac): ... to here.
16635
16636 2011-05-22  Bruno Haible  <bruno@clisp.org>
16637
16638         wcrtomb: Move AC_LIBOBJ invocations to module description.
16639         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
16640         invocations from here...
16641         * modules/wcrtomb (configure.ac): ... to here.
16642
16643 2011-05-22  Bruno Haible  <bruno@clisp.org>
16644
16645         wcpncpy: Move AC_LIBOBJ invocations to module description.
16646         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
16647         here...
16648         * modules/wcpncpy (configure.ac): ... to here.
16649
16650 2011-05-22  Bruno Haible  <bruno@clisp.org>
16651
16652         wcpcpy: Move AC_LIBOBJ invocations to module description.
16653         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
16654         * modules/wcpcpy (configure.ac): ... to here.
16655
16656 2011-05-22  Bruno Haible  <bruno@clisp.org>
16657
16658         waitpid: Move AC_LIBOBJ invocations to module description.
16659         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
16660         invocation from here...
16661         * modules/waitpid (configure.ac): ... to here.
16662
16663 2011-05-22  Bruno Haible  <bruno@clisp.org>
16664
16665         utimensat: Move AC_LIBOBJ invocations to module description.
16666         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
16667         here...
16668         * modules/utimensat (configure.ac): ... to here.
16669
16670 2011-05-22  Bruno Haible  <bruno@clisp.org>
16671
16672         usleep: Move AC_LIBOBJ invocations to module description.
16673         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
16674         here...
16675         * modules/usleep (configure.ac): ... to here.
16676
16677 2011-05-22  Bruno Haible  <bruno@clisp.org>
16678
16679         unlockpt: Move AC_LIBOBJ invocations to module description.
16680         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
16681         gl_PREREQ_UNLOCKPT invocations from here...
16682         * modules/unlockpt (configure.ac): ... to here.
16683
16684 2011-05-22  Bruno Haible  <bruno@clisp.org>
16685
16686         unlink: Respect rules for use of AC_LIBOBJ.
16687         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
16688         * modules/unlink (configure.ac): ... to here.
16689
16690 2011-05-22  Bruno Haible  <bruno@clisp.org>
16691
16692         uname: Move AC_LIBOBJ invocations to module description.
16693         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
16694         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
16695         here...
16696         * modules/uname (configure.ac): ... to here.
16697
16698 2011-05-22  Bruno Haible  <bruno@clisp.org>
16699
16700         ttyname_r: Move AC_LIBOBJ invocations to module description.
16701         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
16702         gl_PREREQ_TTYNAME_R invocations from here...
16703         * modules/ttyname_r (configure.ac): ... to here.
16704
16705 2011-05-22  Bruno Haible  <bruno@clisp.org>
16706
16707         tsearch: Move AC_LIBOBJ invocations to module description.
16708         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
16709         invocations from here...
16710         * modules/tsearch (configure.ac): ... to here.
16711
16712 2011-05-22  Bruno Haible  <bruno@clisp.org>
16713
16714         towctrans: Move AC_LIBOBJ invocations to module description.
16715         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
16716         AC_LIBOBJ invocation from here...
16717         * modules/towctrans (configure.ac): ... to here.
16718
16719 2011-05-22  Bruno Haible  <bruno@clisp.org>
16720
16721         tmpfile: Move AC_LIBOBJ invocations to module description.
16722         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
16723         invocations from here...
16724         * modules/tmpfile (configure.ac): ... to here.
16725
16726 2011-05-22  Bruno Haible  <bruno@clisp.org>
16727
16728         times: Move AC_LIBOBJ invocations to module description.
16729         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
16730         * modules/times (configure.ac): ... to here.
16731
16732 2011-05-22  Bruno Haible  <bruno@clisp.org>
16733
16734         time_r: Move AC_LIBOBJ invocations to module description.
16735         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
16736         invocations from here...
16737         * modules/time_r (configure.ac): ... to here.
16738
16739 2011-05-22  Bruno Haible  <bruno@clisp.org>
16740
16741         timegm: Move AC_LIBOBJ invocations to module description.
16742         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
16743         invocations from here...
16744         * modules/timegm (configure.ac): ... to here.
16745
16746 2011-05-22  Bruno Haible  <bruno@clisp.org>
16747
16748         tcgetsid: Move AC_LIBOBJ invocations to module description.
16749         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
16750         and gl_PREREQ_TCGETSID invocations from here...
16751         * modules/tcgetsid (configure.ac): ... to here.
16752         (Depends-on): Update conditions.
16753
16754 2011-05-22  Bruno Haible  <bruno@clisp.org>
16755
16756         symlinkat: Move AC_LIBOBJ invocations to module description.
16757         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
16758         here...
16759         * modules/symlinkat (configure.ac): ... to here.
16760
16761 2011-05-22  Bruno Haible  <bruno@clisp.org>
16762
16763         symlink: Move AC_LIBOBJ invocations to module description.
16764         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
16765         here...
16766         * modules/symlink (configure.ac): ... to here.
16767
16768 2011-05-22  Bruno Haible  <bruno@clisp.org>
16769
16770         strverscmp: Move AC_LIBOBJ invocations to module description.
16771         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
16772         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
16773         from here...
16774         * modules/strverscmp (configure.ac): ... to here.
16775
16776 2011-05-22  Bruno Haible  <bruno@clisp.org>
16777
16778         strtok_r: Move AC_LIBOBJ invocations to module description.
16779         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
16780         and gl_PREREQ_STRTOK_R invocations from here...
16781         * modules/strtok_r (configure.ac): ... to here.
16782         (Depends-on): Update conditions.
16783
16784 2011-05-22  Bruno Haible  <bruno@clisp.org>
16785
16786         strtoumax: Move AC_LIBOBJ invocations to module description.
16787         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
16788         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
16789         from here...
16790         * modules/strtoumax (configure.ac): ... to here.
16791
16792 2011-05-22  Bruno Haible  <bruno@clisp.org>
16793
16794         strtoimax: Move AC_LIBOBJ invocations to module description.
16795         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
16796         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
16797         from here...
16798         * modules/strtoimax (configure.ac): ... to here.
16799
16800 2011-05-22  Bruno Haible  <bruno@clisp.org>
16801
16802         strtoull: Move AC_LIBOBJ invocations to module description.
16803         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
16804         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
16805         from here...
16806         * modules/strtoull (configure.ac): ... to here.
16807
16808 2011-05-22  Bruno Haible  <bruno@clisp.org>
16809
16810         strtoll: Move AC_LIBOBJ invocations to module description.
16811         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
16812         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
16813         here...
16814         * modules/strtoll (configure.ac): ... to here.
16815
16816 2011-05-22  Bruno Haible  <bruno@clisp.org>
16817
16818         strtoul: Move AC_LIBOBJ invocations to module description.
16819         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
16820         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16821         * modules/strtoul (configure.ac): ... to here.
16822
16823 2011-05-22  Bruno Haible  <bruno@clisp.org>
16824
16825         strtol: Move AC_LIBOBJ invocations to module description.
16826         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
16827         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16828         * modules/strtol (configure.ac): ... to here.
16829
16830 2011-05-22  Bruno Haible  <bruno@clisp.org>
16831
16832         strtod: Move AC_LIBOBJ invocations to module description.
16833         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
16834         invocations from here...
16835         * modules/strtod (configure.ac): ... to here.
16836
16837 2011-05-22  Bruno Haible  <bruno@clisp.org>
16838
16839         strstr*: Move AC_LIBOBJ invocations to module description.
16840         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
16841         invocations from here...
16842         * modules/strstr-simple (configure.ac): ... to here.
16843         * modules/strstr (configure.ac): ... and here.
16844
16845 2011-05-22  Bruno Haible  <bruno@clisp.org>
16846
16847         strsignal: Move AC_LIBOBJ invocations to module description.
16848         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
16849         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
16850         * modules/strsignal (configure.ac): ... to here.
16851         (Depends-on): Update conditions.
16852
16853 2011-05-22  Bruno Haible  <bruno@clisp.org>
16854
16855         strsep: Move AC_LIBOBJ invocations to module description.
16856         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
16857         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
16858         here...
16859         * modules/strsep (configure.ac): ... to here.
16860
16861 2011-05-22  Bruno Haible  <bruno@clisp.org>
16862
16863         strptime: Move AC_LIBOBJ invocations to module description.
16864         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
16865         gl_PREREQ_STRPTIME invocations from here...
16866         * modules/strptime (configure.ac): ... to here.
16867
16868 2011-05-22  Bruno Haible  <bruno@clisp.org>
16869
16870         strpbrk: Move AC_LIBOBJ invocations to module description.
16871         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
16872         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
16873         here...
16874         * modules/strpbrk (configure.ac): ... to here.
16875
16876 2011-05-22  Bruno Haible  <bruno@clisp.org>
16877
16878         strnlen: Move AC_LIBOBJ invocations to module description.
16879         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
16880         invocations from here...
16881         * modules/strnlen (configure.ac): ... to here.
16882
16883 2011-05-22  Bruno Haible  <bruno@clisp.org>
16884
16885         strndup: Move AC_LIBOBJ invocations to module description.
16886         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
16887         invocations from here...
16888         * modules/strndup (configure.ac): ... to here.
16889         (Depends-on): Update conditions.
16890
16891 2011-05-22  Bruno Haible  <bruno@clisp.org>
16892
16893         strncat: Move AC_LIBOBJ invocations to module description.
16894         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
16895         invocations from here...
16896         * modules/strncat (configure.ac): ... to here.
16897
16898 2011-05-22  Bruno Haible  <bruno@clisp.org>
16899
16900         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
16901         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
16902         invocations from here...
16903         * modules/strdup (configure.ac): ... to here.
16904         * modules/strdup-posix (configure.ac): ... and here.
16905
16906 2011-05-22  Bruno Haible  <bruno@clisp.org>
16907
16908         strcspn: Move AC_LIBOBJ invocations to module description.
16909         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
16910         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
16911         here...
16912         * modules/strcspn (configure.ac): ... to here.
16913
16914 2011-05-22  Bruno Haible  <bruno@clisp.org>
16915
16916         strchrnul: Move AC_LIBOBJ invocations to module description.
16917         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
16918         gl_PREREQ_STRCHRNUL invocations from here...
16919         * modules/strchrnul (configure.ac): ... to here.
16920
16921 2011-05-22  Bruno Haible  <bruno@clisp.org>
16922
16923         strcasestr*: Move AC_LIBOBJ invocations to module description.
16924         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
16925         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
16926         * modules/strcasestr-simple (configure.ac): ... to here.
16927         * modules/strcasestr (configure.ac): ... and here.
16928
16929 2011-05-22  Bruno Haible  <bruno@clisp.org>
16930
16931         strcase: Move AC_LIBOBJ invocations to module description.
16932         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
16933         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
16934         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
16935         gl_PREREQ_STRNCASECMP invocations from here...
16936         * modules/strcase (configure.ac): ... to here.
16937
16938 2011-05-22  Bruno Haible  <bruno@clisp.org>
16939
16940         stpncpy: Move AC_LIBOBJ invocations to module description.
16941         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
16942         here...
16943         * modules/stpncpy (configure.ac): ... to here.
16944
16945 2011-05-22  Bruno Haible  <bruno@clisp.org>
16946
16947         stpcpy: Move AC_LIBOBJ invocations to module description.
16948         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
16949         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
16950         here...
16951         * modules/stpcpy (configure.ac): ... to here.
16952
16953 2011-05-21  Bruno Haible  <bruno@clisp.org>
16954
16955         stat: Move AC_LIBOBJ invocations to module description.
16956         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
16957         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
16958         here...
16959         * modules/stat (configure.ac): ... to here.
16960
16961 2011-05-21  Bruno Haible  <bruno@clisp.org>
16962
16963         sleep: Move AC_LIBOBJ invocations to module description.
16964         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
16965         * modules/sleep (configure.ac): ... to here.
16966
16967 2011-05-21  Bruno Haible  <bruno@clisp.org>
16968
16969         signbit: Move AC_LIBOBJ invocations to module description.
16970         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
16971         * modules/signbit (configure.ac): ... to here.
16972
16973 2011-05-21  Bruno Haible  <bruno@clisp.org>
16974
16975         sigprocmask: Move AC_LIBOBJ invocations to module description.
16976         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
16977         gl_PREREQ_SIGPROMASK invocations from here...
16978         * modules/sigprocmask (configure.ac): ... to here.
16979
16980 2011-05-21  Bruno Haible  <bruno@clisp.org>
16981
16982         sigaction: Move AC_LIBOBJ invocations to module description.
16983         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
16984         gl_PREREQ_SIGACTION invocations from here...
16985         * modules/sigaction (configure.ac): ... to here.
16986
16987 2011-05-21  Bruno Haible  <bruno@clisp.org>
16988
16989         sig2str: Move AC_LIBOBJ invocations to module description.
16990         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
16991         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
16992         here...
16993         * modules/sig2str (configure.ac): ... to here.
16994
16995 2011-05-21  Bruno Haible  <bruno@clisp.org>
16996
16997         setlocale: Move AC_LIBOBJ invocations to module description.
16998         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
16999         gl_PREREQ_SETLOCALE invocations from here...
17000         * modules/setlocale (configure.ac): ... to here.
17001
17002 2011-05-21  Bruno Haible  <bruno@clisp.org>
17003
17004         unsetenv: Move AC_LIBOBJ invocations to module description.
17005         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
17006         and gl_PREREQ_UNSETENV invocations from here...
17007         * modules/unsetenv (configure.ac): ... to here.
17008         (Depends-on): Update.
17009
17010 2011-05-21  Bruno Haible  <bruno@clisp.org>
17011
17012         setenv: Move AC_LIBOBJ invocations to module description.
17013         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
17014         here...
17015         * modules/setenv (configure.ac): ... to here.
17016
17017 2011-05-21  Bruno Haible  <bruno@clisp.org>
17018
17019         selinux-h: Move AC_LIBOBJ invocations to module description.
17020         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
17021         AC_LIBOBJ invocation from here...
17022         * modules/selinux-h (configure.ac): ... to here.
17023
17024 2011-05-21  Bruno Haible  <bruno@clisp.org>
17025
17026         select: Respect rules for use of AC_LIBOBJ.
17027         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
17028         here...
17029         * modules/select (configure.ac): ... to here.
17030
17031 2011-05-21  Bruno Haible  <bruno@clisp.org>
17032
17033         scandir: Move AC_LIBOBJ invocations to module description.
17034         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
17035         invocations from here...
17036         * modules/scandir (configure.ac): ... to here.
17037
17038 2011-05-21  Bruno Haible  <bruno@clisp.org>
17039
17040         rpmatch: Move AC_LIBOBJ invocations to module description.
17041         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
17042         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
17043         here...
17044         * modules/rpmatch (configure.ac): ... to here.
17045
17046 2011-05-21  Bruno Haible  <bruno@clisp.org>
17047
17048         rmdir: Respect rules for use of AC_LIBOBJ.
17049         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
17050         * modules/rmdir (configure.ac): ... to here.
17051
17052 2011-05-21  Bruno Haible  <bruno@clisp.org>
17053
17054         renameat: Move AC_LIBOBJ invocations to module description.
17055         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
17056         here...
17057         * modules/renameat (configure.ac): ... to here.
17058
17059 2011-05-21  Bruno Haible  <bruno@clisp.org>
17060
17061         rename: Respect rules for use of AC_LIBOBJ.
17062         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
17063         here...
17064         * modules/rename (configure.ac): ... to here.
17065
17066 2011-05-21  Bruno Haible  <bruno@clisp.org>
17067
17068         remove: Move AC_LIBOBJ invocations to module description.
17069         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
17070         here...
17071         * modules/remove (configure.ac): ... to here.
17072
17073 2011-05-21  Bruno Haible  <bruno@clisp.org>
17074
17075         relocatable-lib: Move AC_LIBOBJ invocations to module description.
17076         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
17077         macro.
17078         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
17079         * modules/relocatable-lib (configure.ac): ... to here.
17080         * modules/relocatable-prog-wrapper (configure.ac): Invoke
17081         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
17082
17083 2011-05-21  Bruno Haible  <bruno@clisp.org>
17084
17085         relocatable-prog: Move AC_LIBOBJ invocations to module description.
17086         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
17087         here...
17088         * modules/relocatable-prog (configure.ac): ... to here.
17089
17090 2011-05-21  Bruno Haible  <bruno@clisp.org>
17091
17092         regex: Move AC_LIBOBJ invocations to module description.
17093         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
17094         invocations from here...
17095         * modules/regex (configure.ac): ... to here.
17096
17097 2011-05-21  Bruno Haible  <bruno@clisp.org>
17098
17099         realloc-*: Move AC_LIBOBJ invocations to module description.
17100         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
17101         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
17102         AC_LIBOBJ invocations from here...
17103         * modules/realloc-gnu (configure.ac): ... to here.
17104         * modules/realloc-posix (configure.ac): ... and here.
17105
17106 2011-05-21  Bruno Haible  <bruno@clisp.org>
17107
17108         readutmp: Move AC_LIBOBJ invocations to module description.
17109         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
17110         * modules/readutmp (configure.ac): ... to here.
17111
17112 2011-05-21  Bruno Haible  <bruno@clisp.org>
17113
17114         readlinkat: Move AC_LIBOBJ invocations to module description.
17115         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
17116         here...
17117         * modules/readlinkat (configure.ac): ... to here.
17118
17119 2011-05-21  Bruno Haible  <bruno@clisp.org>
17120
17121         readlink: Move AC_LIBOBJ invocations to module description.
17122         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
17123         gl_PREREQ_READLINK invocations from here...
17124         * modules/readlink (configure.ac): ... to here.
17125
17126 2011-05-21  Bruno Haible  <bruno@clisp.org>
17127
17128         readline: Move AC_LIBOBJ invocations to module description.
17129         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
17130         gl_PREREQ_READLINE invocations from here...
17131         * modules/readline (configure.ac): ... to here.
17132
17133 2011-05-21  Bruno Haible  <bruno@clisp.org>
17134
17135         read: Move AC_LIBOBJ invocations to module description.
17136         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
17137         * modules/read (configure.ac): ... to here.
17138
17139 2011-05-21  Bruno Haible  <bruno@clisp.org>
17140
17141         rawmemchr: Move AC_LIBOBJ invocations to module description.
17142         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
17143         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
17144         from here...
17145         * modules/rawmemchr (configure.ac): ... to here.
17146
17147 2011-05-21  Bruno Haible  <bruno@clisp.org>
17148
17149         random_r: Move AC_LIBOBJ invocations to module description.
17150         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
17151         gl_PREREQ_RANDOM_R invocations from here...
17152         * modules/random_r (configure.ac): ... to here.
17153
17154 2011-05-21  Bruno Haible  <bruno@clisp.org>
17155
17156         pwrite: Move AC_LIBOBJ invocations to module description.
17157         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
17158         * modules/pwrite (configure.ac): ... to here.
17159
17160 2011-05-21  Bruno Haible  <bruno@clisp.org>
17161
17162         putenv: Move AC_LIBOBJ invocations to module description.
17163         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
17164         * modules/putenv (configure.ac): ... to here.
17165
17166 2011-05-21  Bruno Haible  <bruno@clisp.org>
17167
17168         login_tty: Move AC_LIBOBJ invocations to module description.
17169         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
17170         * modules/login_tty (configure.ac): ... to here.
17171
17172 2011-05-21  Bruno Haible  <bruno@clisp.org>
17173
17174         openpty: Move AC_LIBOBJ invocations to module description.
17175         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
17176         * modules/openpty (configure.ac): ... to here.
17177
17178 2011-05-21  Bruno Haible  <bruno@clisp.org>
17179
17180         forkpty: Move AC_LIBOBJ invocations to module description.
17181         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
17182         * modules/forkpty (configure.ac): ... to here.
17183
17184 2011-05-21  Bruno Haible  <bruno@clisp.org>
17185
17186         ptsname: Move AC_LIBOBJ invocations to module description.
17187         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
17188         invocations from here...
17189         * modules/ptsname (configure.ac): ... to here.
17190
17191 2011-05-21  Bruno Haible  <bruno@clisp.org>
17192
17193         pread: Move AC_LIBOBJ invocations to module description.
17194         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
17195         * modules/pread (configure.ac): ... to here.
17196
17197 2011-05-21  Bruno Haible  <bruno@clisp.org>
17198
17199         posix_spawn*: Move AC_LIBOBJ invocations to module description.
17200         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
17201         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
17202         * modules/posix_spawn (configure.ac): ... to here.
17203         * modules/posix_spawnp (configure.ac): ... and here.
17204
17205 2011-05-21  Bruno Haible  <bruno@clisp.org>
17206
17207         popen: Move AC_LIBOBJ invocations to module description.
17208         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
17209         invocations from here...
17210         * modules/popen (configure.ac): ... to here.
17211
17212 2011-05-21  Bruno Haible  <bruno@clisp.org>
17213
17214         poll: Move AC_LIBOBJ invocations to module description.
17215         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
17216         invocations from here...
17217         * modules/poll (configure.ac): ... to here.
17218
17219 2011-05-21  Bruno Haible  <bruno@clisp.org>
17220
17221         pipe-posix: Move AC_LIBOBJ invocations to module description.
17222         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
17223         * modules/pipe-posix (configure.ac): ... to here.
17224
17225 2011-05-21  Bruno Haible  <bruno@clisp.org>
17226
17227         openat: Respect rules for use of AC_LIBOBJ.
17228         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
17229         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17230         * modules/openat (configure.ac): ... to here.
17231
17232 2011-05-21  Bruno Haible  <bruno@clisp.org>
17233
17234         obstack-printf*: Move AC_LIBOBJ invocations to module description.
17235         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
17236         invocation from here...
17237         * modules/obstack-printf (configure.ac): ... to here.
17238         * modules/obstack-printf-posix (configure.ac): ... and here.
17239
17240 2011-05-21  Bruno Haible  <bruno@clisp.org>
17241
17242         nl_langinfo: Move AC_LIBOBJ invocations to module description.
17243         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
17244         from here...
17245         * modules/nl_langinfo (configure.ac): ... to here.
17246
17247 2011-05-21  Bruno Haible  <bruno@clisp.org>
17248
17249         nanosleep: Move AC_LIBOBJ invocations to module description.
17250         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
17251         gl_PREREQ_NANOSLEEP invocations from here...
17252         * modules/nanosleep (configure.ac): ... to here.
17253
17254 2011-05-21  Bruno Haible  <bruno@clisp.org>
17255
17256         mountlist: Move AC_LIBOBJ invocations to module description.
17257         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
17258         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
17259         * modules/mountlist (configure.ac): ... to here.
17260
17261 2011-05-21  Bruno Haible  <bruno@clisp.org>
17262
17263         mktime: Respect rules for use of AC_LIBOBJ.
17264         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
17265         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
17266         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
17267         (gl_FUNC_MKTIME_INTERNAL): ... and here...
17268         * modules/mktime (configure.ac): ... to here.
17269         * modules/mktime-internal (configure.ac): ... and here.
17270         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
17271
17272 2011-05-21  Bruno Haible  <bruno@clisp.org>
17273
17274         mkstemps: Move AC_LIBOBJ invocations to module description.
17275         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
17276         here...
17277         * modules/mkstemps (configure.ac): ... to here.
17278
17279 2011-05-21  Bruno Haible  <bruno@clisp.org>
17280
17281         mkstemp: Move AC_LIBOBJ invocations to module description.
17282         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
17283         gl_PREREQ_MKSTEMP invocations from here...
17284         * modules/mkstemp (configure.ac): ... to here.
17285
17286 2011-05-21  Bruno Haible  <bruno@clisp.org>
17287
17288         mkostemps: Move AC_LIBOBJ invocations to module description.
17289         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
17290         here...
17291         * modules/mkostemps (configure.ac): ... to here.
17292
17293 2011-05-21  Bruno Haible  <bruno@clisp.org>
17294
17295         mkostemp: Move AC_LIBOBJ invocations to module description.
17296         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
17297         gl_PREREQ_MKOSTEMP invocations from here...
17298         * modules/mkostemp (configure.ac): ... to here.
17299
17300 2011-05-21  Bruno Haible  <bruno@clisp.org>
17301
17302         mknod: Move AC_LIBOBJ invocations to module description.
17303         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
17304         * modules/mknod (configure.ac): ... to here.
17305
17306 2011-05-21  Bruno Haible  <bruno@clisp.org>
17307
17308         mkfifoat: Move AC_LIBOBJ invocations to module description.
17309         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
17310         here...
17311         * modules/mkfifoat (configure.ac): ... to here.
17312
17313 2011-05-21  Bruno Haible  <bruno@clisp.org>
17314
17315         mkfifo: Respect rules for use of AC_LIBOBJ.
17316         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
17317         here...
17318         * modules/mkfifo (configure.ac): ... to here.
17319
17320 2011-05-21  Bruno Haible  <bruno@clisp.org>
17321
17322         mkdtemp: Move AC_LIBOBJ invocations to module description.
17323         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
17324         invocations from here...
17325         * modules/mkdtemp (configure.ac): ... to here.
17326
17327 2011-05-21  Bruno Haible  <bruno@clisp.org>
17328
17329         mkdir: Move AC_LIBOBJ invocations to module description.
17330         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
17331         * modules/mkdir (configure.ac): ... to here.
17332
17333 2011-05-21  Bruno Haible  <bruno@clisp.org>
17334
17335         memset: Move AC_LIBOBJ invocations to module description.
17336         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
17337         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
17338         here...
17339         * modules/memset (configure.ac): ... to here.
17340
17341 2011-05-21  Bruno Haible  <bruno@clisp.org>
17342
17343         memrchr: Move AC_LIBOBJ invocations to module description.
17344         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
17345         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
17346         here...
17347         * modules/memrchr (configure.ac): ... to here.
17348
17349 2011-05-21  Bruno Haible  <bruno@clisp.org>
17350
17351         mempcpy: Move AC_LIBOBJ invocations to module description.
17352         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
17353         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
17354         here...
17355         * modules/mempcpy (configure.ac): ... to here.
17356
17357 2011-05-21  Bruno Haible  <bruno@clisp.org>
17358
17359         memmove: Move AC_LIBOBJ invocations to module description.
17360         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
17361         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
17362         here...
17363         * modules/memmove (configure.ac): ... to here.
17364
17365 2011-05-21  Bruno Haible  <bruno@clisp.org>
17366
17367         memmem*: Move AC_LIBOBJ invocations to module description.
17368         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
17369         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
17370         here...
17371         (gl_FUNC_MEMMEM): ... and here...
17372         * modules/memmem-simple (configure.ac): ... to here.
17373         * modules/memmem (configure.ac): ... and here.
17374
17375 2011-05-21  Bruno Haible  <bruno@clisp.org>
17376
17377         memcpy: Move AC_LIBOBJ invocations to module description.
17378         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
17379         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
17380         here...
17381         * modules/memcpy (configure.ac): ... to here.
17382
17383 2011-05-21  Bruno Haible  <bruno@clisp.org>
17384
17385         memcmp: Simplify autoconf macro.
17386         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
17387         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
17388         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
17389
17390 2011-05-21  Bruno Haible  <bruno@clisp.org>
17391
17392         memcmp: Move AC_LIBOBJ invocations to module description.
17393         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
17394         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
17395         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
17396         * modules/memcmp (configure.ac): ... to here.
17397         (Depends-on): Update conditions.
17398
17399 2011-05-21  Bruno Haible  <bruno@clisp.org>
17400
17401         memchr: Respect rules for use of AC_LIBOBJ.
17402         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
17403         invocations from here...
17404         * modules/memchr (configure.ac): ... to here.
17405
17406 2011-05-21  Bruno Haible  <bruno@clisp.org>
17407
17408         mbtowc: Move AC_LIBOBJ invocations to module description.
17409         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
17410         invocations from here...
17411         * modules/mbtowc (configure.ac): ... to here.
17412
17413 2011-05-21  Bruno Haible  <bruno@clisp.org>
17414
17415         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
17416         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
17417         gl_PREREQ_MBSRTOWCS invocations from here...
17418         * modules/mbsrtowcs (configure.ac): ... to here.
17419
17420 2011-05-21  Bruno Haible  <bruno@clisp.org>
17421
17422         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
17423         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
17424         gl_PREREQ_MBSNRTOWCS invocations from here...
17425         * modules/mbsnrtowcs (configure.ac): ... to here.
17426
17427 2011-05-21  Bruno Haible  <bruno@clisp.org>
17428
17429         mbsinit: Move AC_LIBOBJ invocations to module description.
17430         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
17431         invocations from here...
17432         * modules/mbsinit (configure.ac): ... to here.
17433
17434 2011-05-21  Bruno Haible  <bruno@clisp.org>
17435
17436         mbrlen: Move AC_LIBOBJ invocations to module description.
17437         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
17438         invocations from here...
17439         * modules/mbrlen (configure.ac): ... to here.
17440
17441 2011-05-21  Bruno Haible  <bruno@clisp.org>
17442
17443         mbrtowc: Respect rules for use of AC_LIBOBJ.
17444         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
17445         invocations from here...
17446         * modules/mbrtowc (configure.ac): ... to here.
17447
17448 2011-05-21  Bruno Haible  <bruno@clisp.org>
17449
17450         malloc-*: Move AC_LIBOBJ invocations to module description.
17451         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
17452         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
17453         AC_LIBOBJ invocations from here...
17454         * modules/malloc-gnu (configure.ac): ... to here.
17455         * modules/malloc-posix (configure.ac): ... and here.
17456
17457 2011-05-21  Bruno Haible  <bruno@clisp.org>
17458
17459         lstat, openat: Respect rules for use of AC_LIBOBJ.
17460         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
17461         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
17462         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
17463         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
17464         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
17465         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
17466         here.
17467         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
17468
17469 2011-05-21  Bruno Haible  <bruno@clisp.org>
17470
17471         lseek: Move AC_LIBOBJ invocations to module description.
17472         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
17473         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17474         * modules/lseek (configure.ac): ... to here.
17475
17476 2011-05-21  Bruno Haible  <bruno@clisp.org>
17477
17478         linkat: Move AC_LIBOBJ invocations to module description.
17479         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
17480         here...
17481         * modules/linkat (configure.ac): ... to here.
17482
17483 2011-05-21  Bruno Haible  <bruno@clisp.org>
17484
17485         link: Respect rules for use of AC_LIBOBJ.
17486         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
17487         * modules/link (configure.ac): ... to here.
17488
17489 2011-05-21  Bruno Haible  <bruno@clisp.org>
17490
17491         lchown: Move AC_LIBOBJ invocations to module description.
17492         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17493         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17494         * modules/lchown (configure.ac): ... to here.
17495
17496 2011-05-21  Bruno Haible  <bruno@clisp.org>
17497
17498         iswctype: Move AC_LIBOBJ invocations to module description.
17499         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
17500         here...
17501         * modules/iswctype (configure.ac): ... to here.
17502
17503 2011-05-21  Bruno Haible  <bruno@clisp.org>
17504
17505         iswblank: Move AC_LIBOBJ invocations to module description.
17506         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
17507         here...
17508         * modules/iswblank (configure.ac): ... to here.
17509
17510 2011-05-21  Bruno Haible  <bruno@clisp.org>
17511
17512         atanl: Move AC_LIBOBJ invocations to module description.
17513         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
17514         * modules/atanl (configure.ac): ... to here.
17515
17516 2011-05-21  Bruno Haible  <bruno@clisp.org>
17517
17518         acosl: Move AC_LIBOBJ invocations to module description.
17519         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
17520         * modules/acosl (configure.ac): ... to here.
17521
17522 2011-05-21  Bruno Haible  <bruno@clisp.org>
17523
17524         asinl: Respect rules for use of AC_LIBOBJ.
17525         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
17526         * modules/asinl (configure.ac): ... to here.
17527
17528 2011-05-21  Bruno Haible  <bruno@clisp.org>
17529
17530         tanl: Move AC_LIBOBJ invocations to module description.
17531         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
17532         * modules/tanl (configure.ac): ... to here.
17533
17534 2011-05-21  Bruno Haible  <bruno@clisp.org>
17535
17536         cosl: Move AC_LIBOBJ invocations to module description.
17537         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
17538         * modules/cosl (configure.ac): ... to here.
17539
17540 2011-05-21  Bruno Haible  <bruno@clisp.org>
17541
17542         sinl: Move AC_LIBOBJ invocations to module description.
17543         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
17544         * modules/sinl (configure.ac): ... to here.
17545
17546 2011-05-21  Bruno Haible  <bruno@clisp.org>
17547
17548         logl: Move AC_LIBOBJ invocations to module description.
17549         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
17550         * modules/logl (configure.ac): ... to here.
17551
17552 2011-05-21  Bruno Haible  <bruno@clisp.org>
17553
17554         expl: Move AC_LIBOBJ invocations to module description.
17555         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
17556         * modules/expl (configure.ac): ... to here.
17557
17558 2011-05-21  Bruno Haible  <bruno@clisp.org>
17559
17560         roundl: Move AC_LIBOBJ invocations to module description.
17561         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
17562         * modules/roundl (configure.ac): ... to here.
17563
17564 2011-05-21  Bruno Haible  <bruno@clisp.org>
17565
17566         round: Move AC_LIBOBJ invocations to module description.
17567         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
17568         * modules/round (configure.ac): ... to here.
17569
17570 2011-05-21  Bruno Haible  <bruno@clisp.org>
17571
17572         roundf: Move AC_LIBOBJ invocations to module description.
17573         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
17574         * modules/roundf (configure.ac): ... to here.
17575
17576 2011-05-21  Bruno Haible  <bruno@clisp.org>
17577
17578         truncl: Move AC_LIBOBJ invocations to module description.
17579         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
17580         * modules/truncl (configure.ac): ... to here.
17581
17582 2011-05-21  Bruno Haible  <bruno@clisp.org>
17583
17584         trunc: Move AC_LIBOBJ invocations to module description.
17585         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
17586         * modules/trunc (configure.ac): ... to here.
17587
17588 2011-05-21  Bruno Haible  <bruno@clisp.org>
17589
17590         truncf: Move AC_LIBOBJ invocations to module description.
17591         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
17592         * modules/truncf (configure.ac): ... to here.
17593
17594 2011-05-21  Bruno Haible  <bruno@clisp.org>
17595
17596         ceill: Move AC_LIBOBJ invocations to module description.
17597         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
17598         * modules/ceill (configure.ac): ... to here.
17599
17600 2011-05-21  Bruno Haible  <bruno@clisp.org>
17601
17602         ceil: Move AC_LIBOBJ invocations to module description.
17603         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
17604         * modules/ceil (configure.ac): ... to here.
17605
17606 2011-05-21  Bruno Haible  <bruno@clisp.org>
17607
17608         ceilf: Move AC_LIBOBJ invocations to module description.
17609         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
17610         * modules/ceilf (configure.ac): ... to here.
17611
17612 2011-05-21  Bruno Haible  <bruno@clisp.org>
17613
17614         floorl: Respect rules for use of AC_LIBOBJ.
17615         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
17616         * modules/floorl (configure.ac): ... to here.
17617
17618 2011-05-21  Bruno Haible  <bruno@clisp.org>
17619
17620         floor: Respect rules for use of AC_LIBOBJ.
17621         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
17622         * modules/floor (configure.ac): ... to here.
17623
17624 2011-05-21  Bruno Haible  <bruno@clisp.org>
17625
17626         floorf: Move AC_LIBOBJ invocations to module description.
17627         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
17628         * modules/floorf (configure.ac): ... to here.
17629
17630 2011-05-20  Bruno Haible  <bruno@clisp.org>
17631
17632         sqrtl: Respect rules for use of AC_LIBOBJ.
17633         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
17634         * modules/sqrtl (configure.ac): ... to here.
17635
17636 2011-05-20  Bruno Haible  <bruno@clisp.org>
17637
17638         ldexpl: Respect rules for use of AC_LIBOBJ.
17639         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
17640         * modules/ldexpl (configure.ac): ... to here.
17641
17642 2011-05-20  Bruno Haible  <bruno@clisp.org>
17643
17644         frexpl*: Respect rules for use of AC_LIBOBJ.
17645         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
17646         invocation from here...
17647         * modules/frexpl (configure.ac): ... to here.
17648         * modules/frexpl-nolibm (configure.ac): ... and here.
17649
17650 2011-05-20  Bruno Haible  <bruno@clisp.org>
17651
17652         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
17653         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
17654         invocation from here...
17655         * modules/frexp (configure.ac): ... to here.
17656         * modules/frexp-nolibm (configure.ac): ... and here.
17657
17658 2011-05-20  Bruno Haible  <bruno@clisp.org>
17659
17660         isnan: Respect rules for use of AC_LIBOBJ.
17661         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
17662         invocations here.
17663         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
17664         REPLACE_ISNAN.
17665         * modules/isnand (configure.ac): Likewise.
17666         * modules/isnanl (configure.ac): Likewise.
17667
17668 2011-05-20  Bruno Haible  <bruno@clisp.org>
17669
17670         isnanl*: Respect rules for use of AC_LIBOBJ.
17671         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
17672         invocation from here...
17673         * modules/isnanl (configure.ac): ... to here.
17674         * modules/isnanl-nolibm (configure.ac): ... and here.
17675
17676 2011-05-20  Bruno Haible  <bruno@clisp.org>
17677
17678         isnand*: Move AC_LIBOBJ invocations to module description.
17679         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
17680         invocation from here...
17681         * modules/isnand (configure.ac): ... to here.
17682         * modules/isnand-nolibm (configure.ac): ... and here.
17683
17684 2011-05-20  Bruno Haible  <bruno@clisp.org>
17685
17686         isnanf*: Move AC_LIBOBJ invocations to module description.
17687         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
17688         invocation from here...
17689         * modules/isnanf (configure.ac): ... to here.
17690         * modules/isnanf-nolibm (configure.ac): ... and here.
17691
17692 2011-05-20  Bruno Haible  <bruno@clisp.org>
17693
17694         isnan*: Separate the AC_LIBOBJ invocations.
17695         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
17696         AC_LIBOBJ invocation.
17697         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
17698         here.
17699         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
17700         AC_LIBOBJ invocation.
17701         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
17702         here.
17703         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
17704         AC_LIBOBJ invocation.
17705         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
17706         here.
17707         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
17708
17709 2011-05-08  Bruno Haible  <bruno@clisp.org>
17710
17711         isinf: Move AC_LIBOBJ invocations to module description.
17712         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
17713         * modules/isinf (configure.ac): ... to here.
17714
17715 2011-05-08  Bruno Haible  <bruno@clisp.org>
17716
17717         isfinite: Move AC_LIBOBJ invocations to module description.
17718         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
17719         * modules/isfinite (configure.ac): ... to here.
17720
17721 2011-05-08  Bruno Haible  <bruno@clisp.org>
17722
17723         isblank: Move AC_LIBOBJ invocations to module description.
17724         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
17725         here...
17726         * modules/isblank (configure.ac): ... to here.
17727
17728 2011-05-08  Bruno Haible  <bruno@clisp.org>
17729
17730         isapipe: Move AC_LIBOBJ invocations to module description.
17731         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
17732         gl_PREREQ_ISAPIPE invocations from here...
17733         * modules/isapipe (configure.ac): ... to here.
17734         (Depends-on): Update condition.
17735
17736 2011-05-08  Bruno Haible  <bruno@clisp.org>
17737
17738         ioctl: Move AC_LIBOBJ invocations to module description.
17739         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
17740         invocations from here...
17741         * modules/ioctl (configure.ac): ... to here.
17742         (Depends-on): Update condition.
17743
17744 2011-05-08  Bruno Haible  <bruno@clisp.org>
17745
17746         imaxdiv: Move AC_LIBOBJ invocations to module description.
17747         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
17748         invocations from here...
17749         * modules/imaxdiv (configure.ac): ... to here.
17750
17751 2011-05-08  Bruno Haible  <bruno@clisp.org>
17752
17753         imaxabs: Move AC_LIBOBJ invocations to module description.
17754         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
17755         invocations from here...
17756         * modules/imaxabs (configure.ac): ... to here.
17757
17758 2011-05-08  Bruno Haible  <bruno@clisp.org>
17759
17760         getaddrinfo: Move AC_LIBOBJ invocations to module description.
17761         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
17762         AC_LIBOBJ invocations from here...
17763         * modules/getaddrinfo (configure.ac): ... to here.
17764         (Depends-on): Add conditions.
17765
17766 2011-05-08  Bruno Haible  <bruno@clisp.org>
17767
17768         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17769         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
17770         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17771         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
17772         (gl_PREREQ_INET_PTON): ... from here.
17773         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
17774         gl_PREREQ_INET_PTON here.
17775         (Depends-on): Update condition.
17776
17777 2011-05-08  Bruno Haible  <bruno@clisp.org>
17778
17779         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17780         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
17781         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17782         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
17783         (gl_PREREQ_INET_NTOP): ... from here.
17784         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
17785         gl_PREREQ_INET_NTOP here.
17786         (Depends-on): Update condition.
17787
17788 2011-05-08  Bruno Haible  <bruno@clisp.org>
17789
17790         iconv_open: Move AC_LIBOBJ invocations to module description.
17791         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
17792         AC_LIBOBJ invocations from here...
17793         * modules/iconv_open (configure.ac): ... to here.
17794
17795 2011-05-08  Bruno Haible  <bruno@clisp.org>
17796
17797         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
17798         If module 'iconv_open' is among the main modules and module
17799         'iconv_open-utf' is among the tests dependencies, then
17800         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
17801         return the special iconv_t values. Therefore iconv() and iconv_close()
17802         must support these special iconv_t values, already in lib, not only in
17803         tests.
17804         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
17805         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
17806         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
17807         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
17808         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
17809         (Depends-on): Add the dependencies of iconv_open-utf.
17810         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
17811         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
17812         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
17813
17814 2011-05-08  Bruno Haible  <bruno@clisp.org>
17815
17816         group-member: Move AC_LIBOBJ invocations to module description.
17817         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
17818         gl_PREREQ_GROUP_MEMBER invocations from here...
17819         * modules/group-member (configure.ac): ... to here.
17820
17821 2011-05-08  Bruno Haible  <bruno@clisp.org>
17822
17823         grantpt: Move AC_LIBOBJ invocations to module description.
17824         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
17825         invocations from here...
17826         * modules/grantpt (configure.ac): ... to here.
17827
17828 2011-05-08  Bruno Haible  <bruno@clisp.org>
17829
17830         glob: Move AC_LIBOBJ invocations to module description.
17831         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
17832         from here...
17833         * modules/glob (configure.ac): ... to here.
17834
17835 2011-05-08  Bruno Haible  <bruno@clisp.org>
17836
17837         getusershell: Move AC_LIBOBJ invocations to module description.
17838         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
17839         Move AC_LIBOBJ invocation from here...
17840         * modules/getusershell (configure.ac): ... to here.
17841         (Depends-on): Update condition.
17842
17843 2011-05-08  Bruno Haible  <bruno@clisp.org>
17844
17845         gettimeofday: Move AC_LIBOBJ invocations to module description.
17846         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
17847         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
17848         gl_PREREQ_GETTIMEOFDAY invocations from here...
17849         * modules/gettimeofday (configure.ac): ... to here.
17850
17851 2011-05-08  Bruno Haible  <bruno@clisp.org>
17852
17853         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
17854         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
17855         just gl_FUNC_TZSET.
17856         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
17857         (gl_FUNC_TZSET_CLOBBER): Remove actions.
17858         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
17859         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
17860
17861 2011-05-08  Bruno Haible  <bruno@clisp.org>
17862
17863         getsubopt: Move AC_LIBOBJ invocations to module description.
17864         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
17865         gl_PREREQ_GETSUBOPT invocations from here...
17866         * modules/getsubopt (configure.ac): ... to here.
17867
17868 2011-05-08  Bruno Haible  <bruno@clisp.org>
17869
17870         getpass-gnu: Move AC_LIBOBJ invocations to module description.
17871         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
17872         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
17873         * modules/getpass-gnu (configure.ac): ... to here.
17874
17875 2011-05-08  Bruno Haible  <bruno@clisp.org>
17876
17877         getpass: Move AC_LIBOBJ invocations to module description.
17878         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
17879         gl_PREREQ_GETPASS invocations from here...
17880         * modules/getpass (configure.ac): ... to here.
17881
17882 2011-05-08  Bruno Haible  <bruno@clisp.org>
17883
17884         getpagesize: Move AC_LIBOBJ invocations to module description.
17885         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
17886         from here...
17887         * modules/getpagesize (configure.ac): ... to here.
17888
17889 2011-05-08  Bruno Haible  <bruno@clisp.org>
17890
17891         getopt: Move AC_LIBOBJ invocations to module description.
17892         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
17893         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
17894         invocations from here...
17895         * modules/getopt-gnu (configure.ac): ... to here.
17896         * modules/getopt-posix (configure.ac): ... and here.
17897         (Depends-on): Update condition.
17898
17899 2011-05-08  Bruno Haible  <bruno@clisp.org>
17900
17901         getopt, argp: Respect rules for use of AC_LIBOBJ.
17902         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
17903         (gl_REPLACE_GETOPT_ALWAYS): New macro.
17904         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
17905         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
17906
17907 2011-05-08  Bruno Haible  <bruno@clisp.org>
17908
17909         getlogin_r: Move AC_LIBOBJ invocations to module description.
17910         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
17911         gl_PREREQ_GETLOGIN_R invocations from here...
17912         * modules/getlogin_r (configure.ac): ... to here.
17913
17914 2011-05-08  Bruno Haible  <bruno@clisp.org>
17915
17916         getlogin: Move AC_LIBOBJ invocations to module description.
17917         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
17918         here...
17919         * modules/getlogin (configure.ac): ... to here.
17920
17921 2011-05-08  Bruno Haible  <bruno@clisp.org>
17922
17923         getloadavg: Move AC_LIBOBJ invocations to module description.
17924         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
17925         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
17926         * modules/getloadavg (configure.ac): ... to here.
17927
17928 2011-05-08  Bruno Haible  <bruno@clisp.org>
17929
17930         gethrxtime: Move AC_LIBOBJ invocations to module description.
17931         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
17932         LIB_GETHRXTIME from here...
17933         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
17934         invocations from here...
17935         * modules/gethrxtime (configure.ac): ... to here.
17936
17937 2011-05-08  Bruno Haible  <bruno@clisp.org>
17938
17939         gethostname: Move AC_LIBOBJ invocations to module description.
17940         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
17941         gl_PREREQ_GETHOSTNAME invocations from here...
17942         * modules/gethostname (configure.ac): ... to here.
17943
17944 2011-05-08  Bruno Haible  <bruno@clisp.org>
17945
17946         getgroups: Move AC_LIBOBJ invocations to module description.
17947         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
17948         here...
17949         * modules/getgroups (configure.ac): ... to here.
17950
17951 2011-05-08  Bruno Haible  <bruno@clisp.org>
17952
17953         getdtablesize: Move AC_LIBOBJ invocations to module description.
17954         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
17955         invocation from here...
17956         * modules/getdtablesize (configure.ac): ... to here.
17957
17958 2011-05-08  Bruno Haible  <bruno@clisp.org>
17959
17960         getdomainname: Move AC_LIBOBJ invocations to module description.
17961         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
17962         gl_PREREQ_GETDOMAINNAME invocations from here...
17963         * modules/getdomainname (configure.ac): ... to here.
17964
17965 2011-05-08  Bruno Haible  <bruno@clisp.org>
17966
17967         getline: Move AC_LIBOBJ invocations to module description.
17968         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
17969         invocations from here...
17970         * modules/getline (configure.ac): ... to here.
17971
17972 2011-05-08  Bruno Haible  <bruno@clisp.org>
17973
17974         getline: Simplify.
17975         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
17976         It's already handled through the module dependency.
17977
17978 2011-05-08  Bruno Haible  <bruno@clisp.org>
17979
17980         getdelim: Move AC_LIBOBJ invocations to module description.
17981         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
17982         and gl_PREREQ_GETDELIM invocations from here...
17983         * modules/getdelim (configure.ac): ... to here.
17984         (Depends-on): Fix condition.
17985
17986 2011-05-08  Bruno Haible  <bruno@clisp.org>
17987
17988         getcwd: Move AC_LIBOBJ invocations to module description.
17989         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
17990         invocations from here...
17991         * modules/getcwd (configure.ac): ... to here.
17992
17993 2011-05-08  Bruno Haible  <bruno@clisp.org>
17994
17995         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
17996         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
17997         here...
17998         * modules/getcwd-lgpl (configure.ac): ... to here.
17999
18000 2011-05-07  Bruno Haible  <bruno@clisp.org>
18001
18002         crypto/gc: Move AC_LIBOBJ invocations to module description.
18003         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
18004         * modules/crypto/gc (configure.ac): ... to here.
18005
18006 2011-05-07  Bruno Haible  <bruno@clisp.org>
18007
18008         fwriting: Move AC_LIBOBJ invocations to module description.
18009         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
18010         here...
18011         * modules/fwriting (configure.ac): ... to here.
18012
18013 2011-05-07  Bruno Haible  <bruno@clisp.org>
18014
18015         fwritable: Move AC_LIBOBJ invocations to module description.
18016         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
18017         here...
18018         * modules/fwritable (configure.ac): ... to here.
18019
18020 2011-05-07  Bruno Haible  <bruno@clisp.org>
18021
18022         futimens: Move AC_LIBOBJ invocations to module description.
18023         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
18024         here...
18025         * modules/futimens (configure.ac): ... to here.
18026
18027 2011-05-07  Bruno Haible  <bruno@clisp.org>
18028
18029         ftruncate: Move AC_LIBOBJ invocations to module description.
18030         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
18031         gl_PREREQ_FTRUNCATE invocations from here...
18032         * modules/ftruncate (configure.ac): ... to here.
18033
18034 2011-05-07  Bruno Haible  <bruno@clisp.org>
18035
18036         fsync: Move AC_LIBOBJ invocations to module description.
18037         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
18038         invocations from here...
18039         * modules/fsync (configure.ac): ... to here.
18040
18041 2011-05-07  Bruno Haible  <bruno@clisp.org>
18042
18043         fsusage: Move AC_LIBOBJ invocations to module description.
18044         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
18045         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
18046         * modules/fsusage (configure.ac): ... to here.
18047
18048 2011-05-07  Bruno Haible  <bruno@clisp.org>
18049
18050         freopen: Move AC_LIBOBJ invocations to module description.
18051         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
18052         invocations from here...
18053         * modules/freopen (configure.ac): ... to here.
18054
18055 2011-05-07  Bruno Haible  <bruno@clisp.org>
18056
18057         free: Move AC_LIBOBJ invocations to module description.
18058         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
18059         invocations from here...
18060         * modules/free (configure.ac): ... to here.
18061
18062 2011-05-07  Bruno Haible  <bruno@clisp.org>
18063
18064         freadable: Move AC_LIBOBJ invocations to module description.
18065         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
18066         here...
18067         * modules/freadable (configure.ac): ... to here.
18068
18069 2011-05-07  Bruno Haible  <bruno@clisp.org>
18070
18071         fpurge: Move AC_LIBOBJ invocations to module description.
18072         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
18073         invocations from here...
18074         * modules/fpurge (configure.ac): ... to here.
18075
18076 2011-05-07  Bruno Haible  <bruno@clisp.org>
18077
18078         fpending: Move AC_LIBOBJ invocations to module description.
18079         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
18080         gl_FUNC_FPENDING.
18081         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
18082         invocations from here...
18083         * modules/fpending (configure.ac): ... to here.
18084
18085 2011-05-07  Bruno Haible  <bruno@clisp.org>
18086
18087         fopen: Move AC_LIBOBJ invocations to module description.
18088         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
18089         invocations from here...
18090         * modules/fopen (configure.ac): ... to here.
18091
18092 2011-05-07  Bruno Haible  <bruno@clisp.org>
18093
18094         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
18095         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
18096         gl_FUNC_FNMATCH_POSIX.
18097         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
18098         invocations from here...
18099         * modules/fnmatch (configure.ac): ... to here.
18100         * modules/fnmatch-gnu (configure.ac): ... and here.
18101
18102 2011-05-07  Bruno Haible  <bruno@clisp.org>
18103
18104         flock: Move AC_LIBOBJ invocations to module description.
18105         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
18106         invocations from here...
18107         * modules/flock (configure.ac): ... to here.
18108
18109 2011-05-07  Bruno Haible  <bruno@clisp.org>
18110
18111         fileblocks: Move AC_LIBOBJ invocations to module description.
18112         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
18113         gl_PREREQ_FILEBLOCKS invocations from here...
18114         * modules/fileblocks (configure.ac): ... to here.
18115
18116 2011-05-06  Bruno Haible  <bruno@clisp.org>
18117
18118         fflush: Move AC_LIBOBJ invocations to module description.
18119         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
18120         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
18121         invocations from here...
18122         * modules/fflush (configure.ac): ... to here.
18123
18124 2011-05-06  Bruno Haible  <bruno@clisp.org>
18125
18126         fdopendir: Move AC_LIBOBJ invocations to module description.
18127         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
18128         here...
18129         * modules/fdopendir (configure.ac): ... to here.
18130         (Depends-on): Improve conditions.
18131
18132 2011-05-06  Bruno Haible  <bruno@clisp.org>
18133
18134         _Exit: Move AC_LIBOBJ invocations to module description.
18135         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
18136         invocations from here...
18137         * modules/_Exit (configure.ac): ... to here.
18138
18139 2011-05-21  Bruno Haible  <bruno@clisp.org>
18140
18141         euidaccess: Respect rules for use of AC_LIBOBJ.
18142         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18143         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
18144         from here...
18145         * modules/euidaccess (configure.ac): ... to here.
18146
18147 2011-05-06  Bruno Haible  <bruno@clisp.org>
18148
18149         error: Move AC_LIBOBJ invocations to module description.
18150         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
18151         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
18152         invocations from here...
18153         * modules/error (configure.ac): ... to here.
18154
18155 2011-05-06  Bruno Haible  <bruno@clisp.org>
18156
18157         duplocale: Move AC_LIBOBJ invocations to module description.
18158         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
18159         gl_PREREQ_DUPLOCALE invocations from here...
18160         * modules/duplocale (configure.ac): ... to here.
18161
18162 2011-05-05  Bruno Haible  <bruno@clisp.org>
18163
18164         dirfd: Move AC_LIBOBJ invocations to module description.
18165         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
18166         gl_FUNC_DIRFD.
18167         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
18168         here...
18169         * modules/dirfd (configure.ac): ... to here.
18170         (Depends-on): Fix condition.
18171
18172 2011-05-05  Bruno Haible  <bruno@clisp.org>
18173
18174         chown: Respect rules for use of AC_LIBOBJ.
18175         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
18176         * modules/chown (configure.ac): ... to here.
18177
18178 2011-05-05  Bruno Haible  <bruno@clisp.org>
18179
18180         chdir-long: Move AC_LIBOBJ invocations to module description.
18181         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
18182         gl_PREREQ_CHDIR_LONG invocations from here...
18183         * modules/chdir-long (configure.ac): ... to here.
18184
18185 2011-05-05  Bruno Haible  <bruno@clisp.org>
18186
18187         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
18188         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
18189         from here...
18190         * modules/canonicalize-lgpl (configure.ac): ... to here.
18191
18192 2011-05-05  Bruno Haible  <bruno@clisp.org>
18193
18194         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
18195         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
18196         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
18197         REPLACE_CALLOC.
18198         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
18199         * modules/calloc-gnu (configure.ac): Likewise.
18200
18201 2011-05-05  Bruno Haible  <bruno@clisp.org>
18202
18203         btowc: Move AC_LIBOBJ invocations to module description.
18204         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
18205         invocations from here...
18206         * modules/btowc (configure.ac): ... to here.
18207
18208 2011-05-21  Bruno Haible  <bruno@clisp.org>
18209
18210         atexit: Move AC_LIBOBJ invocations to module description.
18211         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
18212         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
18213         here...
18214         * modules/atexit (configure.ac): ... to here.
18215
18216 2011-05-05  Bruno Haible  <bruno@clisp.org>
18217
18218         atoll: Move AC_LIBOBJ invocations to module description.
18219         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
18220         invocations from here...
18221         * modules/atoll (configure.ac): ... to here.
18222
18223 2011-05-05  Bruno Haible  <bruno@clisp.org>
18224
18225         argz: Move AC_LIBOBJ invocations to module description.
18226         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
18227         * modules/argz (configure.ac): ... to here.
18228
18229 2011-05-05  Bruno Haible  <bruno@clisp.org>
18230
18231         alphasort: Move AC_LIBOBJ invocations to module description.
18232         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
18233         gl_PREREQ_ALPHASORT invocations from here...
18234         * modules/alphasort (configure.ac): ... to here.
18235
18236 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18237
18238         verify: new macro verify_expr; verify_true deprecated
18239         * NEWS: Mention this.
18240         * doc/verify.texi (Compile-time Assertions): Document this.
18241         * lib/verify.h (verify_true): Deprecate.
18242         (verify_expr): New macro.
18243         * tests/test-verify.c (function): Test verify_expr.
18244
18245 2011-06-14  Jim Meyering  <meyering@redhat.com>
18246
18247         init.sh: give more portable redirection-related advice in a comment
18248         * tests/init.sh (stderr_fileno_): Update the advice in comments.
18249         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
18250         for lots of discussion.  Stefano Lattarini suggested the solution
18251         of putting "9>&2" after the command.  Reported by Bruno Haible.
18252
18253 2011-06-13  Bruno Haible  <bruno@clisp.org>
18254
18255         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
18256         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
18257         'none'.
18258
18259 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
18260
18261         ftoastr: use strtof only if HAVE_STRTOF
18262         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
18263         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
18264         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
18265         * modules/ftoastr (configure.ac): Check for strtof.
18266
18267 2011-06-13  Bruno Haible  <bruno@clisp.org>
18268
18269         gnulib-tool: Addendum to 2011-06-08 commit.
18270         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
18271         and --witness-c-macro have been given, augment AM_CPPFLAGS.
18272
18273 2011-06-13  Bruno Haible  <bruno@clisp.org>
18274
18275         fseeko: Provide a non-inline replacement of fseek().
18276         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
18277         * modules/fseeko (Depends-on): Add fseek.
18278         * modules/fseek (License): Change to LGPLv2+.
18279
18280 2011-06-13  Bruno Haible  <bruno@clisp.org>
18281
18282         ftello: Provide a non-inline replacement of ftell().
18283         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
18284         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
18285         not have ftello() (such as on mingw).
18286         * modules/ftello (Depends-on): Add ftell.
18287         * modules/ftell (License): Change to LGPLv2+.
18288
18289 2011-05-07  Bruno Haible  <bruno@clisp.org>
18290
18291         ftell: Move AC_LIBOBJ invocations to module description.
18292         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
18293         * modules/ftell (configure.ac): ... to here.
18294
18295 2011-05-07  Bruno Haible  <bruno@clisp.org>
18296
18297         ftello: Respect rules for use of AC_LIBOBJ.
18298         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
18299         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
18300         here...
18301         * modules/ftello (configure.ac): ... to here.
18302
18303 2011-05-07  Bruno Haible  <bruno@clisp.org>
18304
18305         fseeko: Simplify.
18306         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
18307         (gl_FUNC_FSEEKO): Inline it here.
18308
18309 2011-05-07  Bruno Haible  <bruno@clisp.org>
18310
18311         fseek: Move AC_LIBOBJ invocations to module description.
18312         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
18313         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18314         * modules/fseek (configure.ac): ... to here.
18315
18316 2011-05-07  Bruno Haible  <bruno@clisp.org>
18317
18318         fseek: Respect rules for use of AC_LIBOBJ.
18319         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
18320         here...
18321         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
18322
18323 2011-05-07  Bruno Haible  <bruno@clisp.org>
18324
18325         fseeko: Respect rules for use of AC_LIBOBJ.
18326         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
18327         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
18328         here...
18329         * modules/fseeko (configure.ac): ... to here.
18330
18331 2011-06-13  Bruno Haible  <bruno@clisp.org>
18332
18333         gnulib-tool: Allow comments in the 'Depends-on' section.
18334         * doc/gnulib.texi (Module description): Mention comment syntax in the
18335         Depends-on section.
18336         * gnulib-tool (func_get_dependencies): Filter out comment lines.
18337
18338 2011-06-13  Bruno Haible  <bruno@clisp.org>
18339
18340         file-set.h: guard __attibute__ use, now that it's not always defined
18341         * lib/file-set.h (record_file): Use __attribute__ only with compiler
18342         versions that support it.  This fixes a coreutils build failure with
18343         the vendor cc on HP-UX 11.31.
18344
18345 2011-06-12  Bruno Haible  <bruno@clisp.org>
18346
18347         acl: Add support for HP-UX >= 11.11 JFS ACLs.
18348         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
18349         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
18350         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
18351         (acl, aclsort): New declarations.
18352         (aclv_nontrivial): New declaration.
18353         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
18354         (file_has_acl): Read also the second kind of HP-UX ACLs.
18355         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
18356         kind of HP-UX ACLs if the first kind fails.
18357         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
18358         second kind of HP-UX ACLs.
18359         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
18360         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
18361         agree.
18362         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18363         hpuxjfs.
18364         Handle hpuxjfs.
18365         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18366         hpuxjfs.
18367         Handle hpuxjfs.
18368         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18369         (func_test_same_acls): Use both lsacl and getacl.
18370         Handle hpuxjfs.
18371         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18372         (func_test_same_acls): Use both lsacl and getacl.
18373         Handle hpuxjfs.
18374
18375 2011-06-12  Bruno Haible  <bruno@clisp.org>
18376
18377         acl: Complete the 2010-08-10 fix.
18378         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
18379         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
18380         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
18381         explicitly.
18382         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
18383         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
18384
18385 2011-06-12  Bruno Haible  <bruno@clisp.org>
18386
18387         spawn-pipe tests: Comments.
18388         * tests/test-spawn-pipe-child.c (main): Update comment.
18389         Reported by James Youngman <jay@gnu.org>.
18390
18391 2011-06-11  James Youngman  <jay@gnu.org>
18392
18393         New module 'stat-size'.
18394         * modules/stat-size: New module.  Provides macros for accessing
18395         file size information in instances of struct stat.  Depends on the
18396         fileblocks module because it calls st_blocks.
18397         * lib/stat-size.h: New file, adapted from coreutils' system.h.
18398         * doc/gnulib.texi: Include stat-size.texi.
18399         * doc/stat-size.texi: Documentation for this module.
18400         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
18401         * m4/fileblocks.m4: Mention that stat-size depends on the call to
18402         AC_STRUCT_ST_BLOCKS.
18403
18404 2011-06-09  Bruno Haible  <bruno@clisp.org>
18405
18406         thread: Support pthreads-win32.
18407         * lib/glthread/thread.h (gl_thread_self): Define differently on
18408         pthreads-win32.
18409         (gl_null_thread): New declaration.
18410         (gl_thread_self_pointer): New macro.
18411         * lib/glthread/thread.c (gl_null_thread): New constant.
18412         * tests/test-lock.c: Use gl_thread_self_pointer instead of
18413         gl_thread_self.
18414         * tests/test-tls.c: Likewise.
18415         Suggested by Paul Eggert. Reported by Eric Blake.
18416
18417 2011-06-09  Bruno Haible  <bruno@clisp.org>
18418
18419         thread: Fix confusion between NULL and 0.
18420         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
18421         Reported by Paul Eggert.
18422
18423 2011-06-09  Bruno Haible  <bruno@clisp.org>
18424
18425         spawn-pipe tests: Avoid test failure on HP-UX 11.
18426         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
18427         is closed.
18428
18429 2011-06-09  Bruno Haible  <bruno@clisp.org>
18430
18431         acl tests: Fix compilation error on HP-UX 11.
18432         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
18433
18434 2011-06-09  Bruno Haible  <bruno@clisp.org>
18435
18436         rmdir: Avoid test failure on HP-UX 10.20.
18437         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
18438         EEXIST.
18439
18440 2011-06-08  Eric Blake  <eblake@redhat.com>
18441
18442         perror: fix test on mingw
18443         * modules/perror-tests (Depends-on): Add dup2.
18444
18445         strerror_r-posix: fix on MacOS
18446         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
18447         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
18448         logic bug.
18449         * lib/strerror_r.c (strerror_r): Fix the bug.
18450         * lib/strerror.c (strerror): Likewise.
18451         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
18452         problem.
18453         * doc/posix-functions/strerror.texi (strerror): Likewise.
18454         * doc/posix-functions/perror.texi (perror): Likewise.
18455         * tests/test-strerror.c (main): Enhance test.
18456         * tests/test-strerror_r.c (main): Likewise.
18457
18458 2011-06-08  Bruno Haible  <bruno@clisp.org>
18459
18460         gnulib-tool: Better isolation between different gnulib-tool invocations.
18461         * gnulib-tool: New option --witness-c-macro.
18462         (witness_c_macro): New variable.
18463         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
18464         AM_CPPFLAGS define it as a C macro.
18465         (func_emit_tests_Makefile_am): Likewise.
18466         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
18467         read it from there.
18468         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
18469         m4_define, not AC_DEFUN.
18470         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
18471         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
18472         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
18473         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
18474         s|...|...|, to substitute the values of the GNULIB_* module indicator
18475         variables.
18476         * modules/dirent (Makefile.am): Likewise.
18477         * modules/fcntl-h (Makefile.am): Likewise.
18478         * modules/iconv-h (Makefile.am): Likewise.
18479         * modules/langinfo (Makefile.am): Likewise.
18480         * modules/locale (Makefile.am): Likewise.
18481         * modules/math (Makefile.am): Likewise.
18482         * modules/netdb (Makefile.am): Likewise.
18483         * modules/poll-h (Makefile.am): Likewise.
18484         * modules/pty (Makefile.am): Likewise.
18485         * modules/search (Makefile.am): Likewise.
18486         * modules/signal (Makefile.am): Likewise.
18487         * modules/spawn (Makefile.am): Likewise.
18488         * modules/stdio (Makefile.am): Likewise.
18489         * modules/stdlib (Makefile.am): Likewise.
18490         * modules/string (Makefile.am): Likewise.
18491         * modules/sys_ioctl (Makefile.am): Likewise.
18492         * modules/sys_select (Makefile.am): Likewise.
18493         * modules/sys_socket (Makefile.am): Likewise.
18494         * modules/sys_stat (Makefile.am): Likewise.
18495         * modules/sys_times (Makefile.am): Likewise.
18496         * modules/sys_utsname (Makefile.am): Likewise.
18497         * modules/sys_wait (Makefile.am): Likewise.
18498         * modules/termios (Makefile.am): Likewise.
18499         * modules/time (Makefile.am): Likewise.
18500         * modules/unistd (Makefile.am): Likewise.
18501         * modules/wchar (Makefile.am): Likewise.
18502
18503 2011-06-08  Eric Blake  <eblake@redhat.com>
18504
18505         strerror: simplify replacement
18506         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
18507         * modules/strerror (configure.ac): No prereqs needed here...
18508         * modules/strerror-override (configure.ac): ...but this needs it.
18509         (Files): Add file for needed prereq macro.
18510
18511 2011-06-08  Bruno Haible  <bruno@clisp.org>
18512
18513         strerror_r-posix: Tweaks.
18514         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
18515         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
18516         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
18517         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
18518         (gl_FUNC_STRERROR_R): ... to here.
18519         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
18520
18521 2011-06-07  Eric Blake  <eblake@redhat.com>
18522
18523         perror: document fixed bugs
18524         * doc/posix-functions/perror.texi (perror): Document recent
18525         patches.
18526
18527 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
18528
18529         stat-time: get_stat_birthtime failure is better-defined
18530         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
18531         return a timestamp whose tv_sec and tv_nsec values are both -1.
18532         Previously, the spec said only that the tv_nsec value was negative.
18533         This upward-compatible change simplifies GNU tar a bit.
18534
18535 2011-06-07  Eric Blake  <eblake@redhat.com>
18536
18537         strerror_r-posix: work around cygwin 1.7.9
18538         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
18539         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
18540         bug without replacing strerror_r.
18541         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
18542         strerror_r is buggy, but without requiring strerror_r compilation.
18543         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
18544
18545         test-perror: relax test to ignore cygwin bug
18546         * tests/test-perror2.c (main): Relax test on requiring detection
18547         of stream errors, and use unbuffered stream.
18548         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
18549         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
18550         * doc/posix-functions/fputc.texi (fputc): Likewise.
18551         * doc/posix-functions/fputs.texi (fputs): Likewise.
18552         * doc/posix-functions/fputws.texi (fputws): Likewise.
18553         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
18554         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
18555         * doc/posix-functions/getopt.texi (getopt): Likewise.
18556         * doc/posix-functions/perror.texi (perror): Likewise.
18557         * doc/posix-functions/printf.texi (printf): Likewise.
18558         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
18559         * doc/posix-functions/psignal.texi (psignal): Likewise.
18560         * doc/posix-functions/putc.texi (putc): Likewise.
18561         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
18562         Likewise.
18563         * doc/posix-functions/putchar.texi (putchar): Likewise.
18564         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
18565         Likewise.
18566         * doc/posix-functions/puts.texi (puts): Likewise.
18567         * doc/posix-functions/putwc.texi (putwc): Likewise.
18568         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
18569         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
18570         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18571         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
18572         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18573         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
18574         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
18575         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
18576
18577 2011-05-22  Bruno Haible  <bruno@clisp.org>
18578
18579         strerror: Move AC_LIBOBJ invocations to module description.
18580         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
18581         gl_PREREQ_STRERROR invocations from here...
18582         * modules/strerror (configure.ac): ... to here.
18583
18584 2011-05-21  Bruno Haible  <bruno@clisp.org>
18585
18586         perror: Use common idiom.
18587         * modules/perror (configure.ac): Reorder statements.
18588
18589 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18590
18591         tests: fix usage message in 'mktempd_'
18592         * tests/init.sh (mktempd_): In the usage message, use literal
18593         'mktempd_', not '$ME' (which is even undefined), as the name of
18594         the subroutine.
18595
18596 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18597
18598         tests init: new function 'fatal_', for hard errors
18599         Before this patch, the only way offered by tests/init.sh to
18600         properly signal a hard error was the `framework_failure_'
18601         function.  But the error message issued by that function,
18602         as its name would suggest, refers to a set-up failure in the
18603         testsuite, while hard errors can obviously also be due to
18604         other reasons.  The best way to fix this inconsistency is to
18605         introduce a new function with a more general error message.
18606         * tests/init.sh (fatal_): New function.
18607
18608 2011-06-06  Eric Blake  <eblake@redhat.com>
18609
18610         canonicalize-lgpl: use common idiom
18611         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
18612         over newer POSIX -Rf.
18613         Reported by Bruno Haible.
18614
18615         canonicalize-lgpl: work around AIX realpath bug
18616         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
18617         * doc/posix-functions/realpath.texi (realpath): Document it.
18618         Reported by Bruno Haible.
18619
18620         strerror: work around FreeBSD bug
18621         * lib/strerror.c (strerror): Special case 0.
18622         Reported by Bruno Haible.
18623
18624         strerror-override: avoid bloating errno module
18625         * modules/errno (Files, configure.ac): Move replacement strings...
18626         * modules/strerror-override: ...to new module.
18627         * modules/strerror (Depends-on): Add strerror-override.
18628         * modules/strerror_r-posix (Depends-on): Likewise.
18629         * MODULES.html.sh: Document new module.
18630         Reported by Bruno Haible.
18631
18632 2011-06-06  Bruno Haible  <bruno@clisp.org>
18633
18634         spawn-pipe tests: Rename program.
18635         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
18636         * tests/test-spawn-pipe-child.c: Update comment.
18637         * tests/test-spawn-pipe.sh: Update.
18638         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
18639
18640         spawn-pipe tests: Link the child program only against libc.
18641         * tests/test-spawn-pipe-child.c: New file, extracted from
18642         tests/test-spawn-pipe.c.
18643         (main): Expect only one argument.
18644         (is_open): New function, copied from tests/test-pipe.c.
18645         * tests/test-spawn-pipe.c: Don't include <errno.h>.
18646         (child_main): Remove function.
18647         (test_pipe): Pass only one argument to the child program.
18648         (main): Remove child process code. Expect the child program's name as
18649         first argument.
18650         * tests/test-spawn-pipe.sh: Pass the child program's name as first
18651         argument.
18652         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
18653         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
18654         test-spawn-pipe-child against no libraries.
18655
18656 2011-06-06  Bruno Haible  <bruno@clisp.org>
18657
18658         careadlinkat: Avoid mismatch between ssize_t and int.
18659         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
18660         * lib/careadlinkat.c (careadlinkatcwd): Define always.
18661
18662 2011-06-06  Jim Meyering  <meyering@redhat.com>
18663
18664         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
18665         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
18666         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
18667
18668 2011-06-05  Bruno Haible  <bruno@clisp.org>
18669
18670         ansi-c++-opt: Interoperability with libtool.
18671         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
18672         set the variable to "no", not to ":".
18673         * NEWS: Mention the change.
18674
18675 2011-06-05  Bruno Haible  <bruno@clisp.org>
18676
18677         acl: Fix test failure on AIX 7.
18678         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
18679         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
18680
18681 2011-06-05  Bruno Haible  <bruno@clisp.org>
18682
18683         pipe-filter-ii: Fix test failure on AIX and IRIX.
18684         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
18685         with EAGAIN, retry with a smaller buffer size.
18686
18687 2011-06-05  Bruno Haible  <bruno@clisp.org>
18688
18689         localename: Fix link dependencies.
18690         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
18691         * modules/localename-tests (Makefile.am): Link test-localename with
18692         $(LIBTHREAD).
18693
18694 2011-06-05  Bruno Haible  <bruno@clisp.org>
18695
18696         error: Avoid gcc warning.
18697         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
18698
18699 2011-06-05  Bruno Haible  <bruno@clisp.org>
18700
18701         unsetenv: Avoid gcc warning.
18702         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
18703
18704 2011-06-05  Bruno Haible  <bruno@clisp.org>
18705
18706         setenv: Avoid gcc warning.
18707         * lib/setenv.c (setenv): Provide declaration if system lacks it.
18708
18709 2011-06-05  Bruno Haible  <bruno@clisp.org>
18710
18711         sys_select: Ensure memset is declared also on AIX 7.
18712         * lib/sys_select.in.h: Include <string.h> also on AIX.
18713         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
18714         self-contained also on AIX 7.1.
18715
18716 2011-06-04  Jim Meyering  <meyering@redhat.com>
18717
18718         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
18719         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
18720         function name, "error".
18721         (_gl_translatable_diag_func_re): New configurable variable.
18722
18723 2011-06-04  Bruno Haible  <bruno@clisp.org>
18724
18725         getopt: Avoid gcc warning.
18726         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
18727
18728 2011-06-04  Bruno Haible  <bruno@clisp.org>
18729
18730         strerror_r: Fix comments.
18731         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
18732         commit.
18733
18734 2011-06-04  Bruno Haible  <bruno@clisp.org>
18735
18736         perror: Fix compilation error.
18737         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
18738         Undefine fprintf, not sprintf.
18739         * modules/perror (Depends-on): Remove intprops, verify.
18740
18741 2011-06-04  Bruno Haible  <bruno@clisp.org>
18742
18743         setlocale: Enable replacement on Cygwin 1.5.
18744         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
18745         Cygwin 1.5.x.
18746         * doc/posix-functions/setlocale.texi: Mention that the problem with the
18747         LC_CTYPE category also exists on Cygwin 1.5.x.
18748
18749 2011-06-04  Bruno Haible  <bruno@clisp.org>
18750
18751         strerror-override: Don't disable symbol renamings.
18752         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
18753         * lib/strerror-override.c: Include config.h.
18754         (strerror_override): Don't undefine.
18755
18756 2011-06-03  Bruno Haible  <bruno@clisp.org>
18757
18758         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
18759         * lib/localename.h: Update copyright header.
18760         * lib/localename.c: Likewise.
18761         * lib/relocatable.h: Likewise.
18762         * lib/relocatable.c: Likewise.
18763
18764 2011-06-02  Bruno Haible  <bruno@clisp.org>
18765
18766         doc: Fix a module name.
18767         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
18768
18769 2011-06-02  Bruno Haible  <bruno@clisp.org>
18770
18771         pipe2: Remove dependency on 'nonblocking' module.
18772         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
18773         O_NONBLOCK is defined by gnulib.
18774         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
18775         is zero.
18776         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
18777         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
18778         defined by gnulib.
18779         (get_nonblocking_flag): New function.
18780         (main): Test O_NONBLOCK flag only if it is nonzero.
18781         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
18782
18783 2011-06-03  Jim Meyering  <meyering@redhat.com>
18784
18785         maint: three new prohibit-header-without-use rules
18786         Prohibit use of cloexec.h, posixver.h, same.h without use.
18787         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
18788         (sc_prohibit_posixver_without_use): Likewise.
18789         (sc_prohibit_same_without_use): Likewise.
18790
18791 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18792
18793         allocator: 'die' routine is now given requested size
18794         * lib/allocator.h (struct allocator.die): New size arg.
18795         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
18796         If the actual problem is an ssize_t limitation, not a size_t or
18797         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
18798
18799 2011-06-01  Eric Blake  <eblake@redhat.com>
18800
18801         strerror: drop strerror_r dependency
18802         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
18803         * lib/strerror-override.c (strerror_override): ...to new file.
18804         * lib/strerror-override.h: Add prototype.
18805         * lib/strerror-impl.h: Delete.
18806         * lib/strerror.c (strerror): New implementation.
18807         * modules/errno (Files): Add new files.
18808         (configure.ac): Compile new file as appropriate.
18809         * modules/strerror (Files): Drop unused file.
18810         (Depends-on): Drop strerror_r-posix.
18811         * MODULES.html.sh: Document strerror_r-posix.
18812         Requested by Sam Steingold.
18813
18814         perror: call strerror_r directly
18815         * modules/perror (Files): Drop strerror-impl.h.
18816         * lib/perror.c (perror): Use our own stack buffer, rather than
18817         calling a wrapper that uses static storage.
18818         * doc/posix-functions/perror.texi (perror): Document a limitation
18819         of our replacement.
18820
18821         strerror_r: fix includes for FreeBSD
18822         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
18823         since we use abort on some platforms.
18824         Reported by Matthias Bolte.
18825
18826 2011-05-31  Bruno Haible  <bruno@clisp.org>
18827
18828         Fix link errors in tests: openat-die uses gettext-h.
18829         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
18830         against $(LIBINTL).
18831         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
18832         against $(LIBINTL).
18833         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
18834         $(LIBINTL).
18835         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
18836         against $(LIBINTL).
18837         * modules/linkat-tests (Makefile.am): Link test-linkat against
18838         $(LIBINTL).
18839         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
18840         $(LIBINTL).
18841         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
18842         against $(LIBINTL).
18843         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
18844         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
18845         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
18846         $(LIBINTL).
18847         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
18848         $(LIBINTL).
18849         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
18850         $(LIBINTL).
18851         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18852
18853 2011-05-31  Bruno Haible  <bruno@clisp.org>
18854
18855         Fix link errors in tests: wait-process uses gettext-h.
18856         * modules/nonblocking-pipe-tests (Makefile.am): Set
18857         test_nonblocking_pipe_main_LDADD.
18858         * modules/nonblocking-socket-tests (Makefile.am): Link
18859         test-nonblocking-socket-main against $(LIBINTL).
18860         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18861
18862 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
18863
18864         assert-h: work around 'verify' incompatibility
18865         * lib/verify.h: Use @...@ directives, not ifdef.
18866         * modules/assert-h (assert.h): Implement the directives.
18867         (assert.h): Substitute the symbol-prefix more consistently.
18868
18869 2011-05-29  Jim Meyering  <meyering@redhat.com>
18870
18871         trim: remove three superfluous assignments
18872         * lib/trim.c (trim2): Remove three superfluous assignments
18873         and correct brace positioning.
18874
18875 2011-05-29  Bruno Haible  <bruno@clisp.org>
18876
18877         wctype-h: Avoid namespace pollution on Solaris 2.6.
18878         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
18879         identifiers.
18880         * doc/posix-headers/wctype.texi: Mention the problem.
18881         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18882
18883 2011-05-28  Jim Meyering  <meyering@redhat.com>
18884
18885         parse-datetime.y: accommodate -Wstrict-overflow
18886         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
18887         placate -Wstrict-overflow.
18888
18889         trim: avoid a warning from -O2 -Wstrict-overflow
18890         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
18891
18892 2011-05-29  Bruno Haible  <bruno@clisp.org>
18893
18894         gnulib-tool: Fix bug in yesterday's commit.
18895         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
18896         twice.
18897
18898 2011-05-29  Bruno Haible  <bruno@clisp.org>
18899
18900         Allow multiple gnulib generated include files to be combined.
18901         * gnulib-tool (func_compute_include_guard_prefix): New function.
18902         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
18903         ${gl_include_guard_prefix} references.
18904         (func_import, func_create_testdir): Invoke
18905         func_compute_include_guard_prefix.
18906         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
18907         * lib/ctype.in.h: Likewise.
18908         * lib/dirent.in.h: Likewise.
18909         * lib/errno.in.h: Likewise.
18910         * lib/fcntl.in.h: Likewise.
18911         * lib/float.in.h: Likewise.
18912         * lib/getopt.in.h: Likewise.
18913         * lib/iconv.in.h: Likewise.
18914         * lib/langinfo.in.h: Likewise.
18915         * lib/locale.in.h: Likewise.
18916         * lib/math.in.h: Likewise.
18917         * lib/netdb.in.h: Likewise.
18918         * lib/netinet_in.in.h: Likewise.
18919         * lib/poll.in.h: Likewise.
18920         * lib/pthread.in.h: Likewise.
18921         * lib/pty.in.h: Likewise.
18922         * lib/sched.in.h: Likewise.
18923         * lib/se-selinux.in.h: Likewise.
18924         * lib/search.in.h: Likewise.
18925         * lib/signal.in.h: Likewise.
18926         * lib/spawn.in.h: Likewise.
18927         * lib/stdarg.in.h: Likewise.
18928         * lib/stddef.in.h: Likewise.
18929         * lib/stdint.in.h: Likewise.
18930         * lib/stdio.in.h: Likewise.
18931         * lib/stdlib.in.h: Likewise.
18932         * lib/string.in.h: Likewise.
18933         * lib/strings.in.h: Likewise.
18934         * lib/sys_file.in.h: Likewise.
18935         * lib/sys_ioctl.in.h: Likewise.
18936         * lib/sys_select.in.h: Likewise.
18937         * lib/sys_socket.in.h: Likewise.
18938         * lib/sys_stat.in.h: Likewise.
18939         * lib/sys_time.in.h: Likewise.
18940         * lib/sys_times.in.h: Likewise.
18941         * lib/sys_uio.in.h: Likewise.
18942         * lib/sys_utsname.in.h: Likewise.
18943         * lib/sys_wait.in.h: Likewise.
18944         * lib/sysexits.in.h: Likewise.
18945         * lib/termios.in.h: Likewise.
18946         * lib/time.in.h: Likewise.
18947         * lib/unistd.in.h: Likewise.
18948         * lib/wchar.in.h: Likewise.
18949         * lib/wctype.in.h: Likewise.
18950         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
18951         * modules/ctype (Makefile.am): Likewise.
18952         * modules/dirent (Makefile.am): Likewise.
18953         * modules/errno (Makefile.am): Likewise.
18954         * modules/fcntl-h (Makefile.am): Likewise.
18955         * modules/float (Makefile.am): Likewise.
18956         * modules/getopt-posix (Makefile.am): Likewise.
18957         * modules/iconv-h (Makefile.am): Likewise.
18958         * modules/langinfo (Makefile.am): Likewise.
18959         * modules/locale (Makefile.am): Likewise.
18960         * modules/math (Makefile.am): Likewise.
18961         * modules/netdb (Makefile.am): Likewise.
18962         * modules/netinet_in (Makefile.am): Likewise.
18963         * modules/poll-h (Makefile.am): Likewise.
18964         * modules/pthread (Makefile.am): Likewise.
18965         * modules/pty (Makefile.am): Likewise.
18966         * modules/sched (Makefile.am): Likewise.
18967         * modules/search (Makefile.am): Likewise.
18968         * modules/selinux-h (Makefile.am): Likewise.
18969         * modules/signal (Makefile.am): Likewise.
18970         * modules/spawn (Makefile.am): Likewise.
18971         * modules/stdarg (Makefile.am): Likewise.
18972         * modules/stddef (Makefile.am): Likewise.
18973         * modules/stdint (Makefile.am): Likewise.
18974         * modules/stdio (Makefile.am): Likewise.
18975         * modules/stdlib (Makefile.am): Likewise.
18976         * modules/string (Makefile.am): Likewise.
18977         * modules/strings (Makefile.am): Likewise.
18978         * modules/sys_file (Makefile.am): Likewise.
18979         * modules/sys_ioctl (Makefile.am): Likewise.
18980         * modules/sys_select (Makefile.am): Likewise.
18981         * modules/sys_socket (Makefile.am): Likewise.
18982         * modules/sys_stat (Makefile.am): Likewise.
18983         * modules/sys_time (Makefile.am): Likewise.
18984         * modules/sys_times (Makefile.am): Likewise.
18985         * modules/sys_uio (Makefile.am): Likewise.
18986         * modules/sys_utsname (Makefile.am): Likewise.
18987         * modules/sys_wait (Makefile.am): Likewise.
18988         * modules/sysexits (Makefile.am): Likewise.
18989         * modules/termios (Makefile.am): Likewise.
18990         * modules/time (Makefile.am): Likewise.
18991         * modules/unistd (Makefile.am): Likewise.
18992         * modules/wchar (Makefile.am): Likewise.
18993         * modules/wctype-h (Makefile.am): Likewise.
18994         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
18995
18996 2011-05-29  Bruno Haible  <bruno@clisp.org>
18997
18998         assert-h: Allow multiple gnulib generated replacements to coexist.
18999         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
19000
19001 2011-05-29  Bruno Haible  <bruno@clisp.org>
19002
19003         argp: Allow coexistence with strerror_r-posix module.
19004         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
19005         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
19006         by gnulib's <string.h> replacement), assume it has the POSIX signature,
19007         not the glibc signature.
19008
19009 2011-05-28  Bruno Haible  <bruno@clisp.org>
19010
19011         gnulib-tool: Alternative structure of testdirs, similar to --import.
19012         * gnulib-tool: New option --single-configure.
19013         (func_usage): Document it.
19014         (single_configure): New variable.
19015         (func_modules_transitive_closure_separately,
19016         func_modules_transitive_closure_separately,
19017         func_determine_use_libtests, func_modules_add_dummy_separately,
19018         func_modules_to_filelist_separately): New functions, extracted from
19019         func_import.
19020         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
19021         (func_import): Use the new functions.
19022         (func_create_testdir): Set final_modules. Handle $single_configure =
19023         true case.
19024
19025 2011-05-28  Bruno Haible  <bruno@clisp.org>
19026
19027         getloadavg: Remove an unreliable safety check.
19028         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
19029         getloadavg.c is in place.
19030         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
19031         Reported by Sam Steingold <sds@gnu.org>.
19032
19033 2011-05-28  Bruno Haible  <bruno@clisp.org>
19034
19035         doc: Cleanup yet another file produced by texinfo.tex.
19036         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
19037
19038 2011-05-28  Bruno Haible  <bruno@clisp.org>
19039
19040         Finish the conditional dependencies mechanism.
19041         * gnulib-tool: New option --no-conditional-dependencies.
19042         (func_usage): Document it. Don't mark --conditional-dependencies as
19043         experimental.
19044         (cond_dependencies): The possible values can now be true, false, empty.
19045         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
19046         (func_import): Store setting in gnulib-cache.m4 and read it from there.
19047         * doc/gnulib-tool.texi (Conditional dependencies): New section.
19048
19049 2011-05-28  Bruno Haible  <bruno@clisp.org>
19050
19051         doc: Use a recent texinfo.tex.
19052         * doc/Makefile (tex_opts): New variable.
19053         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
19054
19055 2011-05-28  Jim Meyering  <meyering@redhat.com>
19056
19057         intprops.h: adjust comment to match code change
19058         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
19059         only once, it *may* have side effects.  Also fix an unrelated typo.
19060         (_GL_INT_SIGNED): Likewise.
19061
19062 2011-05-26  Simon Josefsson  <simon@josefsson.org>
19063
19064         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
19065
19066 2011-05-26  Bruno Haible  <bruno@clisp.org>
19067
19068         mbsrchr: Avoid collision with system function on Interix.
19069         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
19070         Reported by Markus Duft <mduft@gentoo.org>.
19071
19072 2011-05-15  James Youngman  <jay@gnu.org>
19073
19074         getopt: for ambiguous options, enumerate the possibilities.
19075         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
19076         the ambiguous options when an ambiguous prefix is given. This was
19077         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
19078         glibc change was
19079         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
19080
19081 2011-05-25  Eric Blake  <eblake@redhat.com>
19082
19083         getcwd: work around mingw bug
19084         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
19085         * doc/posix-functions/getcwd.texi (getcwd): Document it.
19086         Reported by Matthias Bolte.
19087
19088 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
19089
19090         test-intprops: disable -Wtype-limits diagnostics
19091         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
19092         diagnostics.  Otherwise, the integer overflow macros generate many
19093         diagnostics.  Reported by Jim Meyering in
19094         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19095
19096         intprops: shorten, to pacify gcc -Woverlength-strings
19097         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
19098         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
19099         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
19100         likely to run afoul of C compiler limits for string constant lengths.
19101         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19102
19103 2011-05-24  Eric Blake  <eblake@redhat.com>
19104
19105         docs: document recently fixed glibc printf bug
19106         * doc/posix-functions/fprintf.texi (fprintf): Document it.
19107         * doc/posix-functions/printf.texi (printf): Likewise.
19108         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19109         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19110
19111         closein-tests: convert to init.sh
19112         * modules/closein-tests (Files): Add init.sh
19113         * tests/test-closein.sh Use it.
19114
19115         yesno-tests: convert to init.sh
19116         * modules/yesno-tests (Files): Add init.sh.
19117         * tests/test-yesno.sh: Use it.
19118
19119         atexit-tests: ensure reliable exit status
19120         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
19121         Reported by Bruno Haible.
19122
19123 2011-05-24  Bruno Haible  <bruno@clisp.org>
19124
19125         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
19126         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
19127         gl_PREREQ_STRERROR_R invocations from here...
19128         * modules/strerror_r-posix (configure.ac): ... to here.
19129
19130 2011-05-24  Eric Blake  <eblake@redhat.com>
19131
19132         strerror_r: fix missing header
19133         * lib/strerror_r.c: Avoid compiler warning about snprintf.
19134
19135         strerror_r: fix AIX test failures
19136         * lib/strerror_r.c (strerror_r): Convert silent truncation to
19137         ERANGE failure.
19138
19139         strerror_r: fix Solaris test failures
19140         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
19141         failures.
19142         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19143
19144         strerror_r: enforce POSIX recommendations
19145         * lib/strerror_r.c (safe_copy): New helper method.
19146         (strerror_r): Guarantee a non-empty string.
19147         * tests/test-strerror_r.c (main): Enhance tests to incorporate
19148         recent POSIX rulings and to match our strerror guarantees.
19149         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19150
19151 2011-05-24  Jim Meyering  <meyering@redhat.com>
19152
19153         test-perror2.c: avoid warning about unused variable
19154         * tests/test-perror2.c (main): Remove declaration of unused "fp".
19155
19156 2011-05-24  Eric Blake  <eblake@redhat.com>
19157
19158         perror: avoid spurious test failure on HP-UX
19159         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
19160
19161         tests: fix logic bug in init.sh
19162         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
19163         shell.
19164
19165 2011-05-24  Jim Meyering  <meyering@redhat.com>
19166
19167         utimensat: do not reference an out-of-scope buffer
19168         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
19169         declared in an inner scope, yet "times" would be dereferenced outside
19170         the scope in which "ts" was valid.
19171         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
19172         of ts[2] "out/up", so that the use of aliased "times" (via
19173         "times = ts;") does not end up referencing an out-of-scope "ts"
19174
19175         opendir-safer.c: don't clobber errno; don't close negative FD
19176         * lib/opendir-safer.c (opendir_safer):
19177         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
19178         file descriptor, and more importantly, don't clobber the
19179         offending errno value with EINVAL.  Before, upon failure
19180         of dup_safer, we would pass the negative file descriptor to
19181         fdopendir, which would clobber errno.
19182
19183 2011-05-23  Bruno Haible  <bruno@clisp.org>
19184
19185         idcache: Fix module description.
19186         * modules/idcache (Include): Set to "idcache.h".
19187
19188 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19189
19190         gnulib-tool: fix portability problem with MacOS sed
19191         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
19192         before the "}".  Problem reported by Leo in
19193         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
19194         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
19195         sed_extract_condition1, sed_extract_condition2.
19196
19197 2011-05-23  Bruno Haible  <bruno@clisp.org>
19198
19199         hash: Simplify autoconf macro.
19200         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
19201
19202 2011-05-23  Bruno Haible  <bruno@clisp.org>
19203
19204         getugroups: Fix module description.
19205         * modules/getugroups (Include): Set to "getugroups.h".
19206
19207 2011-05-23  Bruno Haible  <bruno@clisp.org>
19208
19209         linkat: Simplify autoconf macro.
19210         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
19211
19212 2011-05-23  Bruno Haible  <bruno@clisp.org>
19213             Eric Blake  <eblake@redhat.com>
19214
19215         linkat, renameat: Update dependencies.
19216         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
19217         * modules/linkat (Depends-on): Likewise. Remove also readlink,
19218         symlinkat.
19219
19220 2011-05-23  Jim Meyering  <meyering@redhat.com>
19221
19222         maint.mk: more tight_scope improvements
19223         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
19224         (_gl_TS_headers): Define only in if-0'd block.
19225         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
19226         sometimes we must *not* use it.  Adjust uses accordingly.
19227         (sc_tight_scope): Use much simpler grep-based test to determine
19228         whether we skip this rule.
19229
19230         maint.mk: generalize/improve the tight-scope rule
19231         * top/maint.mk: Emit a warning when the test is skipped.
19232         (_gl_TS_dir): Add $(srcdir)/ prefix.
19233         (_gl_TS_function_match): Simplify, rather than trying
19234         to enumerate common types.  Otherwise, it would fail to match an
19235         "extern unsigned char const *" declaration in idutils.
19236         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
19237         a way to support use of that type of macro.
19238         (_gl_TS_var_match): Simplify regexp.
19239         (_gl_TS_obj_files): New configurable variable.
19240         (_gl_TS_headers): Likewise.
19241
19242 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
19243
19244         verify: fix bug when gnulib <assert.h> is also included
19245         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
19246         is defined, not if _GL_STATIC_ASSERT_H is not defined.
19247         Perhaps there's a better way, but this fixes the immediate problem.
19248         Problem reported by Bruno Haible in
19249         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
19250
19251 2011-05-22  Bruno Haible  <bruno@clisp.org>
19252
19253         xgetcwd: Simplify autoconf macro.
19254         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
19255
19256 2011-05-22  Bruno Haible  <bruno@clisp.org>
19257
19258         New module 'mktime-internal'.
19259         * modules/mktime-internal: New file.
19260         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
19261         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
19262         mktime_internal as a C macro if libc has __mktime_internal.
19263         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
19264         conditions.
19265         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
19266
19267 2011-05-22  Bruno Haible  <bruno@clisp.org>
19268
19269         timegm: Correct mktime replacement statements.
19270         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
19271         defining mktime as a C macro. This completes a 2009-07-28 commit.
19272
19273 2011-05-22  Bruno Haible  <bruno@clisp.org>
19274
19275         timegm: Simplify autoconf macro.
19276         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
19277
19278 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
19279
19280         clock-time: change to LGPLv2+.
19281         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
19282         BSD-like but we have no mark for that; this is good enough for now.
19283
19284 2011-05-21  Bruno Haible  <bruno@clisp.org>
19285
19286         strerror_r: Fix comments.
19287         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
19288
19289 2011-05-21  Bruno Haible  <bruno@clisp.org>
19290
19291         relocatable-prog-wrapper: Fix possible link error.
19292         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
19293         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
19294         (gl_FUNC_SETENV): ... to here.
19295         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
19296         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
19297
19298 2011-05-21  Bruno Haible  <bruno@clisp.org>
19299
19300         relocatable-prog-wrapper: Assume strerror() exists.
19301         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
19302         m4/strerror.m4.
19303         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
19304         * lib/relocwrapper.c: Remove mention of strerror module.
19305         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
19306         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
19307         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
19308         C macro.
19309
19310 2011-05-21  Bruno Haible  <bruno@clisp.org>
19311
19312         select: Simplify replacement idiom.
19313         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
19314         Win32 platforms.
19315         * lib/sys_select.in.h (select): Simplify accordingly.
19316         * modules/select (Depends-on): Likewise.
19317
19318 2011-05-21  Bruno Haible  <bruno@clisp.org>
19319
19320         mkdir-p: Simplify autoconf macro.
19321         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
19322         gl_FUNC_LCHOWN.
19323
19324 2011-05-21  Eric Blake  <eblake@redhat.com>
19325
19326         strerror_r: avoid clobbering strerror on cygwin
19327         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
19328         fall back instead to sys_errlist.
19329         * modules/strerror (configure.ac): Add witness.
19330         * tests/test-strerror_r.c (main): Enhance test.
19331         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19332         * tests/test-perror2.c (main): Free memory before exit.
19333
19334 2011-05-21  Bruno Haible  <bruno@clisp.org>
19335
19336         mkdtemp: Use gnulib naming conventions.
19337         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
19338         * modules/mkdtemp (configure.ac): Update.
19339
19340 2011-05-20  Eric Blake  <eblake@redhat.com>
19341
19342         strerror_r: avoid corrupting errno on Solaris
19343         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
19344         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19345
19346         strerror_r: avoid compiler warning
19347         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
19348
19349         strerror_r: simplify AIX code
19350         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
19351
19352         test-perror: avoid spurious failure on FreeBSD
19353         * modules/perror-tests (Depends-on): Add strerror, now that
19354         strerror_r no longer pulls it in.
19355
19356 2011-05-20  Bruno Haible  <bruno@clisp.org>
19357
19358         strerror_r-posix: Remove unused dependencies.
19359         * modules/strerror_r-posix (Depends-on): Remove strerror.
19360         Reported by Eric Blake.
19361
19362 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
19363
19364         intprops: remove assumption about A|B representation
19365         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
19366         is a valid integer if both A and B are.  Although this is true for
19367         all known practical hosts, the C standard doesn't guarantee it,
19368         and the code need not assume it.  Also, this change may work around
19369         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
19370         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
19371
19372 2011-05-20  Eric Blake  <eblake@redhat.com>
19373
19374         perror: work around FreeBSD bug
19375         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
19376         is broken.  Move AC_LIBOBJ...
19377         * modules/perror (configure.ac): Here.
19378         * doc/posix-functions/perror.texi (perror): Document this.
19379         * tests/test-perror2.c (main): Enhance test.
19380
19381         test-perror: check for strerror interactions
19382         * tests/macros.h (STREQ): Add macro.
19383         * modules/perror-tests (Files): Add second test.
19384         * tests/test-perror2.c (main): New file.
19385         * doc/posix-functions/perror.texi (perror): Document glibc bug.
19386
19387         test-perror: rewrite to use init script
19388         * modules/perror-tests (Files): Add init.sh.
19389         * tests/test-perror.sh: Use temporary directory.
19390
19391 2011-05-20  Jim Meyering  <meyering@redhat.com>
19392
19393         maint: replace misused "a" with "an"
19394         * doc/intprops.texi: "a integer"
19395         * doc/regex.texi: "a explanation"
19396         * lib/alignof.h: "a object"
19397         * lib/argmatch.h: "a explanation"
19398         * lib/argp-help.c: "a option" and "a OPTION_DOC"
19399         * lib/stdint.in.h: "a integer"
19400         * lib/userspec.c: "a owner"
19401         * doc/gnulib.texi: Fix "a idea", and reword.
19402
19403 2011-05-19  Jim Meyering  <meyering@redhat.com>
19404
19405         maint: correct misuse of "a" and "an"
19406         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
19407         * lib/argp-help.c: "an docum...": s/an/a/
19408         * lib/argp-parse.c: "An vector": s/An/A/
19409         * lib/execute.c: "an native": s/an/a/
19410         * lib/spawn-pipe.c: Likewise.
19411         * lib/gc.h: "an Gc_rc": s/an/a/
19412         * lib/unigbrk.in.h: "an grapheme": s/an/a/
19413         * lib/fts.c: "an stat.st_dev": s/an/a/
19414
19415 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19416
19417         intprops-tests: work around HP-UX 11.23 cc bug with constants
19418         * tests/test-intprops.c (VERIFY): New macro.
19419         (main): Use it, instead of verify, to work around the compiler bug; see
19420         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19421
19422         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
19423         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
19424         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
19425         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
19426         (_GL_REMAINDER_OVERFLOW): Use it.
19427
19428         intprops-tests: revert unsigned part of previous change
19429         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
19430         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
19431         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
19432         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
19433
19434 2011-05-19  Bruno Haible  <bruno@clisp.org>
19435
19436         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
19437         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
19438         strerror_r() returned without filling the buffer.
19439         Reported by Eric Blake.
19440
19441 2011-05-19  Eric Blake  <eblake@redhat.com>
19442
19443         strerror_r: guarantee unchanged errno
19444         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
19445         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
19446         failure.
19447         * tests/test-strerror_r.c (main): Enhance test.
19448
19449 2011-05-19  Bruno Haible  <bruno@clisp.org>
19450
19451         strerror_r: Reorder #if blocks.
19452         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
19453         for consistency with the previous commit.
19454
19455 2011-05-19  Bruno Haible  <bruno@clisp.org>
19456
19457         perror: Avoid clobbering the strerror buffer when possible.
19458         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
19459         * lib/strerror.c: Include it.
19460         * modules/strerror (Files): Add lib/strerror-impl.h.
19461         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
19462         (my_strerror): New function, defined through lib/strerror-impl.h.
19463         (perror): Use it instead of strerror.
19464         * modules/perror (Files): Add lib/strerror-impl.h.
19465         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
19466
19467 2011-05-19  Eric Blake  <eblake@redhat.com>
19468
19469         strerror_r: fix on newer cygwin
19470         * lib/strerror_r.c (strerror_r): Cygwin now has
19471         __xpg_strerror_r, use it.
19472
19473 2011-05-19  Bruno Haible  <bruno@clisp.org>
19474
19475         strerror_r: Avoid clobbering the strerror buffer when possible.
19476         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
19477         (sys_nerr, sys_errlist): New declarations.
19478         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
19479         HP-UX, native Win32, IRIX, and 32-bit Solaris.
19480         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
19481
19482 2011-05-19  Bruno Haible  <bruno@clisp.org>
19483
19484         strerror_r: Fix test failure on mingw.
19485         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
19486         EXTEND_STRERROR_R.
19487         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
19488         macros from errno.in.h instead.
19489
19490 2011-05-19  Eric Blake  <eblake@redhat.com>
19491
19492         strerror: relax test for Solaris
19493         * tests/test-strerror.c (main): Permit Solaris behavior.
19494         * tests/test-strerror_r.c (main): Likewise.
19495
19496         strerror: enforce POSIX ruling on strerror(0)
19497         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
19498         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19499         * lib/strerror_r.c (rpl_strerror_r): Work around it.
19500         * doc/posix-functions/strerror.texi (strerror): Document it.
19501         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
19502         * tests/test-strerror.c (main): Strengthen test.
19503         * tests/test-strerror_r.c (main): Likewise.
19504
19505 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19506
19507         intprop-tests: port to older and more-pedantic compilers
19508         * modules/intprops-tests (Files): Add tests/macros.h.
19509         * tests/test-intprops.c: Include macros.h.
19510         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
19511         it's no longer documented to expand to an integer constant expression.
19512         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
19513         argument is floating point, as it's no longer documented to expand
19514         to an integer constant expression in that case.
19515         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
19516         compiler bugs reported by Bruno Haible.  See
19517         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19518         (U0, U1): New constants, to work around the same bugs.  Also,
19519         in tests, use e.g., "(unsigned int) 39" rather than "39u".
19520
19521         intprops: work around C compiler bugs
19522         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
19523         bug in Sun C 5.11 2010/08/13 and other compilers; see
19524         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19525
19526         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
19527         * doc/intprops.texi (Integer Type Determination): Fix
19528         documentation for TYPE_IS_INTEGER: it returns an constant
19529         expression, not an integer constant expression.  Fix doc for
19530         TYPE_SIGNED: it returns an integer constant expression only if its
19531         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
19532         hardly worth documented that way....)
19533
19534 2011-05-18  Bruno Haible  <bruno@clisp.org>
19535
19536         strerror_r: Avoid clobbering the strerror buffer when possible.
19537         * lib/strerror_r.c (strerror_r): Merge the three implementations.
19538         Handle gnulib defined errno values here. When strerror() returns NULL
19539         or an empty string, return EINVAL.
19540         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
19541         gnulib defined errno values here.
19542         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
19543
19544 2011-05-18  Eric Blake  <eblake@redhat.com>
19545
19546         fnmatch: avoid compiler warning
19547         * lib/fnmatch_loop.c (FCT): Use correct type.
19548         Reported by Matthias Bolte.
19549
19550 2011-05-13  Jim Meyering  <meyering@redhat.com>
19551
19552         maint.mk: three new prohibit_<HDR>_without_use rules
19553         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
19554         (sc_prohibit_stdio-safer_without_use): Likewise.
19555         (sc_prohibit_xfreopen_without_use): Likewise.
19556
19557 2011-05-17  Jim Meyering  <meyering@redhat.com>
19558
19559         announce-gen: fail if the NEWS delta is empty
19560         If there's nothing noteworthy in NEWS, then either you forgot
19561         or you shouldn't be releasing.
19562         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
19563
19564 2011-05-17  Pádraig Brady <P@draigBrady.com>
19565
19566         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
19567         reserved symbols starting with double underscore from the check.
19568
19569 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
19570
19571         intprops: add doc
19572         * doc/intprops.texi: New file, documenting intprops.
19573         * doc/gnulib.texi (Particular Modules): Include it.
19574
19575         verify: add doc to gnulib manual and fix example
19576         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
19577         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
19578         (Compile-time Assertions): Fix example so it can't overflow.
19579
19580 2011-05-17  Jim Meyering  <meyering@redhat.com>
19581
19582         warnings.m4: don't usurp save_CPPFLAGS variable name
19583         * m4/warnings.m4: Prefix local temporary variable name with gl_.
19584
19585         doc: fix typo
19586         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
19587
19588 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19589             Bruno Haible  <bruno@clisp.org>
19590
19591         doc: Tweak recent change.
19592         * README (Portability guidelines): Tweak new text.
19593         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
19594         Interix 6.1.
19595
19596 2011-05-16  Eric Blake  <eblake@redhat.com>
19597
19598         inttypes: avoid autoconf warning
19599         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
19600         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19601
19602 2011-05-16  Sam Steingold <sds@gnu.org>
19603         and Eric Blake  <eblake@redhat.com>
19604
19605         vc-list-files: accept multiple directory operands
19606         * build-aux/vc-list-files: Iterate over all remaining operands.
19607
19608 2011-05-16  Bruno Haible  <bruno@clisp.org>
19609
19610         Fix confusion regarding deprecated modules.
19611         * modules/calloc (Status, Notice): Mark module as deprecated, not
19612         obsolete.
19613         * modules/fnmatch-posix (Status, Notice): Likewise.
19614         * modules/getdate (Status, Notice): Likewise.
19615         * modules/getopt (Status, Notice): Likewise.
19616         * modules/malloc (Status, Notice): Likewise.
19617         * modules/pipe (Status, Notice): Likewise.
19618         * modules/realloc (Status, Notice): Likewise.
19619         * modules/rename-dest-slash (Status, Notice): Likewise.
19620         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
19621         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
19622         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
19623         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
19624         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
19625
19626 2011-05-16  Bruno Haible  <bruno@clisp.org>
19627
19628         doc: List the target platforms.
19629         * doc/gnulib-intro.texi (Target Platforms): New section.
19630         * doc/gnulib.texi (Introduction): Update menu.
19631         * README (Portability guidelines): Refer to the new section. Update
19632         statement about oldest supported environment. Remove rationale why
19633         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
19634         unportable C89 function.
19635         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
19636         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
19637
19638 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19639
19640         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
19641
19642 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
19643
19644         intprops-tests: new module
19645         * modules/intprops-tests, tests/test-intprops.c: New files.
19646
19647         intprops: add safe, portable integer overflow checking
19648         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
19649         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
19650         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
19651         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
19652         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
19653         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
19654         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
19655         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
19656         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
19657         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
19658         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
19659
19660 2011-05-12  James Youngman  <jay@gnu.org>
19661
19662         Add a test for glibc's Bugzilla bug #12378.
19663         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
19664         doesn't allow the literal matching of a lone "[" (which is
19665         required by POSIX).
19666         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
19667
19668 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19669
19670         Sync glibc change fixing Bugzilla bug #12378.
19671         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
19672         beginning and fall back to matching as normal character if the
19673         string ends before the matching ']' is found.  This is what POSIX
19674         requires.
19675
19676 2011-05-13  Eric Blake  <eblake@redhat.com>
19677
19678         getcwd-lgpl: relax test for FreeBSD
19679         * doc/posix-functions/getcwd.texi (getcwd): Document portability
19680         issue.
19681         * tests/test-getcwd-lgpl.c (main): Relax test.
19682         Reported by Matthias Bolte.
19683
19684 2011-05-11  Eric Blake  <eblake@redhat.com>
19685
19686         test-fflush: silence compiler warning
19687         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
19688
19689 2011-05-11  Bruno Haible  <bruno@clisp.org>
19690
19691         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
19692         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
19693         * modules/canonicalize (Depends-on): Add 'nocrash'.
19694         * modules/canonicalize-lgpl (Depends-on): Likewise.
19695         * doc/posix-functions/realpath.texi: Update platforms list.
19696         Reported by Ryan Schmidt <ryandesign@macports.org>.
19697
19698 2011-05-11  Bruno Haible  <bruno@clisp.org>
19699
19700         group-member: Declare function in <unistd.h>.
19701         * lib/unistd.in.h (group_member): New declaration.
19702         * lib/group-member.h: Remove file.
19703         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
19704         * tests/test-unistd-c++.cc: Check signature of group_member.
19705         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
19706         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
19707         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
19708         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
19709         HAVE_GROUP_MEMBER.
19710         * modules/group-member (Files): Remove lib/group-member.h.
19711         (Depends-on): Add unistd. Specify conditions.
19712         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19713         (Include): Change to <unistd.h>.
19714         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
19715         HAVE_GROUP_MEMBER.
19716         * NEWS: Mention the change.
19717         * lib/euidaccess.c: Don't include group-member.h.
19718
19719 2011-05-11  Bruno Haible  <bruno@clisp.org>
19720
19721         group-member: Document module.
19722         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
19723         module.
19724
19725 2011-05-11  Bruno Haible  <bruno@clisp.org>
19726
19727         fclose: Fix mistake earlier today.
19728         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
19729
19730 2011-05-11  Eric Blake  <eblake@redhat.com>
19731
19732         fclose: preserve fflush errors
19733         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
19734         Reported by Jim Meyering.
19735
19736         bootstrap: support a prereq of 'rpcgen -' on RHEL5
19737         * build-aux/bootstrap (check_versions): When no specific version
19738         is required, merely check that the app produces an exit status
19739         that indicates its existence.
19740
19741         maint.mk: drop redundant check
19742         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
19743         the same but better.
19744
19745 2011-05-11  Bruno Haible  <bruno@clisp.org>
19746
19747         fclose: Fix possible link error.
19748         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
19749         unregister_shadow_fd. Improve comments.
19750         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
19751         Eric Blake.
19752
19753 2011-05-11  Jim Meyering  <meyering@redhat.com>
19754
19755         maint.mk: improve "can not" detection and generalize rule name
19756         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
19757         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
19758         Use the same technique as in sc_prohibit_doubled_word, so that
19759         we recognize "can not" also when the words are separated by a newline.
19760         Suggested by Eric Blake.
19761         (perl_filename_lineno_text_): Define.  Factored out of...
19762         (prohibit_doubled_word_): ...here.  Use the new definition.
19763         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
19764         (prohibit_undesirable_word_seq_RE_): New overridable variable.
19765         (ignore_undesirable_word_sequence_RE_): New overridable variable.
19766
19767 2011-05-10  Eric Blake  <eblake@redhat.com>
19768
19769         fclose: avoid double close race when possible
19770         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
19771         all but WINDOWS_SOCKETS.
19772
19773 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
19774
19775         openat: correct new comment
19776         * lib/openat-proc.c (openat_proc_name): Correct the comment.
19777
19778 2011-05-10  Jim Meyering  <meyering@redhat.com>
19779
19780         openat: add comments
19781         * lib/openat-proc.c (openat_proc_name): Add comments,
19782         mostly from Eric Blake.
19783
19784 2011-05-09  Eric Blake  <eblake@redhat.com>
19785
19786         openat: reduce syscalls in first probe of /proc
19787         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
19788         be a directory.  Simplify the probe for .. bugs.
19789         * modules/openat (Depends-on): Drop same-inode.
19790         Reported by Bastien ROUCARIES.
19791
19792 2011-05-09  Jim Meyering  <meyering@redhat.com>
19793
19794         maint.mk: change semantics/name of tight_scope variables
19795         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
19796         Rename variables to align with semantics that make them more useful.
19797
19798         maint.mk: tweak new rule's name not to impinge
19799         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
19800         (sc_tight_scope): Use new rule name rather than $@-0.
19801
19802         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
19803         * top/maint.mk (sc_tight_scope): New rule.
19804         (sc_tight_scope-0): New rule, ifdef'd out.
19805         (_gl_TS_dir): Default.
19806         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
19807         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
19808
19809 2011-05-09  Simon Josefsson  <simon@josefsson.org>
19810
19811         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
19812         Haible <bruno@clisp.org>.
19813
19814 2011-05-08  Bruno Haible  <bruno@clisp.org>
19815
19816         Comments.
19817         * m4/isnanf.m4: Add comment.
19818         * m4/isnanl.m4: Likewise.
19819
19820 2011-05-08  Bruno Haible  <bruno@clisp.org>
19821
19822         glob: Remove obsolete macro.
19823         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
19824
19825 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
19826
19827         intprops: Sun C 5.11 supports __typeof__
19828         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
19829         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
19830         which is new.
19831         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
19832
19833         intprops: switch to usual gnulib indenting and naming
19834         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
19835         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
19836
19837         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
19838
19839 2011-05-08  Jim Meyering  <meyering@redhat.com>
19840
19841         maint.mk: suppress "Entering/Leaving directory" diag in announcement
19842         * top/maint.mk (release-prep): Use make's --no-print-directory
19843         option when generating the announcement.  This eliminates the
19844         pesky "make[2]: Entering/Leaving directory" diagnostics in the
19845         generated announcement template.
19846
19847 2011-05-08  Bruno Haible  <bruno@clisp.org>
19848
19849         tzset: Fix gettimeofday wrapper on Solaris 2.6.
19850         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
19851         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
19852
19853 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19854
19855         ignore-value, verify: Omit include files from lib_SOURCES.
19856         * modules/ignore-value, modules/verify (Makefile.am):
19857         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
19858         that leads Automake to duplicate use of am__objects_... variables
19859         in Makefile.in.  See
19860         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
19861
19862 2011-05-07  Bruno Haible  <bruno@clisp.org>
19863
19864         fclose: Simplify autoconf macro.
19865         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
19866         defined.
19867
19868 2011-05-07  Bruno Haible  <bruno@clisp.org>
19869
19870         canonicalize-lgpl: Fix autoconf macro ordering bug.
19871         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
19872         gl_STDLIB_H_DEFAULTS.
19873
19874 2011-05-06  Eric Blake  <eblake@redhat.com>
19875
19876         maintainer-makefile: make sc_po_check easier to tune
19877         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
19878         to probe for strings, such as an alternate location for gnulib.
19879
19880         fclose: guarantee behavior on seekable stdin
19881         * modules/fclose (Depends-on): Add fflush.
19882         * doc/posix-functions/fclose.texi (fclose): Document this.
19883         * tests/test-fclose.c (main): Make test for this unconditional.
19884
19885 2011-05-06  Bruno Haible  <bruno@clisp.org>
19886
19887         fflush, fpurge: Relicense under LGPLv2+.
19888         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
19889         * modules/fpurge (License): Likewise.
19890         With permission from Eric Blake and Jim Meyering.
19891         Suggested by Eric Blake.
19892
19893 2011-05-06  Karl Berry  <karl@gnu.org>
19894
19895         * MODULES.html.sh (func_all_modules): remove exit.
19896
19897 2011-05-06  Jim Meyering  <meyering@redhat.com>
19898
19899         maint.mk: use info-gnu@ as the default only for a stable release
19900         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
19901         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
19902         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
19903         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
19904
19905 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19906
19907         assert-h: new module, which supports C1X-style static_assert
19908         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
19909         * lib/verify.h: Revamp so that this can be copied into assert.h,
19910         while retaining the ability to use it standalone as before.
19911         Rename private identifiers so as not to encroach on the
19912         standard C namespace, since this is now used by assert.h.
19913         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
19914         the old verify_true.
19915         (_GL_VERIFY_TRUE): New macro, with much of the contents of
19916         the old verify_true.  Use _GL_VERIFY_TYPE.
19917         (_GL_VERIFY): New macro, with much of the contents of the old verify.
19918         (static_assert): New macro, if _GL_STATIC_ASSERT_H
19919         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
19920         defined when this file is copied into the replacement assert.h.
19921         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
19922         and _Static_assert is not built in.
19923         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
19924         defined, and use the new macros mentioned above.
19925         * doc/posix-headers/assert.texi: Document this.
19926
19927 2011-05-05  Bruno Haible  <bruno@clisp.org>
19928
19929         fclose, fflush: Respect rules for use of AC_LIBOBJ.
19930         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
19931         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
19932         gl_REPLACE_FCLOSE here.
19933         * modules/fflush (Depends-on): Remove fclose.
19934         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
19935         combination with module 'fclose'.
19936
19937 2011-05-05  Bruno Haible  <bruno@clisp.org>
19938
19939         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
19940         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
19941         gl_FUNC_FFLUSH.
19942         (gl_FUNC_FFLUSH): Use it.
19943         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
19944         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
19945         gl_REPLACE_FSEEKO here.
19946
19947 2011-05-05  Bruno Haible  <bruno@clisp.org>
19948
19949         tzset: Relicense under LGPL.
19950         * modules/tzset (License): Change to LGPL.
19951         No agreement needed; it's a no-op.
19952
19953         strtoimax, strtoumax: Relicense under LGPL.
19954         * modules/strtoimax (License): Change to LGPL.
19955         * modules/strtoumax (License): Likewise.
19956         With permission from Jim Meyering, Paul Eggert:
19957         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
19958         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
19959
19960         getgroups: Relicense under LGPL.
19961         * modules/getgroups (License): Change to LGPL.
19962         With permission from Jim Meyering, Paul Eggert, Eric Blake:
19963         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19964         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19965         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19966
19967         nanosleep: Relicense under LGPL.
19968         * modules/nanosleep (License): Change to LGPL.
19969         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
19970         Haible:
19971         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19972         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19973         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19974         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19975
19976         futimens: Relicense under LGPL.
19977         * modules/futimens (License): Change to LGPL.
19978         With permission from Eric Blake:
19979         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19980
19981         fflush: Relicense under LGPL.
19982         * modules/fflush (License): Change to LGPL.
19983         With permission from Eric Blake, Bruno Haible, Jim Meyering:
19984         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19985         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19986         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
19987
19988         tmpfile: Relicense under LGPL.
19989         * modules/tmpfile (License): Change to LGPL.
19990         With permission from Ben Pfaff:
19991         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19992
19993         isfinite: Relicense under LGPL.
19994         * modules/isfinite (License): Change to LGPL.
19995         With permission from Ben Pfaff, Bruno Haible:
19996         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19997         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
19998
19999         acosl..tanl: Relicense under LGPL.
20000         * modules/acosl (License): Change to LGPL.
20001         * modules/asinl (License): Likewise.
20002         * modules/atanl (License): Likewise.
20003         * modules/cosl (License): Likewise.
20004         * modules/expl (License): Likewise.
20005         * modules/logl (License): Likewise.
20006         * modules/sinl (License): Likewise.
20007         * modules/sqrtl (License): Likewise.
20008         * modules/tanl (License): Likewise.
20009         Source code originally from glibc and Paolo Bonzini. Agreements:
20010         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
20011         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
20012
20013 2011-05-05  Bruno Haible  <bruno@clisp.org>
20014
20015         signal: Define sighandler_t.
20016         * lib/signal.in.h (sighandler_t): New type.
20017         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
20018         whether sighandler_t is defined.
20019         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
20020         * modules/signal (Depends-on): Add extensions.
20021         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
20022         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
20023         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
20024
20025 2011-05-05  Eric Blake  <eblake@redhat.com>
20026
20027         maint: remove useless REPLACE_*_H macros
20028         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
20029         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20030         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20031         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
20032         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20033         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20034         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
20035         * m4/btowc.m4: Update callers.
20036         * m4/dirfd.m4: Likewise.
20037         * m4/duplocale.m4: Likewise.
20038         * m4/fchdir.m4: Likewise.
20039         * m4/fdopendir.m4: Likewise.
20040         * m4/inet_ntop.m4: Likewise.
20041         * m4/inet_pton.m4: Likewise.
20042         * m4/ioctl.m4: Likewise.
20043         * m4/mbrlen.m4: Likewise.
20044         * m4/mbrtowc.m4: Likewise.
20045         * m4/mbsinit.m4: Likewise.
20046         * m4/mbsnrtowcs.m4: Likewise.
20047         * m4/mbsrtowcs.m4: Likewise.
20048         * m4/poll.m4: Likewise.
20049         * m4/setlocale.m4: Likewise.
20050         * m4/wcrtomb.m4: Likewise.
20051         * m4/wcsnrtombs.m4: Likewise.
20052         * m4/wcsrtombs.m4: Likewise.
20053         * m4/wctob.m4: Likewise.
20054         * m4/wcwidth.m4: Likewise.
20055         * modules/posix_spawn: Likewise.
20056         * modules/posix_spawn_file_actions_addclose: Likewise.
20057         * modules/posix_spawn_file_actions_adddup2: Likewise.
20058         * modules/posix_spawn_file_actions_addopen: Likewise.
20059         * modules/posix_spawn_file_actions_destroy: Likewise.
20060         * modules/posix_spawn_file_actions_init: Likewise.
20061         * modules/posix_spawnattr_destroy: Likewise.
20062         * modules/posix_spawnattr_getflags: Likewise.
20063         * modules/posix_spawnattr_getpgroup: Likewise.
20064         * modules/posix_spawnattr_getschedparam: Likewise.
20065         * modules/posix_spawnattr_getschedpolicy: Likewise.
20066         * modules/posix_spawnattr_getsigdefault: Likewise.
20067         * modules/posix_spawnattr_getsigmask: Likewise.
20068         * modules/posix_spawnattr_init: Likewise.
20069         * modules/posix_spawnattr_setflags: Likewise.
20070         * modules/posix_spawnattr_setpgroup: Likewise.
20071         * modules/posix_spawnattr_setschedparam: Likewise.
20072         * modules/posix_spawnattr_setschedpolicy: Likewise.
20073         * modules/posix_spawnattr_setsigdefault: Likewise.
20074         * modules/posix_spawnattr_setsigmask: Likewise.
20075         * modules/posix_spawnp: Likewise.
20076
20077 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
20078
20079         Add option to do-release-commit-and-tag to specify branch.
20080         * build-aux/do-release-commit-and-tag: Add --branch.
20081
20082 2011-05-03  Bruno Haible  <bruno@clisp.org>
20083
20084         Avoid unnecessary compilation units, through conditional dependencies.
20085         * modules/accept (Depends-on): Add conditions to the dependencies.
20086         * modules/acosl (Depends-on): Likewise.
20087         * modules/argz (Depends-on): Likewise.
20088         * modules/asinl (Depends-on): Likewise.
20089         * modules/atanl (Depends-on): Likewise.
20090         * modules/atoll (Depends-on): Likewise.
20091         * modules/bind (Depends-on): Likewise.
20092         * modules/btowc (Depends-on): Likewise.
20093         * modules/canonicalize-lgpl (Depends-on): Likewise.
20094         * modules/ceil (Depends-on): Likewise.
20095         * modules/ceilf (Depends-on): Likewise.
20096         * modules/ceill (Depends-on): Likewise.
20097         * modules/chdir-long (Depends-on): Likewise.
20098         * modules/chown (Depends-on): Likewise.
20099         * modules/close (Depends-on): Likewise.
20100         * modules/connect (Depends-on): Likewise.
20101         * modules/cosl (Depends-on): Likewise.
20102         * modules/dirfd (Depends-on): Likewise.
20103         * modules/dprintf (Depends-on): Likewise.
20104         * modules/dprintf-posix (Depends-on): Likewise.
20105         * modules/error (Depends-on): Likewise.
20106         * modules/euidaccess (Depends-on): Likewise.
20107         * modules/expl (Depends-on): Likewise.
20108         * modules/faccessat (Depends-on): Likewise.
20109         * modules/fchdir (Depends-on): Likewise.
20110         * modules/fclose (Depends-on): Likewise.
20111         * modules/fcntl (Depends-on): Likewise.
20112         * modules/fdopendir (Depends-on): Likewise.
20113         * modules/fflush (Depends-on): Likewise.
20114         * modules/floor (Depends-on): Likewise.
20115         * modules/floorf (Depends-on): Likewise.
20116         * modules/floorl (Depends-on): Likewise.
20117         * modules/fnmatch (Depends-on): Likewise.
20118         * modules/fopen (Depends-on): Likewise.
20119         * modules/fprintf-posix (Depends-on): Likewise.
20120         * modules/frexp (Depends-on): Likewise.
20121         * modules/frexp-nolibm (Depends-on): Likewise.
20122         * modules/frexpl (Depends-on): Likewise.
20123         * modules/frexpl-nolibm (Depends-on): Likewise.
20124         * modules/fseek (Depends-on): Likewise.
20125         * modules/fsusage (Depends-on): Likewise.
20126         * modules/ftell (Depends-on): Likewise.
20127         * modules/ftello (Depends-on): Likewise.
20128         * modules/futimens (Depends-on): Likewise.
20129         * modules/getcwd (Depends-on): Likewise.
20130         * modules/getcwd-lgpl (Depends-on): Likewise.
20131         * modules/getdelim (Depends-on): Likewise.
20132         * modules/getdomainname (Depends-on): Likewise.
20133         * modules/getgroups (Depends-on): Likewise.
20134         * modules/gethostname (Depends-on): Likewise.
20135         * modules/getline (Depends-on): Likewise.
20136         * modules/getlogin_r (Depends-on): Likewise.
20137         * modules/getopt-posix (Depends-on): Likewise.
20138         * modules/getpeername (Depends-on): Likewise.
20139         * modules/getsockname (Depends-on): Likewise.
20140         * modules/getsockopt (Depends-on): Likewise.
20141         * modules/getsubopt (Depends-on): Likewise.
20142         * modules/getusershell (Depends-on): Likewise.
20143         * modules/glob (Depends-on): Likewise.
20144         * modules/grantpt (Depends-on): Likewise.
20145         * modules/iconv_open (Depends-on): Likewise.
20146         * modules/iconv_open-utf (Depends-on): Likewise.
20147         * modules/inet_ntop (Depends-on): Likewise.
20148         * modules/inet_pton (Depends-on): Likewise.
20149         * modules/ioctl (Depends-on): Likewise.
20150         * modules/isapipe (Depends-on): Likewise.
20151         * modules/isfinite (Depends-on): Likewise.
20152         * modules/isinf (Depends-on): Likewise.
20153         * modules/lchown (Depends-on): Likewise.
20154         * modules/ldexpl (Depends-on): Likewise.
20155         * modules/link (Depends-on): Likewise.
20156         * modules/linkat (Depends-on): Likewise.
20157         * modules/listen (Depends-on): Likewise.
20158         * modules/logl (Depends-on): Likewise.
20159         * modules/lstat (Depends-on): Likewise.
20160         * modules/mbrlen (Depends-on): Likewise.
20161         * modules/mbrtowc (Depends-on): Likewise.
20162         * modules/mbsinit (Depends-on): Likewise.
20163         * modules/mbsnrtowcs (Depends-on): Likewise.
20164         * modules/mbsrtowcs (Depends-on): Likewise.
20165         * modules/mbtowc (Depends-on): Likewise.
20166         * modules/memcmp (Depends-on): Likewise.
20167         * modules/mkdir (Depends-on): Likewise.
20168         * modules/mkdtemp (Depends-on): Likewise.
20169         * modules/mkfifo (Depends-on): Likewise.
20170         * modules/mkfifoat (Depends-on): Likewise.
20171         * modules/mknod (Depends-on): Likewise.
20172         * modules/mkostemp (Depends-on): Likewise.
20173         * modules/mkostemps (Depends-on): Likewise.
20174         * modules/mkstemp (Depends-on): Likewise.
20175         * modules/mkstemps (Depends-on): Likewise.
20176         * modules/mktime (Depends-on): Likewise.
20177         * modules/nanosleep (Depends-on): Likewise.
20178         * modules/open (Depends-on): Likewise.
20179         * modules/openat (Depends-on): Likewise.
20180         * modules/perror (Depends-on): Likewise.
20181         * modules/poll (Depends-on): Likewise.
20182         * modules/popen (Depends-on): Likewise.
20183         * modules/posix_spawn (Depends-on): Likewise.
20184         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
20185         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20186         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20187         * modules/posix_spawnp (Depends-on): Likewise.
20188         * modules/pread (Depends-on): Likewise.
20189         * modules/printf-posix (Depends-on): Likewise.
20190         * modules/ptsname (Depends-on): Likewise.
20191         * modules/putenv (Depends-on): Likewise.
20192         * modules/pwrite (Depends-on): Likewise.
20193         * modules/readline (Depends-on): Likewise.
20194         * modules/readlink (Depends-on): Likewise.
20195         * modules/readlinkat (Depends-on): Likewise.
20196         * modules/recv (Depends-on): Likewise.
20197         * modules/recvfrom (Depends-on): Likewise.
20198         * modules/regex (Depends-on): Likewise.
20199         * modules/remove (Depends-on): Likewise.
20200         * modules/rename (Depends-on): Likewise.
20201         * modules/renameat (Depends-on): Likewise.
20202         * modules/rmdir (Depends-on): Likewise.
20203         * modules/round (Depends-on): Likewise.
20204         * modules/roundf (Depends-on): Likewise.
20205         * modules/roundl (Depends-on): Likewise.
20206         * modules/rpmatch (Depends-on): Likewise.
20207         * modules/select (Depends-on): Likewise.
20208         * modules/send (Depends-on): Likewise.
20209         * modules/sendto (Depends-on): Likewise.
20210         * modules/setenv (Depends-on): Likewise.
20211         * modules/setlocale (Depends-on): Likewise.
20212         * modules/setsockopt (Depends-on): Likewise.
20213         * modules/shutdown (Depends-on): Likewise.
20214         * modules/sigaction (Depends-on): Likewise.
20215         * modules/signbit (Depends-on): Likewise.
20216         * modules/sigprocmask (Depends-on): Likewise.
20217         * modules/sinl (Depends-on): Likewise.
20218         * modules/sleep (Depends-on): Likewise.
20219         * modules/snprintf (Depends-on): Likewise.
20220         * modules/snprintf-posix (Depends-on): Likewise.
20221         * modules/socket (Depends-on): Likewise.
20222         * modules/sprintf-posix (Depends-on): Likewise.
20223         * modules/sqrtl (Depends-on): Likewise.
20224         * modules/stat (Depends-on): Likewise.
20225         * modules/strchrnul (Depends-on): Likewise.
20226         * modules/strdup-posix (Depends-on): Likewise.
20227         * modules/strerror (Depends-on): Likewise.
20228         * modules/strerror_r-posix (Depends-on): Likewise.
20229         * modules/strndup (Depends-on): Likewise.
20230         * modules/strnlen (Depends-on): Likewise.
20231         * modules/strptime (Depends-on): Likewise.
20232         * modules/strsep (Depends-on): Likewise.
20233         * modules/strsignal (Depends-on): Likewise.
20234         * modules/strstr-simple (Depends-on): Likewise.
20235         * modules/strtod (Depends-on): Likewise.
20236         * modules/strtoimax (Depends-on): Likewise.
20237         * modules/strtok_r (Depends-on): Likewise.
20238         * modules/strtoumax (Depends-on): Likewise.
20239         * modules/symlink (Depends-on): Likewise.
20240         * modules/symlinkat (Depends-on): Likewise.
20241         * modules/tanl (Depends-on): Likewise.
20242         * modules/tcgetsid (Depends-on): Likewise.
20243         * modules/tmpfile (Depends-on): Likewise.
20244         * modules/trunc (Depends-on): Likewise.
20245         * modules/truncf (Depends-on): Likewise.
20246         * modules/truncl (Depends-on): Likewise.
20247         * modules/uname (Depends-on): Likewise.
20248         * modules/unlink (Depends-on): Likewise.
20249         * modules/unlockpt (Depends-on): Likewise.
20250         * modules/unsetenv (Depends-on): Likewise.
20251         * modules/usleep (Depends-on): Likewise.
20252         * modules/utimensat (Depends-on): Likewise.
20253         * modules/vasprintf (Depends-on): Likewise.
20254         * modules/vdprintf (Depends-on): Likewise.
20255         * modules/vdprintf-posix (Depends-on): Likewise.
20256         * modules/vfprintf-posix (Depends-on): Likewise.
20257         * modules/vprintf-posix (Depends-on): Likewise.
20258         * modules/vsnprintf (Depends-on): Likewise.
20259         * modules/vsnprintf-posix (Depends-on): Likewise.
20260         * modules/vsprintf-posix (Depends-on): Likewise.
20261         * modules/wcrtomb (Depends-on): Likewise.
20262         * modules/wcscasecmp (Depends-on): Likewise.
20263         * modules/wcscspn (Depends-on): Likewise.
20264         * modules/wcsdup (Depends-on): Likewise.
20265         * modules/wcsncasecmp (Depends-on): Likewise.
20266         * modules/wcsnrtombs (Depends-on): Likewise.
20267         * modules/wcspbrk (Depends-on): Likewise.
20268         * modules/wcsrtombs (Depends-on): Likewise.
20269         * modules/wcsspn (Depends-on): Likewise.
20270         * modules/wcsstr (Depends-on): Likewise.
20271         * modules/wcstok (Depends-on): Likewise.
20272         * modules/wcswidth (Depends-on): Likewise.
20273         * modules/wctob (Depends-on): Likewise.
20274         * modules/wctomb (Depends-on): Likewise.
20275         * modules/wctype (Depends-on): Likewise.
20276         * modules/wcwidth (Depends-on): Likewise.
20277         * modules/write (Depends-on): Likewise.
20278
20279 2011-05-03  Bruno Haible  <bruno@clisp.org>
20280
20281         Support for conditional dependencies.
20282         * doc/gnulib.texi (Module description): Document the syntax of
20283         conditional dependencies.
20284         * gnulib-tool: New option --conditional-dependencies.
20285         (func_usage): Document it.
20286         (cond_dependencies): New variable.
20287         (func_get_automake_snippet_conditional,
20288         func_get_automake_snippet_unconditional): New functions, extracted from
20289         func_get_automake_snippet.
20290         (func_get_automake_snippet): Use them.
20291         (sed_first_32_chars): New variable.
20292         (func_module_shellfunc_name): New function.
20293         (func_module_shellvar_name): New function.
20294         (func_module_conditional_name): New function.
20295         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
20296         func_cond_module_condition): New functions.
20297         (func_modules_transitive_closure): Add support for conditional
20298         dependencies.
20299         (func_emit_lib_Makefile_am): For a conditional module, enclose the
20300         conditional automake snippet in an automake conditional.
20301         (func_emit_autoconf_snippets): Emit shell functions that contain the
20302         code for conditional modules.
20303         (func_import, func_create_testdir): Update specification.
20304
20305 2011-05-03  Eric Blake  <eblake@redhat.com>
20306
20307         test-getaddrinfo: report error information
20308         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
20309
20310 2011-05-03  Jim Meyering  <meyering@redhat.com>
20311
20312         bootstrap: avoid build failure when $GZIP is set
20313         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
20314         program name.  If defined at all, it is supposed to list gzip options.
20315         Reported by Alan Curry in http://debbugs.gnu.org/8609
20316
20317 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
20318
20319         readme-release: new module with release instructions
20320         * modules/readme-release: New module.
20321         * top/README-release: New file, from coreutils, grep, diffutils.
20322         * MODULES.html.sh (Support for maintaining and releasing): Add it.
20323
20324 2011-05-02  Eric Blake  <eblake@redhat.com>
20325
20326         fflush: also replace fclose when fixing fflush
20327         * modules/fflush (Depends-on): Add fclose.
20328         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
20329         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
20330         memstreams with no backing fd.
20331         * doc/posix-functions/fclose.texi (fclose): Document the use of
20332         fflush module to fix the bug.
20333         * tests/test-fclose.c (main): Relax test when fclose is used in
20334         isolation.
20335
20336         fclose: add some tests
20337         * modules/fclose-tests: New test module.
20338         * tests/test-fclose.c: New file.
20339         * doc/posix-functions/fclose.texi (fclose): Document the bug.
20340
20341         fclose: reduced dependencies
20342         * modules/fclose (Depends-on): Switch from fflush/fseeko to
20343         simpler lseek.
20344         * lib/fclose.c (rpl_fclose): Likewise.
20345         Reported by Simon Josefsson.
20346
20347         exit: drop remaining clients
20348         * modules/argmatch (Depends-on): Replace exit with stdlib.
20349         * modules/copy-file (Depends-on): Likewise.
20350         * modules/execute (Depends-on): Likewise.
20351         * modules/exitfail (Depends-on): Likewise.
20352         * modules/obstack (Depends-on): Likewise.
20353         * modules/pagealign_alloc (Depends-on): Likewise.
20354         * modules/pipe-filter-gi (Depends-on): Likewise.
20355         * modules/pipe-filter-ii (Depends-on): Likewise.
20356         * modules/savewd (Depends-on): Likewise.
20357         * modules/spawn-pipe (Depends-on): Likewise.
20358         * modules/wait-process (Depends-on): Likewise.
20359         * modules/xsetenv (Depends-on): Likewise.
20360         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
20361         * modules/git-merge-changelog (Depends-on): Likewise.
20362         * modules/long-options (Depends-on): Likewise.
20363         * modules/pt_chown (Depends-on): Likewise.
20364         * modules/sysexits (Depends-on): Likewise.
20365
20366         freading: relax license from LGPLv3+ to LGPLv2+
20367         * modules/freading (License): Relax LGPL version.
20368
20369 2011-05-02  Bruno Haible  <bruno@clisp.org>
20370
20371         fchdir: Remove unused dependencies.
20372         * modules/fchdir (Depends-on): Remove include_next.
20373
20374 2011-05-02  Bruno Haible  <bruno@clisp.org>
20375
20376         gnulib-tool: Refactor.
20377         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
20378         from func_emit_autoconf_snippets.
20379         (func_emit_autoconf_snippets): Use it.
20380
20381 2011-05-02  Simon Josefsson  <simon@josefsson.org>
20382
20383         * NEWS: Document removal of 'exit'.
20384         * modules/exit: Remove file.
20385
20386 2011-05-01  Bruno Haible  <bruno@clisp.org>
20387
20388         Update DEPENDENCIES.
20389         * DEPENDENCIES (gettext): Recommend the newest release.
20390         Reported by Simon Josefsson.
20391
20392 2011-05-01  Bruno Haible  <bruno@clisp.org>
20393
20394         gnulib-tool: Reduce code duplication.
20395         * gnulib-tool (func_emit_autoconf_snippets): New function.
20396         (func_import, func_create_testdir): Use it.
20397
20398 2011-04-30  Eric Blake  <eblake@redhat.com>
20399
20400         fclose: don't fail on non-seekable input stream
20401         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
20402         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
20403         since fflush is allowed to fail in that case.
20404
20405 2011-04-30  Bruno Haible  <bruno@clisp.org>
20406
20407         dup3: cleanup
20408         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
20409
20410 2011-04-30  Bruno Haible  <bruno@clisp.org>
20411
20412         netdb: Make it work in C++ mode.
20413         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
20414         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
20415         module.
20416         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
20417         gl_MODULE_INDICATOR_FOR_TESTS.
20418         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
20419         * modules/netdb-c++-tests: New file.
20420         * tests/test-netdb-c++.cc: New file.
20421
20422 2011-04-30  Bruno Haible  <bruno@clisp.org>
20423
20424         New modules 'vfscanf', 'vscanf'.
20425         * modules/vfscanf: New file.
20426         * modules/vscanf: New file.
20427         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
20428         here.
20429         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
20430         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
20431
20432 2011-04-30  Bruno Haible  <bruno@clisp.org>
20433
20434         passfd: Add comments.
20435         * lib/passfd.c: Add comments about platforms.
20436
20437 2011-04-30  Bruno Haible  <bruno@clisp.org>
20438
20439         sys_uio: Make <sys/uio.h> self-contained.
20440         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
20441         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
20442
20443 2011-04-30  Bruno Haible  <bruno@clisp.org>
20444
20445         sys_socket: Ensure 'struct iovec' definition.
20446         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
20447         <sys/socket.h>.
20448         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
20449
20450 2011-04-30  Bruno Haible  <bruno@clisp.org>
20451
20452         sys_uio: Protect definition of 'struct iovec'.
20453         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
20454         it as a C struct.
20455
20456 2011-04-30  Bruno Haible  <bruno@clisp.org>
20457
20458         manywarnings: fix indentation
20459         * m4/manywarnings.m4: Indent by 2 spaces consistently.
20460
20461 2011-04-30  Pádraig Brady <P@draigBrady.com>
20462
20463         manywarnings: add -Wno-missing-field-initializers if needed.
20464         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
20465         option if it's needed to allow initialization with { 0, }
20466
20467 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
20468
20469         announce-gen: cosmetic improvement
20470         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
20471
20472 2011-04-29  Jim Meyering  <meyering@redhat.com>
20473
20474         vc-list-files: indent with spaces, not TABs
20475         * build-aux/vc-list-files: Convert leading TABs to spaces,
20476         to match the style of most other files in gnulib.
20477
20478         announce-gen: indent with spaces, not TABs
20479         * build-aux/announce-gen: Convert all TABs to spaces, to match
20480         the style of most other files in gnulib.
20481
20482 2011-04-29  Eric Blake  <eblake@redhat.com>
20483
20484         quotearg: avoid uninitialized variable use
20485         * lib/quotearg.c (quoting_options_from_style): Initialize
20486         remaining fields, and ensure that custom styles are only used via
20487         quoting_options rather than quoting_style.
20488
20489 2011-04-29  Jim Meyering  <meyering@redhat.com>
20490
20491         maint.mk: remove unused VC-tag variable
20492         * top/maint.mk (VC-tag): Remove unused variable.
20493
20494 2011-04-29  Bruno Haible  <bruno@clisp.org>
20495
20496         netdb: fix gai_strerror replacements
20497         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
20498         * modules/netdb: Substitute it.
20499
20500 2011-04-29  Jim Meyering  <meyering@redhat.com>
20501
20502         test-getcwd.c: avoid new set-but-not-used warning
20503         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
20504         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
20505         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
20506         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
20507
20508         test-hash.c: avoid a new shadowing warning
20509         * tests/test-hash.c (main): Don't shadow "dup".
20510
20511 2011-04-28  Eric Blake  <eblake@redhat.com>
20512
20513         getaddrinfo: fix gai_strerror signature
20514         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
20515         and work around mingw with UNICODE defined.
20516         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
20517         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
20518         * modules/netdb (Makefile.am): Substitute it.
20519         * lib/netdb.in.h (gai_strerror): Declare replacement.
20520         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
20521         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
20522         the fix.
20523
20524         getsockopt: avoid compiler warning
20525         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
20526         Reported by Matthias Bolte.
20527
20528         tests: drop unused link dependency
20529         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
20530         * modules/dirent-safer-tests (Makefile.am): Likewise.
20531         * modules/fdopendir-tests (Makefile.am): Likewise.
20532         * modules/mkfifoat-tests (Makefile.am): Likewise.
20533         * modules/openat-safer-tests (Makefile.am): Likewise.
20534         * modules/openat-tests (Makefile.am): Likewise.
20535         * modules/readlinkat-tests (Makefile.am): Likewise.
20536         * modules/symlinkat-tests (Makefile.am): Likewise.
20537         * modules/linkat-tests (Makefile.am): Likewise.
20538         (Depends-on): Switch to filenamecat-lgpl.
20539         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
20540         LIBINTL.
20541         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
20542         * tests/test-linkat.c (main): Don't require xalloc.
20543
20544         hash, mgetgroups: drop xalloc dependency
20545         * lib/hash.c (includes): Adjust includes.
20546         * lib/mgetgroups.c (includes): Likewise.
20547         (xgetgroups): Move...
20548         * lib/xgetgroups.c: ...to new file.
20549         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
20550         * modules/xgetgroups: New file, split from...
20551         * modules/mgetgroups: ...here.
20552         (Depends-on): Add xalloc-oversized.
20553         * modules/hash (Depends-on): Likewise.
20554         * modules/hash-tests (Depends-on): Drop xalloc.
20555         (test_hash_LDADD): Drop unused library.
20556         * tests/test-hash.c (main): Break xalloc dependency.
20557         (includes): Drop unused include.
20558
20559         xalloc-oversized: new module
20560         * modules/xalloc-oversized: New module.
20561         * modules/xalloc (Depends-on): Add it.
20562         * lib/xalloc.h (xalloc_oversized): Move...
20563         * lib/xalloc-oversized.h: ...into new file.
20564
20565         utimecmp: drop dependency on xmalloc
20566         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
20567         due to memory pressure.
20568         * modules/utimecmp (Depends-on): Drop xalloc.
20569
20570 2011-04-27  Eric Blake  <eblake@redhat.com>
20571
20572         getcwd: fix mingw bugs
20573         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
20574         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
20575         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
20576
20577 2011-04-27  Bruno Haible  <bruno@clisp.org>
20578
20579         mkstemps: Ensure declaration on MacOS X 10.5.
20580         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
20581         * doc/glibc-functions/mkstemps.texi: Document header file problem on
20582         MacOS X.
20583
20584 2011-04-27  Bruno Haible  <bruno@clisp.org>
20585
20586         mkstemp: More documentation.
20587         * doc/posix-functions/mkstemp.texi: Document header file problem on
20588         MacOS X.
20589
20590 2011-04-27  Bruno Haible  <bruno@clisp.org>
20591
20592         mkstemp: Tweak configure message when cross-compiling.
20593         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
20594         result as a guess.
20595
20596 2011-04-27  Bruno Haible  <bruno@clisp.org>
20597
20598         clean-temp: Clarify what it does.
20599         * lib/clean-temp.h: Add more comments.
20600         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
20601         module.
20602         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
20603         * doc/glibc-functions/mkstemps.texi: Likewise.
20604         * doc/glibc-functions/mkostemps.texi: Likewise.
20605
20606 2011-04-27  Eric Blake  <eblake@redhat.com>
20607
20608         fchdir: avoid extra chdir and fix test
20609         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
20610         getcwd-lgpl.
20611         * lib/fchdir.c (get_name): Any absolute name will do; it does not
20612         have to be canonical.
20613         (canonicalize_file_name): Drop unused macro.
20614         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
20615
20616         filenamecat-lgpl: fix licence
20617         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
20618         when it was first created.
20619
20620         linkat, renameat: add missing dependency
20621         * modules/linkat (Depends-on): Require getcwd-lgpl.
20622         * modules/renameat (Depends-on): Likewise.
20623
20624         tests: reduce dependencies
20625         * tests/test-linkat.c (main): Use lighter-weight getcwd.
20626         * tests/test-renameat.c (main): Likewise.
20627         * modules/linkat-tests (Depends-on): Relax dependency.
20628         * modules/renameat-tests (Depends-on): Likewise.
20629         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
20630         dependency explicit.
20631
20632         save-cwd: reduce default dependency
20633         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
20634         * lib/save-cwd.c: Update comments.
20635         * NEWS: Document the semantic change.
20636
20637         getcwd: enhance tests
20638         * tests/test-getcwd-lgpl.c: New file, taken from...
20639         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
20640         repeat long path stress tests from m4 probe.
20641         * modules/getcwd-lgpl-tests: New module.
20642         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
20643         * m4/getcwd-abort-bug.m4: Update comment.
20644         * m4/getcwd-path-max.m4: Likewise.
20645
20646         getcwd-lgpl: new module
20647         * modules/getcwd-lgpl: New module.
20648         * lib/getcwd-lgpl.c: New file.
20649         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20650         * MODULES.html.sh (lacking POSIX:2008): Likewise.
20651         * modules/getcwd (configure.ac): Set C witness.
20652         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
20653
20654         getcwd: tweak comments
20655         * m4/getcwd-abort-bug.m4: Fix comments.
20656         * m4/getcwd-path-max.m4: Likewise.
20657         * m4/getcwd.m4: Likewise.
20658
20659 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20660         and Eric Blake  <eblake@redhat.com>
20661
20662         mkstemp: replace if system version uses wrong permissions
20663         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
20664         read/write mode bits set in file created by mkstemp.
20665         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
20666
20667 2011-04-27  Eric Blake  <eblake@redhat.com>
20668
20669         passfd: avoid compiler warning
20670         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
20671         Reported by Laine Stump.
20672
20673 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
20674
20675         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
20676         required by the NetBSD (and perhaps other 4.4BSD derived) join.
20677
20678 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20679         and Eric Blake  <eblake@redhat.com>
20680
20681         mkstemp: mention clean-temp module
20682         * lib/mkstemp.c: Add comment.
20683         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
20684
20685 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
20686
20687         inttypes: also provide default values for 32-bit tests
20688         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
20689         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
20690
20691 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
20692
20693         strtoumax: remove dependency on strtoimax
20694         This is like the strtoull change of yesterday.
20695         * modules/strtoumax (Files): Add lib/strtoimax.c.
20696         (Depends-on): Remove strtoimax and add verify.
20697
20698         inttypes-incomplete: new module
20699         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
20700         all but the PRI* and SCN* parts of gl_INTTYPES_H.
20701         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
20702         of gl_INTTYPES_H.
20703         (gl_INTTYPES_H): Rewrite in terms of these new macros.
20704         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
20705         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
20706         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
20707         * modules/strtoumax, modules/xstrtol (Depends-on):
20708         Depend on inttypes-incomplete, not inttypes.
20709         * modules/inttypes-incomplete: New module, containing the contents
20710         of the old modules/inttypes module, except that the Files: section
20711         omits m4/inttypes-pri.m4, and the configure.ac section invokes
20712         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
20713         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
20714         (Depends-on): Depend only on inttypes-incomplete.
20715         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
20716
20717         inttypes: omit now-redundant strtoimax and strtoumax work
20718         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
20719         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
20720
20721         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
20722         This supports apps that need pointers to strtoimax and strtoumax,
20723         and ports to HP-UX 11.00 64.bit, which has macros that expand to
20724         nonexistent functions.  See
20725         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
20726         et seq.
20727         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
20728         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
20729         a macro.
20730         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20731
20732 2011-04-25  Simon Josefsson  <simon@josefsson.org>
20733
20734         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
20735
20736 2011-04-25  Bruno Haible  <bruno@clisp.org>
20737
20738         strtol, strtoul: Mark modules as obsolete.
20739         * modules/strtol (Status, Notice): New sections.
20740         * modules/strtoul (Status, Notice): New sections.
20741
20742 2011-04-25  Bruno Haible  <bruno@clisp.org>
20743
20744         strtod: Remove check for strtod, unless supporting old platforms.
20745         * modules/strtod-obsolete: New file.
20746         * m4/strtod-obsolete.m4: New file.
20747         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
20748         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
20749         * modules/strtod (Depends-on): Add strtod-obsolete.
20750         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
20751
20752 2011-04-25  Bruno Haible  <bruno@clisp.org>
20753
20754         strcase: Make module obsolete.
20755         * modules/strcase (Status, Notice): New sections.
20756
20757 2011-04-25  Bruno Haible  <bruno@clisp.org>
20758
20759         dup2: Remove check for dup2, unless supporting old obsolete platforms.
20760         * modules/dup2-obsolete: New file.
20761         * m4/dup2-obsolete.m4: New file.
20762         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
20763         gl_FUNC_DUP2_OBSOLETE is not also defined.
20764         * modules/dup2 (Depends-on): Add dup2-obsolete.
20765         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
20766
20767 2011-04-25  Bruno Haible  <bruno@clisp.org>
20768
20769         strnlen: Avoid memchr related link error on old obsolete platforms.
20770         * modules/memchr-obsolete: New file.
20771         * m4/memchr-obsolete.m4: New file.
20772         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
20773         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
20774         * modules/memchr (Depends-on): Add memchr-obsolete.
20775         * modules/strnlen (Depends-on): Likewise.
20776         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
20777
20778 2011-04-25  Jim Meyering  <meyering@redhat.com>
20779
20780         maint.mk: makefile_at_at_check extend and clean up
20781         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
20782         in addition to */Makefile.am.
20783         Exempt legitimate uses of @VAR@ notation, e.g.,
20784         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
20785         Remove obsolete coreutils-specific comment.
20786         Prompted by discussion here:
20787         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
20788
20789 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
20790
20791         strtoul: remove dependency on strtol
20792         This is so that 'configure' need not check for strtol merely because
20793         the application needs strtoul.
20794         * modules/strtoul (Files): Add lib/strtol.c.
20795         (Depends-on): Remove strtol.
20796
20797         strtoull: remove dependency on strtoul
20798         This is like the strtoll change.
20799         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
20800         (Depends-on): Remove strtoul.
20801
20802         strtoll: remove dependency on strtol
20803         This is so that 'configure' need not check for strtol merely because
20804         the application needs strtoll.
20805         * modules/strtoll (Files): Add lib/strtol.c.
20806         (Depends-on): Remove strtol.
20807
20808 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20809
20810         inttypes: Move some configure check to module 'imaxdiv'.
20811         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
20812         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
20813         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
20814
20815 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20816
20817         inttypes: Move some configure check to module 'imaxabs'.
20818         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
20819         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
20820         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
20821
20822 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20823
20824         inttypes: Remove configure tests that are not needed since 2009-12-31.
20825         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
20826         gl_cv_header_working_inttypes_h.
20827
20828 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20829
20830         * modules/strnlen (Depends-on): Remove memchr.
20831         The strnlen implementation doesn't need the memchr module's fixes; see
20832         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
20833
20834         strtol: remove dependency on wchar
20835         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
20836         * modules/strtol (Depends-on): Remove wchar.
20837
20838 2011-04-21  Eric Blake  <eblake@redhat.com>
20839
20840         passfd: fix test regression on Linux
20841         * modules/passfd-tests (configure.ac): Correct socketpair check.
20842
20843         passfd: speed up configure and drop unused code
20844         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
20845         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
20846         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
20847         Instead of probing at configure for unix_scm_rights_bsd44_way,
20848         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
20849         check to a struct member probe.
20850         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
20851         (sendfd, recvfd): Update preprocessor checks.
20852         * modules/passfd (Files): Reflect rename, and drop unused file.
20853         (Depends-on): Drop unused dependency.
20854
20855         passfd: allow compilation on mingw
20856         * modules/sys_socket (Depends-on): Add sys_uio.
20857         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
20858         iovec and a minimal struct msghdr.
20859         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
20860         * tests/test-sys_socket.c (main): Enhance test.
20861         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
20862         guaranteed to provide what we need.
20863         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
20864         * modules/passfd-tests (Depends-on): Add sys_wait.
20865         * tests/test-passfd.c (main): Skip test on mingw, for now.
20866         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
20867         partial 'struct msghdr' implementation.
20868
20869         sys_uio: new module
20870         * modules/sys_uio: New module.
20871         * modules/sys_uio-tests: Likewise.
20872         * lib/sys_uio.in.h: New file.
20873         * m4/sys_uio_h.m4: Likewise.
20874         * tests/test-sys_uio.c: Likewise.
20875         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
20876         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
20877
20878 2011-04-20  Jim Meyering  <meyering@redhat.com>
20879
20880         useless-if-before-free: avoid false-positive
20881         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
20882         disjunct so that it too requires a terminating ";".  Without that,
20883         this script would identify as useless one statement from gcc that
20884         was not:
20885           if (aligned_ptr)
20886             free (((void **) aligned_ptr) [-1]);
20887
20888 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
20889
20890         doc: update users.txt.
20891         * users.txt: Add barcode.
20892
20893 2011-04-19  Bruno Haible  <bruno@clisp.org>
20894
20895         ioctl: Remove link dependency on native Windows.
20896         * lib/fd-hook.h: Renamed from lib/close-hook.h.
20897         (gl_close_fn, gl_ioctl_fn): New types.
20898         (struct fd_hook): Renamed from struct close_hook. Change type of
20899         private_close_fn field. Add private_ioctl_fn field.
20900         (close_hook_fn): Add parameter for primary close method.
20901         (execute_close_hooks, execute_all_close_hooks): Likewise.
20902         (ioctl_hook_fn): New type.
20903         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
20904         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20905         argument.
20906         (unregister_fd_hook): Renamed from unregister_close_hook.
20907         * lib/fd-hook.c: Renamed from lib/close-hook.c.
20908         Don't include <unistd.h>.
20909         (close): Remove undef.
20910         (anchor): Update.
20911         (execute_close_hooks): Add argument for primary close method.
20912         (execute_all_close_hooks): Likewise.
20913         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
20914         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20915         argument. Allow each argument to be NULL.
20916         (unregister_fd_hook): Renamed from unregister_close_hook.
20917         * lib/close.c (rpl_close): Pass 'close' function pointer to
20918         execute_all_close_hooks.
20919         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
20920         (primary_ioctl): New function.
20921         (ioctl): Don't call ioctlsocket here. Instead, call
20922         execute_all_ioctl_hooks.
20923         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
20924         close method.
20925         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
20926         (fd_sockets_hook): Renamed from close_sockets_hook.
20927         (gl_sockets_startup, gl_sockets_cleanup): Update.
20928         * modules/fd-hook: Renamed from modules/close-hook. Update.
20929         * modules/close (Depends-on): Add fd-hook, remove close-hook.
20930         * modules/sockets (Depends-on): Likewise.
20931         * modules/ioctl (Depends-on): Add fd-hook.
20932         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
20933         GNULIB_SOCKET.
20934
20935 2011-04-19  Bruno Haible  <bruno@clisp.org>
20936
20937         Move the support of O_NONBLOCK in open() to the 'open' module.
20938         * modules/nonblocking (Depends-on): Remove 'open'.
20939         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
20940         gl_cv_have_open_O_NONBLOCK.
20941         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
20942         O_NONBLOCK support.
20943         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
20944
20945 2011-04-17  Bruno Haible  <bruno@clisp.org>
20946
20947         pipe2: Simplify code.
20948         * lib/pipe2.c (pipe2): Reduce code duplication.
20949
20950 2011-04-17  Bruno Haible  <bruno@clisp.org>
20951
20952         nonblocking: Add comment.
20953         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
20954
20955 2011-04-17  Bruno Haible  <bruno@clisp.org>
20956
20957         nonblocking: Add tests for sockets.
20958         * tests/test-nonblocking-socket.sh: New file.
20959         * tests/test-nonblocking-socket-main.c: New file.
20960         * tests/test-nonblocking-socket-child.c: New file.
20961         * tests/test-nonblocking-socket.h: New file.
20962         * tests/socket-server.h: New file.
20963         * tests/socket-client.h: New file.
20964         * modules/nonblocking-socket-tests: New file.
20965         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
20966
20967 2011-04-17  Bruno Haible  <bruno@clisp.org>
20968
20969         nonblocking: Add tests for pipes.
20970         * tests/test-nonblocking-pipe.sh: New file.
20971         * tests/test-nonblocking-pipe-main.c: New file.
20972         * tests/test-nonblocking-pipe-child.c: New file.
20973         * tests/test-nonblocking-pipe.h: New file.
20974         * tests/test-nonblocking-writer.h: New file.
20975         * tests/test-nonblocking-reader.h: New file.
20976         * tests/test-nonblocking-misc.h: New file.
20977         * modules/nonblocking-pipe-tests: New file.
20978         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
20979
20980 2011-04-16  Bruno Haible  <bruno@clisp.org>
20981
20982         gettext: Clarify the needed programmer actions.
20983         * modules/gettext (Notice): New field.
20984         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
20985
20986 2011-04-16  Bruno Haible  <bruno@clisp.org>
20987
20988         strchrnul: Tweak last commit.
20989         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
20990         bug.
20991         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
20992         as in _GL_FUNCDECL_SYS.
20993         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
20994         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
20995
20996 2011-04-15  Eric Blake  <eblake@redhat.com>
20997
20998         strchrnul: work around cygwin bug
20999         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
21000         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
21001         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
21002         * modules/string (Makefile.am): Substitute it.
21003         * lib/string.in.h (strchrnul): Use it.
21004
21005 2011-04-15  Bruno Haible  <bruno@clisp.org>
21006
21007         Don't require lib/stdio-write.c when only module 'stdio' is used.
21008         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
21009         invocation.
21010         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
21011
21012 2011-04-14  Bruno Haible  <bruno@clisp.org>
21013
21014         Support non-blocking pipe I/O in read() on native Windows.
21015         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
21016         (read): New declaration.
21017         * lib/read.c: New file.
21018         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
21019         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
21020         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
21021         vscanf): New declarations.
21022         * lib/stdio-read.c: New file.
21023         * m4/read.m4: New file.
21024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
21025         REPLACE_READ.
21026         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
21027         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21028         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
21029         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
21030         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
21031         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21032         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21033         * modules/read: New file.
21034         * modules/nonblocking (Files): Add lib/stdio-read.c.
21035         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
21036         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
21037         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21038         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21039         * modules/pread (Depends-on): Add read.
21040         * modules/safe-read (Depends-on): Likewise.
21041         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
21042         gets, scanf, vfscanf, vscanf): Verify signatures.
21043         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
21044         problem with non-blocking pipes.
21045         * doc/posix-functions/fgetc.texi: Likewise.
21046         * doc/posix-functions/fgets.texi: Likewise.
21047         * doc/posix-functions/fread.texi: Likewise.
21048         * doc/posix-functions/fscanf.texi: Likewise.
21049         * doc/posix-functions/getc.texi: Likewise.
21050         * doc/posix-functions/getchar.texi: Likewise.
21051         * doc/posix-functions/gets.texi: Likewise.
21052         * doc/posix-functions/scanf.texi: Likewise.
21053         * doc/posix-functions/vfscanf.texi: Likewise.
21054         * doc/posix-functions/vscanf.texi: Likewise.
21055
21056 2011-04-14  Bruno Haible  <bruno@clisp.org>
21057
21058         Support non-blocking pipe I/O in write() on native Windows.
21059         * lib/write.c (rpl_write): Split a write request that failed merely
21060         because the byte count was larger than the pipe buffer's size.
21061         * doc/posix-functions/write.texi: Mention the problem with large byte
21062         counts.
21063
21064 2011-04-14  Bruno Haible  <bruno@clisp.org>
21065
21066         wchar: Ensure that wchar_t gets defined on uClibc.
21067         * lib/wchar.in.h: On uClibc, include <stddef.h>.
21068         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
21069
21070 2011-04-13  Bruno Haible  <bruno@clisp.org>
21071
21072         safe-write, full-read: Avoid unnecessary compilation units.
21073         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
21074         (Depends-on): Remove safe-read. Add ssize_t.
21075         * modules/full-read (Files): Add lib/full-write.c.
21076         (Depends-on): Add full-write.
21077
21078 2011-04-13  Bruno Haible  <bruno@clisp.org>
21079
21080         Support non-blocking pipe I/O and SIGPIPE in pwrite().
21081         * modules/pwrite (Depends-on): Add 'write'.
21082
21083 2011-04-13  Bruno Haible  <bruno@clisp.org>
21084
21085         Support non-blocking pipe I/O in write() on native Windows.
21086         * lib/unistd.in.h (write): Enable replacement also if
21087         GNULIB_UNISTD_H_NONBLOCKING is 1.
21088         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
21089         (rpl_write): When failing to write on a non-blocking pipe, change
21090         errno from ENOSPC to EAGAIN.
21091         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
21092         putchar, puts, vfprintf, vprintf): Enable replacement also if
21093         GNULIB_STDIO_H_NONBLOCKING is 1.
21094         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
21095         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
21096         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
21097         CALL_WITH_SIGPIPE_EMULATION.
21098         (CALL_WITH_SIGPIPE_EMULATION): Use them.
21099         * m4/nonblocking.m4: New file.
21100         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
21101         for non-blocking I/O support.
21102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21103         GNULIB_UNISTD_H_NONBLOCKING.
21104         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
21105         required for non-blocking I/O support.
21106         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
21107         * modules/nonblocking (Files): Add m4/nonblocking.m4,
21108         lib/stdio-write.c, m4/asm-underscore.m4.
21109         (Depends-on): Add stdio, unistd.
21110         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
21111         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
21112         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
21113         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
21114         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
21115         problem with non-blocking pipes.
21116         * doc/posix-functions/fputc.texi: Likewise.
21117         * doc/posix-functions/fputs.texi: Likewise.
21118         * doc/posix-functions/fwrite.texi: Likewise.
21119         * doc/posix-functions/printf.texi: Likewise.
21120         * doc/posix-functions/putc.texi: Likewise.
21121         * doc/posix-functions/putchar.texi: Likewise.
21122         * doc/posix-functions/puts.texi: Likewise.
21123         * doc/posix-functions/vfprintf.texi: Likewise.
21124         * doc/posix-functions/vprintf.texi: Likewise.
21125         * doc/posix-functions/write.texi: Likewise.
21126
21127 2011-04-10  Jim Meyering  <meyering@redhat.com>
21128
21129         maint.mk: prohibit doubled words
21130         Detect them also when they're separated by a newline.
21131         There are 3 ways to customize it:
21132           - disable the test on a per file basis, as usual with rules using
21133             $(VC_LIST_EXCEPT)
21134           - replace the default doubled-word-selecting regexp (affects all files)
21135           - ignore a particular file-vs-doubled-word match
21136         I nearly used that last one to ignore the "is is" match in
21137         coreutils' NEWS file, since the text was "ls -is is ..."
21138         To do that, I would have added this line to cfg.mk:
21139           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
21140         but it would have ignored any "is is" match in NEWS.
21141         Low probability, but still...
21142         Instead, I changed the text, slightly:
21143           -  ls -is is now consistent with ls -lis in ignoring values returned
21144           +  "ls -is" is now consistent with ls -lis in ignoring values returned
21145         * top/maint.mk (prohibit_double_word_RE_): Provide default.
21146         (prohibit_doubled_word_): Define.
21147         (sc_prohibit_doubled_word): New rule.
21148         (sc_prohibit_the_the): Remove.  Subsumed by the above.
21149
21150 2011-04-10  Jim Meyering  <meyering@redhat.com>
21151
21152         maint: fix doubled-word typo in comment
21153         * m4/gethostname.m4: s/is is/it is/
21154         * m4/getdomainname.m4: Likewise.
21155
21156 2011-04-10  Jim Meyering  <meyering@redhat.com>
21157
21158         maint: remove doubled word: s/it it/it/
21159         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
21160
21161 2011-04-10  Jim Meyering  <meyering@redhat.com>
21162
21163         maint.mk: remove useless semicolon and backslash
21164         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
21165         semicolon and backslash.
21166
21167 2011-04-10  Bruno Haible  <bruno@clisp.org>
21168
21169         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
21170         * modules/stdint-tests (Depends-on): Add wchar.
21171
21172 2011-04-10  Jim Meyering  <meyering@redhat.com>
21173
21174         maint: remove doubled words in comments, e.g., s/a a/a/
21175         * lib/strptime.c (day_of_the_week): s/the the/the/
21176         * tests/test-chown.h (test_chown): s/a a/a/
21177
21178         test-chown.h: correct a cast
21179         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
21180         when the destination is a stat.st_gid.
21181
21182 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
21183
21184         getaddrinfo: Fix test for sa_len member.
21185         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
21186         include <sys/types.h> before <sys/socket.h>.
21187
21188 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21189
21190         maint: change "can not" to "cannot"
21191         * doc/posix-functions/iconv.texi (iconv): This one crossed line
21192         boundaries.
21193
21194 2011-04-09  Jim Meyering  <meyering@redhat.com>
21195
21196         maint: change "a a" to "a"
21197         * tests/test-lchown.h (test_lchown): s/a a/a/
21198
21199         maint.mk: prohibit \<the the\>
21200         * top/maint.mk (sc_prohibit_the_the): New rule.
21201
21202         maint: fix "the the" in comment
21203         * lib/count-one-bits.h: s/the the/the/
21204
21205         maint: change "can not" to "cannot"
21206         But do not change the occurrences in maintain.texi or in
21207         build-aux/po/Makefile.in.in, which I presume comes from gettext.
21208         * doc/gnulib-tool.texi: s/can not/cannot/
21209         * doc/posix-functions/accept.texi (accept): Likewise.
21210         * doc/posix-functions/socket.texi (socket): Likewise.
21211         * lib/mbrtowc.c: Likewise.
21212
21213         maint.mk: prohibit use of "can not"
21214         * top/maint.mk (sc_prohibit_can_not): New rule.
21215         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
21216
21217 2011-04-09  Bruno Haible  <bruno@clisp.org>
21218
21219         careadlinkat: Guard against misuse of careadlinkatcwd.
21220         * lib/careadlinkat.c: Include <stdlib.h>.
21221         (careadlinkatcwd): Check that the fd argument is as expected.
21222
21223 2011-04-09  Bruno Haible  <bruno@clisp.org>
21224
21225         careadlinkat: Use common coding style.
21226         * lib/careadlinkat.c: Move gnulib includes after system includes.
21227
21228 2011-04-09  Bruno Haible  <bruno@clisp.org>
21229
21230         careadlinkat: Clarify specification.
21231         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
21232         (careadlinkatcwd): Add comment.
21233         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
21234
21235 2011-04-09  Bruno Haible  <bruno@clisp.org>
21236
21237         areadlinkat: Avoid link error on many platforms.
21238         * modules/areadlinkat (Depends-on): Add areadlink.
21239
21240 2011-04-09  Bruno Haible  <bruno@clisp.org>
21241
21242         allocator, careadlinkat: Fix double-inclusion guard.
21243         * lib/allocator.h: Fix double-inclusion guard.
21244         * lib/careadlinkat.h: Likewise.
21245
21246 2011-04-09  Bruno Haible  <bruno@clisp.org>
21247
21248         relocatable-prog-wrapper: Update after module 'areadlink' changed.
21249         * lib/relocwrapper.c: Update dependencies hierarchy.
21250         * build-aux/install-reloc: Update list of files to be compiled.
21251         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
21252         lib/allocator.[hc].
21253
21254 2011-04-08  Eric Blake  <eblake@redhat.com>
21255
21256         strftime: silence gnulib-tool warning
21257         * modules/strftime-tests (Depends-on): Drop automatic dependency.
21258
21259 2011-04-08  Bruno Haible  <bruno@clisp.org>
21260
21261         verify: Fix syntax error with GCC 4.6 in C++ mode.
21262         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
21263         (HAVE_STATIC_ASSERT): New macro.
21264         (verify_true, verify): Use 'static_assert' if it is supported and
21265         '_Static_assert' is not supported.
21266
21267 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
21268
21269         allocator: New module.
21270         * modules/allocator, lib/allocator.c: New files.
21271         * lib/allocator.h (stdlib_allocator): New decl.
21272         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
21273         Remove.  Do not include <stdlib.h>.
21274         (careadlinkat): Use stdlib_allocator instead of rolling our own.
21275         * modules/careadlinkat (Files): Remove lib/allocator.h.
21276         (Depends-on): Add allocator.
21277
21278         stdlib: let modules use system malloc, realloc
21279         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
21280         if !_GL_USE_STDLIB_ALLOC.
21281         (malloc, realloc): Limit this change to a smaller scope.
21282
21283         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
21284         (malloc, realloc): Don't #undef; no longer needed.
21285         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21286         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21287         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21288         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21289         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21290         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21291         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21292         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21293
21294         careadlinkat: rename members to avoid problem
21295         * lib/allocator.h (struct allocator): Rename members from
21296         malloc/realloc to allocate/reallocate, to avoid problems if malloc
21297         and realloc are #define'd.  Reported by Eric Blake in
21298         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
21299         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
21300
21301 2011-04-08  Eric Blake  <eblake@redhat.com>
21302
21303         nonblocking: reduce dependency
21304         * tests/test-nonblocking.c: Only test sockets when in use.
21305         * modules/nonblocking-tests (Depends-on): Drop socket.
21306         (Makefile.am): Link even if sockets are not present.
21307         * modules/pipe2-tests (Makefile.am): Likewise.
21308         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
21309
21310         pipe2: fix O_NONBLOCK support on mingw
21311         * modules/pipe2 (Depends-on): Add nonblocking.
21312         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
21313         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
21314         * tests/test-nonblocking.c (main): Likewise.
21315         * modules/pipe2-tests (Makefile.am): Avoid link failure.
21316
21317         fcntl-h: fix O_ACCMODE on cygwin
21318         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
21319         * lib/fcntl.in.h (O_ACCMODE): Fix it.
21320
21321         pipe-filter: drop O_NONBLOCK workarounds
21322         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
21323         * modules/pipe-filter-ii (Depends-on): Likewise.
21324         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
21325
21326         nonblocking: provide O_NONBLOCK for mingw
21327         * modules/nonblocking (Depends-on): Add open.
21328         (configure.ac): Set new witness macro.
21329         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
21330         * modules/fcntl-h (Makefile.am): Substitute it.
21331         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
21332         nonblocking module is in use.
21333         * lib/nonblocking.c: Adjust portability test.
21334         * lib/open.c (open): Don't let native open see gnulib flag.
21335         * tests/test-fcntl-h.c (main): Enhance test.
21336         * tests/test-open.h (test_open): Likewise.
21337         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
21338
21339         careadlinkat: fix compilation error on mingw
21340         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
21341         within struct allocator.
21342
21343 2011-04-06  Eric Blake  <eblake@redhat.com>
21344
21345         binary-io: relicense under LGPLv2+
21346         * modules/binary-io (License): Relax to LGPLv2+.
21347         Requested for libvirt, and required by pipe2.
21348
21349 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
21350
21351         verify: use _Static_assert if available
21352         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
21353         (verify_true, verify): Use it if available.  This generates better
21354         diagnostics with GCC 4.6.0 and later.
21355
21356 2011-04-05  Bruno Haible  <bruno@clisp.org>
21357
21358         Remove leftover generated .h files after config.status changed.
21359
21360         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
21361         GL_GENERATE_ALLOCA_H.
21362         * modules/alloca-opt (Makefile.am): Remove alloca.h if
21363         GL_GENERATE_ALLOCA_H evaluates to false.
21364
21365         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
21366         GL_GENERATE_ARGZ_H.
21367         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
21368         evaluates to false.
21369
21370         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
21371         GL_GENERATE_BYTESWAP_H.
21372         * modules/byteswap (Makefile.am): Remove byteswap.h if
21373         GL_GENERATE_BYTESWAP_H evaluates to false.
21374
21375         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
21376         GL_GENERATE_ERRNO_H.
21377         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
21378         evaluates to false.
21379
21380         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
21381         GL_GENERATE_FLOAT_H.
21382         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
21383         evaluates to false.
21384
21385         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
21386         GL_GENERATE_FNMATCH_H.
21387         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
21388         GL_GENERATE_FNMATCH_H evaluates to false.
21389
21390         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
21391         GL_GENERATE_GLOB_H.
21392         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
21393         evaluates to false.
21394
21395         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
21396         automake conditional GL_GENERATE_ICONV_H.
21397         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
21398         evaluates to false.
21399
21400         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
21401         GL_GENERATE_NETINET_IN_H.
21402         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
21403         GL_GENERATE_NETINET_IN_H evaluates to false.
21404
21405         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
21406         conditional GL_GENERATE_PTHREAD_H.
21407         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
21408         * modules/pthread (Makefile.am): Remove pthread.h if
21409         GL_GENERATE_PTHREAD_H evaluates to false.
21410
21411         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
21412         GL_GENERATE_SCHED_H.
21413         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
21414         evaluates to false.
21415
21416         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
21417         conditional GL_GENERATE_SELINUX_CONTEXT_H.
21418         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
21419         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
21420
21421         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
21422         GL_GENERATE_STDARG_H.
21423         * modules/stdarg (Makefile.am): Remove stdarg.h if
21424         GL_GENERATE_STDARG_H evaluates to false.
21425
21426         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
21427         GL_GENERATE_STDBOOL_H.
21428         * modules/stdbool (Makefile.am): Remove stdbool.h if
21429         GL_GENERATE_STDBOOL_H evaluates to false.
21430
21431         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
21432         conditional GL_GENERATE_STDDEF_H.
21433         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
21434         * modules/stddef (Makefile.am): Remove stddef.h if
21435         GL_GENERATE_STDDEF_H evaluates to false.
21436
21437         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
21438         GL_GENERATE_STDINT_H.
21439         * modules/stdint (Makefile.am): Remove stdint.h if
21440         GL_GENERATE_STDINT_H evaluates to false.
21441
21442         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
21443         GL_GENERATE_SYSEXITS_H.
21444         * modules/sysexits (Makefile.am): Remove sysexits.h if
21445         GL_GENERATE_SYSEXITS_H evaluates to false.
21446
21447         Reported by Karl Berry and Ralf Wildenhues.
21448
21449 2011-04-05  Bruno Haible  <bruno@clisp.org>
21450
21451         Ensure to rebuild generated .h files when config.status has changed.
21452         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
21453         config.status.
21454         * modules/ctype (Makefile.am): Likewise.
21455         * modules/dirent (Makefile.am): Likewise.
21456         * modules/errno (Makefile.am): Likewise.
21457         * modules/fcntl-h (Makefile.am): Likewise.
21458         * modules/float (Makefile.am): Likewise.
21459         * modules/getopt-posix (Makefile.am): Likewise.
21460         * modules/glob (Makefile.am): Likewise.
21461         * modules/iconv-h (Makefile.am): Likewise.
21462         * modules/inttypes (Makefile.am): Likewise.
21463         * modules/langinfo (Makefile.am): Likewise.
21464         * modules/locale (Makefile.am): Likewise.
21465         * modules/math (Makefile.am): Likewise.
21466         * modules/netdb (Makefile.am): Likewise.
21467         * modules/netinet_in (Makefile.am): Likewise.
21468         * modules/poll-h (Makefile.am): Likewise.
21469         * modules/pthread (Makefile.am): Likewise.
21470         * modules/pty (Makefile.am): Likewise.
21471         * modules/sched (Makefile.am): Likewise.
21472         * modules/search (Makefile.am): Likewise.
21473         * modules/selinux-h (Makefile.am): Likewise.
21474         * modules/signal (Makefile.am): Likewise.
21475         * modules/spawn (Makefile.am): Likewise.
21476         * modules/stdarg (Makefile.am): Likewise.
21477         * modules/stdbool (Makefile.am): Likewise.
21478         * modules/stddef (Makefile.am): Likewise.
21479         * modules/stdint (Makefile.am): Likewise.
21480         * modules/stdio (Makefile.am): Likewise.
21481         * modules/stdlib (Makefile.am): Likewise.
21482         * modules/string (Makefile.am): Likewise.
21483         * modules/strings (Makefile.am): Likewise.
21484         * modules/sys_file (Makefile.am): Likewise.
21485         * modules/sys_ioctl (Makefile.am): Likewise.
21486         * modules/sys_select (Makefile.am): Likewise.
21487         * modules/sys_socket (Makefile.am): Likewise.
21488         * modules/sys_stat (Makefile.am): Likewise.
21489         * modules/sys_time (Makefile.am): Likewise.
21490         * modules/sys_times (Makefile.am): Likewise.
21491         * modules/sys_utsname (Makefile.am): Likewise.
21492         * modules/sys_wait (Makefile.am): Likewise.
21493         * modules/sysexits (Makefile.am): Likewise.
21494         * modules/termios (Makefile.am): Likewise.
21495         * modules/time (Makefile.am): Likewise.
21496         * modules/unistd (Makefile.am): Likewise.
21497         * modules/wchar (Makefile.am): Likewise.
21498         * modules/wctype-h (Makefile.am): Likewise.
21499         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
21500
21501 2011-04-05  Bruno Haible  <bruno@clisp.org>
21502
21503         pipe2: Relicense under LGPLv2+.
21504         * modules/pipe2 (License): Change to LGPLv2+.
21505         Requested by Eric Blake, for libvirt.
21506
21507 2011-04-05  Bruce Korb  <bkorb@gnu.org>
21508
21509         bootstrap: compute gnulib_extra_files after updating build_aux
21510         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
21511         change build_aux or also supply gnulib_extra_files.  Handle correctly.
21512
21513 2011-04-05  Eric Blake  <eblake@redhat.com>
21514
21515         bootstrap: preserve git whitelist item sorting
21516         * build-aux/bootstrap (sort_patterns): New function.
21517         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
21518
21519 2011-04-05  Simon Josefsson  <simon@josefsson.org>
21520
21521         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
21522         sc_space_tab check.
21523
21524 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
21525
21526         areadlink, areadlinkat: rewrite in terms of careadlinkat
21527         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
21528         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
21529         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
21530         (malloc, realloc): Remove #undefs.
21531         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
21532         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
21533         readlink, ssize_t, stdint, unistd.
21534         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
21535         areadlink, stdint.
21536
21537         careadlinkat: new module
21538         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
21539         * modules/careadlinkat: New files, written by me with
21540         a review and feedback from Ben Pfaff in
21541         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
21542
21543 2011-04-01  Bruno Haible  <bruno@clisp.org>
21544
21545         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
21546         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
21547         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
21548         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
21549         Reported by Bruce Korb <bruce.korb@gmail.com>.
21550
21551 2011-04-01  Bruno Haible  <bruno@clisp.org>
21552
21553         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
21554         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
21555         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
21556         * modules/wcpcpy (Depends-on): Add extensions.
21557         * modules/wcpncpy (Depends-on): Likewise.
21558         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
21559         systems.
21560         * doc/posix-functions/wcpncpy.texi: Likewise.
21561         * doc/posix-functions/wcwidth.texi: Likewise.
21562
21563 2011-03-31  Eric Blake  <eblake@redhat.com>
21564
21565         nonblocking: fix mingw test failures
21566         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
21567         non-blocking flag on regular file.
21568         (get_nonblocking_flag): Set errno on invalid fd.
21569         * tests/test-nonblocking.c (main): Avoid test failure on
21570         directories if fchdir is not active.
21571         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
21572
21573 2011-03-31  Bruno Haible  <bruno@clisp.org>
21574
21575         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
21576         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
21577         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
21578         Reported by Simon Josefsson <simon@josefsson.org>.
21579
21580 2011-03-31  Bruno Haible  <bruno@clisp.org>
21581         and Eric Blake  <eblake@redhat.com>
21582
21583         nonblocking: new module
21584         * modules/nonblocking: New module.
21585         * modules/nonblocking-tests: Likewise.
21586         * lib/nonblocking.h: New file.
21587         * lib/nonblocking.c: Likewise.
21588         * tests/test-nonblocking.c: New test.
21589         * lib/ioctl.c (ioctl) [mingw]: Update comment.
21590
21591 2011-03-30  Bruno Haible  <bruno@clisp.org>
21592
21593         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
21594         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
21595         instead of 'printf' format for GCC >= 4.4.
21596         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
21597         (fprintf, printf, vfprintf, vprintf): Declare with
21598         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
21599         the system's vfprintf() function.
21600         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
21601
21602 2011-03-30  Eric Blake  <eblake@redhat.com>
21603
21604         passfd: fix scoping bug
21605         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
21606         before sendmsg/recvmsg.
21607
21608         passfd: standardize coding conventions
21609         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
21610         can be learned at compile time.
21611         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
21612         ifdefs.
21613         (sendfd, recvfd): Follow gnulib code conventions.
21614
21615         passfd: fix incorrect sendmsg arguments
21616         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
21617         incorrect msg_controllen value.
21618         * modules/passfd-tests (Depends-on): Check for alarm.
21619         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
21620         Reported by Bastien ROUCARIES.
21621
21622 2011-03-30  Bruno Haible  <bruno@clisp.org>
21623
21624         c-strcasestr: Relicense under LGPLv2+.
21625         * modules/c-strcasestr (License): Change to LGPLv2+.
21626         Requested by Eric Blake, for libvirt.
21627
21628 2011-03-30  Simon Josefsson  <simon@josefsson.org>
21629
21630         * users.txt: Add libidn2.  Fix libtasn1 link.
21631
21632 2011-03-30  Jim Meyering  <meyering@redhat.com>
21633
21634         tests: readlink* ("",... fails with EINVAL on newer kernels
21635         readlink and readlinkat have typically failed with ENOENT for
21636         the invalid, empty file name,  "".  However, with the advent
21637         of linux-2.6.39, they fail with EINVAL.
21638         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
21639         when operating on the empty file name.
21640         * tests/test-readlink.h (test_readlink): Likewise.
21641
21642 2011-03-29  Bruno Haible  <bruno@clisp.org>
21643
21644         Relicense some modules under LGPLv2+, for libidn2.
21645         * modules/array-mergesort (License): Change to LGPLv2+.
21646         * modules/c-strcaseeq (License): Likewise.
21647         * modules/striconveh (License): Likewise.
21648         * modules/striconveha (License): Likewise.
21649         * modules/uniconv/base (License): Likewise.
21650         * modules/uniconv/u8-conv-from-enc (License): Likewise.
21651         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
21652         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
21653         * modules/unictype/base (License): Likewise.
21654         * modules/unictype/bidiclass-of (License): Likewise.
21655         * modules/unictype/category-M (License): Likewise.
21656         * modules/unictype/category-none (License): Likewise.
21657         * modules/unictype/category-of (License): Likewise.
21658         * modules/unictype/category-test (License): Likewise.
21659         * modules/unictype/category-test-withtable (License): Likewise.
21660         * modules/unictype/combining-class (License): Likewise.
21661         * modules/unictype/joiningtype-of (License): Likewise.
21662         * modules/unictype/scripts (License): Likewise.
21663         * modules/uninorm/base (License): Likewise.
21664         * modules/uninorm/canonical-decomposition (License): Likewise.
21665         * modules/uninorm/composition (License): Likewise.
21666         * modules/uninorm/decompose-internal (License): Likewise.
21667         * modules/uninorm/decomposition-table (License): Likewise.
21668         * modules/uninorm/nfc (License): Likewise.
21669         * modules/uninorm/nfd (License): Likewise.
21670         * modules/uninorm/u32-normalize (License): Likewise.
21671         * modules/unistr/base (License): Likewise.
21672         * modules/unistr/u32-cpy (License): Likewise.
21673         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
21674         * modules/unistr/u32-to-u8 (License): Likewise.
21675         * modules/unistr/u32-uctomb (License): Likewise.
21676         * modules/unistr/u8-check (License): Likewise.
21677         * modules/unistr/u8-mblen (License): Likewise.
21678         * modules/unistr/u8-mbtouc (License): Likewise.
21679         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
21680         * modules/unistr/u8-mbtoucr (License): Likewise.
21681         * modules/unistr/u8-prev (License): Likewise.
21682         * modules/unistr/u8-strlen (License): Likewise.
21683         * modules/unistr/u8-to-u32 (License): Likewise.
21684         * modules/unistr/u8-uctomb (License): Likewise.
21685         * modules/unitypes (License): Likewise.
21686         Requested by Simon Josefsson.
21687
21688 2011-03-29  Simon Josefsson  <simon@josefsson.org>
21689
21690         lib-symbol-visibility: Add a notice.
21691         * modules/lib-symbol-visibility (Notice): New field.
21692
21693 2011-03-29  Bruno Haible  <bruno@clisp.org>
21694
21695         getaddrinfo: Doc fix.
21696         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
21697         section "fixed in Gnulib".
21698
21699 2011-03-28  Simon Josefsson  <simon@josefsson.org>
21700
21701         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
21702         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
21703
21704 2011-03-26  Bruno Haible  <bruno@clisp.org>
21705
21706         unictype/property-byname: Reduce the number of load-time relocations.
21707         * lib/unictype/pr_byname.c: Include <stdlib.h>.
21708         (UC_PROPERTY_INDEX_*): New enumeration values.
21709         (uc_property_byname): Convert an index from the lookup table to an
21710         uc_property_t.
21711         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
21712         values.
21713
21714 2011-03-26  Bruno Haible  <bruno@clisp.org>
21715
21716         unictype/property-byname: Allow omitted word separators and aliases.
21717         * lib/unictype/pr_byname.gperf: Add property names without word
21718         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
21719         for 'space'.
21720
21721 2011-03-26  Bruno Haible  <bruno@clisp.org>
21722
21723         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
21724         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
21725         also hyphens to space.
21726         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
21727         without spaces.
21728         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
21729
21730 2011-03-26  Bruno Haible  <bruno@clisp.org>
21731
21732         unictype/joiningtype-byname: Recognize long names as well.
21733         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
21734         a long name.
21735         * lib/unictype/joiningtype_byname.c: Include <string.h>,
21736         unictype/joiningtype_byname.h.
21737         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
21738         * lib/unictype/joiningtype_byname.gperf: New file.
21739         * modules/unictype/joiningtype-byname (Files): Add
21740         lib/unictype/joiningtype_byname.gperf.
21741         (Depends-on): Add gperf.
21742         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
21743         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
21744         long names.
21745
21746         Tests for module 'unictype/joiningtype-longname'.
21747         * modules/unictype/joiningtype-longname-tests: New file.
21748         * tests/unictype/test-joiningtype_longname.c: New file.
21749
21750         New module 'unictype/joiningtype-longname'.
21751         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
21752         * lib/unictype/joiningtype_longname.c: New file.
21753         * modules/unictype/joiningtype-longname: New file.
21754         * modules/unictype/joiningtype-all (Depends-on): Add
21755         unictype/joiningtype-longname.
21756
21757 2011-03-26  Bruno Haible  <bruno@clisp.org>
21758
21759         unictype/bidiclass-byname: Recognize long names as well.
21760         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
21761         name.
21762         * lib/unictype/bidi_byname.c: Include <string.h>,
21763         unictype/bidi_byname.h.
21764         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
21765         * lib/unictype/bidi_byname.gperf: New file.
21766         * modules/unictype/bidiclass-byname (Files): Add
21767         lib/unictype/bidi_byname.gperf.
21768         (Depends-on): Add gperf.
21769         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
21770         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
21771         long names.
21772
21773         Tests for module 'unictype/bidiclass-longname'.
21774         * modules/unictype/bidiclass-longname-tests: New file.
21775         * tests/unictype/test-bidi_longname.c: New file.
21776
21777         New module 'unictype/bidiclass-longname'.
21778         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
21779         * lib/unictype/bidi_longname.c: New file.
21780         * modules/unictype/bidiclass-longname: New file.
21781         * modules/unictype/bidiclass-all (Depends-on): Add
21782         unictype/bidiclass-longname.
21783
21784 2011-03-26  Bruno Haible  <bruno@clisp.org>
21785
21786         unictype/bidi*: Rename modules.
21787         * modules/unictype/bidiclass-all: Renamed from
21788         modules/unictype/bidicategory-all.
21789         * modules/unictype/bidiclass-name: Renamed from
21790         modules/unictype/bidiclass-name.
21791         (Description): Update.
21792         * modules/unictype/bidiclass-name-tests: Renamed from
21793         modules/unictype/bidicategory-name-tests.
21794         * modules/unictype/bidiclass-byname: Renamed from
21795         modules/unictype/bidicategory-byname.
21796         (Description): Update.
21797         * modules/unictype/bidiclass-byname-tests: Renamed from
21798         modules/unictype/bidicategory-byname-tests.
21799         * modules/unictype/bidiclass-of: Renamed from
21800         modules/unictype/bidicategory-of.
21801         (Description): Update.
21802         * modules/unictype/bidiclass-of-tests: Renamed from
21803         modules/unictype/bidicategory-of-tests.
21804         * modules/unictype/bidiclass-test: Renamed from
21805         modules/unictype/bidicategory-test.
21806         (Description): Update.
21807         * modules/unictype/bidiclass-test-tests: Renamed from
21808         modules/unictype/bidicategory-test-tests.
21809         * modules/unictype/bidicategory-all: New file, a simple redirection.
21810         * modules/unictype/bidicategory-name: Likewise.
21811         * modules/unictype/bidicategory-byname: Likewise.
21812         * modules/unictype/bidicategory-of: Likewise.
21813         * modules/unictype/bidicategory-test: Likewise.
21814         * modules/unictype/property-bidi-* (Dependencies): Update.
21815         * lib/unictype/bidi_*.c: Update comment.
21816
21817 2011-03-26  Bruno Haible  <bruno@clisp.org>
21818
21819         unictype/bidi*: Rename functions, part 2.
21820         * modules/unictype/bidicategory-name (configure.ac): Update required
21821         libunistring version.
21822         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
21823
21824 2011-03-25  Bruno Haible  <bruno@clisp.org>
21825
21826         New module 'unictype/combining-class-all'.
21827         * modules/unictype/combining-class-all: New file.
21828
21829         Tests for module 'unictype/combining-class-byname'.
21830         * modules/unictype/combining-class-byname-tests: New file.
21831         * tests/unictype/test-combiningclass_byname.c: New file.
21832
21833         New module 'unictype/combining-class-byname'.
21834         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
21835         * lib/unictype/combiningclass_byname.c: New file.
21836         * lib/unictype/combiningclass_byname.gperf: New file.
21837         * modules/unictype/combining-class-byname: New file.
21838
21839         Tests for module 'unictype/combining-class-longname'.
21840         * modules/unictype/combining-class-longname-tests: New file.
21841         * tests/unictype/test-combiningclass_longname.c: New file.
21842
21843         New module 'unictype/combining-class-longname'.
21844         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
21845         * lib/unictype/combiningclass_longname.c: New file.
21846         * modules/unictype/combining-class-longname: New file.
21847
21848         Tests for module 'unictype/combining-class-name'.
21849         * modules/unictype/combining-class-name-tests: New file.
21850         * tests/unictype/test-combiningclass_name.c: New file.
21851
21852         New module 'unictype/combining-class-name'.
21853         * lib/unictype.in.h (uc_combining_class_name): New declaration.
21854         * lib/unictype/combiningclass_name.c: New file.
21855         * modules/unictype/combining-class-name: New file.
21856
21857 2011-03-25  Bruno Haible  <bruno@clisp.org>
21858
21859         unictype/combining-class: Rename source files.
21860         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
21861         of unictype/combining.h.
21862         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
21863         Update.
21864         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
21865         * modules/unictype/combining-class (Description): Fix.
21866         (Files, Makefile.am): Update.
21867         * tests/unictype/test-combiningclass.c: Renamed from
21868         tests/unictype/test-combining.c.
21869         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
21870
21871 2011-03-25  Bruno Haible  <bruno@clisp.org>
21872
21873         unictype: Update list of canonical combining classes.
21874         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
21875
21876 2011-03-25  Bruno Haible  <bruno@clisp.org>
21877
21878         unictype/category-byname: Recognize long names as well.
21879         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
21880         a long name.
21881         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
21882         unictype/categ_byname.h.
21883         (UC_CATEGORY_INDEX_*): New enumeration values.
21884         (uc_general_category_byname): Use uc_general_category_lookup and
21885         convert from index to value.
21886         * lib/unictype/categ_byname.gperf: New file.
21887         * modules/unictype/category-byname (Files): Add
21888         lib/unictype/categ_byname.gperf.
21889         (Depends-on): Add gperf.
21890         (Makefile.am): Add rule for generating unictype/categ_byname.h.
21891         * tests/unictype/test-categ_byname.c (main): Test the recognition of
21892         long names.
21893
21894         Tests for module 'unictype/category-longname'.
21895         * modules/unictype/category-longname-tests: New file.
21896         * tests/unictype/test-categ_longname.c: New file.
21897
21898         New module 'unictype/category-longname'.
21899         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
21900         * lib/unictype/categ_longname.c: New file.
21901         * modules/unictype/category-longname: New file.
21902         * modules/unictype/category-all (Depends-on): Add it.
21903
21904 2011-03-25  Bruno Haible  <bruno@clisp.org>
21905
21906         Tests for module 'unictype/category-LC'.
21907         * modules/unictype/category-LC-tests: New file.
21908         * tests/unictype/test-categ_LC.c: New file, automatically generated.
21909
21910         New module 'unictype/category-LC'.
21911         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
21912         (UC_CATEGORY_LC): New declaration.
21913         (UC_CASED_LETTER): New macro.
21914         * lib/gen-uni-tables.c (is_category_LC): New function.
21915         (output_categories): Also handle category LC.
21916         (UC_CATEGORY_MASK_LC): New enumeration value.
21917         (general_category_byname): Also handle category LC.
21918         * lib/unictype/categ_LC.c: New file.
21919         * lib/unictype/categ_LC.h: New file, automatically generated.
21920         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
21921         category LC.
21922         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
21923         * modules/unictype/category-LC: New file.
21924         * modules/unictype/category-byname (Depends-on): Add
21925         unictype/category-LC.
21926         * modules/unictype/category-all (Depends-on): Likewise.
21927
21928 2011-03-25  Eric Blake  <eblake@redhat.com>
21929
21930         xmalloc: revert yesterday's regression
21931         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
21932         realloc's underlying behavior (allowing allocation of zero-size
21933         objects, especially if malloc-gnu is also in use).
21934
21935 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
21936
21937         maint.mk: add missing version to VC-tag
21938         * top/maint.mk: git tag was missing actual tag name; add it.
21939
21940         valgrind: do leak checking, and exit with code 1 on error (not 0)
21941         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
21942         to VALGRIND.
21943
21944 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
21945
21946         posix-modules: say what it does.
21947         * posix-modules: Add a line to the --help output saying what it does.
21948
21949 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
21950
21951         xmalloc: Do not leak if underlying realloc is C99 compatible.
21952         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
21953         This avoids a leak on C99-based systems.  See
21954         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
21955
21956 2011-03-24  Eric Blake  <eblake@redhat.com>
21957
21958         realloc: document portability problem
21959         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
21960         passing 0 size to realloc.
21961
21962 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
21963
21964         doc: update users.txt
21965         * users.txt: Add cvsps, tmpwatch
21966
21967 2011-03-23  Matt Rice  <ratmice@gmail.com>
21968
21969         doc: update users.txt
21970         * users.txt: Add gdb.
21971
21972 2011-03-23  Jim Meyering  <meyering@redhat.com>
21973
21974         doc: update users.txt
21975         Looking through matches up to the following URL (there are still
21976         several more pages), I found several projects that use gnulib:
21977         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
21978         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
21979         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
21980
21981 2011-03-22  Bruno Haible  <bruno@clisp.org>
21982
21983         unictype/bidi*: Rename functions.
21984         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
21985         uc_bidi_class, uc_is_bidi_class): New declarations.
21986         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
21987         uc_bidi_category_byname.
21988         (uc_bidi_category_byname): New function.
21989         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
21990         u_bidi_category_name.
21991         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
21992         (uc_bidi_category_name): New function.
21993         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
21994         uc_bidi_category.
21995         (uc_bidi_category): New function.
21996         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
21997         uc_is_bidi_category. Invoke uc_bidi_class.
21998         (uc_is_bidi_category): New function.
21999         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
22000         instead of uc_bidi_category_byname.
22001         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
22002         instead of uc_bidi_category_name.
22003         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
22004         uc_bidi_category.
22005         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
22006         instead of uc_is_bidi_category.
22007
22008 2011-03-21  Bruno Haible  <bruno@clisp.org>
22009
22010         New module 'unictype/joininggroup-all'.
22011         * modules/unictype/joininggroup-all: New file.
22012
22013         Tests for module 'unictype/joininggroup-of'.
22014         * modules/unictype/joininggroup-of-tests: New file.
22015         * tests/unictype/test-joininggroup_of.c: New file.
22016         * tests/unictype/test-joininggroup_of.h: New file, automatically
22017         generated by gen-uni-tables.
22018
22019         New module 'unictype/joininggroup-of'.
22020         * modules/unictype/joininggroup-of: New file.
22021         * lib/unictype/joininggroup_of.c: New file.
22022         * lib/unictype/joininggroup_of.h: New file, automatically generated by
22023         gen-uni-tables.
22024
22025         Tests for module 'unictype/joininggroup-byname'.
22026         * modules/unictype/joininggroup-byname-tests: New file.
22027         * tests/unictype/test-joininggroup_byname.c: New file.
22028
22029         New module 'unictype/joininggroup-byname'.
22030         * modules/unictype/joininggroup-byname: New file.
22031         * lib/unictype/joininggroup_byname.c: New file.
22032         * lib/unictype/joininggroup_byname.gperf: New file.
22033
22034         Tests for module 'unictype/joininggroup-name'.
22035         * modules/unictype/joininggroup-name-tests: New file.
22036         * tests/unictype/test-joininggroup_name.c: New file.
22037
22038         New module 'unictype/joininggroup-name'.
22039         * modules/unictype/joininggroup-name: New file.
22040         * lib/unictype/joininggroup_name.c: New file.
22041         * lib/unictype/joininggroup_name.h: New file.
22042
22043         New module 'unictype/joiningtype-all'.
22044         * modules/unictype/joiningtype-all: New file.
22045
22046         Tests for module 'unictype/joiningtype-of'.
22047         * modules/unictype/joiningtype-of-tests: New file.
22048         * tests/unictype/test-joiningtype_of.c: New file.
22049         * tests/unictype/test-joiningtype_of.h: New file, automatically
22050         generated by gen-uni-tables.
22051
22052         New module 'unictype/joiningtype-of'.
22053         * modules/unictype/joiningtype-of: New file.
22054         * lib/unictype/joiningtype_of.c: New file.
22055         * lib/unictype/joiningtype_of.h: New file, automatically generated by
22056         gen-uni-tables.
22057
22058         Tests for module 'unictype/joiningtype-byname'.
22059         * modules/unictype/joiningtype-byname-tests: New file.
22060         * tests/unictype/test-joiningtype_byname.c: New file.
22061
22062         New module 'unictype/joiningtype-byname'.
22063         * modules/unictype/joiningtype-byname: New file.
22064         * lib/unictype/joiningtype_byname.c: New file.
22065
22066         Tests for module 'unictype/joiningtype-name'.
22067         * modules/unictype/joiningtype-name-tests: New file.
22068         * tests/unictype/test-joiningtype_name.c: New file.
22069
22070         New module 'unictype/joiningtype-name'.
22071         * modules/unictype/joiningtype-name: New file.
22072         * lib/unictype/joiningtype_name.c: New file.
22073
22074         unictype: Add support for Arabic shaping properties.
22075         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
22076         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
22077         declarations.
22078         (UC_JOINING_GROUP_*): New enumeration values.
22079         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
22080         declarations.
22081         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
22082         (unicode_joining_type): New variable.
22083         (UC_JOINING_GROUP_*): New enumeration values.
22084         (unicode_joining_group): New variable.
22085         (fill_arabicshaping, joining_type_as_c_identifier,
22086         output_joining_type_test, output_joining_type,
22087         joining_group_as_c_identifier, output_joining_group_test,
22088         output_joining_group): New functions.
22089         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
22090         fill_arabicshaping and output_joining_type_test, output_joining_type,
22091         output_joining_group_test, output_joining_group.
22092         Reported by Simon Josefsson.
22093
22094 2011-03-21  Jim Meyering  <meyering@redhat.com>
22095
22096         strftime: fix a bug in yesterday's change
22097         * lib/strftime.c (add): Accommodate width's initial value of -1.
22098         Otherwise, nstrftime would copy uninitialized data into
22099         the result buffer.
22100
22101 2011-03-21  Jim Meyering  <meyering@redhat.com>
22102
22103         tests: add strftime-tests module
22104         * tests/test-strftime.c: New file.
22105         * modules/strftime-tests: New module.
22106
22107 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22108
22109         strftime: don't assume a byte count fits in 'int'
22110         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
22111         found this problem by static analysis, using gcc -Wstrict-overflow
22112         (GCC 4.5.2, x86-64).  This reported an optimization that depended
22113         on an integer overflow having undefined behavior, but it turns out
22114         that the argument is a size, which might not fit in 'int' anyway,
22115
22116 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22117
22118         stdio: don't require ignore_value around fwrite
22119
22120         This patch works around libc bug 11959
22121         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
22122         Without this patch, applications must often write
22123         ignore_value (fwrite (...)) even though the ignore_value is
22124         not helpful here.  It's common to write many objects, using
22125         fwrite/printf/etc., and then use ferror to detect output error.
22126
22127         I considered making this patch optional, but decided against it,
22128         because libc is obviously being inconsistent here: there is no
22129         reason libc should insist that user code must inspect fwrite
22130         return's value without also insisting that it inspect printf's,
22131         putchar's, etc.  If user code wants to have a strict style where
22132         all these functions' values are checked (so that ferror need not
22133         be checked), we could add support for that style in a new gnulib
22134         module, but in the meantime it's better to be consistent and to
22135         support common usage.
22136
22137         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
22138         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
22139         that we are compiling in checking mode, and if not C++, and
22140         if not already wrapping fwrite for some other reason.
22141         (fwrite): #define to rpl_fwrite if the latter is defined.
22142
22143 2011-03-20  Bruno Haible  <bruno@clisp.org>
22144
22145         verror: Fix compilation error introduced on 2011-02-13.
22146         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
22147         instead of __attribute__.
22148         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22149
22150 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22151             Bruno Haible  <bruno@clisp.org>
22152
22153         socklen: do not depend on sys_socket
22154         While trying to modify Emacs to use gnulib's socklen module,
22155         I discovered a circular dependency: socklen depends on sys_socket
22156         and vice versa.  Emacs can use socklen, but it does not need
22157         sys_socket because it has its own substitute for sys/socket.h.
22158         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
22159         gl_TYPE_SOCKLEN_T.
22160         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
22161         gl_PREREQ_SYS_H_SOCKET.
22162         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
22163         gl_PREREQ_SYS_H_SOCKET.
22164         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
22165         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
22166         * modules/socklen (Depends-on): Do not depend on sys_socket.
22167         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
22168
22169 2011-03-20  Jim Meyering  <meyering@redhat.com>
22170
22171         maint.mk: sort file names *after* new transformation
22172         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
22173         prefix would have led to an unwarranted failure in GNU parted.
22174         Sort after that transformation.
22175
22176 2011-03-19  Jim Meyering  <meyering@redhat.com>
22177
22178         maint.mk: fix po-file syntax-check rule
22179         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
22180         Patch by Bruno Haible.
22181
22182 2011-03-19  Bruno Haible  <bruno@clisp.org>
22183
22184         socklen: Update comment.
22185         * m4/socklen.m4: Update comment about platforms.
22186
22187 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22188             Bruno Haible  <bruno@clisp.org>
22189
22190         inet_ntop, inet_pton: Simplify.
22191         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
22192         documented to provide socklen_t and we already depend on sys_socket.
22193         * modules/inet_pton (Depends-on): Likewise.
22194         * lib/arpa_inet.in.h: Adjust comment.
22195
22196 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22197             Bruno Haible  <bruno@clisp.org>
22198
22199         netdb: Simplify.
22200         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
22201         documented to provide socklen_t and we already depend on sys_socket.
22202         * lib/netdb.in.h: Adjust comment.
22203
22204 2011-03-19  Bruno Haible  <bruno@clisp.org>
22205
22206         sys_socket, netdb: Document problem with socklen_t.
22207         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
22208         platforms.
22209         * doc/posix-headers/netdb.texi: Likewise.
22210
22211 2011-03-18  Eric Blake  <eblake@redhat.com>
22212
22213         maint.mk: let po check work in VPATH build
22214         * top/maint.mk (po_file): Allow cfg.mk override.
22215         (sc_po_check): Allow VPATH use.
22216         Reported by Jiri Denemark.
22217
22218 2011-03-16  Jim Meyering  <meyering@redhat.com>
22219
22220         maint.mk: allow fine-grained syntax-check exclusion via Make variables
22221         Before, you would have had to create one .x-sc_ file per rule in order
22222         to exempt offending files.  Now, you may instead use a Make variable --
22223         usually defined in cfg.mk -- whose name identifies the affected rule.
22224         * top/maint.mk (_sc_excl): Define.
22225         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
22226         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
22227
22228 2011-03-13  Bruno Haible  <bruno@clisp.org>
22229
22230         ignore-value tests: Avoid warnings.
22231         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
22232         empty for gcc < 3.4.
22233
22234 2011-03-13  Bruno Haible  <bruno@clisp.org>
22235
22236         passfd: Fix link error on Solaris.
22237         * modules/passfd (Description): Correct.
22238         (Depends-on): Add socketlib.
22239         (Link): New section.
22240         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
22241
22242 2011-03-13  Bruno Haible  <bruno@clisp.org>
22243
22244         passfd: Fix link error on AIX 5.2.
22245         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
22246
22247 2011-03-13  Bruno Haible  <bruno@clisp.org>
22248
22249         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
22250         * lib/sys_socket.in.h: Include <stddef.h>.
22251         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
22252         CMSG_FIRSTHDR. Remove unused variable.
22253
22254 2011-03-13  Bruno Haible  <bruno@clisp.org>
22255
22256         passfd: Fix compilation error on OpenBSD.
22257         * lib/passfd.c: Include <sys/uio.h>.
22258
22259 2011-03-13  Bruno Haible  <bruno@clisp.org>
22260
22261         passfd test: Fix warnings.
22262         * tests/test-passfd.c: Include <sys/wait.h>.
22263         (main): Fix typo.
22264
22265 2011-03-13  Bruno Haible  <bruno@clisp.org>
22266
22267         passfd module, part 4, tweaks.
22268         * tests/test-passfd.c: Reorder includes.
22269         (main): Fix perror and printf calls.
22270
22271 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22272
22273         passfd module, part 4.
22274         * modules/passfd-tests: New file.
22275         * tests/test-passfd.c: New file.
22276
22277 2011-03-13  Jim Meyering  <meyering@redhat.com>
22278
22279         Makefile: rely on GNU make; derive syntax-check rule names
22280         Rather than requiring that each sc_ rule be listed as a dependent
22281         of "check", use features of GNU make to derive the list.
22282         * Makefile (syntax-check-rules): Define.
22283         (check): Depend on the new variable, not the hard-coded list.
22284
22285 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
22286             Bruno Haible  <bruno@clisp.org>
22287
22288         passfd module, part 3.
22289         * lib/passfd.h (recvfd): Add a flags argument.
22290         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
22291         (recvfd): Add a flags argument.
22292         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
22293         exists.
22294         * modules/passfd (Depends-on): Add cloexec.
22295         Suggested by Eric Blake.
22296
22297 2011-03-13  Bruno Haible  <bruno@clisp.org>
22298
22299         passfd module, part 2, tweaks.
22300         * modules/passfd (Files): Reorder.
22301         (Depends-on): Remove errno.
22302         (Include): Remove <sys/socket.h>, <sys/un.h>.
22303         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
22304         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
22305         specification header. Include <sys/socket.h> always. Don't include
22306         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
22307         (sendfd): Clarify that it sets errno when it fails.
22308         (recvfd): Fix specification.
22309
22310 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22311
22312         passfd module, part 2.
22313         * modules/passfd: New file.
22314         * lib/passfd.h: New file.
22315         * lib/passfd.c: New file.
22316
22317 2011-03-12  Bruno Haible  <bruno@clisp.org>
22318
22319         wcswidth, mbswidth: Avoid integer overflow.
22320         * lib/wcswidth.c: Include <limits.h>.
22321         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
22322         * lib/mbswidth.c: Include <limits.h>.
22323         (mbsnwidth): Avoid 'int' overflow.
22324         Reported by Jim Meyering.
22325
22326 2011-03-12  Bruno Haible  <bruno@clisp.org>
22327
22328         futimens, utimensat: Avoid endless recursion on Solaris 10.
22329         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
22330         Solaris.
22331         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
22332         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
22333
22334 2011-03-11  Jim Meyering  <meyering@redhat.com>
22335
22336         maint.mk: relax a regexp to accommodate other formatting styles
22337         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
22338         between "ngettext" and the following "(".
22339
22340 2011-03-11  Pádraig Brady <P@draigBrady.com>
22341
22342         maint.mk: suppress a false positive warning
22343         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
22344         diagnostics are marked with ngettext.
22345
22346 2011-03-10  Eric Blake  <eblake@redhat.com>
22347
22348         wchar: add explicit dependencies, for Tru64
22349         * modules/mbmemcasecoll (Depends-on): Add wchar.
22350         * modules/mbtowc (Depends-on): Likewise.
22351         * modules/vasnprintf (Depends-on): Likewise.
22352         * modules/unistdio/u-printf-args (Depends-on): Likewise.
22353         * modules/wctomb (Depends-on): Likewise.
22354         Reported by Peter O'Gorman.
22355
22356 2011-03-08  Bruno Haible  <bruno@clisp.org>
22357
22358         passfd module, part 1, tweaks.
22359         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
22360         Improve indentation. Improve AC_MSG_CHECKING messages.
22361         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
22362         gl_SOCKET_FAMILIES.
22363
22364 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22365
22366         passfd module, part 1.
22367         * m4/afunix.m4: New file.
22368         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
22369         sockets.
22370
22371 2011-03-08  Bruno Haible  <bruno@clisp.org>
22372
22373         regex-quote: New API.
22374         * lib/regex-quote.h: Include <stdbool.h>.
22375         (struct regex_quote_spec): New type.
22376         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22377         New declarations.
22378         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22379         'const struct regex_quote_spec *' argument.
22380         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
22381         (pcre_special): New constant.
22382         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22383         New functions.
22384         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22385         'const struct regex_quote_spec *' argument.
22386         * modules/regex-quote (Depends-on): Add stdbool.
22387         * tests/test-regex-quote.c (check): Update for new API. Add test for
22388         anchored results.
22389         * NEWS: Mention the API change.
22390         Reported by Reuben Thomas and Eric Blake.
22391
22392 2011-03-06  Bruno Haible  <bruno@clisp.org>
22393
22394         regex-quote: Fix creation of POSIX extended regular expressions.
22395         * lib/regex-quote.c (ere_special): Add grouping and alternation
22396         operators.
22397
22398 2011-03-05  Bruno Haible  <bruno@clisp.org>
22399
22400         doc: Improve doc regarding autopoint vs. gnulib.
22401         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
22402         disable autopoint while running autoreconf.
22403         Suggested by Ralf Wildenhues.
22404
22405 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22406
22407         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
22408         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
22409
22410 2011-03-03  Bruce Korb  <bkorb@gnu.org>
22411
22412         parse-duration: remove xalloc.h dependency
22413         * lib/parse-duration.c (parse_period): handle NULL return from
22414         strdup instead of calling xstrdup().
22415         * modules/parse-duration: remove "xalloc" dependency
22416
22417 2011-03-03  Matthew Booth  <mbooth@redhat.com>
22418
22419         bootstrap: honor m4_base when running aclocal
22420         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
22421
22422 2011-03-02  Jim Meyering  <meyering@redhat.com>
22423
22424         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
22425         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
22426         on request from Matt Booth.
22427
22428 2011-03-01  Eric Blake  <eblake@redhat.com>
22429
22430         test-link: work on Hurd
22431         * tests/test-link.h (test_link): Hurd rejects linking directories
22432         with EISDIR instead of the POSIX-mandated EPERM.
22433
22434 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
22435
22436         stdio: simplify by moving files to printf-posix, sigpipe
22437         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
22438         since this symbol is needed only if printf is replaced.
22439         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
22440         Require gl_ASM_SYMBOL_PREFIX.
22441         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
22442         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
22443         (Depends-on): Add 'raise'.
22444         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
22445         * modules/stdio (Files): Remove lib/stdio-write.c,
22446         m4/asm-underscore.m4.
22447         (Depends-on): Remove 'raise'.
22448
22449         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
22450         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
22451         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
22452         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
22453
22454 2011-02-28  Bruno Haible  <bruno@clisp.org>
22455
22456         localcharset: Assume ANSI C behaviour of free().
22457         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
22458         calling free().
22459         Suggested by Simon Josefsson <simon@josefsson.org>.
22460
22461 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
22462             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
22463             Bruno Haible  <bruno@clisp.org>  (tiny change)
22464
22465         On Cygwin, use /proc file system instead of win32 API.
22466         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
22467         Win32 file names.
22468         (DllMain): Simplify by removing Cygwin specific code.
22469         (find_shared_library_fullname): Use Linux specific implementation also
22470         for Cygwin.
22471         (get_shared_library_fullname): Update accordingly.
22472         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
22473         Win32 file names.
22474         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
22475         Cygwin specific code.
22476
22477 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
22478             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
22479
22480         Fix OpenMP flag detection for various Fortran compilers.
22481         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
22482         OpenMP-conditional compilation construct, to force compile
22483         failure with missing OpenMP flag.
22484         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
22485
22486 2011-02-25  Eric Blake  <eblake@redhat.com>
22487
22488         strstr: expand test coverage
22489         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
22490         compilation.
22491         * tests/test-memmem.c (main): Duplicate tests.
22492         * tests/test-strcasestr.c (main): Likewise.
22493         * tests/test-c-strcasestr.c (main): Likewise.
22494
22495 2011-02-25  Jim Meyering  <meyering@redhat.com>
22496
22497         maint.mk: detect missing-NL-at-EOF, too
22498         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
22499         it also detects when a file lacks a newline at EOF.
22500         (require_exactly_one_NL_at_EOF_): Renamed from
22501         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
22502         since people may well have .x-sc_... file names tied to the
22503         existing name.  Suggested by Eric Blake.
22504
22505 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
22506
22507         dirname: move m4/dos.m4 functionality into lib/dosname.h
22508
22509         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
22510         extracts symbols from it, puts them into config.h; but it's much
22511         easier to use the symbols directly.  filename.h already does this,
22512         but it disagrees with dos.m4 in some respects.  This patch
22513         introduces a different include file dosname.h that packages up
22514         dos.m4, and then later we can work on merging filename.h and
22515         dosname.h.  Applications that need only the easy-to-configure
22516         symbols should consider including dosname.h rather than dirname.h.
22517         * NEWS: Mention incompatible changes.
22518         * m4/dos.m4: Remove.
22519         * lib/dosname.h, modules/dosname: New files.
22520         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
22521         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
22522         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
22523         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
22524         Include dosname.h, not dirname.h.
22525         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
22526         Include dosname.h, for definitions of symbols like ISSLASH
22527         that used to be in config.h.
22528         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
22529         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22530         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22531         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22532         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
22533         * modules/rmdir (Files): Likewise.
22534         * modules/stat (Files): Likewise.
22535         * modules/unlink (Files): Likewise.
22536         * modules/dirname-lgpl (Depends-on): Add dosname.
22537         * modules/lstat (Depends-on): Likewise.
22538         * modules/openat (Depends-on): Likewise.
22539         * modules/rmdir (Depends-on): Likewise.
22540         * modules/savewd (Depends-on): Likewise.
22541         * modules/stat (Depends-on): Likewise.
22542         * modules/unlink (Depends-on): Likewise.
22543         * modules/openat (Depends-on): Remove dirname-lgpl.
22544         * modules/savewd (Depends-on): Likewise.
22545         * tests/test-dirname.c: Do not use removed symbols like
22546         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
22547         the remaining symbols, e.g., ISSLASH ('\\').
22548
22549 2011-02-25  Eric Blake  <eblake@redhat.com>
22550
22551         strstr: revert patches that introduced bug and pessimization
22552         * lib/str-two-way.h: Add another reference.
22553         (two_way_short_needle, two_way_long_needle): Revert changes from
22554         2011-02-24; they pessimize search speed.
22555         (critical_factorization): Partially revert changes from
22556         2010-06-22; they violate the requirement that the left half of the
22557         needle be smaller than the period of the needle.
22558
22559 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22560
22561         filenamecat: remove unnecessary dependency on dirname-lgpl
22562         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
22563         is no direct dependency, just an indirect one via filenamecat-lgpl.
22564
22565         remove: remove unnecessary use of m4/dos.m4
22566         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
22567         * modules/remove (FILES): Remove m4/dos.m4.
22568
22569         * lib/openat-proc.c: Don't include dirname.h; not needed.
22570
22571         backupfile: remove unnecessary use of m4/dos.m4
22572         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
22573         of its symbols are used by the backupfile code.  backupfile.c does
22574         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
22575         for the rare case of programs that want all their backup file
22576         names to live within 8+3 limits, and dos.m4 doesn't address that.
22577         * modules/backupfile (Files): Remove m4/dos.m4.
22578
22579 2011-02-24  Jim Meyering  <meyering@redhat.com>
22580
22581         strstr: fix a bug whereby strstr would mistakenly return NULL
22582         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
22583         in period calculation.
22584         (two_way_long_needle): Likewise.
22585         The original problem was reported by Mike Stump in
22586         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
22587         Ralf Wildenhues provided the short needle and haystack.
22588         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
22589         Add a more involved test to trigger the bug in two_way_long_needle.
22590
22591 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22592
22593         gnulib-tool: remove use of bold display in help screen
22594         * gnulib-tool (func_usage): Do not use bold display anymore in the
22595         help screen.  That was just meant to be a temporary emphasis for a
22596         backward-incompatible change.
22597
22598 2011-02-23  Bruno Haible  <bruno@clisp.org>
22599
22600         Fix misindentation of preprocessor directives.
22601         * lib/argp-namefrob.h: Reindent preprocessor directives.
22602         * lib/getopt_int.h (struct _getopt_data): Likewise.
22603         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
22604         * lib/vasnprintf.c (decode_long_double): Likewise.
22605         * tests/test-argmatch.c: Insert blank lines, for clarity.
22606         * tests/test-exclude.c: Likewise.
22607
22608 2011-02-22  Bruno Haible  <bruno@clisp.org>
22609
22610         ioctl: Fix for MacOS X in 64-bit mode.
22611         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
22612         value.
22613         Suggested by Eric Blake.
22614         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
22615
22616 2011-02-22  Jim Meyering  <meyering@redhat.com>
22617
22618         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
22619         * Makefile (sc_cpp_indent_check): Don't limit the check to files
22620         in lib/.
22621
22622 2011-02-22  Eric Blake  <eblake@redhat.com>
22623
22624         maint: avoid any CDPATH issue
22625         * Makefile (sc_cpp_indent_check): Anchor cd argument.
22626
22627         maint: adjust cpp indentation for my modules, as well
22628         * Makefile (sc_cpp_indent_check): Add my name.
22629         * lib/fbufmode.c: Filter through cppi.
22630         * lib/fpurge.c: Likewise.
22631         * lib/freadable.c: Likewise.
22632         * lib/freading.c: Likewise.
22633         * lib/fwritable.c: Likewise.
22634         * lib/fwriting.c: Likewise.
22635         * lib/sigaction.c: Likewise.
22636
22637 2011-02-22  Jim Meyering  <meyering@redhat.com>
22638
22639         maint: adjust cpp indentation to reflect nesting depth
22640         I.e., in a block of code that begins with an unnested "#if",
22641         put one space between the "#" in column 1 and following token.
22642         For example,
22643         -#include <sys/vfs.h>
22644         +# include <sys/vfs.h>
22645         Do this only in .c files that are part of a module I maintain.
22646         * lib/linkat.c: Filter through cppi.
22647         * lib/nanosleep.c: Likewise.
22648         * lib/openat.c: Likewise.
22649         * lib/openat-die.c: Likewise.
22650         * lib/dup3.c: Likewise.
22651         * lib/fchownat.c: Likewise.
22652         * lib/flock.c: Likewise.
22653         * lib/fsync.c: Likewise.
22654         * lib/fts.c: Likewise.
22655         * lib/getpass.c: Likewise.
22656         * lib/gettimeofday.c: Likewise.
22657         * lib/userspec.c: Likewise.
22658         * Makefile (sc_cpp_indent_check): New rule, to check this.
22659
22660 2011-02-22  Bruno Haible  <bruno@clisp.org>
22661
22662         New module 'wctomb'.
22663         * lib/stdlib.in.h (wctomb): New declaration.
22664         * lib/wctomb.c: New file.
22665         * lib/wctomb-impl.h: New file.
22666         * m4/wctomb.m4: New file.
22667         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
22668         REPLACE_WCTOMB.
22669         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
22670         REPLACE_WCTOMB.
22671         * modules/wctomb: New file.
22672         * tests/test-stdlib-c++.cc: Test signature of wctomb.
22673         * doc/posix-functions/wctomb.texi: Mention the new module.
22674         * modules/wctob (Depends-on): Add wctomb.
22675
22676 2011-02-22  Bruno Haible  <bruno@clisp.org>
22677
22678         New module 'mbtowc'.
22679         * lib/stdlib.in.h (mbtowc): New declaration.
22680         * lib/mbtowc.c: New file.
22681         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
22682         * m4/mbtowc.m4: New file.
22683         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
22684         REPLACE_MBTOWC.
22685         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
22686         REPLACE_MBTOWC.
22687         * modules/mbtowc: New file.
22688         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
22689         * doc/posix-functions/mbtowc.texi: Mention the new module.
22690         * modules/btowc (Depends-on): Add mbtowc.
22691
22692 2011-02-22  Bruno Haible  <bruno@clisp.org>
22693
22694         wcrtomb: Add more tests for native Windows platforms.
22695         * tests/test-wcrtomb-w32-1.sh: New file.
22696         * tests/test-wcrtomb-w32-2.sh: New file.
22697         * tests/test-wcrtomb-w32-3.sh: New file.
22698         * tests/test-wcrtomb-w32-4.sh: New file.
22699         * tests/test-wcrtomb-w32-5.sh: New file.
22700         * tests/test-wcrtomb-w32.c: New file.
22701         * modules/wcrtomb-tests (Files): Add them.
22702         (Makefile.am): Arrange to run these tests.
22703         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
22704         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
22705
22706 2011-02-20  Bruno Haible  <bruno@clisp.org>
22707
22708         wcrtomb: Enhance test.
22709         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
22710
22711 2011-02-20  Bruno Haible  <bruno@clisp.org>
22712
22713         mbrtowc: Tiny optimization.
22714         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
22715
22716 2011-02-20  Jim Meyering  <meyering@redhat.com>
22717
22718         test-exclude.c: remove unmatched #endif
22719         * tests/test-exclude.c: Remove stray #endif, left over from
22720         the change of a week ago.
22721
22722 2011-02-19  Jim Meyering  <meyering@redhat.com>
22723
22724         git-version-gen: skip "-dirty" check when appropriate
22725         * build-aux/git-version-gen: Don't run any git commands when the
22726         version string comes from .tarball-version.  Prior to this, we
22727         would run git update-index --refresh even from a just-unpacked
22728         tarball directory, and that could affect a .git/ directory in a
22729         parent of the build directory.  Reported by Mike Frysinger.
22730
22731 2011-02-19  Bruno Haible  <bruno@clisp.org>
22732
22733         unictype/property-byname: Reduce the size of the 'data' segment.
22734         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
22735
22736 2011-02-19  Bruno Haible  <bruno@clisp.org>
22737
22738         unictype/scripts: Reduce the size of the 'data' segment.
22739         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
22740         '%pic'.
22741         * lib/unictype/scripts_byname.gperf: Regenerated.
22742
22743 2011-02-19  Bruno Haible  <bruno@clisp.org>
22744
22745         stdint: Update documentation.
22746         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
22747
22748 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
22749
22750         stdint: omit redundant check for wchar.h
22751         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
22752         always tests whether wchar.h exists, so remove the now-redundant test.
22753
22754 2011-02-18  Bruno Haible  <bruno@clisp.org>
22755
22756         stdint: Cut dependency to module 'wchar'.
22757         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
22758         include the necessary prerequisites.
22759         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
22760         * modules/stdint (Depends-on): Remove wchar.
22761         (Makefile.am): Substitute HAVE_WCHAR_H.
22762         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
22763
22764 2011-02-18  Eric Blake  <eblake@redhat.com>
22765
22766         longlong: skip, rather than fail, on cross-compilation
22767         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
22768         when cross-compiling; regression from 2011-02-16.
22769
22770 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22771
22772         * NEWS: Mention 2011-02-08 change to stdlib.
22773
22774 2011-02-17  Bruno Haible  <bruno@clisp.org>
22775
22776         getloadavg: Add comments about platforms.
22777         * m4/getloadavg.m4: Add comment.
22778         * lib/getloadavg.c: Likewise.
22779
22780 2011-02-17  Bruno Haible  <bruno@clisp.org>
22781
22782         getloadavg: Fix link error on Solaris 2.6.
22783         * modules/getloadavg (Link): New section.
22784         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
22785         linking test-getloadavg.
22786         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
22787         getloadavg.
22788
22789 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22790
22791         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
22792         It was 'int', but this doesn't match the IRIX 6.5 manual.
22793         Suggested by Bruno Haible in
22794         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
22795
22796 2011-02-17  Bruno Haible  <bruno@clisp.org>
22797
22798         havelib: Fix comments.
22799         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
22800         change.
22801
22802 2011-02-17  Bruno Haible  <bruno@clisp.org>
22803
22804         havelib: Update config.rpath.
22805         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
22806
22807 2011-02-17  Bruno Haible  <bruno@clisp.org>
22808
22809         getloadavg test: Add some plausibility checks.
22810         * tests/test-getloadavg.c (check_avg): Print a warning when the value
22811         is improbable.
22812
22813 2011-02-16  Eric Blake  <eblake@redhat.com>
22814
22815         maintainer-makefile: make syntax-check a no-op from tarballs
22816         * top/maint.mk (no-vc-detected): New rule.
22817         (local-checks-available): Use it to avoid hanging if someone tries
22818         'make syntax-check' from a tarball.  Also append to any non-syntax
22819         checks already defined in cfg.mk.
22820
22821 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
22822
22823         longlong: tune, particularly for common case of c99
22824
22825         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
22826         or running anything if c99, or if unsigned long long int does not
22827         work.  In either case, we know the answer without further tests.
22828         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
22829         it at most once, and use its results for both long long int and
22830         unsigned long long int.  This is more likely to be efficient in
22831         the common case where the program wants to check for both long
22832         long int and unsigned long long int.
22833         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
22834         since the answer is already known.
22835
22836 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
22837
22838         getloadavg: set errno
22839         * lib/getloadavg.c: Set errno when returning -1.  If no other
22840         error number looks appropriate, set it to ENOSYS if the getloadavg
22841         looks like it can't possibly ever work, ENOTSUP otherwise.
22842         Suggested by Bruno Haible in
22843         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
22844
22845         getloadavg: trim unused parts and speed up 'configure'
22846         * NEWS: Document this.
22847         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
22848         always compiled if getloadavg is absent.
22849         Move test code to ...
22850         * tests/test-getloadavg.c: New file, containing previous
22851         contents of test from lib/getloadavg.c.  It also contains
22852         suggestions by Bruno Haible in
22853         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
22854         * modules/getloadavg-tests: New file.
22855         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
22856         Do tests in the same order as they're needed for getloadavg.c.
22857         Omit setgid-related tests that generate symbols KMEM_GROUP,
22858         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
22859         Do only the tests that are needed to see whether the system has
22860         getloadavg, moving the other tests into ...
22861         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
22862         NLIST_NAME_UNION; nobody should be using it.  Do not define
22863         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
22864         relevant, as the user of this module shouldn't care how getloadavg
22865         is implemented.
22866
22867         getloadavg: omit unused var
22868         * lib/getloadavg.c (getloadavg): Omit unused local variable.
22869
22870 2011-02-15  Jim Meyering  <meyering@redhat.com>
22871
22872         doc: update users.txt
22873         * users.txt: Update iwhd's URL.
22874
22875 2011-02-13  Bruno Haible  <bruno@clisp.org>
22876
22877         Consistent macro naming for macros that use GCC __attribute__.
22878         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
22879         _ATTRIBUTE_NONNULL_.
22880         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
22881         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
22882         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
22883         ATTRIBUTE_DEPRECATED.
22884         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
22885         ATTRIBUTE_NORETURN.
22886         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22887         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22888         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22889         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22890         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
22891         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
22892         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
22893         ATTRIBUTE_SENTINEL.
22894         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
22895         ATTRIBUTE_RETURN_CHECK.
22896         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
22897         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
22898         ATTRIBUTE_NORETURN.
22899         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
22900         Reported by Paul Eggert.
22901
22902 2011-02-13  Bruno Haible  <bruno@clisp.org>
22903
22904         Don't interfere with a program's definition of __attribute__.
22905         * lib/argp.h (__attribute__): Remove definition.
22906         (_GL_ATTRIBUTE_FORMAT): New macro.
22907         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
22908         * lib/argp-fmtstream.h (__attribute__): Remove definition.
22909         (_GL_ATTRIBUTE_FORMAT): New macro.
22910         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
22911         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
22912         GCC 3 or newer.
22913         * lib/error.h (__attribute__): Remove definition.
22914         (_GL_ATTRIBUTE_FORMAT): New macro.
22915         (error, error_at_line): Use it.
22916         * lib/hash.h (__attribute__): Remove definition.
22917         (ATTRIBUTE_WUR): Update definition. Define always.
22918         * lib/openat.h (__attribute__): Remove definition.
22919         (ATTRIBUTE_NORETURN): Update definition. Define always.
22920         * lib/sigpipe-die.h (__attribute__): Remove definition.
22921         (ATTRIBUTE_NORETURN): Update definition. Define always.
22922         * lib/vasnprintf.h (__attribute__): Remove definition.
22923         (_GL_ATTRIBUTE_FORMAT): New macro.
22924         (asnprintf, vasnprintf): Use it.
22925         * lib/xalloc.h (__attribute__): Remove definition.
22926         (ATTRIBUTE_NORETURN): Update definition. Define always.
22927         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
22928         * lib/xmemdup0.h (__attribute__): Remove definition.
22929         (ATTRIBUTE_NORETURN): Update definition. Define always.
22930         * lib/xprintf.h (__attribute__): Remove definition.
22931         (_GL_ATTRIBUTE_FORMAT): New macro.
22932         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
22933         * lib/xstrtol.h (__attribute__): Remove definition.
22934         (ATTRIBUTE_NORETURN): Update definition. Define always.
22935         * lib/xvasprintf.h (__attribute__): Remove definition.
22936         (_GL_ATTRIBUTE_FORMAT): New macro.
22937         (xasprintf, xvasprintf): Use it.
22938         * tests/test-argmatch.c (__attribute__): Remove definition.
22939         (ATTRIBUTE_NORETURN): Update definition. Define always.
22940         * tests/test-exclude.c (__attribute__): Remove definition.
22941         (ATTRIBUTE_NORETURN): Update definition. Define always.
22942         Reported by Paul Eggert.
22943
22944 2011-02-13  Bruno Haible  <bruno@clisp.org>
22945
22946         mbrtowc: Add more tests for native Windows platforms.
22947         * tests/test-mbrtowc-w32-1.sh: New file.
22948         * tests/test-mbrtowc-w32-2.sh: New file.
22949         * tests/test-mbrtowc-w32-3.sh: New file.
22950         * tests/test-mbrtowc-w32-4.sh: New file.
22951         * tests/test-mbrtowc-w32-5.sh: New file.
22952         * tests/test-mbrtowc-w32.c: New file.
22953         * modules/mbrtowc-tests (Files): Add them.
22954         (Makefile.am): Arrange to run these tests.
22955         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
22956         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
22957
22958 2011-02-13  Bruno Haible  <bruno@clisp.org>
22959
22960         mbrtowc: Work around native Windows bug.
22961         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
22962         guess when no suitable locale for testing was found.
22963         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
22964
22965 2011-02-13  Bruno Haible  <bruno@clisp.org>
22966
22967         mbsinit: Work around mingw bug.
22968         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
22969         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
22970         Windows.
22971         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
22972
22973 2011-02-13  Bruno Haible  <bruno@clisp.org>
22974
22975         mbsinit: Don't crash for a NULL argument.
22976         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
22977         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
22978
22979 2011-02-13  Bruno Haible  <bruno@clisp.org>
22980
22981         Don't interfere with a program's definition of __attribute__.
22982         * lib/stdio.in.h (__attribute__): Remove definition.
22983         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
22984         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
22985         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
22986         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
22987         * lib/string.in.h (__attribute__): Remove definition.
22988         Reported by Paul Eggert.
22989
22990 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22991
22992         stdlib: don't get in the way of non-GCC __attribute__
22993         See thread starting at
22994         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
22995         Revert previous stdlib change, installing the following instead:
22996         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
22997         to get in the way of a non-GCC compiler that supports __attribute__.
22998         (_GL_ATTRIBUTE_RETURN): New macro.
22999         (_Exit): Use it instead of __attribute__.
23000
23001 2011-02-12  Bruno Haible  <bruno@clisp.org>
23002
23003         quotearg test: Avoid test failure on mingw.
23004         * tests/test-quotearg.sh: Convert the locale identifier from native
23005         Windows syntax to Unix syntax.
23006
23007 2011-02-12  Bruno Haible  <bruno@clisp.org>
23008
23009         setlocale: Prefer gnulib's override over libintl's override.
23010         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
23011         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
23012         GNULIB_defined_setlocale is set.
23013
23014 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23015
23016         stdlib: support non-GCC __attribute__
23017
23018         Fix a serious and tricky problem encountered when attempting to
23019         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
23020         5.5, but it crashed due to memory corruption on Solaris 10 with
23021         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
23022         bits that are otherwise zero.  This tagging is optional inside
23023         Emacs but is preferred and is used when __attribute__ ((__aligned
23024         (8))) works, as it does with both recent-enough GCC and with Sun C
23025         5.11.  However, Sun C 5.11 is not GCC and does not #define
23026         __GNUC__ and __GNUC_MINOR__.
23027
23028         When I added the getloadavg module to Emacs, it brought in
23029         stdlib.in.h, which contained this fragment:
23030
23031            #ifndef __attribute__
23032            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
23033            #  define __attribute__(Spec)   /* empty */
23034            # endif
23035            #endif
23036
23037         When files that include <stdlib.h> were compiled with Sun C 5.11,
23038         the above code disabled __attribute__ ((__aligned (8))), which
23039         caused variables to not be properly aligned, which eventually led
23040         to the pointer corruption mentioned above.  (This was a bit hard
23041         to diagnose, unfortunately.)
23042
23043         Several "#define __attribute__(X) /* empty */" code snippets need
23044         to be eradicated from Gnulib to work with non-GCC compilers that
23045         support __attribute__.  The Autoconf way to do this is to test for
23046         each kind of attribute that we want support for, and selectively
23047         enable that in source code.
23048
23049         Fix this problem just for stdlib.h, by adding a test for the
23050         __noreturn__ attribute, and change stdlib.in.h to use that test
23051         when needed.  This technique can be easily generalized to the
23052         other *.in.h files and attributes, and a similar technique can be
23053         used for *.h and *.c files.  This patch is enough to solve the
23054         problem for Emacs + getloadavg, and I thought I'd publish it for
23055         feedback before undertaking further, similar fixes in other
23056         modules.
23057
23058         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
23059         because it's not needed for stdlib.h.  It merely substitutes the
23060         value directly into stdlib.h.  We may well need to #define it, or
23061         similar symbols, for other modules, but it's nice to also have an
23062         option to not #define it for applications like Emacs that do not
23063         need it.
23064
23065         * lib/stdlib.in.h (__attribute__): Do not #define.
23066         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
23067         be defined only if the _Exit module is also used.
23068         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
23069         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
23070         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
23071         platforms.
23072         * modules/_Exit (Files): Add m4/attribute.m4.
23073         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
23074         * m4/attribute.m4: New file.
23075
23076 2011-02-12  Bruno Haible  <bruno@clisp.org>
23077
23078         wcsrtombs: Work around bug on native Windows.
23079         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
23080         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
23081         instead of len.
23082         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
23083
23084 2011-02-12  Bruno Haible  <bruno@clisp.org>
23085
23086         mbsrtowcs: Work around bug on native Windows.
23087         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
23088         against mingw bug.
23089         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
23090
23091 2011-02-12  Bruno Haible  <bruno@clisp.org>
23092
23093         Avoid setlocale bugs in tests.
23094         * modules/btowc (Dependencies): Add setlocale.
23095         * modules/c-strcase (Dependencies): Likewise.
23096         * modules/mbmemcasecmp (Dependencies): Likewise.
23097         * modules/mbmemcasecoll (Dependencies): Likewise.
23098         * modules/mbrtowc (Dependencies): Likewise.
23099         * modules/mbscasecmp (Dependencies): Likewise.
23100         * modules/mbscasestr (Dependencies): Likewise.
23101         * modules/mbschr (Dependencies): Likewise.
23102         * modules/mbscspn (Dependencies): Likewise.
23103         * modules/mbsinit (Dependencies): Likewise.
23104         * modules/mbsncasecmp (Dependencies): Likewise.
23105         * modules/mbsnrtowcs (Dependencies): Likewise.
23106         * modules/mbspbrk (Dependencies): Likewise.
23107         * modules/mbspcasecmp (Dependencies): Likewise.
23108         * modules/mbsrchr (Dependencies): Likewise.
23109         * modules/mbsrtowcs (Dependencies): Likewise.
23110         * modules/mbsspn (Dependencies): Likewise.
23111         * modules/mbsstr (Dependencies): Likewise.
23112         * modules/nl_langinfo (Dependencies): Likewise.
23113         * modules/quotearg (Dependencies): Likewise.
23114         * modules/unicase/locale-language (Dependencies): Likewise.
23115         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
23116         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
23117         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
23118         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
23119         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
23120         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
23121         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
23122         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
23123         * modules/vasnprintf-posix (Dependencies): Likewise.
23124         * modules/wcrtomb (Dependencies): Likewise.
23125         * modules/wcsnrtombs (Dependencies): Likewise.
23126         * modules/wcsrtombs (Dependencies): Likewise.
23127
23128 2011-02-12  Bruno Haible  <bruno@clisp.org>
23129
23130         setlocale: Workaround native Windows bug.
23131         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
23132         succeeds but sets LC_CTYPE to "C", report a failure.
23133         * tests/test-setlocale2.sh: New file.
23134         * tests/test-setlocale2.c: New file.
23135         * modules/setlocale-tests (Files): Add the new files.
23136         (Makefile.am): Enable test-setlocale2.sh test.
23137         * doc/posix-functions/setlocale.texi: Mention workaround.
23138
23139 2011-02-11  Bruno Haible  <bruno@clisp.org>
23140
23141         Tests for module 'setlocale'.
23142         * modules/setlocale-tests: New file.
23143         * tests/test-setlocale1.sh: New file.
23144         * tests/test-setlocale1.c: New file.
23145
23146         New module 'setlocale'.
23147         * lib/locale.in.h (setlocale): New declaration.
23148         * lib/setlocale.c: New file, based on
23149         gettext/gettext-runtime/intl/setlocale.c.
23150         * m4/setlocale.m4: New file.
23151         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
23152         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
23153         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
23154         REPLACE_SETLOCALE.
23155         * modules/setlocale: New file.
23156         * tests/test-locale-c++.cc: Test the declaration of setlocale.
23157         * doc/posix-functions/setlocale.texi: Mention the new module.
23158
23159 2011-02-11  Bruno Haible  <bruno@clisp.org>
23160
23161         Prepare for locale dependent tests on mingw.
23162         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
23163         because it has the wrong locale encoding.
23164         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
23165         French_France.1252 instead of "fr".
23166         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
23167         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
23168         because it has the wrong locale encoding.
23169         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
23170         native Windows, try Turkish_Turkey.65001.
23171         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
23172         Chinese_China.54936.
23173
23174         Prepare for locale dependent tests on mingw.
23175         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
23176         differently.
23177         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
23178         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
23179         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
23180         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23181
23182 2011-02-11  Eric Blake  <eblake@redhat.com>
23183
23184         strptime: avoid compiler warnings
23185         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
23186         compiler warnings about dead code.
23187         Reported by Daniel P. Berrange.
23188
23189 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
23190
23191         doc: update users.txt
23192         * users.txt: Add rcs.
23193
23194 2011-02-10  John W. Eaton  <jwe@gnu.org>
23195
23196         doc: update users.txt
23197         * users.txt: Add octave.
23198
23199 2011-02-10  Jim Meyering  <meyering@redhat.com>
23200
23201         doc: update users.txt
23202         * users.txt: Add iwhd.
23203
23204 2011-02-09  Bruno Haible  <bruno@clisp.org>
23205
23206         gnulib-tool: Make copyright notice adjustment more robust.
23207         * gnulib-tool (func_import): In sed_transform_main_lib_file,
23208         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
23209         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
23210         License".
23211         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
23212
23213 2011-02-06  Bruno Haible  <bruno@clisp.org>
23214
23215         New module 'towctrans'.
23216         * modules/towctrans: New file.
23217         * lib/wctype.in.h (towctrans): New declaration.
23218         * lib/towctrans.c: New file.
23219         * lib/towctrans-impl.h: New file.
23220         * m4/towctrans.m4: New file.
23221         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
23222         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
23223         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
23224         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
23225         * doc/posix-functions/towctrans.texi: Mention the new module.
23226
23227 2011-02-06  Bruno Haible  <bruno@clisp.org>
23228
23229         New module 'wctrans'.
23230         * modules/wctrans: New file.
23231         * lib/wctype.in.h (wctrans): New declaration.
23232         * lib/wctrans.c: New file.
23233         * lib/wctrans-impl.h: New file.
23234         * m4/wctrans.m4: New file.
23235         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
23236         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
23237         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
23238         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
23239         * doc/posix-functions/wctrans.texi: Mention the new module.
23240
23241 2011-02-06  Bruno Haible  <bruno@clisp.org>
23242
23243         New module 'iswctype'.
23244         * modules/iswctype: New file.
23245         * lib/wctype.in.h (iswctype): New declaration.
23246         * lib/iswctype.c: New file.
23247         * lib/iswctype-impl.h: New file.
23248         * m4/iswctype.m4: New file.
23249         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
23250         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
23251         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
23252         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
23253         * doc/posix-functions/iswctype.texi: Mention the new module and the
23254         HP-UX 11.00 problem.
23255
23256 2011-02-06  Bruno Haible  <bruno@clisp.org>
23257
23258         New module 'wctype'.
23259         * modules/wctype: Change to represent the wctype() substitute.
23260         * lib/wctype.in.h (wctype): New declaration.
23261         * lib/wctype.c: New file.
23262         * lib/wctype-impl.h: New file.
23263         * m4/wctype.m4: New file.
23264         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
23265         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
23266         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
23267         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
23268         * doc/posix-functions/wctype.texi: Mention the new module and the
23269         HP-UX 11.00 problem.
23270
23271 2011-02-06  Bruno Haible  <bruno@clisp.org>
23272
23273         wctype-h: Ensure wctype_t and wctrans_t are defined.
23274         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
23275         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23276         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23277         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
23278         HAVE_WCTRANS_T.
23279         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
23280
23281 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
23282
23283         flock: fix license typo
23284
23285         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
23286         omitted.
23287
23288 2011-02-08  Bruno Haible  <bruno@clisp.org>
23289
23290         Split large sed scripts, for HP-UX sed.
23291         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
23292         to avoid HP-UX limit of 99 commands, in the near future.
23293         * modules/stdlib (Makefile.am): Likewise.
23294         * modules/unistd (Makefile.am): Likewise.
23295         * modules/wchar (Makefile.am): Likewise.
23296         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23297         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
23298         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
23299
23300 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23301             Bruno Haible  <bruno@clisp.org>
23302
23303         stdlib: improve random_r modularization
23304         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
23305         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
23306         you also need the random_r module to get this material right.
23307         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
23308         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
23309         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
23310
23311 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23312
23313         stdlib: don't depend on stdint
23314         * lib/stdlib.in.h: Don't include <stdint.h> merely because
23315         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
23316         be independent of whether stdint.h is needed.
23317         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
23318         here, instead of ...
23319         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
23320         struct random_data should be using the random_r module, not just
23321         the stdlib module (which wouldn't make sense: what package needs
23322         just struct random_data without also needing random_r?).
23323         * modules/stdlib (Depends-on): Remove stdint.
23324
23325         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
23326         See the thread rooted at
23327         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
23328         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
23329         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
23330         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
23331         __VMS)); previously it was always included (via fcntl--.h).
23332         (getloadavg): Do not use c_strtod.  Instead, approximate it by
23333         hand; this is good enough for load averages.  Also, do not use
23334         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
23335         flags directly if available and don't bother otherwise.  (Packages
23336         that need the extra reliability should use the modules that define
23337         these flags on older platforms that lack them.)
23338         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
23339         fcntl-safer.
23340
23341 2011-02-08  Jim Meyering  <meyering@redhat.com>
23342
23343         di-set.h, ino-map.h: add multiple-inclusion guard
23344         Technically, the guard is required only for ino-map.h, due to its
23345         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
23346         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
23347         * lib/ino-map.h: Likewise.
23348
23349 2011-02-06  Bruno Haible  <bruno@clisp.org>
23350
23351         iswblank: Ensure declaration on glibc systems.
23352         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
23353         * modules/iswblank (Dependencies): Add 'extensions'.
23354         * doc/posix-functions/iswblank.texi: Document the glibc problem.
23355
23356 2011-02-06  Bruno Haible  <bruno@clisp.org>
23357
23358         New module 'iswblank'.
23359         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
23360         * modules/iswblank: New file.
23361         * modules/wctype-h (Files): Remove lib/iswblank.c.
23362         (Makefile.am): Substitute GNULIB_ISWBLANK.
23363         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
23364         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
23365         (gl_WCTYPE_H_DEFAULTS): New macro.
23366         (gl_WCTYPE_H): Require it. Remove iswblank related code.
23367         * modules/iswblank-tests: New file.
23368         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
23369         * tests/test-wctype-h.c (main): Remove iswblank tests.
23370         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
23371         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
23372         of 'wctype-h'.
23373         * NEWS: Mention the change.
23374         * modules/mbchar (Depends-on): Add iswblank.
23375
23376 2011-02-08  Bruno Haible  <bruno@clisp.org>
23377
23378         di-set tests: Refactor.
23379         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
23380         unnecessary includes.
23381         (ASSERT): Remove macro.
23382         (main): Make C90 compliant by avoiding variable declaration after
23383         statement.
23384         * modules/di-set-tests (Files): Add tests/macros.h.
23385
23386 2011-02-08  Bruno Haible  <bruno@clisp.org>
23387
23388         ino-map tests: Refactor.
23389         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
23390         unnecessary includes.
23391         (ASSERT): Remove macro.
23392         (main): Make C90 compliant by avoiding variable declaration after
23393         statement.
23394         * modules/ino-map-tests (Files): Add tests/macros.h.
23395
23396 2011-02-08  Jim Meyering  <meyering@redhat.com>
23397
23398         di-set: add "const" to a cast
23399         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
23400         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
23401
23402 2011-02-06  Bruno Haible  <bruno@clisp.org>
23403
23404         Rename module 'wctype' to 'wctype-h'.
23405         * modules/wctype-h: Renamed from modules/wctype.
23406         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
23407         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
23408         (Files, Depends-on, Makefile.am): Update.
23409         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
23410         (Files, Makefile.am): Update.
23411         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
23412         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
23413         * doc/posix-headers/wctype.texi: Update.
23414         * doc/posix-functions/iswalnum.texi: Update.
23415         * doc/posix-functions/iswalpha.texi: Update.
23416         * doc/posix-functions/iswblank.texi: Update.
23417         * doc/posix-functions/iswcntrl.texi: Update.
23418         * doc/posix-functions/iswdigit.texi: Update.
23419         * doc/posix-functions/iswgraph.texi: Update.
23420         * doc/posix-functions/iswlower.texi: Update.
23421         * doc/posix-functions/iswprint.texi: Update.
23422         * doc/posix-functions/iswpunct.texi: Update.
23423         * doc/posix-functions/iswspace.texi: Update.
23424         * doc/posix-functions/iswupper.texi: Update.
23425         * doc/posix-functions/iswxdigit.texi: Update.
23426         * doc/posix-functions/towlower.texi: Update.
23427         * doc/posix-functions/towupper.texi: Update.
23428         * NEWS: Mention the change.
23429         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
23430         * modules/mbchar (Dependencies): Likewise.
23431         * modules/mbswidth (Dependencies): Likewise.
23432         * modules/quotearg (Dependencies): Likewise.
23433         * modules/regex (Dependencies): Likewise.
23434         * modules/wcscasecmp (Dependencies): Likewise.
23435         * modules/wcsncasecmp (Dependencies): Likewise.
23436         * modules/wcwidth (Dependencies): Likewise.
23437
23438 2011-02-06  Bruno Haible  <bruno@clisp.org>
23439
23440         New module 'wcswidth'.
23441         * modules/wcswidth: New file.
23442         * lib/wchar.in.h (wcswidth): New declaration.
23443         * lib/wcswidth.c: New file.
23444         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
23445         * m4/wcswidth.m4: New file.
23446         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
23447         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
23448         REPLACE_WCSWIDTH.
23449         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
23450         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
23451         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
23452         * doc/posix-functions/wcswidth.texi: Mention the new module.
23453
23454 2011-02-06  Bruno Haible  <bruno@clisp.org>
23455
23456         New module 'wcstok'.
23457         * modules/wcstok: New file.
23458         * lib/wchar.in.h (wcstok): New declaration.
23459         * lib/wcstok.c: New file.
23460         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
23461         * m4/wcstok.m4: New file.
23462         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
23463         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
23464         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
23465         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
23466         * doc/posix-functions/wcstok.texi: Mention the new module.
23467
23468 2011-02-06  Bruno Haible  <bruno@clisp.org>
23469
23470         New module 'wcsstr'.
23471         * modules/wcsstr: New file.
23472         * lib/wchar.in.h (wcsstr): New declaration.
23473         * lib/wcsstr.c: New file.
23474         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
23475         * m4/wcsstr.m4: New file.
23476         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
23477         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
23478         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
23479         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
23480         * doc/posix-functions/wcsstr.texi: Mention the new module.
23481
23482 2011-02-06  Bruno Haible  <bruno@clisp.org>
23483
23484         New module 'wcspbrk'.
23485         * modules/wcspbrk: New file.
23486         * lib/wchar.in.h (wcspbrk): New declaration.
23487         * lib/wcspbrk.c: New file.
23488         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
23489         * m4/wcspbrk.m4: New file.
23490         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
23491         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
23492         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
23493         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
23494         * doc/posix-functions/wcspbrk.texi: Mention the new module.
23495
23496 2011-02-06  Bruno Haible  <bruno@clisp.org>
23497
23498         New module 'wcsspn'.
23499         * modules/wcsspn: New file.
23500         * lib/wchar.in.h (wcsspn): New declaration.
23501         * lib/wcsspn.c: New file.
23502         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
23503         * m4/wcsspn.m4: New file.
23504         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
23505         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
23506         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
23507         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
23508         * doc/posix-functions/wcsspn.texi: Mention the new module.
23509
23510 2011-02-06  Bruno Haible  <bruno@clisp.org>
23511
23512         New module 'wcscspn'.
23513         * modules/wcscspn: New file.
23514         * lib/wchar.in.h (wcscspn): New declaration.
23515         * lib/wcscspn.c: New file.
23516         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
23517         * m4/wcscspn.m4: New file.
23518         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
23519         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
23520         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
23521         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
23522         * doc/posix-functions/wcscspn.texi: Mention the new module.
23523
23524 2011-02-06  Bruno Haible  <bruno@clisp.org>
23525
23526         New module 'wcsrchr'.
23527         * modules/wcsrchr: New file.
23528         * lib/wchar.in.h (wcsrchr): New declaration.
23529         * lib/wcsrchr.c: New file.
23530         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
23531         * m4/wcsrchr.m4: New file.
23532         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
23533         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
23534         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
23535         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
23536         * doc/posix-functions/wcsrchr.texi: Mention the new module.
23537
23538 2011-02-06  Bruno Haible  <bruno@clisp.org>
23539
23540         New module 'wcschr'.
23541         * modules/wcschr: New file.
23542         * lib/wchar.in.h (wcschr): New declaration.
23543         * lib/wcschr.c: New file.
23544         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
23545         * m4/wcschr.m4: New file.
23546         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
23547         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
23548         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
23549         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
23550         * doc/posix-functions/wcschr.texi: Mention the new module.
23551
23552 2011-02-06  Bruno Haible  <bruno@clisp.org>
23553
23554         New module 'wcsdup'.
23555         * modules/wcsdup: New file.
23556         * lib/wchar.in.h (wcsdup): New declaration.
23557         * lib/wcsdup.c: New file.
23558         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
23559         * m4/wcsdup.m4: New file.
23560         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
23561         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
23562         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
23563         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
23564         * doc/posix-functions/wcsdup.texi: Mention the new module.
23565
23566 2011-02-06  Bruno Haible  <bruno@clisp.org>
23567
23568         New module 'wcsxfrm'.
23569         * modules/wcsxfrm: New file.
23570         * lib/wchar.in.h (wcsxfrm): New declaration.
23571         * lib/wcsxfrm.c: New file.
23572         * lib/wcsxfrm-impl.h: New file.
23573         * m4/wcsxfrm.m4: New file.
23574         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
23575         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
23576         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
23577         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
23578         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
23579
23580 2011-02-06  Bruno Haible  <bruno@clisp.org>
23581
23582         New module 'wcscoll'.
23583         * modules/wcscoll: New file.
23584         * lib/wchar.in.h (wcscoll): New declaration.
23585         * lib/wcscoll.c: New file.
23586         * lib/wcscoll-impl.h: New file.
23587         * m4/wcscoll.m4: New file.
23588         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
23589         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
23590         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
23591         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
23592         * doc/posix-functions/wcscoll.texi: Mention the new module.
23593
23594 2011-02-06  Bruno Haible  <bruno@clisp.org>
23595
23596         New module 'wcsncasecmp'.
23597         * modules/wcsncasecmp: New file.
23598         * lib/wchar.in.h (wcsncasecmp): New declaration.
23599         * lib/wcsncasecmp.c: New file.
23600         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
23601         * m4/wcsncasecmp.m4: New file.
23602         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
23603         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
23604         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
23605         HAVE_WCSNCASECMP.
23606         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
23607         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
23608
23609 2011-02-06  Bruno Haible  <bruno@clisp.org>
23610
23611         New module 'wcscasecmp'.
23612         * modules/wcscasecmp: New file.
23613         * lib/wchar.in.h (wcscasecmp): New declaration.
23614         * lib/wcscasecmp.c: New file.
23615         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
23616         * m4/wcscasecmp.m4: New file.
23617         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
23618         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
23619         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
23620         HAVE_WCSCASECMP.
23621         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
23622         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
23623
23624 2011-02-05  Bruno Haible  <bruno@clisp.org>
23625
23626         New module 'wcsncmp'.
23627         * modules/wcsncmp: New file.
23628         * lib/wchar.in.h (wcsncmp): New declaration.
23629         * lib/wcsncmp.c: New file.
23630         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
23631         * m4/wcsncmp.m4: New file.
23632         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
23633         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
23634         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
23635         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
23636         * doc/posix-functions/wcsncmp.texi: Mention the new module.
23637
23638 2011-02-05  Bruno Haible  <bruno@clisp.org>
23639
23640         New module 'wcscmp'.
23641         * modules/wcscmp: New file.
23642         * lib/wchar.in.h (wcscmp): New declaration.
23643         * lib/wcscmp.c: New file.
23644         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
23645         * m4/wcscmp.m4: New file.
23646         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
23647         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
23648         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
23649         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
23650         * doc/posix-functions/wcscmp.texi: Mention the new module.
23651
23652 2011-02-05  Bruno Haible  <bruno@clisp.org>
23653
23654         New module 'wcsncat'.
23655         * modules/wcsncat: New file.
23656         * lib/wchar.in.h (wcsncat): New declaration.
23657         * lib/wcsncat.c: New file.
23658         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
23659         * m4/wcsncat.m4: New file.
23660         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
23661         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
23662         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
23663         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
23664         * doc/posix-functions/wcsncat.texi: Mention the new module.
23665
23666 2011-02-05  Bruno Haible  <bruno@clisp.org>
23667
23668         New module 'wcscat'.
23669         * modules/wcscat: New file.
23670         * lib/wchar.in.h (wcscat): New declaration.
23671         * lib/wcscat.c: New file.
23672         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
23673         * m4/wcscat.m4: New file.
23674         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
23675         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
23676         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
23677         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
23678         * doc/posix-functions/wcscat.texi: Mention the new module.
23679
23680 2011-02-05  Bruno Haible  <bruno@clisp.org>
23681
23682         New module 'wcpncpy'.
23683         * modules/wcpncpy: New file.
23684         * lib/wchar.in.h (wcpncpy): New declaration.
23685         * lib/wcpncpy.c: New file.
23686         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
23687         * m4/wcpncpy.m4: New file.
23688         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
23689         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
23690         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
23691         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
23692         * doc/posix-functions/wcpncpy.texi: Mention the new module.
23693
23694 2011-02-05  Bruno Haible  <bruno@clisp.org>
23695
23696         New module 'wcsncpy'.
23697         * modules/wcsncpy: New file.
23698         * lib/wchar.in.h (wcsncpy): New declaration.
23699         * lib/wcsncpy.c: New file.
23700         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
23701         * m4/wcsncpy.m4: New file.
23702         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
23703         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
23704         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
23705         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
23706         * doc/posix-functions/wcsncpy.texi: Mention the new module.
23707
23708 2011-02-05  Bruno Haible  <bruno@clisp.org>
23709
23710         New module 'wcpcpy'.
23711         * modules/wcpcpy: New file.
23712         * lib/wchar.in.h (wcpcpy): New declaration.
23713         * lib/wcpcpy.c: New file.
23714         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
23715         * m4/wcpcpy.m4: New file.
23716         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
23717         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
23718         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
23719         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
23720         * doc/posix-functions/wcpcpy.texi: Mention the new module.
23721
23722 2011-02-05  Bruno Haible  <bruno@clisp.org>
23723
23724         New module 'wcscpy'.
23725         * modules/wcscpy: New file.
23726         * lib/wchar.in.h (wcscpy): New declaration.
23727         * lib/wcscpy.c: New file.
23728         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
23729         * m4/wcscpy.m4: New file.
23730         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
23731         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
23732         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
23733         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
23734         * doc/posix-functions/wcscpy.texi: Mention the new module.
23735
23736 2011-02-05  Bruno Haible  <bruno@clisp.org>
23737
23738         New module 'wcsnlen'.
23739         * modules/wcsnlen: New file.
23740         * lib/wchar.in.h (wcsnlen): New declaration.
23741         * lib/wcsnlen.c: New file.
23742         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
23743         * m4/wcsnlen.m4: New file.
23744         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
23745         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
23746         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
23747         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
23748         * doc/posix-functions/wcsnlen.texi: Mention the new module.
23749
23750 2011-02-05  Bruno Haible  <bruno@clisp.org>
23751
23752         New module 'wcslen'.
23753         * modules/wcslen: New file.
23754         * lib/wchar.in.h (wcslen): New declaration.
23755         * lib/wcslen.c: New file.
23756         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
23757         * m4/wcslen.m4: New file.
23758         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
23759         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
23760         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
23761         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
23762         * doc/posix-functions/wcslen.texi: Mention the new module.
23763
23764 2011-02-05  Bruno Haible  <bruno@clisp.org>
23765
23766         New module 'wmemset'.
23767         * modules/wmemset: New file.
23768         * lib/wchar.in.h (wmemset): New declaration.
23769         * lib/wmemset.c: New file.
23770         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
23771         * m4/wmemset.m4: New file.
23772         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
23773         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
23774         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
23775         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
23776         * doc/posix-functions/wmemset.texi: Mention the new module.
23777
23778 2011-02-05  Bruno Haible  <bruno@clisp.org>
23779
23780         New module 'wmemmove'.
23781         * modules/wmemmove: New file.
23782         * lib/wchar.in.h (wmemmove): New declaration.
23783         * lib/wmemmove.c: New file.
23784         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
23785         * m4/wmemmove.m4: New file.
23786         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
23787         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
23788         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
23789         HAVE_WMEMMOVE.
23790         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
23791         * doc/posix-functions/wmemmove.texi: Mention the new module.
23792
23793 2011-02-05  Bruno Haible  <bruno@clisp.org>
23794
23795         New module 'wmemcpy'.
23796         * modules/wmemcpy: New file.
23797         * lib/wchar.in.h (wmemcpy): New declaration.
23798         * lib/wmemcpy.c: New file.
23799         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
23800         * m4/wmemcpy.m4: New file.
23801         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
23802         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
23803         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
23804         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
23805         * doc/posix-functions/wmemcpy.texi: Mention the new module.
23806
23807 2011-02-05  Bruno Haible  <bruno@clisp.org>
23808
23809         New module 'wmemcmp'.
23810         * modules/wmemcmp: New file.
23811         * lib/wchar.in.h (wmemcmp): New declaration.
23812         * lib/wmemcmp.c: New file.
23813         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
23814         * m4/wmemcmp.m4: New file.
23815         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
23816         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
23817         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
23818         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
23819         * doc/posix-functions/wmemcmp.texi: Mention the new module.
23820
23821 2011-02-07  Jim Meyering  <meyering@redhat.com>
23822
23823         di-set, ino-map: new modules, from coreutils
23824         * lib/di-set.c: New file.
23825         * lib/di-set.h: Likewise.
23826         * lib/ino-map.c: Likewise.
23827         * lib/ino-map.h: Likewise.
23828         * modules/di-set: Likewise.
23829         * modules/di-set-tests: Likewise.
23830         * modules/ino-map: Likewise.
23831         * modules/ino-map-tests: Likewise.
23832         * tests/test-di-set.c: Likewise.
23833         * tests/test-ino-map.c: Likewise.
23834
23835 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
23836
23837         getloadavg: merge minor changes from Emacs
23838
23839         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
23840         (getloadavg): Use memset, not bzero.
23841
23842         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
23843         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
23844         clash (bug#86).
23845
23846 2010-11-14  Bruno Haible  <bruno@clisp.org>
23847
23848         Allow multiple gnulib generated replacements to coexist.
23849         * lib/getopt.in.h (struct option): Avoid identical redefinition.
23850         * lib/inttypes.in.h (imaxdiv_t): Likewise.
23851         * lib/langinfo.in.h (nl_item): Likewise.
23852         * lib/math.in.h (_NaN, NAN): Likewise.
23853         * lib/netdb.in.h (struct addrinfo): Likewise.
23854         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
23855         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
23856         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
23857         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
23858         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
23859         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
23860         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
23861         pthread_mutexattr_init, pthread_mutexattr_settype,
23862         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
23863         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
23864         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
23865         pthread_spin_trylock, pthread_spin_unlock): Likewise.
23866         * lib/sched.in.h (struct sched_param): Likewise.
23867         * lib/se-selinux.in.h (security_class_t, security_context_t,
23868         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
23869         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
23870         lsetfilecon, fsetfilecon, security_check_context,
23871         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
23872         Likewise.
23873         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
23874         Likewise.
23875         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
23876         _gl_function_taking_int_returning_void_t, union sigval,
23877         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
23878         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
23879         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
23880         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
23881         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
23882         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
23883         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
23884         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
23885         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
23886         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
23887         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
23888         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
23889         socklen_t, rpl_fd_isset): Likewise.
23890         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
23891         * lib/sys_time.in.h (struct timeval): Likewise.
23892         * lib/sys_times.in.h (struct tms): Likewise.
23893         * lib/sys_utsname.in.h (struct utsname):
23894         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
23895         * lib/unistd.in.h (getpagesize): Likewise.
23896         * lib/wchar.in.h (mbstate_t): Likewise.
23897         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23898         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
23899         towlower, towupper): Likewise.
23900         Reported by Sam Steingold <sds@gnu.org>.
23901
23902 2011-02-05  Eric Blake  <eblake@redhat.com>
23903
23904         unsetenv: work around Haiku issues
23905         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
23906         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
23907
23908 2010-12-30  Bruce Korb  <bkorb@gnu.org>
23909
23910         libposix: avoid calling error() within libposix
23911         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
23912         is defined.
23913
23914 2011-02-05  Eric Blake  <eblake@redhat.com>
23915
23916         strerror_r-posix: port to cygwin
23917         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
23918         implementation.
23919         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
23920         * tests/test-strerror_r.c (main): Fix test.
23921         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
23922         issue.
23923
23924 2011-02-05  Bruno Haible  <bruno@clisp.org>
23925
23926         New module 'wmemchr'.
23927         * modules/wmemchr: New file.
23928         * lib/wchar.in.h (wmemchr): New declaration.
23929         * lib/wmemchr.c: New file.
23930         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
23931         * m4/wmemchr.m4: New file.
23932         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
23933         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
23934         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
23935         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
23936         * doc/posix-functions/wmemchr.texi: Mention the new module.
23937
23938 2011-02-04  Eric Blake  <eblake@redhat.com>
23939
23940         fdopendir: detect FreeBSD bug
23941         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
23942         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
23943
23944 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
23945
23946         stdbool: do not define HAVE_STDBOOL_H
23947         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
23948         AC_HEADER_STDBOOL.  All uses changed.  Do not define
23949         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
23950         imported from the latest Autoconf git.  It was motivated by Emacs,
23951         which uses gnulib but does not need HAVE_STDBOOL_H.
23952
23953 2011-02-04  Bruno Haible  <bruno@clisp.org>
23954
23955         wcsnrtombs: Prepare for new module wwcsnrtombs.
23956         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
23957         * lib/wcsnrtombs.c: Include it.
23958         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
23959
23960         wcsrtombs: Prepare for new module wwcsrtombs.
23961         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
23962         * lib/wcsrtombs.c: Include it.
23963         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
23964
23965         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
23966         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
23967         * lib/mbsnrtowcs.c: Include it.
23968         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
23969
23970         mbsrtowcs: Prepare for new module mbsrtowwcs.
23971         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
23972         * lib/mbsrtowcs.c: Include it.
23973         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
23974
23975 2011-02-04  Bruno Haible  <bruno@clisp.org>
23976
23977         vasnprintf: Reduce use of malloc for small format strings.
23978         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
23979         (arguments): Add room for the first 7 arguments.
23980         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
23981         (char_directives, u8_directives, u16_directives, u32_directives): Add
23982         room for the first 7 directives.
23983         * lib/printf-parse.c: Include <string.h>.
23984         (PRINTF_PARSE): Change memory handling code so that it uses the first
23985         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
23986         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
23987         Reported by Pádraig Brady <P@draigbrady.com>.
23988
23989 2011-01-31  Eric Blake  <eblake@redhat.com>
23990
23991         dup2: work around Haiku bug
23992         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
23993         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
23994         * doc/posix-functions/dup2.texi (dup2): Document the bug.
23995         * tests/test-dup2.c (main): Enhance test.
23996
23997 2011-01-31  Simon Josefsson  <simon@josefsson.org>
23998
23999         doc: off_t is not available in eglibc 2.11.2 stdio.h.
24000         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
24001         declared by eglibc 2.11.2.
24002         * lib/stdio.in.h: Likewise.
24003
24004 2011-01-31  Eric Blake  <eblake@redhat.com>
24005
24006         ignore-value: add missing test dependency
24007         * tests/test-ignore-value.c: Revert previous change; stdio.h
24008         provides off_t.
24009         * modules/ignore-value-tests (Depends-on): Add missing dependency.
24010
24011 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
24012
24013         mktime: clarify long_int width checking
24014         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
24015         the top level, to make it clearer that the assumption about
24016         long_int width is being checked.  See
24017         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
24018
24019 2011-01-30  Simon Josefsson  <simon@josefsson.org>
24020
24021         ignore-value: Fix self-test.
24022         * tests/test-ignore-value.c: Include sys/types.h for off_t.
24023
24024 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
24025
24026         TYPE_MAXIMUM: avoid theoretically undefined behavior
24027         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
24028         negative number, which the C Standard says has undefined behavior.
24029         In practice this is not a problem, but might as well do it by the book.
24030         Reported by Rich Felker and Eric Blake; see
24031         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
24032         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
24033         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24034         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24035         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
24036         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24037         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
24038
24039         mktime: #undef mktime before #defining it
24040         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
24041
24042         mktime: systematically normalize tm_isdst comparisons
24043         * lib/mktime.c (isdst_differ): New function.
24044         (__mktime_internal): Use it systematically for all isdst comparisons.
24045         This completes the fix for libc BZ #6723, and removes the need for
24046         normalizing tm_isdst.  See
24047         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
24048         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
24049
24050         mktime: fix some integer overflow issues and sidestep the rest
24051
24052         This was prompted by a bug report by Benjamin Lindner for MinGW
24053         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
24054         His bug is due to signed integer overflow (0 - INT_MIN), and I
24055         I scanned through mktime.c looking for other integer overflow
24056         problems, fixing all the bugs I found.
24057
24058         Although the C Standard says the resulting code is still not safe
24059         in the presence of integer overflow, in practice it should be good
24060         enough for all real-world two's-complement implementations, except
24061         for debugging environments that deliberately trap on integer
24062         overflow (e.g., gcc -ftrapv).
24063
24064         * lib/mktime.c (WRAPV): New macro.
24065         (SHR): Also check that long_int and time_t shift right in the
24066         usual way, before using the fast-but-unportable method.
24067         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
24068         used.  The code already assumed two's complement, so there's
24069         no need to test for alternatives.  All uses removed.
24070         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
24071         the C standard.  Problem reported by Rich Felker in
24072         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
24073         (twos_complement_arithmetic): Also check long_int and time_t.
24074         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
24075         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
24076         (__mktime_internal): Avoid integer overflow with unary subtraction
24077         in two instances where -1 - X is an adequate replacement for -X,
24078         since the calculations are approximate.
24079
24080 2011-01-29  Eric Blake  <eblake@redhat.com>
24081
24082         mktime: avoid infinite loop
24083         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
24084         type; behavior is still undefined but portable to all known targets.
24085         Reported by Rich Felker.
24086
24087 2011-01-29  Simon Josefsson  <simon@josefsson.org>
24088
24089         rename, unlink, same-inode: Relicense.
24090         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
24091         * modules/unlink (License): Likewise.
24092         * modules/same-inode (License): Likewise.
24093
24094 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24095
24096         mktime: avoid problems on NetBSD 5 / i386
24097         * lib/mktime.c (long_int): New type.  This works around a problem
24098         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
24099         but time_t is 64 bits, and where I expect the existing code is
24100         wrong in some cases.
24101         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
24102         (ydhms_diff): Bring back the compile-time check for wide-enough
24103         year and yday.
24104
24105         mktime: fix misspelling in comment
24106         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
24107         This merges all recent glibc changes of importance.
24108
24109 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24110
24111         move-if-change: cope with concurrent mv of identical file.
24112         * build-aux/move-if-change (CMPPROG): Accept environment
24113         variable as an override for `cmp'.
24114         (usage): Document CMPPROG.
24115         Adjust comparison to drop stdout.  Cope with failure of mv if
24116         the target file exists and is identical to the source, for
24117         parallel builds.
24118         Report from H.J. Lu against binutils in PR binutils/12283.
24119
24120 2011-01-28  Bruce Korb  <bkorb@gnu.org>
24121
24122         * users.txt: Mention sharutils.
24123
24124 2011-01-28  Simon Josefsson  <simon@josefsson.org>
24125
24126         * users.txt: Mention OATH Toolkit.
24127
24128 2011-01-27  Bruno Haible  <bruno@clisp.org>
24129
24130         Prepare for supporting FreeBSD 10.
24131         * build-aux/config.libpath: Remove handling of freebsd1*.
24132
24133 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
24134
24135         Prepare for supporting FreeBSD 10.
24136         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
24137         match FreeBSD 10.0.
24138
24139 2011-01-27  Bruno Haible  <bruno@clisp.org>
24140
24141         vma-iter, get-rusage-as: Add OpenBSD support.
24142         * modules/vma-iter (configure.ac): Test for mquery.
24143         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
24144         * lib/vma-iter.c: Include <sys/mman.h>.
24145         (vma_iterate): Add an implementation based on mquery().
24146         * lib/resource-ext.h (get_rusage_as): Update comments.
24147         * lib/get-rusage-as.c: Likewise.
24148         * lib/get-rusage-data.c: Likewise.
24149
24150 2011-01-26  Karl Berry  <karl@gnu.org>
24151
24152         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
24153         variables to make it easier to override the makeinfo program used.
24154
24155 2011-01-26  Eric Blake  <eblake@redhat.com>
24156
24157         fcntl: work around Haiku F_DUPFD bugs
24158         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
24159         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
24160         cloexec bit on duplication.
24161         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
24162
24163 2011-01-26  Bruno Haible  <bruno@clisp.org>
24164
24165         Enable memory leak tests on AIX.
24166         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
24167         * tests/test-fprintf-posix3.c (main): Likewise.
24168
24169 2011-01-26  Bruno Haible  <bruno@clisp.org>
24170
24171         Tests for module 'get-rusage-data'.
24172         * modules/get-rusage-data-tests: New file.
24173         * tests/test-get-rusage-data.c: New file.
24174
24175         New module 'get-rusage-data'.
24176         * lib/resource-ext.h (get_rusage_data): New declaration.
24177         * lib/get-rusage-data.c: New file.
24178         * modules/get-rusage-data: New file.
24179
24180 2011-01-25  Bruno Haible  <bruno@clisp.org>
24181
24182         get-rusage-as: Allow for easier testing.
24183         * lib/resource-ext.h (get_rusage_as): Add comment.
24184         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
24185         (main): New function for interactive testing.
24186
24187 2011-01-25  Bruno Haible  <bruno@clisp.org>
24188
24189         vma-iter: Treat Haiku like BeOS.
24190         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
24191         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
24192
24193 2011-01-25  Eric Blake  <eblake@redhat.com>
24194
24195         c-stack: fix regression on cygwin when libsigsegv is present
24196         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
24197
24198 2011-01-24  Bruno Haible  <bruno@clisp.org>
24199
24200         vma-iter: Avoid empty intervals.
24201         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
24202         on an empty interval.
24203
24204 2011-01-24  Jim Meyering  <meyering@redhat.com>
24205
24206         u64: remove unnecessary #include
24207         * lib/u64.h: Don't include <stddef.h>.  It was not used.
24208
24209 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24210
24211         Allow the user to avoid the HAVE_RAW_DECL_* macros.
24212         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
24213
24214 2011-01-23  Bruno Haible  <bruno@clisp.org>
24215
24216         New module 'vma-iter'.
24217         * lib/vma-iter.h: New file.
24218         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
24219         * modules/vma-iter: New file.
24220         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
24221         for get_rusage_as_via_iterator.
24222         (vma_iterate_callback): New function.
24223         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
24224         * modules/get-rusage-as (Depends-on): Add vma-iter.
24225
24226 2011-01-23  Bruno Haible  <bruno@clisp.org>
24227
24228         uninorm: Tweak includes.
24229         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
24230         Reported by Jim Meyering.
24231
24232 2011-01-23  Bruno Haible  <bruno@clisp.org>
24233
24234         get-rusage-as: Improve on NetBSD.
24235         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
24236         /proc, like on FreeBSD.
24237
24238 2011-01-23  Jim Meyering  <meyering@redhat.com>
24239
24240         xreadlink.h: remove unnecessary #include
24241         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
24242
24243         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
24244         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
24245
24246 2011-01-23  Bruno Haible  <bruno@clisp.org>
24247
24248         get-rusage-as: Fix bug.
24249         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
24250         original limit when aborting the first loop.
24251
24252 2011-01-23  Bruno Haible  <bruno@clisp.org>
24253
24254         wctype: Ensure valid C syntax.
24255         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
24256         unconditionally, instead of gl_NEXT_HEADERS conditionally.
24257
24258 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
24259
24260         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
24261         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
24262         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
24263         as they are needed only for configure's test case.
24264         This removes two unnecessary symbols from config.h.
24265
24266         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
24267         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
24268         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
24269         AC_CHECK_HEADERS_ONCE on a header that we also invoke
24270         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
24271         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
24272         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
24273         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
24274         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24275         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24276         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
24277         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24278         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24279         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24280         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
24281         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24282         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24283         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24284
24285 2011-01-21  Eric Blake  <eblake@redhat.com>
24286
24287         maintainer-makefile: work with older git for submodule check
24288         * top/maint.mk (public-submodule-commit): Rewrite to avoid
24289         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
24290         Reported by Matthias Bolte.
24291
24292         bootstrap: minor portability fixes
24293         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
24294         (usage): Omit leading capital and trailing . on help phrases, per
24295         GNU Coding Standards.
24296         (check_versions, top level): Prefix messages with script name.
24297
24298 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
24299
24300         bootstrap: support --no-git option
24301         * build-aux/bootstrap: Add --no-git option, to be used when
24302         --gnulib-srcdir points to the exact desired checkout.
24303
24304 2011-01-21  Eric Blake  <eblake@redhat.com>
24305
24306         strerror_r-posix: work with glibc 2.13
24307         * lib/strerror_r.c (strerror_r): Fix return type.
24308
24309 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24310             Bruno Haible  <bruno@clisp.org>
24311
24312         uN_strstr: New unit tests.
24313         * modules/unistr/u8-strstr-tests: New file.
24314         * modules/unistr/u16-strstr-tests: New file.
24315         * modules/unistr/u32-strstr-tests: New file.
24316         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
24317         * tests/unistr/test-u8-strstr.c: New file.
24318         * tests/unistr/test-u16-strstr.c: New file.
24319         * tests/unistr/test-u32-strstr.c: New file.
24320
24321 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24322             Bruno Haible  <bruno@clisp.org>
24323
24324         Make uN_strstr functions O(n) worst-case.
24325         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
24326         16-bit and 32-bit unit cases, use the unibyte algorithm from
24327         lib/mbsstr.c.
24328         * lib/unistr/u8-strstr.c: Include <string.h>.
24329         (UNIT_IS_UINT8_T): New macro.
24330         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
24331         (U_STRLEN, U_STRNLEN): New macros.
24332         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
24333         (U_STRLEN, U_STRNLEN): New macros.
24334         * modules/unistr/u8-strstr (Depends-on): Add strstr.
24335         (configure.ac): Update required libunistring version.
24336         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
24337         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
24338         malloca.
24339         (configure.ac): Update required libunistring version.
24340         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
24341         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
24342         malloca.
24343         (configure.ac): Update required libunistring version.
24344
24345 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24346             Bruno Haible  <bruno@clisp.org>
24347
24348         Prepare for faster uN_strstr functions.
24349         * lib/str-kmp.h: Support definable UNITs.
24350         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
24351         needle_len argument.
24352         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
24353         * lib/mbscasestr.c (mbscasestr): Likewise.
24354
24355 2011-01-21  Pádraig Brady <P@draigBrady.com>
24356
24357         malloca-tests: make faster by unsetting MALLOC_PERTURB_
24358         * tests/test-malloca.c (main): Unset the environment variable
24359         to greatly speed up the test.
24360         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
24361         * modules/malloca-tests: Depend on unsetenv.
24362
24363 2011-01-21  Pádraig Brady <P@draigBrady.com>
24364
24365         ignore-value: remove stdint dependency
24366         * lib/ignore-value.h: Remove <stdint.h>
24367         * modules/ignore-value: Remove stdint dependency.
24368
24369 2011-01-21  Jim Meyering  <meyering@redhat.com>
24370
24371         maint.mk: adjust variable name to be consistent with other gl_ vars
24372         * top/maint.mk (gl_public_submodule_commit): Rename the variable
24373         to be lower case.
24374
24375 2011-01-20  Jim Meyering  <meyering@redhat.com>
24376
24377         maint.mk: make "check" depend on public-submodule-commit by default
24378         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
24379
24380 2011-01-20  Bruno Haible  <bruno@clisp.org>
24381
24382         mbfile, mbiter: Complete change from 2008-12-21.
24383         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
24384         * m4/mbiter.m4 (gl_MBITER): Likewise.
24385
24386 2011-01-20  Jim Meyering  <meyering@redhat.com>
24387
24388         init.sh: insert space between each function name and "()"
24389         * tests/init.sh: Make it a little easier to see that a function's
24390         name is "warn_", and not "warn" when looking at the first part of
24391         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
24392
24393 2011-01-20  Jim Meyering  <meyering@redhat.com>
24394
24395         mountlist: clean up code formatting
24396         * lib/mountlist.c (read_file_system_list): Split a long line,
24397         correct bracing style, use NULL in place of "(struct statfs *)0",
24398         don't parenthesize return value, add spaces around "=" and after
24399         ";-in-for-stmt".
24400
24401 2011-01-14  Markus Duft <mduft@gentoo.org>
24402
24403         mountlist: add support for Interix
24404         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
24405         Apply statvfs to all entries of /dev/fs.
24406         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
24407         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
24408
24409 2011-01-20  Jim Meyering  <meyering@redhat.com>
24410
24411         maint.mk: improve the public-submodule-commit rule
24412         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
24413         to suppress printing of its commands... unless V=1.
24414         Add git submodule's --quiet option to suppress printing of e.g.,
24415         "Entering gnulib" output.
24416         "cd" into $(srcdir) before running git submodule.
24417
24418 2011-01-20  Bruno Haible  <bruno@clisp.org>
24419
24420         include_next: Fix bug introduced on 2011-01-18.
24421         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
24422         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
24423         ac_cv_header_... variable if the second argument is not 'check'.
24424         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
24425         gl_NEXT_HEADERS_INTERNAL.
24426
24427 2011-01-20  Bruno Haible  <bruno@clisp.org>
24428
24429         Allow the user to avoid the GNULIB_TEST_* macros.
24430         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
24431         Suggested by Paul Eggert.
24432
24433 2011-01-14  Jim Meyering  <meyering@redhat.com>
24434
24435         bootstrap: avoid failure when there is no .gitmodules file
24436         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
24437         has been assigned to, even when its value is the empty string.
24438         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
24439         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
24440         Reported by John W. Eaton <jwe@gnu.org>.
24441
24442 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
24443
24444         assume <ctype.h>, ..., <time.h> exist
24445         For years gnulib has been assuming the existence of the headers
24446         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
24447         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
24448         them, since they don't appear to be needed.
24449         * README (Portability guidelines): Document this.
24450         * lib/flock.c: Assume <fcntl.h> exists.
24451         * lib/regex_internal.h: Assume <locale.h> exists.
24452         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
24453         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
24454         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
24455         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
24456         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
24457         * m4/regex.m4 (gl_REGEX): Likewise.
24458         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
24459         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
24460         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
24461         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
24462         * tests/test-argp.c: Likewise.
24463         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
24464
24465         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
24466         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
24467         AA_APPLE_UNIVERSAL_BUILD.  See
24468         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
24469         * NEWS: Document this.
24470
24471 2011-01-19  Eric Blake  <eblake@redhat.com>
24472
24473         c-stack: assume stack overflow if SA_SIGINFO unsupported
24474         * lib/c-stack.c (SIGACTION_WORKS): Rename...
24475         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
24476         sigaction will work.
24477         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
24478         behavior match Linux.
24479         * tests/test-c-stack.c (main): Prefer NULL for pointers.
24480
24481         stdbool-tests: accommodate Haiku
24482         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
24483
24484         binary-io: fix O_TEXT on Haiku
24485         * modules/binary-io (Depends-on): Add fcntl-h.
24486         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
24487         than blindly undefining O_TEXT.
24488         Reported by Scott McCreary.
24489
24490 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24491
24492         include_next: do not check for standard headers like stddef.h
24493
24494         I found this problem when modifying Emacs to use gnulib.
24495         I noticed that it added HAVE_STDDEF_H to config.h, even though
24496         gnulib always assumes <stddef.h> exists as per README and this
24497         symbol is unnecessary.
24498         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
24499         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
24500         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
24501         faster for headers like stddef.h that are known to exist.
24502         (gl_CHECK_NEXT_HEADERS): Use it.
24503         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
24504         rather than gl_CHECK_NEXT_HEADERS.
24505         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
24506         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
24507
24508 2011-01-18  Eric Blake  <eblake@redhat.com>
24509
24510         ansi-c++-opt: skip C++ dependency style if C++ is unused
24511         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
24512         tests when we know C++ compilation is not desired.
24513         Reported by Scott McCreary.
24514
24515 2011-01-18  Bruno Haible  <bruno@clisp.org>
24516
24517         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
24518         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
24519         (main): Perform test also when getrlimit and setrlimit don't exist or
24520         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
24521         limiting the address space size using setrlimit, compare the address
24522         space size before and after the the test.
24523         * tests/test-dprintf-posix2.c: Likewise.
24524         * tests/test-fprintf-posix3.sh: Update skip messages.
24525         * tests/test-dprintf-posix2.sh: Likewise.
24526         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
24527         * modules/dprintf-posix-tests (Depends-on): Likewise.
24528         Reported by Bruce Korb <bkorb@gnu.org> and
24529         Gary V. Vaughan <gary@gnu.org>.
24530
24531 2011-01-18  Bruno Haible  <bruno@clisp.org>
24532
24533         get-rusage-as: Improvement for Cygwin.
24534         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
24535         areas that are merely reserved.
24536
24537 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24538
24539         strftime: remove dependencies on multibyte modules
24540
24541         strftime depended on mbrlen, mbsinit, and wchar, but these modules
24542         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
24543         only if __osf__ is defined, and I suspect OSF doesn't need these
24544         other modules.  If my guess is wrong, we'll need to come up with a
24545         variant of strftime that doesn't need the multibyte modules.
24546
24547         I discovered this problem when attempting modify Emacs to use the
24548         strftime module.  With the previous gnulib, this caused Emacs to
24549         need 31 new files, ranging from lib/config.charset to
24550         m4/wint_t.m4.  This was overkill and I expect would be offputting
24551         to the Emacs maintainers.  After this change, only 6 new files are
24552         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
24553         stdbool.m4, and tm_gmtoff.m4.
24554
24555         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
24556         Suggested by Bruno Haible in
24557         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
24558         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
24559         and do not check for wchar.h.
24560         * modules/strftime (Files): Remove m4/mbstate_t.m4.
24561         (Depends-on): Remove mbrlen, mbsinit, wchar.
24562
24563 2011-01-18  Bruno Haible  <bruno@clisp.org>
24564
24565         Tests for module 'get-rusage-as'.
24566         * modules/get-rusage-as-tests: New file.
24567         * tests/test-get-rusage-as.c: New file.
24568
24569         New module 'get-rusage-as'.
24570         * modules/get-rusage-as: New file.
24571         * lib/resource-ext.h: New file.
24572         * lib/get-rusage-as.c: New file.
24573
24574 2011-01-17  Eric Blake  <eblake@redhat.com>
24575
24576         sigaction: relax license from LGPLv3+ to LGPLv2+
24577         * modules/sigaction (License): Relax to LGPLv2+.
24578
24579 2011-01-14  Bruno Haible  <bruno@clisp.org>
24580
24581         filemode: Make function declarations usable in C++ mode.
24582         * lib/filemode.h: Enclose function declarations in extern "C" block.
24583         Reported by John W. Eaton <jwe@gnu.org>.
24584
24585 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
24586
24587         save-cwd: no longer include "xgetcwd.h"
24588         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
24589         This avoids a compilation failure in projects that use save-cwd
24590         without also using the xgetcwd module.
24591
24592 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24593
24594         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
24595         This is so that a program like Emacs, which needs only dtoastr,
24596         does not have to bother with distributing and compiling ftoastr
24597         and ldtoastr.
24598         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
24599         * modules/dtoastr, modules/ldtoastr: New files.
24600         * modules/ftoastr: Now works just for 'float'.
24601         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
24602         (Makefile.am): Remove ftoastr.h (not needed and no effect),
24603         dtoastr.c, ldtoastr.c.
24604
24605 2011-01-11  Jim Meyering  <meyering@redhat.com>
24606
24607         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
24608         There is no need to work around the lack of the fchdir function,
24609         since gnulib can now provide a replacement when required.
24610         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
24611         * modules/save-cwd (Depends-on): Add fchdir.
24612
24613 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24614
24615         openat, save-cwd: avoid xmalloc
24616
24617         This removes a direct (but undocumented) dependency of openat on
24618         xalloc, along with an indirect dependency via save-cwd.  It also
24619         removes a dependency of save-cwd on xgetcwd, and thereby
24620         indirectly on xalloc.  This change causes the openat substitute
24621         to fall back on save_cwd when memory is tight, and for save_cwd to
24622         fail instead of dying when memory is tight, but that's good enough.
24623         Problem and initial idea for fix reported by Bastien Roucaries in
24624         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
24625
24626         * lib/openat-proc.c: Include stdlib.h (for malloc), not
24627         xalloc.h (for xmalloc).
24628         (openat_proc_name): Use malloc, not xmalloc.
24629         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
24630         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
24631
24632         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
24633         This avoids heap allocation for file names whose lengths are in
24634         the range 512..1023, with the upper bound increasing to at most
24635         4031 depending on the platform's PATH_MAX.  (We do not want
24636         pathmax.h here as it might supply a non-constant PATH_MAX.)
24637         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
24638         Perhaps they should be moved to malloca.h?
24639         (OPENAT_BUFFER_SIZE): Use them.
24640
24641 2011-01-10  Bruno Haible  <bruno@clisp.org>
24642
24643         doc: Update users.txt.
24644         * users.txt: Add recutils.
24645
24646 2011-01-09  Karl Berry  <karl@gnu.org>
24647
24648         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
24649
24650         * doc/configmake.texi: New file.
24651         * doc/gnulib.texi: Include it.
24652         * modules/configmake: Move documentation from here.
24653
24654 2011-01-09  Bruno Haible  <bruno@clisp.org>
24655
24656         Update to Unicode 6.0.0.
24657         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
24658         (get_lbp): Update for Unicode 6.0.0.
24659         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
24660         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
24661         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
24662         U+11001, U+11038..U+11046. Remove U+06DE.
24663         (uc_width): Fix bounds of planes.
24664         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24665         lib/uniwidth/width.c.
24666         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
24667         trailing whitespace removed.
24668         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
24669         without comments, but with the original copyright notice.
24670         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
24671         * lib/unicase/ignorable.h: Likewise.
24672         * lib/unicase/tocasefold.h: Likewise.
24673         * lib/unicase/tolower.h: Likewise.
24674         * lib/unicase/totitle.h: Likewise.
24675         * lib/unicase/toupper.h: Likewise.
24676         * lib/unictype/bidi_of.h: Likewise.
24677         * lib/unictype/blocks.h: Likewise.
24678         * lib/unictype/categ_C.h: Likewise.
24679         * lib/unictype/categ_Cn.h: Likewise.
24680         * lib/unictype/categ_L.h: Likewise.
24681         * lib/unictype/categ_Ll.h: Likewise.
24682         * lib/unictype/categ_Lm.h: Likewise.
24683         * lib/unictype/categ_Lo.h: Likewise.
24684         * lib/unictype/categ_Lu.h: Likewise.
24685         * lib/unictype/categ_M.h: Likewise.
24686         * lib/unictype/categ_Mc.h: Likewise.
24687         * lib/unictype/categ_Me.h: Likewise.
24688         * lib/unictype/categ_Mn.h: Likewise.
24689         * lib/unictype/categ_N.h: Likewise.
24690         * lib/unictype/categ_Nd.h: Likewise.
24691         * lib/unictype/categ_No.h: Likewise.
24692         * lib/unictype/categ_P.h: Likewise.
24693         * lib/unictype/categ_Po.h: Likewise.
24694         * lib/unictype/categ_S.h: Likewise.
24695         * lib/unictype/categ_Sc.h: Likewise.
24696         * lib/unictype/categ_Sk.h: Likewise.
24697         * lib/unictype/categ_Sm.h: Likewise.
24698         * lib/unictype/categ_So.h: Likewise.
24699         * lib/unictype/categ_of.h: Likewise.
24700         * lib/unictype/combining.h: Likewise.
24701         * lib/unictype/ctype_alnum.h: Likewise.
24702         * lib/unictype/ctype_alpha.h: Likewise.
24703         * lib/unictype/ctype_graph.h: Likewise.
24704         * lib/unictype/ctype_lower.h: Likewise.
24705         * lib/unictype/ctype_print.h: Likewise.
24706         * lib/unictype/ctype_punct.h: Likewise.
24707         * lib/unictype/ctype_upper.h: Likewise.
24708         * lib/unictype/decdigit.h: Likewise.
24709         * lib/unictype/digit.h: Likewise.
24710         * lib/unictype/numeric.h: Likewise.
24711         * lib/unictype/pr_alphabetic.h: Likewise.
24712         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24713         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24714         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24715         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24716         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24717         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24718         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24719         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24720         * lib/unictype/pr_case_ignorable.h: Likewise.
24721         * lib/unictype/pr_cased.h: Likewise.
24722         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
24723         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
24724         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
24725         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
24726         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
24727         * lib/unictype/pr_combining.h: Likewise.
24728         * lib/unictype/pr_composite.h: Likewise.
24729         * lib/unictype/pr_currency_symbol.h: Likewise.
24730         * lib/unictype/pr_decimal_digit.h: Likewise.
24731         * lib/unictype/pr_deprecated.h: Likewise.
24732         * lib/unictype/pr_format_control.h: Likewise.
24733         * lib/unictype/pr_grapheme_base.h: Likewise.
24734         * lib/unictype/pr_grapheme_extend.h: Likewise.
24735         * lib/unictype/pr_grapheme_link.h: Likewise.
24736         * lib/unictype/pr_id_continue.h: Likewise.
24737         * lib/unictype/pr_id_start.h: Likewise.
24738         * lib/unictype/pr_ideographic.h: Likewise.
24739         * lib/unictype/pr_lowercase.h: Likewise.
24740         * lib/unictype/pr_math.h: Likewise.
24741         * lib/unictype/pr_numeric.h: Likewise.
24742         * lib/unictype/pr_other_alphabetic.h: Likewise.
24743         * lib/unictype/pr_other_id_continue.h: Likewise.
24744         * lib/unictype/pr_other_math.h: Likewise.
24745         * lib/unictype/pr_punctuation.h: Likewise.
24746         * lib/unictype/pr_sentence_terminal.h: Likewise.
24747         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24748         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24749         * lib/unictype/pr_unified_ideograph.h: Likewise.
24750         * lib/unictype/pr_uppercase.h: Likewise.
24751         * lib/unictype/pr_xid_continue.h: Likewise.
24752         * lib/unictype/pr_xid_start.h: Likewise.
24753         * lib/unictype/scripts.h: Likewise.
24754         * lib/unictype/scripts_byname.gperf: Likewise.
24755         * lib/unictype/sy_java_ident.h: Likewise.
24756         * lib/unigbrk/gbrkprop.h: Likewise.
24757         * lib/unilbrk/lbrkprop1.h: Likewise.
24758         * lib/unilbrk/lbrkprop2.h: Likewise.
24759         * lib/uninorm/decomposition-table2.h: Likewise.
24760         * lib/uniwbrk/wbrkprop.h: Likewise.
24761         * tests/unicase/test-cased.c: Likewise.
24762         * tests/unicase/test-ignorable.c: Likewise.
24763         * tests/unicase/test-uc_tolower.c: Likewise.
24764         * tests/unicase/test-uc_totitle.c: Likewise.
24765         * tests/unicase/test-uc_toupper.c: Likewise.
24766         * tests/unictype/test-categ_C.c: Likewise.
24767         * tests/unictype/test-categ_Cn.c: Likewise.
24768         * tests/unictype/test-categ_L.c: Likewise.
24769         * tests/unictype/test-categ_Ll.c: Likewise.
24770         * tests/unictype/test-categ_Lm.c: Likewise.
24771         * tests/unictype/test-categ_Lo.c: Likewise.
24772         * tests/unictype/test-categ_Lu.c: Likewise.
24773         * tests/unictype/test-categ_M.c: Likewise.
24774         * tests/unictype/test-categ_Mc.c: Likewise.
24775         * tests/unictype/test-categ_Me.c: Likewise.
24776         * tests/unictype/test-categ_Mn.c: Likewise.
24777         * tests/unictype/test-categ_N.c: Likewise.
24778         * tests/unictype/test-categ_Nd.c: Likewise.
24779         * tests/unictype/test-categ_No.c: Likewise.
24780         * tests/unictype/test-categ_P.c: Likewise.
24781         * tests/unictype/test-categ_Po.c: Likewise.
24782         * tests/unictype/test-categ_S.c: Likewise.
24783         * tests/unictype/test-categ_Sc.c: Likewise.
24784         * tests/unictype/test-categ_Sk.c: Likewise.
24785         * tests/unictype/test-categ_Sm.c: Likewise.
24786         * tests/unictype/test-categ_So.c: Likewise.
24787         * tests/unictype/test-ctype_alnum.c: Likewise.
24788         * tests/unictype/test-ctype_alpha.c: Likewise.
24789         * tests/unictype/test-ctype_graph.c: Likewise.
24790         * tests/unictype/test-ctype_lower.c: Likewise.
24791         * tests/unictype/test-ctype_print.c: Likewise.
24792         * tests/unictype/test-ctype_punct.c: Likewise.
24793         * tests/unictype/test-ctype_upper.c: Likewise.
24794         * tests/unictype/test-decdigit.h: Likewise.
24795         * tests/unictype/test-digit.h: Likewise.
24796         * tests/unictype/test-numeric.h: Likewise.
24797         * tests/unictype/test-pr_alphabetic.c: Likewise.
24798         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24799         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
24800         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
24801         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24802         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24803         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24804         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24805         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24806         * tests/unictype/test-pr_case_ignorable.c: Likewise.
24807         * tests/unictype/test-pr_cased.c: Likewise.
24808         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
24809         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
24810         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
24811         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
24812         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
24813         * tests/unictype/test-pr_combining.c: Likewise.
24814         * tests/unictype/test-pr_composite.c: Likewise.
24815         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24816         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24817         * tests/unictype/test-pr_deprecated.c: Likewise.
24818         * tests/unictype/test-pr_format_control.c: Likewise.
24819         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24820         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24821         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24822         * tests/unictype/test-pr_id_continue.c: Likewise.
24823         * tests/unictype/test-pr_id_start.c: Likewise.
24824         * tests/unictype/test-pr_ideographic.c: Likewise.
24825         * tests/unictype/test-pr_lowercase.c: Likewise.
24826         * tests/unictype/test-pr_math.c: Likewise.
24827         * tests/unictype/test-pr_numeric.c: Likewise.
24828         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24829         * tests/unictype/test-pr_other_id_continue.c: Likewise.
24830         * tests/unictype/test-pr_other_math.c: Likewise.
24831         * tests/unictype/test-pr_punctuation.c: Likewise.
24832         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24833         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24834         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24835         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24836         * tests/unictype/test-pr_uppercase.c: Likewise.
24837         * tests/unictype/test-pr_xid_continue.c: Likewise.
24838         * tests/unictype/test-pr_xid_start.c: Likewise.
24839         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24840         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24841         changes.
24842         * lib/unictype/categ_Cc.h: Likewise.
24843         * lib/unictype/categ_Cf.h: Likewise.
24844         * lib/unictype/categ_Co.h: Likewise.
24845         * lib/unictype/categ_Cs.h: Likewise.
24846         * lib/unictype/categ_Lt.h: Likewise.
24847         * lib/unictype/categ_Nl.h: Likewise.
24848         * lib/unictype/categ_Pc.h: Likewise.
24849         * lib/unictype/categ_Pd.h: Likewise.
24850         * lib/unictype/categ_Pe.h: Likewise.
24851         * lib/unictype/categ_Pf.h: Likewise.
24852         * lib/unictype/categ_Pi.h: Likewise.
24853         * lib/unictype/categ_Ps.h: Likewise.
24854         * lib/unictype/categ_Z.h: Likewise.
24855         * lib/unictype/categ_Zl.h: Likewise.
24856         * lib/unictype/categ_Zp.h: Likewise.
24857         * lib/unictype/categ_Zs.h: Likewise.
24858         * lib/unictype/ctype_blank.h: Likewise.
24859         * lib/unictype/ctype_cntrl.h: Likewise.
24860         * lib/unictype/ctype_digit.h: Likewise.
24861         * lib/unictype/ctype_space.h: Likewise.
24862         * lib/unictype/ctype_xdigit.h: Likewise.
24863         * lib/unictype/mirror.h: Likewise.
24864         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24865         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24866         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24867         * lib/unictype/pr_bidi_control.h: Likewise.
24868         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24869         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24870         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24871         * lib/unictype/pr_bidi_pdf.h: Likewise.
24872         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24873         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24874         * lib/unictype/pr_dash.h: Likewise.
24875         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24876         * lib/unictype/pr_diacritic.h: Likewise.
24877         * lib/unictype/pr_extender.h: Likewise.
24878         * lib/unictype/pr_hex_digit.h: Likewise.
24879         * lib/unictype/pr_hyphen.h: Likewise.
24880         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24881         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24882         * lib/unictype/pr_ignorable_control.h: Likewise.
24883         * lib/unictype/pr_iso_control.h: Likewise.
24884         * lib/unictype/pr_join_control.h: Likewise.
24885         * lib/unictype/pr_left_of_pair.h: Likewise.
24886         * lib/unictype/pr_line_separator.h: Likewise.
24887         * lib/unictype/pr_logical_order_exception.h: Likewise.
24888         * lib/unictype/pr_non_break.h: Likewise.
24889         * lib/unictype/pr_not_a_character.h: Likewise.
24890         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24891         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24892         * lib/unictype/pr_other_id_start.h: Likewise.
24893         * lib/unictype/pr_other_lowercase.h: Likewise.
24894         * lib/unictype/pr_other_uppercase.h: Likewise.
24895         * lib/unictype/pr_paired_punctuation.h: Likewise.
24896         * lib/unictype/pr_paragraph_separator.h: Likewise.
24897         * lib/unictype/pr_pattern_syntax.h: Likewise.
24898         * lib/unictype/pr_pattern_white_space.h: Likewise.
24899         * lib/unictype/pr_private_use.h: Likewise.
24900         * lib/unictype/pr_quotation_mark.h: Likewise.
24901         * lib/unictype/pr_radical.h: Likewise.
24902         * lib/unictype/pr_soft_dotted.h: Likewise.
24903         * lib/unictype/pr_space.h: Likewise.
24904         * lib/unictype/pr_titlecase.h: Likewise.
24905         * lib/unictype/pr_variation_selector.h: Likewise.
24906         * lib/unictype/pr_white_space.h: Likewise.
24907         * lib/unictype/pr_zero_width.h: Likewise.
24908         * lib/unictype/sy_c_ident.h: Likewise.
24909         * lib/unictype/sy_c_whitespace.h: Likewise.
24910         * lib/unictype/sy_java_whitespace.h: Likewise.
24911         * lib/uninorm/composition-table.gperf: Likewise.
24912         * lib/uninorm/decomposition-table1.h: Likewise.
24913         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
24914         LB8.
24915         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24916         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24917         * modules/unictype/*: Bump version number of expected libunistring
24918         version.
24919
24920 2011-01-09  Bruno Haible  <bruno@clisp.org>
24921
24922         Update to Unicode 5.2.0.
24923         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
24924         trailing whitespace removed.
24925
24926 2011-01-09  Bruno Haible  <bruno@clisp.org>
24927
24928         New Unicode character properties, from Unicode 5.2.0.
24929         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
24930         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
24931         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
24932         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
24933         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
24934         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
24935         uc_is_property_cased, uc_is_property_case_ignorable,
24936         uc_is_property_changes_when_lowercased,
24937         uc_is_property_changes_when_uppercased,
24938         uc_is_property_changes_when_titlecased,
24939         uc_is_property_changes_when_casefolded,
24940         uc_is_property_changes_when_casemapped): New declarations.
24941         * lib/unictype/pr_byname.gperf: Add the new properties.
24942         * modules/unictype/property-byname (Depends-on): Depend on the new
24943         properties modules.
24944         * modules/unictype/property-all (Depends-on): Likewise.
24945         * MODULES.html.sh (Unicode string functions): Add
24946         unictype/property-case-ignorable, unictype/property-cased,
24947         unictype/property-changes-when-casefolded,
24948         unictype/property-changes-when-casemapped,
24949         unictype/property-changes-when-lowercased,
24950         unictype/property-changes-when-titlecased,
24951         unictype/property-changes-when-uppercased.
24952
24953         New module 'unictype/property-changes-when-casemapped'.
24954         * modules/unictype/property-changes-when-casemapped: New file.
24955         * lib/unictype/pr_changes_when_casemapped.c: New file.
24956         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
24957         generated by gen-uni-tables.
24958         * modules/unictype/property-changes-when-casemapped-tests: New file.
24959         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
24960         automatically generated by gen-uni-tables.
24961
24962         New module 'unictype/property-changes-when-casefolded'.
24963         * modules/unictype/property-changes-when-casefolded: New file.
24964         * lib/unictype/pr_changes_when_casefolded.c: New file.
24965         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
24966         generated by gen-uni-tables.
24967         * modules/unictype/property-changes-when-casefolded-tests: New file.
24968         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
24969         automatically generated by gen-uni-tables.
24970
24971         New module 'unictype/property-changes-when-titlecased'.
24972         * modules/unictype/property-changes-when-titlecased: New file.
24973         * lib/unictype/pr_changes_when_titlecased.c: New file.
24974         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
24975         generated by gen-uni-tables.
24976         * modules/unictype/property-changes-when-titlecased-tests: New file.
24977         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
24978         automatically generated by gen-uni-tables.
24979
24980         New module 'unictype/property-changes-when-uppercased'.
24981         * modules/unictype/property-changes-when-uppercased: New file.
24982         * lib/unictype/pr_changes_when_uppercased.c: New file.
24983         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
24984         generated by gen-uni-tables.
24985         * modules/unictype/property-changes-when-uppercased-tests: New file.
24986         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
24987         automatically generated by gen-uni-tables.
24988
24989         New module 'unictype/property-changes-when-lowercased'.
24990         * modules/unictype/property-changes-when-lowercased: New file.
24991         * lib/unictype/pr_changes_when_lowercased.c: New file.
24992         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
24993         generated by gen-uni-tables.
24994         * modules/unictype/property-changes-when-lowercased-tests: New file.
24995         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
24996         automatically generated by gen-uni-tables.
24997
24998         New module 'unictype/property-case-ignorable'.
24999         * modules/unictype/property-case-ignorable: New file.
25000         * lib/unictype/pr_case_ignorable.c: New file.
25001         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
25002         by gen-uni-tables.
25003         * modules/unictype/property-case-ignorable-tests: New file.
25004         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
25005         generated by gen-uni-tables.
25006
25007         New module 'unictype/property-cased'.
25008         * modules/unictype/property-cased: New file.
25009         * lib/unictype/pr_cased.c: New file.
25010         * lib/unictype/pr_cased.h: New file, automatically generated by
25011         gen-uni-tables.
25012         * modules/unictype/property-cased-tests: New file.
25013         * tests/unictype/test-pr_cased.c: New file, automatically generated by
25014         gen-uni-tables.
25015
25016 2011-01-09  Bruno Haible  <bruno@clisp.org>
25017
25018         Update to Unicode 5.2.0.
25019         * lib/gen-uni-tables.c (output_predicate, output_category,
25020         output_combclass, output_bidi_category, output_decimal_digit_test,
25021         output_decimal_digit, output_digit_test, output_digit,
25022         output_numeric_test, output_numeric, output_mirror, output_scripts,
25023         output_scripts_byname, output_blocks, output_ident_category): Fix
25024         comment header.
25025         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
25026         get_wbp.
25027         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
25028         items.
25029         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
25030         Changes_When_Lowercased, Changes_When_Uppercased,
25031         Changes_When_Titlecased, Changes_When_Casefolded,
25032         Changes_When_Casemapped.
25033         (is_property_alphabetic, is_property_default_ignorable_code_point):
25034         Update for Unicode 5.2.0.
25035         (is_property_cased, is_property_case_ignorable,
25036         is_property_changes_when_lowercased,
25037         is_property_changes_when_uppercased,
25038         is_property_changes_when_titlecased,
25039         is_property_changes_when_casefolded,
25040         is_property_changes_when_casemapped): New functions.
25041         (output_properties): Output also the properties cased, case_ignorable,
25042         changes_when_lowercased, changes_when_uppercased,
25043         changes_when_titlecased, changes_when_casefolded,
25044         changes_when_casemapped.
25045         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
25046         Unicode TR#11 revision 17 -> 19.
25047         (LBP_CP): New enumeration value.
25048         (LBP_*): Adjust values accordingly.
25049         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25050         TR#14 revision 22 -> 24.
25051         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
25052         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
25053         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25054         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
25055         is_WBP_MIDLETTER.
25056         (output_composition_tables): Allow for 24 bits instead of 16 bits in
25057         the code1 and code2 of each composition rule.
25058         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
25059         * lib/unicase/ignorable.h: Likewise.
25060         * lib/unicase/tocasefold.h: Likewise.
25061         * lib/unicase/tolower.h: Likewise.
25062         * lib/unicase/totitle.h: Likewise.
25063         * lib/unicase/toupper.h: Likewise.
25064         * lib/unictype/bidi_of.h: Likewise.
25065         * lib/unictype/blocks.h: Likewise.
25066         * lib/unictype/categ_C.h: Likewise.
25067         * lib/unictype/categ_Cf.h: Likewise.
25068         * lib/unictype/categ_Cn.h: Likewise.
25069         * lib/unictype/categ_L.h: Likewise.
25070         * lib/unictype/categ_Ll.h: Likewise.
25071         * lib/unictype/categ_Lm.h: Likewise.
25072         * lib/unictype/categ_Lo.h: Likewise.
25073         * lib/unictype/categ_Lu.h: Likewise.
25074         * lib/unictype/categ_M.h: Likewise.
25075         * lib/unictype/categ_Mc.h: Likewise.
25076         * lib/unictype/categ_Mn.h: Likewise.
25077         * lib/unictype/categ_N.h: Likewise.
25078         * lib/unictype/categ_Nd.h: Likewise.
25079         * lib/unictype/categ_Nl.h: Likewise.
25080         * lib/unictype/categ_No.h: Likewise.
25081         * lib/unictype/categ_P.h: Likewise.
25082         * lib/unictype/categ_Pd.h: Likewise.
25083         * lib/unictype/categ_Po.h: Likewise.
25084         * lib/unictype/categ_S.h: Likewise.
25085         * lib/unictype/categ_Sc.h: Likewise.
25086         * lib/unictype/categ_So.h: Likewise.
25087         * lib/unictype/categ_of.h: Likewise.
25088         * lib/unictype/combining.h: Likewise.
25089         * lib/unictype/ctype_alnum.h: Likewise.
25090         * lib/unictype/ctype_alpha.h: Likewise.
25091         * lib/unictype/ctype_graph.h: Likewise.
25092         * lib/unictype/ctype_lower.h: Likewise.
25093         * lib/unictype/ctype_print.h: Likewise.
25094         * lib/unictype/ctype_punct.h: Likewise.
25095         * lib/unictype/ctype_upper.h: Likewise.
25096         * lib/unictype/decdigit.h: Likewise.
25097         * lib/unictype/digit.h: Likewise.
25098         * lib/unictype/numeric.h: Likewise.
25099         * lib/unictype/pr_alphabetic.h: Likewise.
25100         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25101         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25102         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25103         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25104         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25105         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25106         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25107         * lib/unictype/pr_combining.h: Likewise.
25108         * lib/unictype/pr_composite.h: Likewise.
25109         * lib/unictype/pr_currency_symbol.h: Likewise.
25110         * lib/unictype/pr_dash.h: Likewise.
25111         * lib/unictype/pr_decimal_digit.h: Likewise.
25112         * lib/unictype/pr_deprecated.h: Likewise.
25113         * lib/unictype/pr_diacritic.h: Likewise.
25114         * lib/unictype/pr_extender.h: Likewise.
25115         * lib/unictype/pr_grapheme_base.h: Likewise.
25116         * lib/unictype/pr_grapheme_extend.h: Likewise.
25117         * lib/unictype/pr_grapheme_link.h: Likewise.
25118         * lib/unictype/pr_id_continue.h: Likewise.
25119         * lib/unictype/pr_id_start.h: Likewise.
25120         * lib/unictype/pr_ideographic.h: Likewise.
25121         * lib/unictype/pr_ignorable_control.h: Likewise.
25122         * lib/unictype/pr_logical_order_exception.h: Likewise.
25123         * lib/unictype/pr_lowercase.h: Likewise.
25124         * lib/unictype/pr_numeric.h: Likewise.
25125         * lib/unictype/pr_other_alphabetic.h: Likewise.
25126         * lib/unictype/pr_punctuation.h: Likewise.
25127         * lib/unictype/pr_sentence_terminal.h: Likewise.
25128         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25129         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25130         * lib/unictype/pr_unified_ideograph.h: Likewise.
25131         * lib/unictype/pr_uppercase.h: Likewise.
25132         * lib/unictype/pr_xid_continue.h: Likewise.
25133         * lib/unictype/pr_xid_start.h: Likewise.
25134         * lib/unictype/pr_zero_width.h: Likewise.
25135         * lib/unictype/scripts.h: Likewise.
25136         * lib/unictype/scripts_byname.gperf: Likewise.
25137         * lib/unictype/sy_java_ident.h: Likewise.
25138         * lib/unigbrk/gbrkprop.h: Likewise.
25139         * lib/unilbrk/lbrkprop1.h: Likewise.
25140         * lib/unilbrk/lbrkprop2.h: Likewise.
25141         * lib/unilbrk/lbrktables.h: Likewise.
25142         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
25143         LBP_CP. Implement rule LB30.
25144         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
25145         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
25146         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
25147         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
25148         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
25149         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
25150         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
25151         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
25152         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
25153         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
25154         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
25155         bits instead of 16 bits in the code1 and code2 of each composition
25156         rule.
25157         (uc_composition): Update for Unicode 5.2.0.
25158         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
25159         * lib/uninorm/decomposition-table2.h: Likewise.
25160         * lib/uniwbrk/wbrkprop.h: Likewise.
25161         * tests/unicase/test-cased.c: Likewise.
25162         * tests/unicase/test-ignorable.c: Likewise.
25163         * tests/unicase/test-uc_tolower.c: Likewise.
25164         * tests/unicase/test-uc_totitle.c: Likewise.
25165         * tests/unicase/test-uc_toupper.c: Likewise.
25166         * tests/unictype/test-categ_C.c: Likewise.
25167         * tests/unictype/test-categ_Cf.c: Likewise.
25168         * tests/unictype/test-categ_Cn.c: Likewise.
25169         * tests/unictype/test-categ_L.c: Likewise.
25170         * tests/unictype/test-categ_Ll.c: Likewise.
25171         * tests/unictype/test-categ_Lm.c: Likewise.
25172         * tests/unictype/test-categ_Lo.c: Likewise.
25173         * tests/unictype/test-categ_Lu.c: Likewise.
25174         * tests/unictype/test-categ_M.c: Likewise.
25175         * tests/unictype/test-categ_Mc.c: Likewise.
25176         * tests/unictype/test-categ_Mn.c: Likewise.
25177         * tests/unictype/test-categ_N.c: Likewise.
25178         * tests/unictype/test-categ_Nd.c: Likewise.
25179         * tests/unictype/test-categ_Nl.c: Likewise.
25180         * tests/unictype/test-categ_No.c: Likewise.
25181         * tests/unictype/test-categ_P.c: Likewise.
25182         * tests/unictype/test-categ_Pd.c: Likewise.
25183         * tests/unictype/test-categ_Po.c: Likewise.
25184         * tests/unictype/test-categ_S.c: Likewise.
25185         * tests/unictype/test-categ_Sc.c: Likewise.
25186         * tests/unictype/test-categ_So.c: Likewise.
25187         * tests/unictype/test-ctype_alnum.c: Likewise.
25188         * tests/unictype/test-ctype_alpha.c: Likewise.
25189         * tests/unictype/test-ctype_graph.c: Likewise.
25190         * tests/unictype/test-ctype_lower.c: Likewise.
25191         * tests/unictype/test-ctype_print.c: Likewise.
25192         * tests/unictype/test-ctype_punct.c: Likewise.
25193         * tests/unictype/test-ctype_upper.c: Likewise.
25194         * tests/unictype/test-decdigit.h: Likewise.
25195         * tests/unictype/test-digit.h: Likewise.
25196         * tests/unictype/test-numeric.h: Likewise.
25197         * tests/unictype/test-pr_alphabetic.c: Likewise.
25198         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25199         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25200         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
25201         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25202         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25203         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25204         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25205         * tests/unictype/test-pr_combining.c: Likewise.
25206         * tests/unictype/test-pr_composite.c: Likewise.
25207         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25208         * tests/unictype/test-pr_dash.c: Likewise.
25209         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25210         * tests/unictype/test-pr_deprecated.c: Likewise.
25211         * tests/unictype/test-pr_diacritic.c: Likewise.
25212         * tests/unictype/test-pr_extender.c: Likewise.
25213         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25214         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25215         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25216         * tests/unictype/test-pr_id_continue.c: Likewise.
25217         * tests/unictype/test-pr_id_start.c: Likewise.
25218         * tests/unictype/test-pr_ideographic.c: Likewise.
25219         * tests/unictype/test-pr_ignorable_control.c: Likewise.
25220         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
25221         * tests/unictype/test-pr_lowercase.c: Likewise.
25222         * tests/unictype/test-pr_numeric.c: Likewise.
25223         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25224         * tests/unictype/test-pr_punctuation.c: Likewise.
25225         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25226         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25227         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25228         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25229         * tests/unictype/test-pr_uppercase.c: Likewise.
25230         * tests/unictype/test-pr_xid_continue.c: Likewise.
25231         * tests/unictype/test-pr_xid_start.c: Likewise.
25232         * tests/unictype/test-pr_zero_width.c: Likewise.
25233         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25234         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
25235         changed behaviour: line breaking is now disallowed between a letter
25236         or '=' and '('.
25237         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25238         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25239         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25240         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
25241         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25242         lib/uniwidth/width.c.
25243         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
25244         without comments, but with the original copyright notice.
25245         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25246         changes.
25247         * lib/unictype/categ_Cc.h: Likewise.
25248         * lib/unictype/categ_Co.h: Likewise.
25249         * lib/unictype/categ_Cs.h: Likewise.
25250         * lib/unictype/categ_Lt.h: Likewise.
25251         * lib/unictype/categ_Me.h: Likewise.
25252         * lib/unictype/categ_Pc.h: Likewise.
25253         * lib/unictype/categ_Pe.h: Likewise.
25254         * lib/unictype/categ_Pf.h: Likewise.
25255         * lib/unictype/categ_Pi.h: Likewise.
25256         * lib/unictype/categ_Ps.h: Likewise.
25257         * lib/unictype/categ_Sk.h: Likewise.
25258         * lib/unictype/categ_Sm.h: Likewise.
25259         * lib/unictype/categ_Z.h: Likewise.
25260         * lib/unictype/categ_Zl.h: Likewise.
25261         * lib/unictype/categ_Zp.h: Likewise.
25262         * lib/unictype/categ_Zs.h: Likewise.
25263         * lib/unictype/ctype_blank.h: Likewise.
25264         * lib/unictype/ctype_cntrl.h: Likewise.
25265         * lib/unictype/ctype_digit.h: Likewise.
25266         * lib/unictype/ctype_space.h: Likewise.
25267         * lib/unictype/ctype_xdigit.h: Likewise.
25268         * lib/unictype/mirror.h: Likewise.
25269         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25270         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25271         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25272         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25273         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25274         * lib/unictype/pr_bidi_control.h: Likewise.
25275         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25276         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25277         * lib/unictype/pr_bidi_pdf.h: Likewise.
25278         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25279         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25280         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25281         * lib/unictype/pr_format_control.h: Likewise.
25282         * lib/unictype/pr_hex_digit.h: Likewise.
25283         * lib/unictype/pr_hyphen.h: Likewise.
25284         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25285         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25286         * lib/unictype/pr_iso_control.h: Likewise.
25287         * lib/unictype/pr_join_control.h: Likewise.
25288         * lib/unictype/pr_left_of_pair.h: Likewise.
25289         * lib/unictype/pr_line_separator.h: Likewise.
25290         * lib/unictype/pr_math.h: Likewise.
25291         * lib/unictype/pr_non_break.h: Likewise.
25292         * lib/unictype/pr_not_a_character.h: Likewise.
25293         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25294         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25295         * lib/unictype/pr_other_id_continue.h: Likewise.
25296         * lib/unictype/pr_other_id_start.h: Likewise.
25297         * lib/unictype/pr_other_lowercase.h: Likewise.
25298         * lib/unictype/pr_other_math.h: Likewise.
25299         * lib/unictype/pr_other_uppercase.h: Likewise.
25300         * lib/unictype/pr_paired_punctuation.h: Likewise.
25301         * lib/unictype/pr_paragraph_separator.h: Likewise.
25302         * lib/unictype/pr_pattern_syntax.h: Likewise.
25303         * lib/unictype/pr_pattern_white_space.h: Likewise.
25304         * lib/unictype/pr_private_use.h: Likewise.
25305         * lib/unictype/pr_quotation_mark.h: Likewise.
25306         * lib/unictype/pr_radical.h: Likewise.
25307         * lib/unictype/pr_soft_dotted.h: Likewise.
25308         * lib/unictype/pr_space.h: Likewise.
25309         * lib/unictype/pr_titlecase.h: Likewise.
25310         * lib/unictype/pr_variation_selector.h: Likewise.
25311         * lib/unictype/pr_white_space.h: Likewise.
25312         * lib/unictype/sy_c_ident.h: Likewise.
25313         * lib/unictype/sy_c_whitespace.h: Likewise.
25314         * lib/unictype/sy_java_whitespace.h: Likewise.
25315         * modules/uni*/*: Bump version number of expected libunistring version.
25316         Reported by Simon Josefsson.
25317
25318 2011-01-09  Karl Heuer  <kwzh@gnu.org>
25319
25320         useless-if-before-free: fix typo in --help and make the internal,
25321         automatic version date update process work once again.
25322         --help output contained a NUL character instead of the
25323         backslash-zero that was intended.  Also, the "must lie within
25324         the first 8 lines" line is on line 9, and hence not getting
25325         automatically updated.
25326         * build-aux/useless-if-before-free: Fix the former by adding a
25327         backslash, and the latter by condensing the three lines of what-it-does
25328         to a single line, leaving one line of slack for the future.
25329
25330 2011-01-09  Bruno Haible  <bruno@clisp.org>
25331
25332         uniwidth/width: Fix width of U+1D173..U+1D17A.
25333         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
25334         symbolic_width, output_width_property_test): New functions.
25335         (main): Invoke output_nonspacing_property, output_width_property_test.
25336         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
25337         U+1D173..U+1D17A.
25338         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
25339         1.
25340         * modules/uniwidth/*: Bump version number of expected libunistring
25341         version.
25342         * modules/unilbrk/*: Likewise.
25343
25344 2011-01-08  Bruno Haible  <bruno@clisp.org>
25345
25346         uninorm tests: Preserve copyright of Unicode data file.
25347         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
25348         Mention modifications.
25349
25350 2011-01-08  Bruno Haible  <bruno@clisp.org>
25351
25352         gen-uni-tables: Prepare for Unicode 5.2.0.
25353         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
25354         (debug_output_lbp, output_lbp): Update.
25355
25356 2011-01-08  Bruno Haible  <bruno@clisp.org>
25357
25358         unilbrk: Clarify gen-uni-tables.c code.
25359         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
25360         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
25361         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
25362
25363 2011-01-07  Bruno Haible  <bruno@clisp.org>
25364
25365         strtod: Restore errno when successfully parsing Infinity or NaN.
25366         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
25367         restore the original errno.
25368
25369 2011-01-07  Bruno Haible  <bruno@clisp.org>
25370
25371         remove test: Avoid failure on HP-UX 11.
25372         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
25373
25374 2011-01-07  Bruno Haible  <bruno@clisp.org>
25375
25376         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
25377         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
25378         error code.
25379
25380 2011-01-07  Pádraig Brady <P@draigBrady.com>
25381
25382         ignore-value: fixup comments, and add Eric Blake
25383         as an author since he rewrote the macros.
25384         * lib/ignore-value.h (ignore_value):  State that
25385         we now support aggregates.  Also specify exactly
25386         when the GCC warn_unused_result feature was added.
25387
25388 2011-01-06  Eric Blake  <eblake@redhat.com>
25389
25390         ignore-value: support aggregate types
25391         * lib/ignore-value.h (ignore_value): Provide separate gcc
25392         definition.
25393         * modules/ignore-value-tests: New test module.
25394         * tests/test-ignore-value.c: New test.
25395
25396         maint.mk: improve sc_prohibit_strcmp regex
25397         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
25398         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
25399         definition of STRNEQ.
25400
25401         signal: work around Haiku issue with SIGBUS
25402         * lib/siglist.h: Add comment.
25403         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
25404         strsignal's favoring of SIGSEGV.
25405         * tests/test-signal.c (main): Avoid test failure.
25406         * doc/posix-headers/signal.texi (signal.h): Document the issue.
25407         Reported by Scott McCreary.
25408
25409         maint.mk: add pre-release check to ensure submodule commits are public
25410         * top/maint.mk (public-submodule-commit): New rule.
25411         (submodule-checks): New variable.
25412         (alpha beta stable): Depend on the variable.
25413
25414 2011-01-05  Pádraig Brady <P@draigBrady.com>
25415         and Jim Meyering  <meyering@redhat.com>
25416
25417         ignore-value: make ignore_value more generic; deprecate ignore_ptr
25418         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
25419         (ATTRIBUTE_DEPRECATED): Define.
25420         (_ignore_case): New function.
25421         (ignore_value): New macro, to replace the old function.
25422         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
25423         * modules/ignore-value (Depends-on): Add stdint.
25424
25425 2011-01-04  Eric Blake  <eblake@redhat.com>
25426
25427         doc: regenerate INSTALL
25428         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
25429         @firstparagraphindent support, now that autoconf dropped it.
25430         (INSTALL_PRELUDE): Reinstate old macro.
25431         * doc/install.texi: Resync from autoconf.
25432         * doc/INSTALL: Reflect recent autoconf update.
25433         * doc/INSTALL.ISO: Likewise.
25434         * doc/INSTALL.UTF-8: Likewise.
25435         Reported by Karl Berry.
25436
25437 2011-01-04  Bruce Korb  <address@hidden>
25438
25439         git-version-gen: avoid a sub-shell
25440         * build-aux/git-version-gen: Redirect stderr in `...` via
25441         "exec 2>...", rather than via an added sub-shell.
25442
25443 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
25444
25445         git-version-gen: use (...) rather than sh -c '...'
25446         * build-aux/git-version-gen: Rather than hard-coding a shell's name
25447         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
25448
25449 2011-01-03  Jim Meyering  <meyering@redhat.com>
25450
25451         git-version-gen: convert leading TABs to spaces
25452         * build-aux/git-version-gen: Expand leading TABs.
25453
25454         git-version-gen: handle failed "git rev-list"
25455         * build-aux/git-version-gen: Rather than leaking a "fatal" error
25456         from git and proceeding as if it had succeeded but printed no SHA1
25457         checksums, suppress the diagnostic and handle the failure.
25458         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
25459
25460         git-version-gen: include command name in one more diagnostic
25461         * build-aux/git-version-gen: When the required .tarball-version file
25462         was missing or unreadable, you might see the diagnostic from "cat",
25463         but no trace of the name of the invoking script.  Now, you still see
25464         the diagnostic from cat, but also get one from "git-version-gen: ".
25465         Inspired by a patch from Bruce Korb.
25466
25467         update-copyright: adjust test to match changed code
25468         * tests/test-update-copyright.sh: Change test's expected output
25469         to match new actual output.
25470
25471 2011-01-02  Bruno Haible  <bruno@clisp.org>
25472
25473         getlogin_r: Avoid test failure on HP-UX 11.
25474         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
25475         ERANGE when the second argument is zero.
25476         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
25477         portability problem.
25478
25479 2011-01-02  Bruce Korb  <bkorb@gnu.org>
25480
25481         * build-aux/update-copyright: doc Simon's changes
25482
25483 2011-01-02  Simon Josefsson  <simon@josefsson.org>
25484
25485         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
25486         environment variable.
25487
25488 2011-01-02  Bruno Haible  <bruno@clisp.org>
25489
25490         unigbrk: Avoid gcc warnings.
25491         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
25492         unused variable.
25493         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
25494         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
25495         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
25496         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
25497         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
25498         Change type of first argument to 'const char *'.
25499         (main): Remove unused variable.
25500         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
25501         type of first argument to 'const char *'.
25502         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
25503         Likewise.
25504         (main): Change type of variable 's'.
25505         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
25506         to 'int'.
25507
25508 2011-01-02  Bruno Haible  <bruno@clisp.org>
25509
25510         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
25511         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
25512         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
25513         bug.
25514         * lib/pwrite.c: Undo 2010-12-31 patch.
25515         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
25516
25517 2011-01-02  Bruno Haible  <bruno@clisp.org>
25518
25519         pread: Fix test whether it works.
25520         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
25521
25522 2011-01-02  Bruno Haible  <bruno@clisp.org>
25523
25524         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
25525         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
25526         ends in "6". Don't require a specific month name. Try also the locale
25527         names found on HP-UX 11 and Solaris 7.
25528
25529 2011-01-02  Bruno Haible  <bruno@clisp.org>
25530
25531         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
25532         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
25533         C linkage.
25534         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
25535
25536 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25537
25538         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
25539         for consistency, since the "cluster" term is not used elsewhere.
25540         * lib/unigbrk.in.h: Update name.
25541         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
25542         * lib/unigbrk/u16-grapheme-next.c: Update name.
25543         * lib/unigbrk/u16-grapheme-prev.c: Update name.
25544         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
25545         * lib/unigbrk/u32-grapheme-next.c: Update name.
25546         * lib/unigbrk/u32-grapheme-prev.c: Update name.
25547         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
25548         * lib/unigbrk/u8-grapheme-next.c: Update name.
25549         * lib/unigbrk/u8-grapheme-prev.c: Update name.
25550         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
25551         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
25552         Suggested by Bruno Haible.
25553
25554 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25555
25556         Remove module 'u8-grapheme-len' as too redundant with
25557         'u8-grapheme-next'.
25558         * modules/unigbrk/u8-grapheme-len: Delete file.
25559         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
25560         * lib/unigbrk.in.h: Remove prototype for deleted function.
25561         * lib/unigbrk/u8-grapheme-len.c: Delete file.
25562         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
25563
25564         Remove module 'u16-grapheme-len' as too redundant with
25565         'u16-grapheme-next'.
25566         * modules/unigbrk/u16-grapheme-len: Delete file.
25567         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
25568         * lib/unigbrk.in.h: Remove prototype for deleted function.
25569         * lib/unigbrk/u16-grapheme-len.c: Delete file.
25570         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
25571
25572         Remove module 'u32-grapheme-len' as too redundant with
25573         'u32-grapheme-next'.
25574         * modules/unigbrk/u32-grapheme-len: Delete file.
25575         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
25576         * lib/unigbrk.in.h: Remove prototype for deleted function.
25577         * lib/unigbrk/u32-grapheme-len.c: Delete file.
25578         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
25579
25580         Suggested by Bruno Haible.
25581
25582 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25583
25584         * unigbrk.in.h: Fix typo: "ben" => "been".
25585         Reported by Bruno Haible.
25586
25587 2011-01-01  Jim Meyering  <meyering@redhat.com>
25588
25589         maint: update almost all copyright ranges to include 2011
25590         Run the new "make update-copyright" rule.
25591
25592 2011-01-01  Jim Meyering  <meyering@redhat.com>
25593
25594         maint: update-copyright: exempt doc/INSTALL*
25595         * Makefile (update-copyright): Also exclude doc/INSTALL*,
25596         since they are generated.  Suggested by Bruno Haible.
25597
25598 2011-01-01  Jim Meyering  <meyering@redhat.com>
25599
25600         maint: refine the update-copyright rule
25601         * Makefile (update-copyright): Also exclude any file that includes
25602         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
25603         code that merely generates the comment.
25604
25605 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25606
25607         New module 'u8-grapheme-len'.
25608         * modules/unigbrk/u8-grapheme-len: New file.
25609         * modules/unigbrk/u8-grapheme-len-tests: New file.
25610         * lib/unigbrk.in.h: Add prototype for new function.
25611         * lib/unigbrk/u8-grapheme-len.c: New file.
25612         * tests/unigbrk/test-u8-grapheme-len.c: New file.
25613
25614         New module 'u16-grapheme-len'.
25615         * modules/unigbrk/u16-grapheme-len: New file.
25616         * modules/unigbrk/u16-grapheme-len-tests: New file.
25617         * lib/unigbrk.in.h: Add prototype for new function.
25618         * lib/unigbrk/u16-grapheme-len.c: New file.
25619         * tests/unigbrk/test-u16-grapheme-len.c: New file.
25620
25621         New module 'u32-grapheme-len'.
25622         * modules/unigbrk/u32-grapheme-len: New file.
25623         * modules/unigbrk/u32-grapheme-len-tests: New file.
25624         * lib/unigbrk.in.h: Add prototype for new function.
25625         * lib/unigbrk/u32-grapheme-len.c: New file.
25626         * tests/unigbrk/test-u32-grapheme-len.c: New file.
25627
25628         New module 'u8-grapheme-next'.
25629         * modules/unigbrk/u8-grapheme-next: New file.
25630         * modules/unigbrk/u8-grapheme-next-tests: New file.
25631         * lib/unigbrk.in.h: Add prototype for new function.
25632         * lib/unigbrk/u8-grapheme-next.c: New file.
25633         * tests/unigbrk/test-u8-grapheme-next.c: New file.
25634
25635         New module 'u16-grapheme-next'.
25636         * modules/unigbrk/u16-grapheme-next: New file.
25637         * modules/unigbrk/u16-grapheme-next-tests: New file.
25638         * lib/unigbrk.in.h: Add prototype for new function.
25639         * lib/unigbrk/u16-grapheme-next.c: New file.
25640         * tests/unigbrk/test-u16-grapheme-next.c: New file.
25641
25642         New module 'u32-grapheme-next'.
25643         * modules/unigbrk/u32-grapheme-next: New file.
25644         * modules/unigbrk/u32-grapheme-next-tests: New file.
25645         * lib/unigbrk.in.h: Add prototype for new function.
25646         * lib/unigbrk/u32-grapheme-next.c: New file.
25647         * tests/unigbrk/test-u32-grapheme-next.c: New file.
25648
25649         New module 'u8-grapheme-prev'.
25650         * modules/unigbrk/u8-grapheme-prev: New file.
25651         * modules/unigbrk/u8-grapheme-prev-tests: New file.
25652         * lib/unigbrk.in.h: Add prototype for new function.
25653         * lib/unigbrk/u8-grapheme-prev.c: New file.
25654         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
25655
25656         New module 'u16-grapheme-prev'.
25657         * modules/unigbrk/u16-grapheme-prev: New file.
25658         * modules/unigbrk/u16-grapheme-prev-tests: New file.
25659         * lib/unigbrk.in.h: Add prototype for new function.
25660         * lib/unigbrk/u16-grapheme-prev.c: New file.
25661         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
25662
25663         New module 'u32-grapheme-prev'.
25664         * modules/unigbrk/u32-grapheme-prev: New file.
25665         * modules/unigbrk/u32-grapheme-prev-tests: New file.
25666         * lib/unigbrk.in.h: Add prototype for new function.
25667         * lib/unigbrk/u32-grapheme-prev.c: New file.
25668         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
25669
25670         New module 'u8-grapheme-breaks'.
25671         * modules/unigbrk/u8-grapheme-breaks: New file.
25672         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
25673         * lib/unigbrk.in.h: Add prototype for new function.
25674         * lib/unigbrk/u8-grapheme-breaks.c: New file.
25675         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
25676
25677         New module 'u16-grapheme-breaks'.
25678         * modules/unigbrk/u16-grapheme-breaks: New file.
25679         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
25680         * lib/unigbrk.in.h: Add prototype for new function.
25681         * lib/unigbrk/u16-grapheme-breaks.c: New file.
25682         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
25683
25684         New module 'u32-grapheme-breaks'.
25685         * modules/unigbrk/u32-grapheme-breaks: New file.
25686         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
25687         * lib/unigbrk.in.h: Add prototype for new function.
25688         * lib/unigbrk/u32-grapheme-breaks.c: New file.
25689         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
25690
25691         New module 'ulc-grapheme-breaks'.
25692         * modules/unigbrk/ulc-grapheme-breaks: New file.
25693         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
25694         * m4/locale-ar.m4: New file.
25695         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
25696         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
25697         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
25698
25699 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25700
25701         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
25702         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
25703         modified how this file was generated before I initially submitted
25704         the module, but failed to regenerate it.  This meant that several
25705         of the level2 entries were wrong.
25706         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
25707         Remove the division-by-2 that is folded into the table now that
25708         gbrkprop.h has been regenerated properly.  Now -1 entries are
25709         handled correctly.
25710
25711         New module 'unigbrk/uc-gbrk-prop-tests'.
25712         * modules/unigbrk/uc-gbrk-prop-tests: New file.
25713         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
25714         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
25715         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
25716
25717 2011-01-01  Bruno Haible  <bruno@clisp.org>
25718
25719         Avoid use of hexadecimal escapes.
25720         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
25721         instead of hexadecimal escapes.
25722
25723 2011-01-01  Jim Meyering  <meyering@redhat.com>
25724
25725         maint: new rule to update copyright year ranges
25726         * Makefile (update-copyright): New rule.
25727
25728         maint: indent with TABs in Makefile
25729         * Makefile: Expand leading sequences of spaces to TABs
25730
25731         version-etc: update the copyright year it reports
25732         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
25733
25734 2010-12-31  Bruno Haible  <bruno@clisp.org>
25735
25736         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
25737         * lib/isfinite.c (zerof, zerod, zerol): New variables.
25738         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
25739         zero.
25740
25741 2010-12-31  Bruno Haible  <bruno@clisp.org>
25742
25743         pwrite: Work around HP-UX 11.11 bug.
25744         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
25745         works and set REPLACE_PWRITE if not.
25746         * lib/pwrite.c (pwrite): Add an implementation that uses the system
25747         function.
25748         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
25749
25750 2010-12-31  Bruno Haible  <bruno@clisp.org>
25751
25752         pread: Work around HP-UX 11 bugs.
25753         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
25754         and set REPLACE_PREAD if not.
25755         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
25756
25757 2010-12-31  Eric Blake  <eblake@redhat.com>
25758
25759         nl_langinfo: fix YESEXPR on Irix 6.5
25760         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
25761         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
25762         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
25763         it.
25764
25765 2010-12-31  Bruno Haible  <bruno@clisp.org>
25766
25767         iconv: Document HP-UX 11 bug.
25768         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
25769
25770 2010-12-31  Bruno Haible  <bruno@clisp.org>
25771
25772         ldexpl: Fix link error on HP-UX 11.
25773         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
25774         LDEXPL_LIBM, using $ISNANL_LIBM.
25775
25776 2010-12-31  Eric Blake  <eblake@redhat.com>
25777
25778         ftello: avoid compilation failure with SunStudio c89
25779         * lib/ftello.c (ftello): Use lseek, not llseek.
25780
25781         tests: avoid failing coreutils tests on cygwin
25782         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
25783         (create_exe_shims_): Return 0 when skipping.
25784
25785 2010-12-31  Bruno Haible  <bruno@clisp.org>
25786
25787         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
25788         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
25789
25790 2010-12-31  Bruno Haible  <bruno@clisp.org>
25791
25792         waitpid: Fix link error in C++ mode.
25793         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
25794
25795 2010-12-31  Bruno Haible  <bruno@clisp.org>
25796
25797         isnan: Use GCC built-ins when possible.
25798         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
25799         __builtin_isnan.
25800         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
25801         (isnan): Define using GCC built-ins for GCC >= 4.0.
25802
25803 2010-12-31  Bruno Haible  <bruno@clisp.org>
25804
25805         isnand: Fix mistake.
25806         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
25807         __builtin_isnand.
25808
25809 2010-12-31  Bruno Haible  <bruno@clisp.org>
25810
25811         open: Avoid C++ error on HP-UX 11.
25812         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
25813
25814 2010-12-31  Bruno Haible  <bruno@clisp.org>
25815
25816         time_r: Add missing declarations on HP-UX 11.
25817         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
25818         instead of HAVE_LOCALTIME_R.
25819         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
25820         HAVE_LOCALTIME_R always.
25821         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
25822         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
25823         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
25824         HAVE_LOCALTIME_R.
25825         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
25826         * doc/posix-functions/localtime_r.texi: Likewise.
25827
25828 2010-12-29  Eric Blake  <eblake@redhat.com>
25829
25830         mountlist: tweak previous commit
25831         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
25832         Reported by Paul Eggert.
25833
25834         mountlist: fix local drive detection on cygwin
25835         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
25836         that works for cygwin.
25837
25838 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25839
25840         ftoastr, snprintf: ftoastr + snprintf module
25841         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
25842         since the snprintf module now should be good enough here.
25843         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
25844         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
25845         and gl_MODULE_INDICATOR([snprintf]), but the former enables
25846         GNULIB_SNPRINTF only for the test directory, and the latter
25847         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
25848         seems to suffice by itself.
25849
25850 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
25851
25852         alloca: one step towards thread-safety
25853         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
25854         need for a static variable.  All callers changed.  This does not
25855         make the alloca replacement thread-safe, but it's one step.
25856
25857         tests: minor indenting change
25858         * tests/init.sh: Sync from coreutils housekeeping patch
25859         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
25860         to keep lines within 80 columns.
25861
25862 2010-12-28  Jim Meyering  <meyering@redhat.com>
25863
25864         regex: don't infloop on persistent failing calloc
25865         * lib/regexec.c (build_trtable): Return failure indication upon
25866         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
25867         In glibc, this was fixed for version 2.13:
25868         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
25869
25870 2010-12-28  Bruno Haible  <bruno@clisp.org>
25871             Paul Eggert <eggert@cs.ucla.edu>
25872
25873         linkat: Make implementation robust against system behaviour variations.
25874         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
25875         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
25876         way, and to -2 if it needs a generic runtime test.
25877         * lib/linkat.c (solaris_optimized_link_immediate,
25878         solaris_optimized_link_follow): New functions.
25879         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
25880         (check_same_link): Use it.
25881
25882 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
25883
25884         New module 'unigbrk/base'.
25885         * modules/unigbrk/base: New file.
25886         * lib/unigbrk.in.h: New file.
25887
25888         New module 'unigbrk/uc-gbrk-prop'.
25889         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
25890         * modules/unigbrk/uc-gbrk-prop: New file.
25891         * lib/unigbrk/gbrkprop.h: New file.
25892         * lib/unigbrk/uc-gbrk-prop.c: New file.
25893
25894         New module 'unigbrk/uc-is-grapheme-break'.
25895         * modules/unigbrk/uc-is-grapheme-break: New file.
25896         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
25897         * lib/unigbrk/uc-is-grapheme-break.c: New file.
25898         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
25899         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
25900         * tests/unigbrk/GraphemeBreakTest.txt: New file.
25901
25902         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
25903
25904 2010-12-27  Bruno Haible  <bruno@clisp.org>
25905
25906         linkat test: Avoid failure on Solaris 11 2010-11.
25907         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
25908
25909 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25910
25911         utimens: work around glibc rounding bug on more platforms
25912         * lib/utimens.c (fdutimens): Work around rounding bug even if
25913         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
25914         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
25915
25916 2010-12-27  Bruno Haible  <bruno@clisp.org>
25917
25918         select tests: Improve comments.
25919         * tests/test-select.c (do_select): Add comments.
25920
25921 2010-12-27  Bruno Haible  <bruno@clisp.org>
25922
25923         select tests: Safer way of handling timeout.
25924         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
25925         at every invocation.
25926
25927 2010-12-27  Bruno Haible  <bruno@clisp.org>
25928
25929         select tests: Use 'bool' where appropriate.
25930         * tests/test-select.c (connect_to_socket): Change argument type to
25931         'bool'.
25932
25933 2010-12-27  Bruno Haible  <bruno@clisp.org>
25934
25935         select tests: Use existing modules.
25936         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
25937         (configure.ac): Don't test for unistd.h.
25938         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
25939         declared in <unistd.h>.
25940
25941 2010-12-27  Bruno Haible  <bruno@clisp.org>
25942
25943         mbrtowc: Work around a Solaris 7 bug.
25944         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
25945         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
25946         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
25947         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
25948         MBRTOWC_NULL_ARG1_BUG.
25949         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
25950         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
25951         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
25952         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
25953
25954 2010-12-27  Jim Meyering  <meyering@redhat.com>
25955
25956         read-file.c: tweak syntax
25957         * lib/read-file.c (fread_file): Remove space after "*" in function
25958         definitions.
25959
25960 2010-12-27  Bruno Haible  <bruno@clisp.org>
25961
25962         times test: Avoid gcc warnings on OSF/1.
25963         * tests/test-times.c (main): Cast printf arguments from clock_t to
25964         'long int'.
25965
25966 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25967
25968         utimens: work around glibc rounding bug on older Linux kernels
25969         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
25970         on Linux with a glibc whose utimes might not work, then work
25971         around a longstanding glibc bug involving rounding rather than
25972         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
25973         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25974
25975 2010-12-26  Bruno Haible  <bruno@clisp.org>
25976
25977         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
25978         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
25979         _GL_CXXALIAS_SYS.
25980         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25981
25982 2010-12-26  Bruno Haible  <bruno@clisp.org>
25983
25984         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
25985         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
25986         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25987         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
25988         looking for the declaration.
25989         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
25990         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
25991         problem.
25992         * doc/posix-functions/inet_pton.texi: Likewise.
25993
25994 2010-12-26  Bruno Haible  <bruno@clisp.org>
25995
25996         arpa_inet: Use the common idioms with C++ support.
25997         * lib/arpa_inet.in.h: Include c++defs.h.
25998         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
25999         support.
26000         * modules/arpa_inet (Depends-on): Add c++defs.
26001         (Makefile.am): Substitute the contents of c++defs.h.
26002         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
26003         * modules/arpa_inet-c++-tests: New file.
26004         * tests/test-arpa_inet-c++.cc: New file.
26005
26006 2010-12-25  Bruno Haible  <bruno@clisp.org>
26007
26008         Fix more C++ link errors on Solaris 8.
26009         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
26010         $(LIB_EACCESS).
26011         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
26012         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
26013         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
26014         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
26015         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
26016
26017 2010-12-25  Bruno Haible  <bruno@clisp.org>
26018
26019         printf-posix: Fix link error when a non-GCC compiler is used.
26020         * lib/stdio.in.h (printf): When not using GCC, override printf
26021         correctly.
26022         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26023
26024 2010-12-25  Bruno Haible  <bruno@clisp.org>
26025
26026         strerror_r-posix: Update doc.
26027         * doc/posix-functions/strerror_r.texi: Update doc about the return
26028         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
26029
26030 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26031
26032         utimens: simplify the logic of the previous change
26033         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
26034         This should not affect whether the test succeeds or fails.
26035
26036         utimens: configure better on hosts with NFS clock skew
26037         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
26038         uses the clock of the local host.  It might use the clock of the
26039         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
26040         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26041
26042 2010-12-25  Bruno Haible  <bruno@clisp.org>
26043
26044         ptsname test: Avoid failure on Solaris.
26045         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
26046         open a pseudo-terminal; don't use BSD-style ptys.
26047         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
26048
26049 2010-12-25  Bruno Haible  <bruno@clisp.org>
26050
26051         ptsname: Avoid ERANGE failure on some systems.
26052         * lib/ptsname.c (buffer): Increase size.
26053
26054 2010-12-25  Bruno Haible  <bruno@clisp.org>
26055
26056         rename, renameat: Avoid test failures at NFS mounted locations.
26057         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
26058         so that subsequent mkdir calls succeed.
26059
26060 2010-12-25  Bruno Haible  <bruno@clisp.org>
26061
26062         iswblank: Fix C++ link error on Solaris 8.
26063         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
26064         _GL_FUNCDECL_SYS.
26065
26066 2010-12-25  Bruno Haible  <bruno@clisp.org>
26067
26068         unistd: Fix C++ link error on Solaris 8.
26069         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
26070
26071 2010-12-25  Bruno Haible  <bruno@clisp.org>
26072
26073         readlink doc: Mention an old glibc bug.
26074         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
26075
26076 2010-12-25  Bruno Haible  <bruno@clisp.org>
26077
26078         fcntl-h: Fix for use of C++ on glibc systems.
26079         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
26080         also on glibc systems in C++ mode.
26081         Reported by Gary V. Vaughan <gary@gnu.org>.
26082
26083 2010-12-25  Bruno Haible  <bruno@clisp.org>
26084
26085         roundl-ieee: Make it work on OSF/1 5.1 with cc.
26086         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
26087
26088 2010-12-25  Bruno Haible  <bruno@clisp.org>
26089
26090         truncl-ieee: Make it work on OSF/1 5.1 with cc.
26091         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
26092         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
26093         test whether truncl works according to ISO C 99 with IEC 60559.
26094         * m4/truncl-ieee.m4: New file.
26095         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
26096         m4/signbit.m4.
26097         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
26098
26099 2010-12-25  Bruno Haible  <bruno@clisp.org>
26100
26101         ceill-ieee: Make it work on OSF/1 5.1 with cc.
26102         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
26103         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
26104         test whether ceill works according to ISO C 99 with IEC 60559.
26105         * m4/ceill-ieee.m4: New file.
26106         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
26107         m4/signbit.m4.
26108         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
26109
26110 2010-12-25  Bruno Haible  <bruno@clisp.org>
26111
26112         Ensure all prerequisites of <wchar.h> are included.
26113         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
26114         before <wchar.h>.
26115         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26116         gl_MBRLEN_NUL_RETVAL): Likewise.
26117         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26118         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
26119         AC_FUNC_MBRTOWC): Likewise.
26120         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26121         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
26122         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26123         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
26124         Likewise.
26125         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26126         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
26127         (gl_WCHAR_H): Improve comments.
26128         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26129
26130 2010-12-25  Bruno Haible  <bruno@clisp.org>
26131
26132         strtok_r: Fix C syntax error in autoconf macro.
26133         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
26134         characters in test program.
26135
26136 2010-12-24  Bruno Haible  <bruno@clisp.org>
26137
26138         ceil, trunc, round: Fix gcc warnings.
26139         * lib/ceil.c (MIN): Undefine before redefining.
26140         * lib/trunc.c (MIN): Likewise.
26141         * lib/round.c (MIN): Likewise.
26142         Include <math.h> first.
26143
26144 2010-12-24  Bruno Haible  <bruno@clisp.org>
26145
26146         select tests: Avoid failures on OSF/1 5.1.
26147         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
26148         failure of closing the last socket; it may fail with ECONNRESET.
26149
26150 2010-12-24  Eric Blake  <eblake@redhat.com>
26151
26152         stdint: avoid HP-UX 10.20 preprocessor bug
26153         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
26154         than #if.
26155         * tests/test-floor2.c (main): Likewise.
26156         Reported by Peter O'Gorman.
26157
26158         pipe: make obsoletion transition easier
26159         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
26160         * modules/pipe (Files): Include revived file.
26161         (Include): Drop reference, to mirror getdate's behavior.
26162
26163 2010-12-24  Bruno Haible  <bruno@clisp.org>
26164
26165         sys_socket: Hide mismatch of declarations on NonStop Kernel.
26166         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
26167         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
26168         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26169
26170 2010-12-24  Bruno Haible  <bruno@clisp.org>
26171
26172         gethostname: Ensure declaration on NonStop Kernel.
26173         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
26174         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26175
26176 2010-12-24  Bruno Haible  <bruno@clisp.org>
26177
26178         sys_select: Ensure all necessary types on NonStop Kernel.
26179         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
26180         include <sys/time.h>.
26181         * doc/posix-headers/sys_select.texi: Mention that it's missing on
26182         NonStop Kernel.
26183         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26184
26185 2010-12-24  Bruno Haible  <bruno@clisp.org>
26186
26187         sys_select: Remove unneeded include.
26188         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
26189         have <sys/select.h>.
26190
26191 2010-12-24  Bruno Haible  <bruno@clisp.org>
26192
26193         gethostname: Provide a fallback for HOST_NAME_MAX.
26194         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
26195         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
26196         instead.
26197         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26198
26199 2010-12-24  Bruno Haible  <bruno@clisp.org>
26200
26201         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
26202         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
26203         (SA_RESTART): Likewise.
26204         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26205
26206 2010-12-24  Bruno Haible  <bruno@clisp.org>
26207
26208         signal: Define NSIG.
26209         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
26210         * tests/test-signal.c (nsig): New variable.
26211         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26212
26213 2010-12-24  Bruno Haible  <bruno@clisp.org>
26214
26215         rename, renameat: Avoid test failures on OSF/1 5.1.
26216         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
26217         alternative error codes.
26218         * tests/test-renameat.c (main): Likewise.
26219
26220 2010-12-24  Bruno Haible  <bruno@clisp.org>
26221
26222         *printf: Detect large precisions bug on Solaris 10/SPARC.
26223         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
26224         by Paul Eggert.
26225         * tests/test-snprintf-posix.h (test_function): Add this test code here
26226         too.
26227         * tests/test-sprintf-posix.h (test_function): Likewise.
26228         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26229         * tests/test-vasprintf-posix.c (test_function): Likewise.
26230         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
26231         around by gnulib.
26232         * doc/posix-functions/printf.texi: Likewise.
26233         * doc/posix-functions/snprintf.texi: Likewise.
26234         * doc/posix-functions/sprintf.texi: Likewise.
26235         * doc/posix-functions/vfprintf.texi: Likewise.
26236         * doc/posix-functions/vprintf.texi: Likewise.
26237         * doc/posix-functions/vsnprintf.texi: Likewise.
26238         * doc/posix-functions/vsprintf.texi: Likewise.
26239         * doc/posix-functions/dprintf.texi: Undo last commit.
26240         * doc/posix-functions/vdprintf.texi: Likewise.
26241
26242 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26243
26244         tests: port test-fdutimensat.c to Solaris 8
26245         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
26246         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
26247         On Solaris 8, it fails with errno == ENOSYS, because there is no
26248         futimens (so it can't use the fd), and there is no lutimens (so it
26249         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
26250
26251         vsnprintf: make more consistent with snprintf; doc fixes
26252
26253         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
26254         the byte count return problem was promoted from the snprintf-posix
26255         to the snprintf module.
26256         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26257         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
26258         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
26259         * tests/test-snprintf.c (main): Check the byte count returned.
26260         * tests/test-vsnprintf.c (main): Likewise.
26261
26262 2010-12-23  Eric Blake  <eblake@redhat.com>
26263
26264         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
26265         * modules/sigpipe (License): Relax license.
26266
26267 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26268
26269         doc: document Solaris printf bug with large float precisions
26270         * doc/posix-functions/dprintf.texi (dprintf):
26271         * doc/posix-functions/fprintf.texi (fprintf):
26272         * doc/posix-functions/printf.texi (printf):
26273         * doc/posix-functions/snprintf.texi (snprintf):
26274         * doc/posix-functions/sprintf.texi (sprintf):
26275         * doc/posix-functions/vdprintf.texi (vdprintf):
26276         * doc/posix-functions/vfprintf.texi (vfprintf):
26277         * doc/posix-functions/vprintf.texi (vprintf):
26278         * doc/posix-functions/vsnprintf.texi (vsnprintf):
26279         * doc/posix-functions/vsprintf.texi (vsprintf):
26280         Mention that these functions mishandle large floating point
26281         precisions on Solaris 10.  The same bug is also present in Solaris
26282         8, and I assume earlier.  This causes "cd gnulib-tests; make
26283         check" to fail on Solaris 8 (and I assume, later) when building
26284         the latest coreutils, in test-vasprintf-posix's call to
26285         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
26286         the wide flavors (e.g., wprintf) so this patch just updates the
26287         documentation for the narrow ones.
26288
26289         test-posixtm.c: add two tests
26290         * tests/test-posixtm.c: Add two tests, to highlight the
26291         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
26292         around this bug; this is merely to document it.
26293
26294 2010-12-22  Bruno Haible  <bruno@clisp.org>
26295
26296         getlogin_r: Work around portability problem on OSF/1.
26297         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
26298         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
26299         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
26300         test for a truncated result.
26301         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
26302         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
26303         * modules/getlogin_r (Depends-on): Add memchr.
26304         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
26305
26306 2010-12-22  Bruno Haible  <bruno@clisp.org>
26307
26308         ptsname: Avoid test failure on OSF/1 5.1.
26309         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
26310         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
26311         (same_slave): New function.
26312         (main): Use it to compare ptsname's result with the expected file name.
26313
26314 2010-12-22  Bruno Haible  <bruno@clisp.org>
26315
26316         Port extended stdio modules to HP NonStop Kernel.
26317         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
26318         macros.
26319         * lib/fbufmode.c: Update comments.
26320         * lib/fflush.c: Likewise.
26321         * lib/fpurge.c: Likewise.
26322         * lib/freadable.c: Likewise.
26323         * lib/freadahead.c: Likewise.
26324         * lib/freading.c: Likewise.
26325         * lib/freadptr.c: Likewise.
26326         * lib/freadseek.c: Likewise.
26327         * lib/fseeko.c: Likewise.
26328         * lib/fseterr.c: Likewise.
26329         * lib/fwritable.c: Likewise.
26330         * lib/fwriting.c: Likewise.
26331         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26332
26333 2010-12-22  Bruno Haible  <bruno@clisp.org>
26334
26335         ttyname_r: Work around bug on OSF/1 5.1.
26336         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
26337         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
26338         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
26339         present.
26340         * lib/ttyname_r.c (ttyname_r): Update comments.
26341
26342 2010-12-22  Bruno Haible  <bruno@clisp.org>
26343
26344         round: Implement result sign according to IEEE 754.
26345         * lib/round.c (MIN, MINUS_ZERO): New macros.
26346         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
26347         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
26348         * tests/test-round-ieee.c (main): Likewise.
26349         * tests/test-roundl-ieee.c (main): Likewise.
26350
26351         trunc: Implement result sign according to IEEE 754.
26352         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
26353         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
26354         * tests/test-trunc2.c: Include minus-zero.h.
26355         (MINUS_ZERO): New macro.
26356         (trunc_reference): Keep in sync with lib/trunc.c.
26357         * tests/test-truncf2.c: Include minus-zero.h.
26358         (MINUS_ZERO): New macro.
26359         (truncf_reference): Keep in sync with lib/trunc.c.
26360         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
26361         * tests/test-trunc-ieee.c (main): Likewise.
26362         * tests/test-truncl-ieee.c (main): Likewise.
26363
26364         ceil: Implement result sign according to IEEE 754.
26365         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
26366         (FUNC): Return -0.0 for -1 < x < 0.
26367         * tests/test-ceil2.c: Include minus-zero.h.
26368         (MINUS_ZERO): New macro.
26369         (ceil_reference): Keep in sync with lib/ceil.c.
26370         * tests/test-ceilf2.c: Include minus-zero.h.
26371         (MINUS_ZERO): New macro.
26372         (ceilf_reference): Keep in sync with lib/ceil.c.
26373         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
26374         * tests/test-ceil-ieee.c (main): Likewise.
26375         * tests/test-ceill-ieee.c (main): Likewise.
26376
26377         floor: Implement result sign according to IEEE 754.
26378         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
26379         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
26380         * tests/test-floorf2.c (floorf_reference): Likewise.
26381         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
26382         * tests/test-floor-ieee.c (main): Likewise.
26383         * tests/test-floorl-ieee.c (main): Likewise.
26384
26385 2010-12-22  Bruno Haible  <bruno@clisp.org>
26386
26387         getaddrinfo: Update doc.
26388         * doc/posix-functions/gai_strerror.texi: Return type is also different
26389         on AIX and HP-UX.
26390
26391 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26392
26393         getaddrinfo, inet_ntop: Update doc for Solaris.
26394         * doc/posix-functions/gai_strerror.texi: Return type is also an
26395         issue on Solaris 9 and earlier.
26396         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
26397         on Solaris 10 and earlier.
26398
26399 2010-12-21  Bruno Haible  <bruno@clisp.org>
26400
26401         New module 'roundl-ieee'.
26402         * modules/roundl-ieee: New file.
26403         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
26404         test whether roundl works according to ISO C 99 with IEC 60559.
26405         * m4/roundl-ieee.m4: New file.
26406         * modules/roundl-ieee-tests: New file.
26407         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
26408         * tests/test-roundl.c (main): Remove signbit tests.
26409         * modules/roundl-tests (Depends-on): Remove signbit.
26410         * doc/posix-functions/roundl.texi: Mention the new module.
26411
26412 2010-12-21  Bruno Haible  <bruno@clisp.org>
26413
26414         New module 'truncl-ieee'.
26415         * modules/truncl-ieee: New file.
26416         * modules/truncl-ieee-tests: New file.
26417         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
26418         * tests/test-truncl.c (main): Remove signbit tests.
26419         * modules/truncl-tests (Depends-on): Remove signbit.
26420         * doc/posix-functions/truncl.texi: Mention the new module.
26421
26422 2010-12-21  Bruno Haible  <bruno@clisp.org>
26423
26424         New module 'ceill-ieee'.
26425         * modules/ceill-ieee: New file.
26426         * modules/ceill-ieee-tests: New file.
26427         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
26428         * tests/test-ceill.c (main): Remove signbit tests.
26429         * modules/ceill-tests (Depends-on): Remove signbit.
26430         * doc/posix-functions/ceill.texi: Mention the new module.
26431
26432 2010-12-21  Bruno Haible  <bruno@clisp.org>
26433
26434         New module 'floorl-ieee'.
26435         * modules/floorl-ieee: New file.
26436         * modules/floorl-ieee-tests: New file.
26437         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
26438         * tests/test-floorl.c (main): Remove signbit tests.
26439         * modules/floorl-tests (Depends-on): Remove signbit.
26440         * doc/posix-functions/floorl.texi: Mention the new module.
26441
26442 2010-12-21  Bruno Haible  <bruno@clisp.org>
26443
26444         New module 'round-ieee'.
26445         * modules/round-ieee: New file.
26446         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
26447         whether round works according to ISO C 99 with IEC 60559.
26448         * m4/round-ieee.m4: New file.
26449         * modules/round-ieee-tests: New file.
26450         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
26451         * tests/test-round1.c (main): Remove signbit tests.
26452         * modules/round-tests (Depends-on): Remove 'signbit'.
26453         * doc/posix-functions/round.texi: Mention the new module.
26454
26455 2010-12-21  Bruno Haible  <bruno@clisp.org>
26456
26457         New module 'trunc-ieee'.
26458         * modules/trunc-ieee: New file.
26459         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
26460         whether trunc works according to ISO C 99 with IEC 60559.
26461         * m4/trunc-ieee.m4: New file.
26462         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
26463         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
26464         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
26465         * modules/trunc-ieee-tests: New file.
26466         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
26467         * tests/test-trunc1.c (main): Remove signbit tests.
26468         * modules/trunc-tests (Depends-on): Remove 'signbit'.
26469         * doc/posix-functions/trunc.texi: Mention the new module.
26470
26471 2010-12-21  Bruno Haible  <bruno@clisp.org>
26472
26473         New module 'ceil-ieee'.
26474         * modules/ceil-ieee: New file.
26475         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
26476         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
26477         ISO C 99 with IEC 60559.
26478         * m4/ceil-ieee.m4: New file.
26479         * modules/ceil (Files): Add lib/ceil.c.
26480         (Depends-on): Add 'float'.
26481         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26482         * lib/math.in.h (ceil): New declaration.
26483         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
26484         REPLACE_CEIL.
26485         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
26486         * modules/ceil-ieee-tests: New file.
26487         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
26488         * tests/test-math-c++.cc: Check the signature of 'ceil'.
26489         * doc/posix-functions/ceil.texi: Mention the new module.
26490
26491 2010-12-21  Bruno Haible  <bruno@clisp.org>
26492
26493         New module 'floor-ieee'.
26494         * modules/floor-ieee: New file.
26495         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
26496         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
26497         ISO C 99 with IEC 60559.
26498         * m4/floor-ieee.m4: New file.
26499         * modules/floor (Files): Add lib/floor.c.
26500         (Depends-on): Add 'float'.
26501         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26502         * lib/math.in.h (floor): New declaration.
26503         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
26504         REPLACE_FLOOR.
26505         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
26506         * modules/floor-ieee-tests: New file.
26507         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
26508         * tests/test-math-c++.cc: Check the signature of 'floor'.
26509         * doc/posix-functions/floor.texi: Mention the new module.
26510
26511 2010-12-21  Bruno Haible  <bruno@clisp.org>
26512
26513         New module 'roundf-ieee'.
26514         * modules/roundf-ieee: New file.
26515         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
26516         test whether roundf works according to ISO C 99 with IEC 60559.
26517         * m4/roundf-ieee.m4: New file.
26518         * modules/roundf-ieee-tests: New file.
26519         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
26520         * tests/test-roundf1.c (main): Remove signbit tests.
26521         * modules/roundf-tests (Depends-on): Remove 'signbit'.
26522         * doc/posix-functions/roundf.texi: Mention the new module.
26523
26524 2010-12-21  Bruno Haible  <bruno@clisp.org>
26525
26526         New module 'truncf-ieee'.
26527         * modules/truncf-ieee: New file.
26528         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
26529         test whether truncf works according to ISO C 99 with IEC 60559.
26530         * m4/truncf-ieee.m4: New file.
26531         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
26532         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
26533         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
26534         * modules/truncf-ieee-tests: New file.
26535         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
26536         * tests/test-truncf1.c (main): Remove signbit tests.
26537         * modules/truncf-tests (Depends-on): Remove 'signbit'.
26538         * doc/posix-functions/truncf.texi: Mention the new module.
26539
26540 2010-12-21  Bruno Haible  <bruno@clisp.org>
26541
26542         New module 'ceilf-ieee'.
26543         * modules/ceilf-ieee: New file.
26544         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
26545         test whether ceilf works according to ISO C 99 with IEC 60559.
26546         * m4/ceilf-ieee.m4: New file.
26547         * modules/ceilf-ieee-tests: New file.
26548         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
26549         * tests/test-ceilf1.c (main): Remove signbit tests.
26550         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
26551         * doc/posix-functions/ceilf.texi: Mention the new module.
26552
26553 2010-12-21  Bruno Haible  <bruno@clisp.org>
26554
26555         New module 'floorf-ieee'.
26556         * modules/floorf-ieee: New file.
26557         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
26558         test whether floorf works according to ISO C 99 with IEC 60559.
26559         * m4/floorf-ieee.m4: New file.
26560         * modules/floorf-ieee-tests: New file.
26561         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
26562         * tests/test-floorf1.c (main): Remove signbit tests.
26563         * modules/floorf-tests (Depends-on): Remove 'signbit'.
26564         * doc/posix-functions/floorf.texi: Mention the new module.
26565
26566 2010-12-21  Bruno Haible  <bruno@clisp.org>
26567
26568         Support for minus zero in autoconf macros.
26569         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
26570         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
26571         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
26572         * tests/minus-zero.h: Update comments.
26573
26574 2010-12-21  Bruno Haible  <bruno@clisp.org>
26575
26576         Tests for module 'ceil'.
26577         * modules/ceil-tests: New file.
26578         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
26579         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
26580
26581 2010-12-21  Bruno Haible  <bruno@clisp.org>
26582
26583         Tests for module 'floor'.
26584         * modules/floor-tests: New file.
26585         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
26586         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
26587
26588 2010-12-21  Bruno Haible  <bruno@clisp.org>
26589
26590         math: Fix indentation.
26591         * lib/math.in.h (floorf): Fix indentation.
26592
26593 2010-12-21  Bruno Haible  <bruno@clisp.org>
26594
26595         Fix cross-compilation guesses on Solaris.
26596         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
26597         not match "solaris2.10".
26598         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26599         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
26600         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
26601
26602 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
26603
26604         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
26605         This fixes a problem observed with the latest coreutils snapshot
26606         that caused a test to fail on Solaris 8.  src/csplit.c's call
26607         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
26608         earlier, instead of returning the number of bytes that would have
26609         been generated; this causes csplit to incorrectly report memory
26610         exhaustion.
26611         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
26612         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
26613         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
26614         comments to match.
26615         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
26616         Fix typo in matching older versions of Solaris: "solaris2.10"
26617         is matched by the shell pattern "solaris2.[0-9]*".  This matters
26618         only for guessing while cross-compiling.
26619         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
26620
26621 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
26622
26623         ftoastr: fix comment again
26624         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26625         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
26626         Also, simplify example a bit by using flags = 0.
26627
26628 2010-12-20  Bruno Haible  <bruno@clisp.org>
26629
26630         round*, trunc*: Update documentation regarding glibc.
26631         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
26632         * doc/posix-functions/round.texi: Likewise.
26633         * doc/posix-functions/roundl.texi: Likewise.
26634         * doc/posix-functions/truncf.texi: Likewise.
26635         * doc/posix-functions/trunc.texi: Likewise.
26636         * doc/posix-functions/truncl.texi: Likewise.
26637
26638 2010-12-20  Bruno Haible  <bruno@clisp.org>
26639
26640         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
26641         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
26642         * doc/posix-functions/round.texi: Likewise.
26643         * doc/posix-functions/roundl.texi: Likewise.
26644
26645 2010-12-20  Bruno Haible  <bruno@clisp.org>
26646
26647         ttyname_r: Add missing declaration on HP-UX 11.
26648         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
26649         HAVE_TTYNAME_R.
26650         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
26651         declared. Set HAVE_TTYNAME_R always.
26652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26653         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
26654         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
26655         HAVE_TTYNAME_R.
26656         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
26657
26658 2010-12-20  Bruno Haible  <bruno@clisp.org>
26659
26660         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
26661         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
26662         * doc/posix-functions/getlogin_r.texi: Likewise.
26663         * tests/test-getlogin.c: Include <errno.h>.
26664         (main): Avoid test failure on HP-UX 11.11.
26665         * tests/test-getlogin_r.c (main): Likewise.
26666
26667 2010-12-20  Bruno Haible  <bruno@clisp.org>
26668
26669         getlogin_r: Add missing declaration on HP-UX 11.
26670         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
26671         declared also when it exists as a function.
26672         * doc/posix-functions/getlogin_r.texi: Document this workaround.
26673
26674 2010-12-20  Bruno Haible  <bruno@clisp.org>
26675
26676         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
26677         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
26678         through wcrtomb.
26679
26680 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26681
26682         ftoastr: fix comment
26683         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26684         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
26685
26686 2010-12-19  Bruno Haible  <bruno@clisp.org>
26687
26688         isnan: Ensure it is a macro.
26689         * lib/math.in.h (isnan): Define as a macro if not already a macro.
26690         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
26691         Solaris.
26692
26693 2010-12-19  Bruno Haible  <bruno@clisp.org>
26694
26695         ldexpl test: Fix link error on OSF/1 5.1.
26696         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
26697
26698 2010-12-19  Bruno Haible  <bruno@clisp.org>
26699
26700         wctype: Make it work in C++ mode on OSF/1 5.1.
26701         * lib/wctype.in.h (iswblank): Declare but not define here.
26702         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
26703         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
26704         * modules/wctype (Files): Add lib/iswblank.c.
26705
26706 2010-12-19  Bruno Haible  <bruno@clisp.org>
26707
26708         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
26709         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
26710         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
26711
26712 2010-12-19  Bruno Haible  <bruno@clisp.org>
26713
26714         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
26715         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
26716         _POSIX_PII_SOCKET.
26717         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
26718         * doc/posix-functions/recvfrom.texi: Likewise.
26719         * doc/posix-functions/send.texi: Likewise.
26720         * doc/posix-functions/sendto.texi: Likewise.
26721
26722 2010-12-19  Bruno Haible  <bruno@clisp.org>
26723
26724         tcgetsid: Add missing declaration on OSF/1 5.1.
26725         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
26726         HAVE_TCGETSID.
26727         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
26728         Don't set HAVE_TCGETSID.
26729         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
26730         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
26731         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
26732         HAVE_TCGETSID.
26733         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
26734
26735 2010-12-19  Bruno Haible  <bruno@clisp.org>
26736
26737         stdio: Fix problem with popen() declaration on OSF/1 5.1.
26738         * lib/stdio.in.h: During the include_next statement, let recursive
26739         includes of this file include only the system header file.
26740
26741 2010-12-19  Bruno Haible  <bruno@clisp.org>
26742
26743         iconv_open: Fix regression from 2010-12-04.
26744         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
26745         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
26746
26747 2010-12-19  Bruno Haible  <bruno@clisp.org>
26748
26749         stdbool test: Avoid a gcc warning.
26750         * tests/test-stdbool.c (main): Fail if e1 is false.
26751         Reported by Jim Meyering.
26752
26753 2010-12-19  Jim Meyering  <meyering@redhat.com>
26754
26755         setenv: restore to working order
26756         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
26757         mistakenly removed.
26758         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
26759         HAVE_SETENV.
26760         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
26761         HAVE_SETENV.
26762
26763 2010-12-19  Bruno Haible  <bruno@clisp.org>
26764
26765         Document some different function declarations on OSF/1 5.1.
26766         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
26767         * doc/posix-functions/inet_ntop.texi: Likewise.
26768         * doc/posix-functions/gethostname.texi: Likewise.
26769         * lib/unistd.in.h (gethostname): Update comment.
26770
26771 2010-12-19  Bruno Haible  <bruno@clisp.org>
26772
26773         doc: Mention vasprintf-posix module.
26774         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
26775         the 'vasprintf-posix' module.
26776         * doc/glibc-functions/vasprintf.texi: Likewise.
26777
26778 2010-12-19  Bruno Haible  <bruno@clisp.org>
26779
26780         unsetenv: Add missing declaration on OSF/1 5.1.
26781         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
26782         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
26783         Don't set HAVE_UNSETENV. In the test program, set _BSD.
26784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
26785         not HAVE_UNSETENV.
26786         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
26787         HAVE_UNSETENV.
26788         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
26789
26790 2010-12-19  Bruno Haible  <bruno@clisp.org>
26791
26792         setenv: Add missing declaration on OSF/1 5.1.
26793         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
26794         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
26795         declared. Don't set HAVE_SETENV.
26796         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
26797         not HAVE_SETENV.
26798         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
26799         HAVE_SETENV.
26800         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
26801
26802 2010-12-19  Bruno Haible  <bruno@clisp.org>
26803
26804         nl_langinfo tests: Avoid gcc warning.
26805         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
26806
26807 2010-12-19  Bruno Haible  <bruno@clisp.org>
26808
26809         mknod: Avoid error in C++ mode on OSF/1 with GCC.
26810         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
26811         _GL_CXXALIAS_SYS.
26812
26813 2010-12-19  Bruno Haible  <bruno@clisp.org>
26814
26815         stdbool: Relax test.
26816         * tests/test-stdbool.c (e): Don't require that casts from a variable's
26817         address to 'bool' work in static initializer, for compilers other than
26818         GCC.
26819
26820 2010-12-19  Bruno Haible  <bruno@clisp.org>
26821
26822         ftello: Add missing declaration on OSF/1 5.1.
26823         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
26824         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
26825         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
26826         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
26827         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
26828
26829 2010-12-19  Bruno Haible  <bruno@clisp.org>
26830
26831         fseeko: Add missing declaration on OSF/1 5.1.
26832         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
26833         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
26834         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
26835         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
26836         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
26837
26838 2010-12-19  Bruno Haible  <bruno@clisp.org>
26839
26840         fchdir: Add missing declaration on OSF/1 5.1.
26841         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
26842         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
26843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
26844         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
26845         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
26846
26847 2010-12-19  Bruno Haible  <bruno@clisp.org>
26848
26849         relocatable-prog-wrapper: Separate from relocatable-prog.
26850         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
26851         uninstall-relocwrapper rule here.
26852         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
26853         Reported by Ian Beckwith <ianb@erislabs.net>.
26854
26855 2010-12-19  Bruno Haible  <bruno@clisp.org>
26856
26857         unistr/u8-mbsnlen: Add missing dependency.
26858         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
26859         Reported by Ian Beckwith <ianb@erislabs.net>.
26860
26861 2010-12-19  Bruno Haible  <bruno@clisp.org>
26862
26863         iconv: Make it possible again to use this module without 'iconv-h'.
26864         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
26865         if it is not defined.
26866         Reported by Ian Beckwith <ianb@erislabs.net>.
26867
26868 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26869
26870         acl: port to Solaris 8 when copying from tmpfs to ufs
26871         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
26872         error number.  Problem observed on Solaris 8 with latest
26873         coreutils, with "mv A B", where A is on a tmpfs file system and B
26874         is on a ufs file system.  This caused coreutils' mv/part-symlink
26875         test to fail.
26876
26877         tests: set fail=0 at start
26878         * tests/init.sh (setup_): Move fail=0 initialization here ...
26879         (mktempd_): ... from here, so that tests can rely on fail being
26880         set to 0 initially.  This fixes a problem in coreutils; see:
26881         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
26882
26883 2010-12-18  Bruno Haible  <bruno@clisp.org>
26884
26885         memmem-simple: Stylistic changes.
26886         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
26887         Fix preprocessor directive indentation.
26888
26889 2010-12-15  Pádraig Brady <P@draigBrady.com>
26890
26891         memmem, memmem-simple: reorganize and expand empty needle check
26892         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
26893         functional checks to memmem-simple so that one has a fully functional
26894         memmem by using just this module.
26895         Restrict the performance only check to the memmem module.
26896         Also expand the empty needle check to ensure the correct
26897         pointer is returned, not just a non NULL pointer.
26898         * doc/glibc-functions/memmem.texi: Rearrange the portability
26899         documentation to correlate with the rearranged checks.
26900         Clarify exactly how the memmem and memmem-simple modules
26901         relate to each other.
26902
26903 2010-12-15  Pádraig Brady <P@draigBrady.com>
26904             Bruno Haible  <bruno@clisp.org>
26905
26906         Improve cross-compilation guesses for uClibc.
26907         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
26908         that uClibc does not have the glibc bug.
26909         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
26910         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
26911
26912 2010-12-14  Eric Blake  <eblake@redhat.com>
26913
26914         configmake: provide fallbacks for oldest supported autotools
26915         * m4/configmake.m4: New file.
26916         * modules/configmake (Files): Ship it.
26917         (configure.ac): Use it to guarantee fallbacks.
26918
26919 2010-12-13  Pádraig Brady <P@draigBrady.com>
26920
26921         read-file: Improve handling of large files
26922         * lib/read-file.c (fread_file): Minimize realloc()s
26923         for regular files, and better manage sizes around SIZE_MAX.
26924
26925 2010-12-13  Eric Blake  <eblake@redhat.com>
26926
26927         cloexec, fcntl: relax license
26928         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
26929         consent from all contributors.
26930         * modules/fcntl (License): Likewise.
26931
26932 2010-12-10  Bruno Haible  <bruno@clisp.org>
26933
26934         Tests for module 'pipe-posix'.
26935         * modules/pipe-posix-tests: New file.
26936         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
26937
26938 2010-12-10  Bruno Haible  <bruno@clisp.org>
26939
26940         pipe-posix: Make it work in C++ mode.
26941         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
26942         (pipe): Use common idiom, not a macro definition.
26943         * lib/pipe.c: New file.
26944         * m4/pipe.m4: New file.
26945         * modules/pipe-posix (Description): Enhance.
26946         (Files): Add lib/pipe.c, m4/pipe.m4.
26947         (configure.ac): Invoke gl_FUNC_PIPE.
26948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
26949         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
26950         * tests/test-unistd-c++.cc: Check the signature of pipe.
26951
26952 2010-12-10  Bruno Haible  <bruno@clisp.org>
26953
26954         Rename module 'pipe' to 'spawn-pipe'.
26955         * modules/spawn-pipe: New file, renamed from modules/pipe.
26956         (Files, configure.ac, Makefile.am): Update.
26957         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
26958         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
26959         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
26960         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
26961         "spawn-pipe.h" instead of "pipe.h".
26962         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
26963         to gl_SPAWN_PIPE.
26964         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
26965         (Files, Makefile.am): Update.
26966         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
26967         Update.
26968         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
26969         Include "spawn-pipe.h" instead of "pipe.h".
26970         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
26971         * lib/javacomp.c: Likewise.
26972         * lib/javaversion.c: Likewise.
26973         * lib/pipe-filter-gi.c: Likewise.
26974         * lib/pipe-filter-ii.c: Likewise.
26975         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
26976         * modules/javacomp (Depends-on): Likewise.
26977         * modules/javaversion (Depends-on): Likewise.
26978         * modules/pipe-filter-gi (Depends-on): Likewise.
26979         * modules/pipe-filter-ii (Depends-on): Likewise.
26980         * MODULES.html.sh (Executing programs): Update.
26981         * NEWS: Mention the change.
26982
26983 2010-12-10  Eric Blake  <eblake@redhat.com>
26984
26985         pipe-posix: new module
26986         * modules/pipe-posix: New file.
26987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
26988         (gl_UNISTD_H): Check for declaration.
26989         * modules/unistd (Makefile.am): Substitute it.
26990         * lib/unistd.in.h (pipe): Provide it for mingw.
26991         * doc/posix-functions/pipe.texi (pipe): Update documentation.
26992         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
26993
26994 2010-12-07  Bruno Haible  <bruno@clisp.org>
26995
26996         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
26997         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
26998         u8_strcmp_gnu.
26999         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
27000
27001 2010-12-06  Bruno Haible  <bruno@clisp.org>
27002
27003         Update internal documentation.
27004         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
27005
27006 2010-12-04  Bruno Haible  <bruno@clisp.org>
27007
27008         Put more information about failed tests into the test return codes.
27009         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
27010         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
27011         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
27012         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27013         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
27014         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27015         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27016         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27017         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
27018         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27019         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
27020         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
27021         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
27022         * m4/stdint.m4 (gl_STDINT_H): Likewise.
27023         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
27024         returns a bit mask.
27025         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
27026         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
27027         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
27028         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
27029         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27030         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27031         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27032         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
27033         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27034         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27035         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27036         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27037         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27038         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27039         * m4/link.m4 (gl_FUNC_LINK): Likewise.
27040         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27041         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
27042         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
27043         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27044         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
27045         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27046         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27047         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
27048         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
27049         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27050         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
27051         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
27052         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27053         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27054         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
27055         gl_PRINTF_PRECISION): Likewise.
27056         * m4/regex.m4 (gl_REGEX): Likewise.
27057         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
27058         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
27059         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
27060         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27061         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27062         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27063         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
27064         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
27065         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27066         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27067         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27068         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
27069         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27070         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
27071         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27072         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27073         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
27074         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27075         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27076         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
27077         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
27078         enumerated value.
27079         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
27080
27081 2010-12-04  Bruno Haible  <bruno@clisp.org>
27082
27083         Update for Solaris 11 2010-11.
27084         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
27085         Express, released in November 2010.
27086
27087 2010-12-04  Bruno Haible  <bruno@clisp.org>
27088
27089         nproc: Relax license.
27090         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
27091         and Paul Eggert.
27092         Requested by Ludovic Courtès <ludo@gnu.org>.
27093
27094 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
27095
27096         utimecmp: fine-grained src to nearby coarse-grained dest
27097
27098         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
27099         and the source is on a file system with higher-resolution time
27100         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
27101         not work, and the time stamps are close together, the algorithm to
27102         determine the exact resolution from the read-back mtime was buggy:
27103         it had a "!=" where it should have had an "==".  This bug has been
27104         in the code ever since it was introduced to gnulib.
27105         Problem reported by Dan Jacobson in
27106         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
27107
27108 2010-11-30  Bruno Haible  <bruno@clisp.org>
27109
27110         strerror_r-posix: Fix autoconf test.
27111         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
27112
27113 2010-11-28  Bruno Haible  <bruno@clisp.org>
27114             Paul Eggert  <eggert@cs.ucla.edu>
27115
27116         Tests for module 'getdomainname'.
27117         * modules/getdomainname-tests: New file.
27118         * tests/test-getdomainname.c: New file, based on
27119         tests/test-gethostname.c.
27120
27121 2010-11-28  Bruno Haible  <bruno@clisp.org>
27122             Paul Eggert  <eggert@cs.ucla.edu>
27123
27124         getdomainname: Use the system function when possible.
27125         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
27126         (getdomainname): Replace if needed. Provide the declaration if it is
27127         missing. Don't use _GL_CXXALIAS_SYS_CAST.
27128         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
27129         (getdomainname): When the system has getdomainname, call the system
27130         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
27131         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
27132         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
27133         found in libnsl. Look for the declaration also in <netdb.h>. Replace
27134         the function if its second argument is of type 'int' or if it is found
27135         in libnsl.
27136         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
27137         <sys/systeminfo.h> and sysinfo().
27138         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
27139         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27140         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
27141         HAVE_GETDOMAINNAME.
27142         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
27143         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
27144         * doc/glibc-functions/getdomainname.texi: Document the problems with
27145         the getdomainname declaration.
27146
27147 2010-11-28  Bruno Haible  <bruno@clisp.org>
27148
27149         sys_socket: Ensure ss_family field on AIX.
27150         * lib/sys_socket.in.h (ss_family): New macro definition.
27151         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
27152         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
27153         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27154         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27155         * modules/sys_socket (Makefile.am): Substitute
27156         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27157         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
27158
27159 2010-11-27  Bruno Haible  <bruno@clisp.org>
27160
27161         readline: Improve configure output.
27162         * m4/readline.m4 (gl_FUNC_READLINE): Make the
27163         "checking for readline..." result understandable.
27164
27165 2010-11-27  Bruno Haible  <bruno@clisp.org>
27166
27167         *printf-posix: Detect a bug on Solaris 10/x86.
27168         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
27169         for floating-point output.
27170         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
27171         directive.
27172         * tests/test-snprintf-posix.h (test_function): Likewise.
27173         * tests/test-sprintf-posix.h (test_function): Likewise.
27174         * tests/test-vasprintf-posix.c (test_function): Likewise.
27175         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
27176         * doc/posix-functions/printf.texi: Likewise.
27177         * doc/posix-functions/snprintf.texi: Likewise.
27178         * doc/posix-functions/sprintf.texi: Likewise.
27179         * doc/posix-functions/vfprintf.texi: Likewise.
27180         * doc/posix-functions/vprintf.texi: Likewise.
27181         * doc/posix-functions/vsnprintf.texi: Likewise.
27182         * doc/posix-functions/vsprintf.texi: Likewise.
27183         * doc/glibc-functions/obstack_printf.texi: Likewise.
27184         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
27185
27186 2010-11-27  Bruno Haible  <bruno@clisp.org>
27187
27188         Fix link error when module libunistring-optional is in use.
27189         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
27190         * modules/striconveha-tests (Makefile.am): Likewise.
27191
27192 2010-11-27  Bruno Haible  <bruno@clisp.org>
27193
27194         regex: Mention link dependencies.
27195         * modules/regex (Link): New section.
27196         * modules/rpmatch (Link): Likewise.
27197         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
27198
27199 2010-11-27  Bruno Haible  <bruno@clisp.org>
27200
27201         ftoastr: Fix compilation error on Solaris.
27202         * lib/ftoastr.c: Include <config.h>.
27203
27204 2010-11-27  Bruno Haible  <bruno@clisp.org>
27205
27206         getloadavg: Update documentation.
27207         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
27208
27209 2010-11-27  Bruno Haible  <bruno@clisp.org>
27210
27211         sys_socket: Fix test whether the functions are declared.
27212         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
27213         not <sys/select.h>.
27214
27215 2010-11-27  Bruno Haible  <bruno@clisp.org>
27216
27217         getpass: Make sure to get system declaration on some platforms.
27218         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
27219         gl_USE_SYSTEM_EXTENSIONS.
27220         * modules/getpass (Depends-on): Add extensions.
27221
27222 2010-11-26  Bruno Haible  <bruno@clisp.org>
27223
27224         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
27225         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
27226         'iconv' module is present.
27227         (ICONV_CONST): New macro.
27228         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
27229         ICONV_CONST.
27230         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
27231         set ICONV_CONST.
27232         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
27233         here.
27234         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
27235         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
27236         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
27237         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
27238         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
27239         present.
27240
27241 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27242
27243         ftoastr: comment fix
27244         * lib/ftoastr.c: "little" -> "little or no" in comment
27245
27246 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
27247
27248         stdint: port to GCC 4.3 + OSX + Octave
27249         On this platform, stdint.h is buggy and defines int64_t to long
27250         long int.  The replacement defined it to long int, causing
27251         problems with C++ style name mangling.  Instead, trust the system
27252         definition if INT64_MAX is defined, and likewise for the unsigned
27253         variant.   Problem reported by Jarno Rajahalme in
27254         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
27255         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
27256         and don't mess with int64_t and INT64_MAX in this case.
27257         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
27258
27259 2010-11-24  Bruno Haible  <bruno@clisp.org>
27260
27261         doc: Corrections regarding MacOS X 10.4 and 10.5.
27262         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
27263         MacOS X.
27264         Reported by Simon Josefsson.
27265
27266 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
27267
27268         Uninstall ".bin" files installed by relocwrapper.
27269         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
27270         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
27271         unless it is already there.
27272
27273 2010-11-21  Bruno Haible  <bruno@clisp.org>
27274
27275         Update for NetBSD 5.0.
27276         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27277         NetBSD; the test fails on NetBSD 5.0.
27278         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27279         about NetBSD.
27280
27281 2010-11-21  Bruno Haible  <bruno@clisp.org>
27282
27283         Update for HP-UX 11.23 and HP-UX 11.31.
27284         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
27285         HP-UX.
27286
27287 2010-11-21  Bruno Haible  <bruno@clisp.org>
27288
27289         Update for MacOS X 10.5.
27290         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27291         MacOS X; the test fails on MacOS X 10.5.8.
27292         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27293         about MacOS X.
27294
27295 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
27296
27297         bootstrap: add bootstrap_sync option.
27298         See discussion at
27299         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
27300         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
27301         * build-aux/bootstrap: Accept --bootstrap-sync to update
27302         bootstrap if it is not identical to the local gnulib's
27303         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
27304         enable this by default.  Accept --no-bootstrap-sync to disable
27305         it.
27306
27307 2010-11-20  Bruno Haible  <bruno@clisp.org>
27308
27309         Ensure that <features.h> is included before __GLIBC__ is tested.
27310         * lib/printf-parse.h: Include <features.h>.
27311         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
27312         Reported by Mike Frysinger <vapier@gentoo.org>.
27313
27314         Ensure that <features.h> is included before __GLIBC__ is tested.
27315         * lib/wchar.in.h: Include <features.h>.
27316         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
27317         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
27318         Reported by Mike Frysinger <vapier@gentoo.org>.
27319
27320         Ensure that <features.h> is included before __GLIBC__ is tested.
27321         * lib/arpa_inet.in.h: Include <features.h>.
27322         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
27323         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
27324         Reported by Mike Frysinger <vapier@gentoo.org>.
27325
27326         Ensure that <features.h> is included before __GLIBC__ is tested.
27327         * build-aux/link-warning.h: Include <features.h>.
27328         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
27329         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
27330         Reported by Mike Frysinger <vapier@gentoo.org>.
27331
27332         Ensure that <features.h> is included before __GLIBC__ is tested.
27333         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
27334         Reported by Mike Frysinger <vapier@gentoo.org>.
27335
27336 2010-11-20  Bruno Haible  <bruno@clisp.org>
27337
27338         memmem: Fix autoconf test.
27339         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
27340
27341 2010-11-20  Bruno Haible  <bruno@clisp.org>
27342
27343         Port to uClibc.
27344         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
27345         * lib/fcntl.in.h: Likewise.
27346         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
27347         * lib/mbrtowc.c (mbrtowc): Likewise.
27348         * lib/relocatable.c (find_shared_library_fullname): Likewise.
27349         * lib/strerror_r.c: Likewise.
27350         * lib/unistr/u8-strnlen.c: Likewise.
27351         * lib/vasnprintf.c (decimal_point_char): Likewise.
27352         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27353         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27354         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27355         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27356         * tests/test-sigaction.c (handler, main): Likewise.
27357         * lib/freading.h: Treat uClibc like a non-glibc platform.
27358         * lib/freading.c: Likewise.
27359         * lib/gettext.h: Likewise.
27360         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
27361         Likewise.
27362         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
27363         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
27364         * lib/propername.c (proper_name_utf8): Likewise.
27365         * lib/spawn.in.h: Likewise.
27366         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
27367         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
27368         mem_cd_iconveh_internal): Likewise.
27369         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
27370         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27371         strstr, strcasestr): Likewise.
27372         * lib/unicodeio.c (unicode_to_mb): Likewise.
27373         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
27374         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
27375         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
27376         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
27377         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
27378         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
27379         * lib/unistr/u8-stpncpy.c: Likewise.
27380         * lib/vasnprintf.c (VASNPRINTF): Likewise.
27381         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
27382         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27383         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27384         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27385         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
27386         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
27387         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
27388         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
27389         Likewise.
27390         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27391         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27392         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27393         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27394         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27395         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27396         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27397         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
27398         * tests/test-getopt.h (OPTIND_MIN): Likewise.
27399         * tests/test-striconveha.c (main): Likewise.
27400         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27401         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
27402         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
27403         * doc/posix-functions/getline.texi: Likewise.
27404         Reported by Mike Frysinger <vapier@gentoo.org>.
27405
27406 2010-11-20  Bruno Haible  <bruno@clisp.org>
27407
27408         nproc: Fix condition.
27409         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
27410         HAVE_PTHREAD_AFFINITY_NP.
27411
27412 2010-11-20  Bruno Haible  <bruno@clisp.org>
27413
27414         Fix a comment.
27415         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
27416
27417 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
27418
27419         ftoastr: don't assume snprintf
27420         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
27421         Implement a subset of snprintf here, by using sprintf safely.
27422         * modules/ftoastr (Depends-on): Remove snprintf.
27423
27424 2010-11-19  Jim Meyering  <meyering@redhat.com>
27425
27426         test-rename.h: fix compilation failure
27427         * tests/test-rename.h (test_rename): Add omitted "}".
27428
27429 2010-11-17  Jim Meyering  <meyering@redhat.com>
27430
27431         maint.mk: add a URL discussing the no-@acronym policy
27432         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
27433
27434 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
27435
27436         ftoastr: depend on snprintf, improve comments
27437         * lib/ftoastr.c: Also mention Loitsch's draft.
27438         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
27439         needed in the current implementation, but it might simplify
27440         speeding up the code later.
27441         * modules/ftoastr: Depend on snprintf; this improves portability.
27442         Suggested by Bruno Haible in the same email.
27443
27444         ftoastr: port to hosts lacking strtof and strtold
27445         Problem reported by Bruno Haible in
27446         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
27447         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
27448         environment and strtold (and presumably strtof) are not available.
27449         * modules/ftoastr (Files): Add m4/c-strtod.m4.
27450         (configure.ac): Require gl_C99_STRTOLD.
27451
27452 2010-11-18  Bruno Haible  <bruno@clisp.org>
27453
27454         c-strtold: Avoid link error on AIX 7.
27455         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
27456         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
27457         (gl_C_STRTOLD): Test whether strtold_l exists.
27458         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27459
27460 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
27461
27462         intprops: new macro INT_BITS_STRLEN_BOUND
27463         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
27464         ftoastr.h.  This exposes an internal of intprops.h that was formerly
27465         not exposed.  Also, it uses a slightly tighter bound than before;
27466         though this makes no practical difference, we might as well be as
27467         tight as we easily can.
27468
27469         ftoastr: new module, for lossless conversion of floats to short strings
27470         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
27471         * modules/ftoastr: New files.
27472
27473 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27474
27475         bootstrap: port to Solaris sed
27476         * build-aux/bootstrap (get_version): Port to Solaris sed.
27477         See Ralf Wildenhues's note in
27478         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
27479
27480 2010-11-14  Jim Meyering  <meyering@redhat.com>
27481
27482         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
27483         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
27484         and move definition closer to sole use.
27485
27486 2010-11-13  Jim Meyering  <meyering@redhat.com>
27487
27488         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
27489         Now we require at least autoconf-2.59, which means the work-around
27490         is no longer needed.
27491         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
27492         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27493         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
27494         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
27495         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
27496
27497 2010-11-13  Bruno Haible  <bruno@clisp.org>
27498
27499         rename, renameat: Avoid test failures at NFS mounted locations.
27500         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
27501         functions.
27502         (test_rename): Use assert_nonexistent.
27503         * tests/test-rename.c: Include <dirent.h>.
27504         * tests/test-renameat.c: Likewise.
27505         Reported by Gary V. Vaughan <gary@gnu.org>.
27506
27507         rename, renameat: Document Linux bug with NFS
27508         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
27509         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
27510         * doc/posix-functions/renameat.texi: Likewise.
27511         Suggested by Eric Blake.
27512
27513 2010-11-13  Bruno Haible  <bruno@clisp.org>
27514
27515         rename test: Add comments.
27516         * tests/test-rename.h (test_rename): Add structure and comments.
27517
27518 2010-11-13  Eric Blake  <eblake@redhat.com>
27519
27520         maintainer-makefile: cover a few more files
27521         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
27522         scripts generated within C files, for libvirt.
27523
27524 2010-11-13  Bruno Haible  <bruno@clisp.org>
27525
27526         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
27527         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
27528         character, return the number of bytes that belong together, not always
27529         1.
27530         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
27531         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
27532         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
27533         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
27534         number of bytes of an invalid character.
27535         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
27536         (main): Invoke it.
27537         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
27538         results.
27539         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
27540         malformed byte sequences.
27541         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
27542         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
27543         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
27544         Reported by Ben Pfaff and Paolo Bonzini.
27545
27546 2010-11-13  Bruno Haible  <bruno@clisp.org>
27547
27548         openat: Work around glibc bug with fchownat() and empty file names.
27549         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
27550         (gl_FUNC_FCHOWNAT): Invoke it.
27551         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
27552         * doc/posix-functions/fchownat.texi: Document the glibc bug.
27553         Reported by Gary V. Vaughan <gary@gnu.org>.
27554
27555 2010-11-13  Bruno Haible  <bruno@clisp.org>
27556
27557         openat: Ensure autoconf macro ordering.
27558         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
27559         gl_USE_SYSTEM_EXTENSIONS.
27560         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
27561
27562 2010-11-13  Bruno Haible  <bruno@clisp.org>
27563
27564         Update comments.
27565         * lib/unistr/u8-check.c: Update file name in comments.
27566         * lib/unistr/u8-mblen.c: Likewise.
27567         * lib/unistr/u8-prev.c: Likewise.
27568         * lib/unistr/u8-strmblen.c: Likewise.
27569         * lib/unistr/u8-strmbtouc.c: Likewise.
27570
27571 2010-11-13  Jim Meyering  <meyering@redhat.com>
27572
27573         tests: avoid test failure on Solaris 10 due to lack of PATH export
27574         * tests/test-update-copyright.sh: Don't forget to export PATH.
27575
27576         init.sh: ensure that IFS is defined, just in case...
27577         * tests/init.sh (setup_): Ensure that IFS is defined,
27578         so that saving and restoring it works as expected.  This
27579         appears to be useful at least for an old version of dash
27580         from a long time ago (RH 6).  See here for details:
27581         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
27582
27583         maint.mk: tighten "test a == b" check
27584         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
27585         test to files that contain something like #!/bin/sh.
27586         Without this, coreutils would get two false positives in
27587         the comments of C source files.
27588
27589 2010-11-12  Eric Blake  <eblake@redhat.com>
27590
27591         bootstrap: fix typo in previous attempt
27592         * build-aux/bootstrap (buildreq): Correct the grouping.
27593         Reported by Paul Eggert.
27594
27595         maintainer-makefile: prohibit test x == x
27596         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
27597         Based on a report by Matthias Bolte.
27598
27599         bootstrap: allow FreeBSD gzip
27600         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
27601         which has no '.' and goes to stderr.
27602         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
27603         Reported by Matthias Bolte.
27604
27605         maintainer-makefile: check for i18n setup
27606         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
27607         will likely work.
27608
27609 2010-11-12  Bruno Haible  <bruno@clisp.org>
27610
27611         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
27612         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
27613         * lib/nanosleep.c (nanosleep): Likewise.
27614
27615 2010-11-11  Bruno Haible  <bruno@clisp.org>
27616
27617         fcntl-h: Fix for use of C++ on glibc systems.
27618         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27619         also on glibc systems in C++ mode.
27620         Reported by Gary V. Vaughan <gary@gnu.org>.
27621
27622 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27623
27624         mknod: avoid false failure with dash
27625         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
27626
27627 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
27628
27629         unlink: Fix "is it should" typo in diagnostic.
27630         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
27631         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
27632
27633 2010-11-11  Bruno Haible  <bruno@clisp.org>
27634
27635         Tests for module 'strerror_r-posix'.
27636         * modules/strerror_r-posix-tests: New file.
27637         * tests/test-strerror_r.c: New file.
27638         * tests/test-string-c++.cc: Check the signature of strerror_r.
27639
27640         New module 'strerror_r-posix'.
27641         * lib/string.in.h (strerror_r): New declaration.
27642         * lib/strerror_r.c: New file.
27643         * m4/strerror_r.m4: New file.
27644         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
27645         of strerror_r.
27646         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
27647         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27648         * modules/strerror_r-posix: New file.
27649         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
27650         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27651         * doc/posix-functions/strerror_r.texi: Mention the new module and the
27652         portability problems.
27653
27654 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
27655
27656         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
27657         line is also considered for output. Quoted function name in shell
27658         command, so temporary files for functions like MyClass::operator()
27659         are removed correctly without errors.
27660
27661 2010-11-09  Bruno Haible  <bruno@clisp.org>
27662
27663         * doc/posix-functions/strerror.texi: List more failing platforms.
27664
27665         * doc/posix-functions/strerror.texi: Add a comment.
27666
27667 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
27668
27669         fdopendir: fix bug on MacOS X when low on file descriptors
27670
27671         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
27672         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
27673         All callers changed.
27674         (fdopendir): Invoke save_cwd at the top level, not after using
27675         multiple dup() calls to use up file descriptors.  Then retry
27676         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
27677         less than the maximum number of open file descriptors, because
27678         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
27679         on Mac OS X 10.6.4 for tar 1.24
27680         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
27681         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
27682         and for tar 1.25
27683         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
27684
27685 2010-11-07  Bruno Haible  <bruno@clisp.org>
27686
27687         vasnprintf: Support I flag on glibc systems.
27688         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
27689         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
27690         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
27691         snprintf function.
27692         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
27693         glibc systems.
27694         * tests/test-vasnprintf-posix3.c: New file.
27695         * modules/vasnprintf-posix-tests (Files): Add it.
27696         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
27697
27698 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27699
27700         [html] Fix copy/paste bug: Use unique name for compiler warnings.
27701         * MODULES.html.sh: For compiler warnings, use name
27702         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
27703
27704 2010-11-05  Eric Blake  <eblake@redhat.com>
27705
27706         ceil, floor: avoid spurious failure with icc
27707         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
27708         [denormals-as-zero] when optimizing without -mieee-fp option.
27709         * tests/test-floorf2.c (floorf_reference): Likewise.
27710         * tests/test-ceilf1.c (dummy): New function.
27711         (main): Use it to outsmart icc's optimization.
27712         * tests/test-floorf1.c (dummy, main): Likewise.
27713
27714         tests: require working signbit
27715         * modules/ceilf-tests (Depends-on): Add signbit.
27716         * modules/ceill-tests (Depends-on): Likewise.
27717         * modules/floorf-tests (Depends-on): Likewise.
27718         * modules/floorl-tests (Depends-on): Likewise.
27719         * modules/round-tests (Depends-on): Likewise.
27720         * modules/roundf-tests (Depends-on): Likewise.
27721         * modules/roundl-tests (Depends-on): Likewise.
27722         * modules/trunc-tests (Depends-on): Likewise.
27723         * modules/truncf-tests (Depends-on): Likewise.
27724         * modules/truncl-tests (Depends-on): Likewise.
27725
27726         strtod: work around icc bug
27727         * lib/strtod.c (minus_zero): Define to working value.
27728         (strtod): Use it to avoid icc bug.
27729
27730         copysign: enhance tests
27731         * modules/copysign-tests (Files): Add minus-zero.h.
27732         * tests/test-copysign.c (main): Also test zeros.
27733
27734 2010-11-04  Eric Blake  <eblake@redhat.com>
27735
27736         ceil, floor, round, trunc: enhance tests of -0
27737         * tests/test-ceilf1.c (main): Ensure correct sign of result.
27738         * tests/test-ceill.c (main): Likewise.
27739         * tests/test-floorf1.c (main): Likewise.
27740         * tests/test-floorl.c (main): Likewise.
27741         * tests/test-round1.c (main): Likewise.
27742         * tests/test-roundf1.c (main): Likewise.
27743         * tests/test-roundl.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 2010-11-04  Eric Blake  <eblake@redhat.com>
27749
27750         frexp, tests: work around ICC bug with -zero
27751         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
27752         works with more compilers.
27753         * tests/minus-zero.h: New file.
27754         * modules/ceilf-tests (Files): Include it.
27755         * modules/ceill-tests (Files): Likewise.
27756         * modules/floorf-tests (Files): Likewise.
27757         * modules/floorl-tests (Files): Likewise.
27758         * modules/frexp-nolibm-tests (Files): Likewise.
27759         * modules/frexp-tests (Files): Likewise.
27760         * modules/frexpl-nolibm-tests (Files): Likewise.
27761         * modules/frexpl-tests (Files): Likewise.
27762         * modules/isnan-tests (Files): Likewise.
27763         * modules/isnand-nolibm-tests (Files): Likewise.
27764         * modules/isnand-tests (Files): Likewise.
27765         * modules/isnanf-nolibm-tests (Files): Likewise.
27766         * modules/isnanf-tests (Files): Likewise.
27767         * modules/isnanl-nolibm-tests (Files): Likewise.
27768         * modules/isnanl-tests (Files): Likewise.
27769         * modules/round-tests (Files): Likewise.
27770         * modules/roundf-tests (Files): Likewise.
27771         * modules/roundl-tests (Files): Likewise.
27772         * modules/ldexpl-tests (Files): Likewise.
27773         * modules/signbit-tests (Files): Likewise.
27774         * modules/snprintf-posix-tests (Files): Likewise.
27775         * modules/sprintf-posix-tests (Files): Likewise.
27776         * modules/strtod-tests (Files): Likewise.
27777         * modules/trunc-tests (Files): Likewise.
27778         * modules/truncf-tests (Files): Likewise.
27779         * modules/truncl-tests (Files): Likewise.
27780         * modules/vsnprintf-posix-tests (Files): Likewise.
27781         * modules/vsprintf-posix-tests (Files): Likewise.
27782         * modules/vasnprintf-posix-tests (Files): Likewise.
27783         * modules/vasprintf-posix-tests (Files): Likewise.
27784         * tests/test-ceilf1.c (main): Use it.
27785         * tests/test-ceill.c (main): Likewise.
27786         * tests/test-floorf1.c (main): Likewise.
27787         * tests/test-floorl.c (main): Likewise.
27788         * tests/test-frexp.c (main): Likewise.
27789         * tests/test-frexpl.c (main): Likewise.
27790         * tests/test-isnan.c (main): Likewise.
27791         * tests/test-isnand.h (main): Likewise.
27792         * tests/test-isnanf.h (main): Likewise.
27793         * tests/test-isnanl.h (main): Likewise.
27794         * tests/test-ldexpl.c (main): Likewise.
27795         * tests/test-round.c (main): Likewise.
27796         * tests/test-roundf.c (main): Likewise.
27797         * tests/test-roundl.c (main): Likewise.
27798         * tests/test-signbit.c (test_signbitf, test_signbitd)
27799         (test_signbitl): Likewise.
27800         * tests/test-snprintf-posix.h (test_function): Likewise.
27801         * tests/test-sprintf-posix.h (test_function): Likewise.
27802         * tests/test-strtod.c (main): Likewise.
27803         * tests/test-trunc1.c (main): Likewise.
27804         * tests/test-truncf1.c (main): Likewise.
27805         * tests/test-truncl.c (main): Likewise.
27806
27807         isnanl: work around icc bug
27808         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
27809
27810 2010-11-03  Eric Blake  <eblake@redhat.com>
27811
27812         tests: fix compiler warnings
27813         * tests/test-getopt.h (test_getopt): Fix condition.
27814         * tests/test-getopt_long.h (test_getopt_long): Likewise.
27815         * tests/test-pipe2.c (main): Likewise.
27816         * tests/test-quotearg-simple.c (main): Avoid icc warning.
27817
27818         utimens: fix broken m4 test
27819         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
27820
27821 2010-10-28  Bruno Haible  <bruno@clisp.org>
27822
27823         posix_spawn*, getdtablesize: Relax license.
27824         * modules/posix_spawn (License): Change to LGPLv2+.
27825         * modules/posix_spawnp (License): Likewise.
27826         * modules/posix_spawn-internal (License): Likewise.
27827         * modules/posix_spawnattr_init (License): Likewise.
27828         * modules/posix_spawnattr_getflags (License): Likewise.
27829         * modules/posix_spawnattr_setflags (License): Likewise.
27830         * modules/posix_spawnattr_getpgroup (License): Likewise.
27831         * modules/posix_spawnattr_setpgroup (License): Likewise.
27832         * modules/posix_spawnattr_getschedparam (License): Likewise.
27833         * modules/posix_spawnattr_setschedparam (License): Likewise.
27834         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
27835         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
27836         * modules/posix_spawnattr_getsigdefault (License): Likewise.
27837         * modules/posix_spawnattr_setsigdefault (License): Likewise.
27838         * modules/posix_spawnattr_getsigmask (License): Likewise.
27839         * modules/posix_spawnattr_setsigmask (License): Likewise.
27840         * modules/posix_spawnattr_destroy (License): Likewise.
27841         * modules/posix_spawn_file_actions_init (License): Likewise.
27842         * modules/posix_spawn_file_actions_addclose (License): Likewise.
27843         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
27844         * modules/posix_spawn_file_actions_addopen (License): Likewise.
27845         * modules/posix_spawn_file_actions_destroy (License): Likewise.
27846         * modules/getdtablesize (License): Likewise.
27847         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
27848
27849 2010-10-26  Bruno Haible  <bruno@clisp.org>
27850
27851         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
27852         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
27853         Cygwin and mingw.
27854         Suggested by Eric Blake.
27855
27856 2010-10-26  Bruno Haible  <bruno@clisp.org>
27857
27858         stdio: Work around compilation error due to renameat() on Solaris 10.
27859         * lib/stdio.in.h: Include <unistd.h> on Solaris.
27860         * lib/renameat.c: Don't include <unistd.h> here.
27861         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
27862         Reported by Paul Eggert and Eric Blake.
27863
27864 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27865
27866         renameat: port to Solaris 10, which declares renameat in unistd.h
27867
27868         * lib/renameat.c: Include unistd.h before stdio.h, because
27869         Solaris 10 declares renameat in unistd.h.  Problem encountered
27870         when building GNU tar 1.24 on Solaris 10.
27871
27872 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27873
27874         fdopendir: fix C89 compilation
27875         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
27876         compilers.
27877
27878 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
27879
27880         inttostr: simplify by removing unnecessary redundancy
27881         * lib/anytostr.c: Don't include verify.h.
27882         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
27883         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
27884         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
27885         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
27886         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
27887         Likewise.
27888         * modules/inttostr (Depends-on): Remove 'verify'.
27889
27890 2010-10-23  Bruno Haible  <bruno@clisp.org>
27891
27892         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
27893         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
27894         Reported by Eric Blake.
27895
27896 2010-10-23  Bruno Haible  <bruno@clisp.org>
27897
27898         Tests: Fix LOCALE_JA on MirBSD 10.
27899         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
27900         to an UTF-8 locale.
27901         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
27902         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27903         Reported by Eric Blake.
27904
27905 2010-10-21  Bruno Haible  <bruno@clisp.org>
27906
27907         nl_langinfo test: Avoid test failure on NetBSD 5.
27908         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
27909         Reported by Eric Blake.
27910
27911 2010-10-21  Eric Blake  <eblake@redhat.com>
27912
27913         c-stack: work around libsigsegv 2.8 bug
27914         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
27915         overflow on at least PowerPC64.
27916
27917 2010-10-17  Bruno Haible  <bruno@clisp.org>
27918
27919         userspec: Drop redundant file.
27920         * modules/userspec (Files): Remove lib/inttostr.h.
27921
27922 2010-10-17  Bruno Haible  <bruno@clisp.org>
27923
27924         nl_langinfo tests: Silence some warnings.
27925         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
27926         Reported by Jim Meyering.
27927
27928 2010-10-17  Bruno Haible  <bruno@clisp.org>
27929
27930         Make use of GCC's attribute __alloc_size__.
27931         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
27932         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
27933         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
27934         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
27935         __alloc_size__.
27936         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
27937         Suggested by Jim Meyering.
27938
27939 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
27940
27941         bootstrap: anchor .gitignore entries.
27942         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
27943         with...
27944         (insert_vc_ignore): ... this new function, which prepends `/' to
27945         all .gitignore entries before passing them to
27946         insert_sorted_if_absent.
27947
27948 2010-10-16  Bruno Haible  <bruno@clisp.org>
27949
27950         nextafter: Fix configure check.
27951         * modules/nextafter (configure.ac): Correct expected prototype.
27952
27953 2010-10-16  Bruno Haible  <bruno@clisp.org>
27954
27955         termios: Update documentation.
27956         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
27957
27958 2010-10-16  Bruno Haible  <bruno@clisp.org>
27959
27960         tests: Make them compile with TinyCC.
27961         * tests/test-strstr.c (main): Remove parentheses around array
27962         initializer.
27963
27964 2010-10-15  Eric Blake  <eblake@redhat.com>
27965
27966         ignore-value: make header idempotent
27967         * lib/ignore-value.h: Add double-inclusion guards.
27968         Reported by Stefan Berger.
27969
27970 2010-10-15  Jim Meyering  <meyering@redhat.com>
27971
27972         GNUmakefile: handle "stable" target, not "major"
27973         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
27974         lists in maint.mk and announce-gen.  Without this, "make stable"
27975         would fail to ensure that $(VERSION) is up to date.
27976
27977 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
27978
27979         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
27980         & co.
27981
27982 2010-10-14  Bruno Haible  <bruno@clisp.org>
27983
27984         vasnprintf: Don't set errno to 0.
27985         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
27986         block that sets it to 0.
27987         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
27988
27989 2010-10-14  Bruno Haible  <bruno@clisp.org>
27990
27991         socketlib: Fix.
27992         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
27993         gl_PREREQ_SYS_H_WINSOCK2.
27994         Reported by Ian Beckwith <ianb@erislabs.net>.
27995
27996 2010-10-13  Jim Meyering  <meyering@redhat.com>
27997
27998         test-select-stdin.c: avoid warn_unused_result warnings
27999         * tests/test-select-stdin.c: Include "macros.h".
28000         ASSERT that read and fflush succeed.
28001
28002 2010-10-13  Jim Meyering  <meyering@redhat.com>
28003
28004         git-version-gen: do require git-VC'd files in cwd
28005         * build-aux/git-version-gen: Reject a git version string
28006         if there are no commits associated with the current directory.
28007         This avoids an unlikely false-positive (unrelated dir whose parent
28008         repository also contains a tag matching v*), as pointed out
28009         by Giuseppe Scrivano in
28010         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
28011
28012 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28013
28014         argv-iter: omit nonconforming declaration
28015         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
28016         enum arg_iter_err declaration, which doesn't conform to C99.
28017         Solaris 10 cc warns about this.
28018
28019 2010-10-13  Eric Blake  <eblake@redhat.com>
28020
28021         termios: fix compilation on mingw
28022         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
28023         (gl_TERMIOS_H): Adjust it on mingw.
28024         * modules/termios (Makefile.am): Substitute new key.
28025         * lib/termios.in.h (includes): Make include_next conditional.
28026         * doc/posix-headers/termios.texi (termios.h): Update
28027         documentation.
28028         Reported by Daniel P. Berrange.
28029
28030 2010-10-13  Jim Meyering  <meyering@redhat.com>
28031
28032         git-version-gen: don't require that .git/ be in the current dir
28033         * build-aux/git-version-gen: Adjust this script so that it works
28034         when run from any working directory beneath the top-level .git/-
28035         containing directory.  Inspired by a patch from Giuseppe Scrivano,
28036         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
28037
28038         test-select: avoid warn_unused_result warnings
28039         * tests/test-select.c: Include "macros.h".
28040         ASSERT that each call to read, write, and pipe succeeds.
28041         While not technically required, also check each "close".
28042         * modules/select-tests (Files): Add tests/macros.h.
28043
28044         test-symlinkat: remove declaration of unused local
28045         * tests/test-symlinkat.c (main): Remove unused local, "buf".
28046
28047         test-inttostr: avoid shadowing warnings
28048         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
28049         and use malloc rather than the stack for the same reason as
28050         mentioned in the comment justifying the other allocation.
28051
28052 2010-10-11  Bruno Haible  <bruno@clisp.org>
28053
28054         stdlib: Allow multiple gnulib generated replacements to coexist.
28055         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
28056         Reported by Sam Steingold <sds@gnu.org>.
28057
28058 2010-10-11  Jim Meyering  <meyering@redhat.com>
28059
28060         fix a documentation typo
28061         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
28062
28063 2010-10-11  Eric Blake  <eblake@redhat.com>
28064
28065         futimens: work around Solaris 11 bug
28066         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
28067         * tests/test-futimens.h (test_futimens): Enhance, rather than
28068         weaken test.
28069         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28070
28071 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28072
28073         Indentation.
28074         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
28075         higher-level operators more to the left.
28076
28077 2010-10-11  Jim Meyering  <meyering@redhat.com>
28078
28079         test-futimens: avoid unwarranted test failure on Solaris 5.11
28080         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
28081         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
28082         because it tries to dereference the NULL name argument.
28083
28084 2010-10-11  Bruno Haible  <bruno@clisp.org>
28085
28086         Indentation.
28087         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
28088         indentation.
28089
28090 2010-10-11  Jim Meyering  <meyering@redhat.com>
28091
28092         spawn.in.h: make indentation consistent with parentheses
28093         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
28094         Make indentation consistent with parentheses.
28095
28096 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
28097
28098         Fix mismatched parens in previous commit
28099         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
28100         parens.
28101
28102 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28103
28104         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
28105
28106         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
28107         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
28108         * lib/malloca.c: Include "verify.h".
28109         (verify1): Remove, replacing with a verify call.
28110         * lib/relocwrapper.c (verify1): Likewise.
28111         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
28112         Likewise.
28113         * modules/malloca (Depends-on): Add 'verify'.
28114         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
28115         * modules/vasnprintf (Depends-on): Add 'verify'.
28116         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28117         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28118         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28119         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28120         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28121         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28122         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28123
28124         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
28125
28126         Formerly the style was sometimes 2*X - 1, because the C standard
28127         was wrongly thought to disallow ?: in integral constant expressions.
28128         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
28129         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
28130         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
28131         * lib/stdint.in.h (_verify_intmax_size): Likewise.
28132         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
28133         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
28134         verify that time_t cannot be floating.
28135
28136 2010-10-08  Eric Blake  <eblake@redhat.com>
28137
28138         time: enforce recent POSIX ruling that time_t is integral
28139         * lib/time.in.h (__time_t_must_be_integral): Detect any
28140         problematic systems, allowing the rest of gnulib to assume POSIX.
28141
28142 2010-10-08  Jim Meyering  <meyering@redhat.com>
28143
28144         fdopendir: fix a bug on systems lacking openat and /proc support
28145         OpenBSD 4.7 is one such system.  The most noticeable effect was
28146         failure of any application making nontrivial use of fts: rm, du,
28147         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
28148           ./rm: traversal failed: `a': Bad file descriptor
28149         Debugging that, you see that even though FD 6 was closed just
28150         prior to the opendir call in fd_clone_opendir, its resulting
28151         dir->dd_fd was 8, rather than the expected value of 6:
28152
28153         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
28154         93                close (fd);
28155         (gdb) n
28156         94                dir = fd_clone_opendir (dupfd);
28157         (gdb) n
28158         95                saved_errno = errno;
28159         (gdb) p dir->dd_fd
28160         $11 = 8
28161
28162         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
28163         The problem is that on OpenBSD, fd_clone_opendir has to resort
28164         to using the old-style save/restore CWD mechanism, due to its
28165         lack of openat/proc support, and *that* would steal the FD (6)
28166         that opendir was supposed to use.
28167
28168         The fix is to squirrel away the desired FD so that save_cwd uses a
28169         different one, and then free the dest FD right before calling opendir.
28170         That guarantees opendir will use the required file descriptor.
28171
28172         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
28173
28174 2010-10-08  Bruno Haible  <bruno@clisp.org>
28175
28176         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
28177         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
28178
28179 2010-10-08  Bruno Haible  <bruno@clisp.org>
28180
28181         nanosleep: Make replacement POSIX compliant.
28182         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
28183         is out of range.
28184         Reported by Jim Meyering.
28185
28186 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28187
28188         bootstrap: add hook for altering gnulib.mk, for Bison
28189         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
28190         the Bison bootstrapping process can rewrite file names and variables
28191         in this file before later parts of 'bootstrap' use the file.
28192         Bison wants to include lib/gnulib.mk from the top-level makefile,
28193         so it needs the file names in this file to be relative to the top
28194         level, not relative to lib; plus it needs variable names to be
28195         rewritten.
28196         (slurp): Use the new function.
28197
28198         bootstrap: reformat for readability
28199         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
28200
28201 2010-10-08  Eric Blake  <eblake@redhat.com>
28202
28203         docs: update cygwin progress
28204         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
28205         1.7.7.
28206         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
28207         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
28208         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
28209         * doc/posix-functions/carg.texi (carg): Likewise.
28210         * doc/posix-functions/cargf.texi (cargf): Likewise.
28211         * doc/posix-functions/casin.texi (casin): Likewise.
28212         * doc/posix-functions/casinf.texi (casinf): Likewise.
28213         * doc/posix-functions/casinh.texi (casinh): Likewise.
28214         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
28215         * doc/posix-functions/catan.texi (catan): Likewise.
28216         * doc/posix-functions/catanf.texi (catanf): Likewise.
28217         * doc/posix-functions/catanh.texi (catanh): Likewise.
28218         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
28219         * doc/posix-functions/ccos.texi (ccos): Likewise.
28220         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
28221         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
28222         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
28223         * doc/posix-functions/cexp.texi (cexp): Likewise.
28224         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
28225         * doc/posix-functions/cimag.texi (cimag): Likewise.
28226         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
28227         * doc/posix-functions/clog.texi (clog): Likewise.
28228         * doc/posix-functions/clogf.texi (clogf): Likewise.
28229         * doc/posix-functions/conj.texi (conj): Likewise.
28230         * doc/posix-functions/conjf.texi (conjf): Likewise.
28231         * doc/posix-functions/cpow.texi (cpow): Likewise.
28232         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
28233         * doc/posix-functions/cproj.texi (cproj): Likewise.
28234         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
28235         * doc/posix-functions/creal.texi (creal): Likewise.
28236         * doc/posix-functions/crealf.texi (crealf): Likewise.
28237         * doc/posix-functions/csin.texi (csin): Likewise.
28238         * doc/posix-functions/csinf.texi (csinf): Likewise.
28239         * doc/posix-functions/csinh.texi (csinh): Likewise.
28240         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
28241         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
28242         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
28243         * doc/posix-functions/ctan.texi (ctan): Likewise.
28244         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
28245         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
28246         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
28247         * doc/posix-headers/complex.texi (complex.h): Likewise.
28248
28249 2010-10-07  Jim Meyering  <meyering@redhat.com>
28250
28251         parse-datetime: avoid compilation failure on OpenBSD 4.7
28252         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
28253         This works around a compilation failure on OpenBSD 4.7:
28254         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
28255
28256 2010-10-07  Eric Blake  <eblake@redhat.com>
28257
28258         docs: update cygwin progress
28259         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
28260         1.7.6.
28261         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
28262         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
28263         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
28264         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
28265         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
28266         Likewise.
28267         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
28268         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
28269         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
28270         Likewise.
28271         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
28272         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
28273         Likewise.
28274         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
28275         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
28276         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
28277         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
28278         Likewise.
28279         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
28280         Likewise.
28281         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
28282
28283         docs: update parse-datetime history
28284         * doc/parse-datetime.texi (Authors of parse_datetime): Better
28285         documentation of this function's history and alternatives.
28286
28287         cygwin: use more robust version check
28288         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
28289         exclude an eventual cygwin 1.9.1.
28290         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28291         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28292         (gl_FUNC_STRCASESTR): Likewise.
28293         Reported by Bruno Haible.
28294
28295 2010-10-06  Bruno Haible  <bruno@clisp.org>
28296
28297         string, sys_select: Avoid #including large headers unless necessary.
28298         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
28299         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
28300         OSF/1, BeOS, Haiku.
28301         Reported by Jim Meyering.
28302
28303 2010-10-05  Eric Blake  <eblake@redhat.com>
28304
28305         memmem, strstr, strcasestr: fix bug with long periodic needle
28306         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
28307         periodic needle having false positive.
28308         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
28309         and cygwin 1.7.7.
28310         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
28311         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28312         (gl_FUNC_STRCASESTR): Likewise.
28313         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28314         * tests/test-memmem.c (main): Expose the bug.
28315         * tests/test-strcasestr.c (main): Likewise.
28316         * tests/test-strstr.c (main): Likewise.
28317         * tests/test-c-strcasestr.c (main): Likewise.
28318         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
28319         * doc/posix-functions/strstr.texi (strstr): Likewise.
28320         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28321         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
28322
28323 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28324
28325         parse-datetime: do some more renaming
28326         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
28327         parse_datetime, not get_date.  Mention the renaming.
28328         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
28329         in comments.
28330         * m4/bison.m4: Likewise.
28331
28332 2010-10-05  Eric Blake  <eblake@redhat.com>
28333
28334         parse-datetime: better name than get_date
28335         * NEWS: Reword the deprecation notice.
28336         * modules/get_date: Rename to modules/parse-datetime.
28337         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
28338         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
28339         * lib/get_date.y: Rename to lib/parse-datetime.y.
28340         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
28341         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
28342         * doc/getdate.texi: Provide fallback wrapper.
28343         * lib/getdate.h: Move guts, and wrap...
28344         * lib/parse-datetime.h: ...new file.
28345         * lib/parse-datetime.y (get_date): Rename...
28346         (parse_datetime): ...to this.
28347         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
28348         (gl_PARSE_DATETIME): ...to this.
28349         * doc/posix-functions/getdate.texi (get_date): Provide fallback
28350         documentation.
28351         * modules/getdate (Files): Provide fallback docs and header.
28352         (Notice, Depends-on): Update references.
28353         * tests/test-parse-datetime.c: Likewise.
28354         * DEPENDENCIES: Likewise.
28355         * MODULES.html.sh (Date and time <time.h>): Likewise.
28356         * doc/parse-datetime.texi (Date input formats)
28357         (Authors of parse_datetime): Likewise.
28358         * modules/parse-datetime (Files, configure.ac, Makefile.am)
28359         (Include): Likewise.
28360         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
28361         * gnulib-tool: Likewise.
28362         * m4/bison.m4 (gl_BISON): Likewise.
28363         Suggested by Bruno Haible.
28364
28365 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28366
28367         more ports to Solaris tr, which needs [] around ranges
28368         * gnulib-tool: Solaris tr needs [] around ranges.
28369         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28370         * tests/test-pipe-filter-gi1.c (main): Likewise.
28371         * tests/test-pipe-filter-ii1.c (main): Likewise.
28372
28373 2010-10-05  Eric Blake  <eblake@redhat.com>
28374
28375         bootstrap: fix Solaris regression
28376         * build-aux/bootstrap (check_versions): Solaris tr still needs []
28377         around ranges.
28378         Reported by Pádraig Brady.
28379
28380         bootstrap: work with pkg-config
28381         * build-aux/bootstrap (check_versions): Also transliterate - in
28382         prerequisite name.
28383         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
28384         prerequisites that were already found, to avoid confusion.
28385         Reported by Justin Clift.
28386
28387         faccessat: remove unused wrappers
28388         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
28389         presence of these wrappers dragged in -lgen on Solaris.
28390         Reported by Clemens Brogi; fix suggested by Paul Eggert.
28391
28392 2010-10-05  Jim Meyering  <meyering@redhat.com>
28393
28394         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
28395         * Makefile (sc_pragma_columns): New syntax-check rule.
28396
28397 2010-10-04  Bruno Haible  <bruno@clisp.org>
28398
28399         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
28400         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
28401         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
28402         Reported by Bruce Korb and Eric Blake.
28403
28404 2010-10-04  Bruno Haible  <bruno@clisp.org>
28405
28406         threadlib: Make option --with-libpth-prefix work.
28407         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
28408         use $LIBPTH, not just -lpth.
28409
28410 2010-10-04  Bruno Haible  <bruno@clisp.org>
28411
28412         Avoid line length limitation from HP NonStop system header files.
28413         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
28414         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
28415         * lib/ctype.in.h: Likewise.
28416         * lib/dirent.in.h: Likewise.
28417         * lib/errno.in.h: Likewise.
28418         * lib/fcntl.in.h: Likewise.
28419         * lib/float.in.h: Likewise.
28420         * lib/getopt.in.h: Likewise.
28421         * lib/iconv.in.h: Likewise.
28422         * lib/inttypes.in.h: Likewise.
28423         * lib/langinfo.in.h: Likewise.
28424         * lib/locale.in.h: Likewise.
28425         * lib/math.in.h: Likewise.
28426         * lib/netdb.in.h: Likewise.
28427         * lib/netinet_in.in.h: Likewise.
28428         * lib/poll.in.h: Likewise.
28429         * lib/pthread.in.h: Likewise.
28430         * lib/pty.in.h: Likewise.
28431         * lib/sched.in.h: Likewise.
28432         * lib/se-selinux.in.h: Likewise.
28433         * lib/search.in.h: Likewise.
28434         * lib/signal.in.h: Likewise.
28435         * lib/spawn.in.h: Likewise.
28436         * lib/stdarg.in.h: Likewise.
28437         * lib/stddef.in.h: Likewise.
28438         * lib/stdint.in.h: Likewise.
28439         * lib/stdio.in.h: Likewise.
28440         * lib/stdlib.in.h: Likewise.
28441         * lib/string.in.h: Likewise.
28442         * lib/strings.in.h: Likewise.
28443         * lib/sys_file.in.h: Likewise.
28444         * lib/sys_ioctl.in.h: Likewise.
28445         * lib/sys_select.in.h: Likewise.
28446         * lib/sys_socket.in.h: Likewise.
28447         * lib/sys_stat.in.h: Likewise.
28448         * lib/sys_time.in.h: Likewise.
28449         * lib/sys_times.in.h: Likewise.
28450         * lib/sys_utsname.in.h: Likewise.
28451         * lib/sys_wait.in.h: Likewise.
28452         * lib/sysexits.in.h: Likewise.
28453         * lib/termios.in.h: Likewise.
28454         * lib/time.in.h: Likewise.
28455         * lib/unistd.in.h: Likewise.
28456         * lib/wchar.in.h: Likewise.
28457         * lib/wctype.in.h: Likewise.
28458         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
28459         * modules/ctype (Makefile.am): Likewise.
28460         * modules/dirent (Makefile.am): Likewise.
28461         * modules/errno (Makefile.am): Likewise.
28462         * modules/fcntl-h (Makefile.am): Likewise.
28463         * modules/float (Makefile.am): Likewise.
28464         * modules/getopt-posix (Makefile.am): Likewise.
28465         * modules/iconv-h (Makefile.am): Likewise.
28466         * modules/inttypes (Makefile.am): Likewise.
28467         * modules/langinfo (Makefile.am): Likewise.
28468         * modules/locale (Makefile.am): Likewise.
28469         * modules/math (Makefile.am): Likewise.
28470         * modules/netdb (Makefile.am): Likewise.
28471         * modules/netinet_in (Makefile.am): Likewise.
28472         * modules/poll-h (Makefile.am): Likewise.
28473         * modules/pthread (Makefile.am): Likewise.
28474         * modules/pty (Makefile.am): Likewise.
28475         * modules/sched (Makefile.am): Likewise.
28476         * modules/search (Makefile.am): Likewise.
28477         * modules/selinux-h (Makefile.am): Likewise.
28478         * modules/signal (Makefile.am): Likewise.
28479         * modules/spawn (Makefile.am): Likewise.
28480         * modules/stdarg (Makefile.am): Likewise.
28481         * modules/stddef (Makefile.am): Likewise.
28482         * modules/stdint (Makefile.am): Likewise.
28483         * modules/stdio (Makefile.am): Likewise.
28484         * modules/stdlib (Makefile.am): Likewise.
28485         * modules/string (Makefile.am): Likewise.
28486         * modules/strings (Makefile.am): Likewise.
28487         * modules/sys_file (Makefile.am): Likewise.
28488         * modules/sys_ioctl (Makefile.am): Likewise.
28489         * modules/sys_select (Makefile.am): Likewise.
28490         * modules/sys_socket (Makefile.am): Likewise.
28491         * modules/sys_stat (Makefile.am): Likewise.
28492         * modules/sys_time (Makefile.am): Likewise.
28493         * modules/sys_times (Makefile.am): Likewise.
28494         * modules/sys_utsname (Makefile.am): Likewise.
28495         * modules/sys_wait (Makefile.am): Likewise.
28496         * modules/sysexits (Makefile.am): Likewise.
28497         * modules/termios (Makefile.am): Likewise.
28498         * modules/time (Makefile.am): Likewise.
28499         * modules/unistd (Makefile.am): Likewise.
28500         * modules/wchar (Makefile.am): Likewise.
28501         * modules/wctype (Makefile.am): Likewise.
28502
28503 2010-10-04  Bruno Haible  <bruno@clisp.org>
28504
28505         read-file tests: Avoid a test failure on NonStop Kernel.
28506         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
28507         a regular file.
28508         Reported by Joachim Schmitz <schmitz@hp.com>.
28509
28510 2010-10-03  Bruno Haible  <bruno@clisp.org>
28511
28512         gnulib-tool: Fixes for --create-testdir with --libtool.
28513         * gnulib-tool (func_get_automake_snippet): Don't augment
28514         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
28515         an executable.
28516         (func_create_testdir): Handle module 'alloca' like func_import.
28517         Reported by Bruce Korb <bruce.korb@gmail.com>.
28518
28519 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
28520
28521         Avoid some lines longer than 80 characters.
28522         * lib/stdint.in.h: Break long comment lines.
28523         * lib/math.in.h: Likewise.
28524         (_GL_NUM_UINT_WORDS): New macro, for readability.
28525         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
28526         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
28527         * lib/stdlib.in.h: Likewise.
28528         * lib/spawn.in.h: Likewise.
28529         * lib/sys_socket.in.h: Update an URL.
28530         * lib/sys_stat.in.h: Break long line.
28531
28532 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
28533
28534         Improve pmccabe2html.
28535         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
28536         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
28537         when the sources change. Remove the line in the HTML about "Used
28538         ranges" (which implied that there might be other unused ranges),
28539         rename "Resume" to "Summary" (easier to understand for more users).
28540         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
28541         styles, and some unnecessary blank lines.
28542
28543 2010-10-03  Bruno Haible  <bruno@clisp.org>
28544             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
28545
28546         acl: Add support for ACLs on NonStop Kernel.
28547         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
28548         Check whether the function aclsort() exists.
28549         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
28550         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
28551         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28552         (acl_nontrivial [HAVE_ACLSORT]: New function.
28553         (file_has_acl): Implement for NonStop Kernel.
28554         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28555         (qset_acl): Implement for NonStop Kernel.
28556         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
28557         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28558         (main): Implement for NonStop Kernel.
28559         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
28560         Kernel. Handle this flavor.
28561         * tests/test-set-mode-acl.sh: Likewise.
28562         * tests/test-copy-acl.sh: Likewise.
28563         * tests/test-copy-file.sh: Likewise.
28564
28565 2010-10-03  Bruno Haible  <bruno@clisp.org>
28566
28567         Info about ACLs on NonStop Kernel.
28568         * doc/acl-resources.txt: Add info about NonStop Kernel.
28569         References by Joachim Schmitz <schmitz@hp.com>.
28570
28571 2010-10-02  Bruno Haible  <bruno@clisp.org>
28572
28573         Define missing EDQUOT on NonStop Kernel.
28574         * lib/errno.in.h (EDQUOT): Assign a value if missing.
28575         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
28576         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
28577         missing.
28578         * doc/posix-headers/errno.texi: Mention the NSK bug.
28579         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
28580         Reported by Joachim Schmitz <schmitz@hp.com>.
28581
28582 2010-10-02  Bruno Haible  <bruno@clisp.org>
28583
28584         Update doc for POSIX:2008.
28585         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
28586         Update URL of POSIX specification.
28587
28588 2010-10-02  Bruno Haible  <bruno@clisp.org>
28589
28590         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
28591         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
28592         from gnulib, not from Automake.
28593
28594 2010-10-02  Bruno Haible  <bruno@clisp.org>
28595
28596         New module 'system-posix'.
28597         * modules/system-posix: New file.
28598         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
28599         module is present.
28600         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28601         GNULIB_SYSTEM_POSIX.
28602         * modules/stdlib (Depends-on): Remove sys_wait.
28603         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
28604         * doc/posix-functions/system.texi: Mention the new module.
28605         * doc/posix-headers/stdlib.texi: Likewise.
28606         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
28607         define test_sys_wait_macros to a no-op.
28608         Reported by Sam Steingold <sds@gnu.org>.
28609
28610 2010-09-30  Bruno Haible  <bruno@clisp.org>
28611
28612         More renaming from 'getdate' to 'get_date'.
28613         * doc/get_date.texi: Renamed from doc/getdate.texi.
28614         * modules/get_date (Files): Update.
28615         * MODULES.html.sh (Date and time <time.h>): Update.
28616         * DEPENDENCIES: Update.
28617         * gnulib-tool: Update comment.
28618         * m4/bison.m4 (gl_BISON): Likewise.
28619         * m4/get_date.m4 (gl_GET_DATE): Likewise.
28620
28621 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
28622
28623         bootstrap: support ACLOCAL_FLAGS during aclocal
28624         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
28625         can add additional -I dir for third-party .m4 files.
28626
28627 2010-09-30  Eric Blake  <eblake@redhat.com>
28628
28629         bootstrap: use glibtoolize on MacOS
28630         * build-aux/bootstrap (check_versions): Convert libtool into
28631         libtoolize.
28632         (tool search): Move libtool check earlier, and look for
28633         glibtoolize for MacOS.
28634         (gnulib_tool_options): Auto-add --libtool when appropriate.
28635         Reported by Justin Clift.
28636
28637         poll: fix typo that broke test on MacOS
28638         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
28639         Reported by Justin Clift.
28640
28641         getdate: rename to get_date
28642         Note: getdate.h is not renamed, to minimize client impact.
28643         * modules/getdate: Mark obsolete.  Move old contents...
28644         * modules/get_date: ...to new module name.
28645         * modules/getdate-tests: Move...
28646         * modules/get_date-tests: ...here.
28647         * m4/getdate.m4: Move...
28648         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
28649         * lib/getdate.y: Move...
28650         * lib/get_date.y: ...here.
28651         * tests/test-getdate.c: Move...
28652         * tests/test-get_date.c: ...here.
28653         * doc/posix-functions/getdate.texi (getdate): Update name.
28654         * NEWS: Mention the change.
28655
28656 2010-09-29  Bruno Haible  <bruno@clisp.org>
28657
28658         Separate the module 'waitpid' from the module 'sys_wait'.
28659         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
28660         present.
28661         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
28662         gl_MODULE_INDICATOR_FOR_TESTS.
28663         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
28664         * modules/sys_wait (Depends-on): Remove waitpid.
28665         (Makefile.am): Substitute GNULIB_WAITPID.
28666         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
28667         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
28668         signature only if the 'waitpid' module is present.
28669         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
28670         * NEWS: Mention the change.
28671         * modules/grantpt (Depends-on): Add waitpid.
28672         * modules/wait-process (Depends-on): Likewise.
28673
28674 2010-09-29  Bruno Haible  <bruno@clisp.org>
28675
28676         More tests for module 'sys_wait'.
28677         * modules/sys_wait-c++-tests: New file.
28678         * tests/test-sys_wait-c++.cc: New file.
28679         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
28680         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28681
28682 2010-09-29  Bruno Haible  <bruno@clisp.org>
28683
28684         New module 'waitpid'.
28685         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
28686         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
28687         Don't include <process.h>.
28688         (waitpid): Declare only, using modern idiom.
28689         * m4/waitpid.m4: New file.
28690         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
28691         * modules/waitpid: New file.
28692         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
28693         (Makefile.am): Update.
28694         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28695
28696 2010-09-28  Bruno Haible  <bruno@clisp.org>
28697
28698         poll: Assume ANSI C.
28699         * lib/poll.c (poll): Use an ANSI C declaration.
28700
28701 2010-09-28  Bruno Haible  <bruno@clisp.org>
28702
28703         poll-h: Create poll.h on all platforms.
28704         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
28705         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
28706         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
28707         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
28708         (gl_REPLACE_POLL_H): Don't set POLL_H.
28709         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
28710         * modules/poll-h (Depends-on): Add include_next.
28711         (Makefile.am): Create poll.h unconditionally. Substitute also
28712         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
28713
28714 2010-09-28  Bruno Haible  <bruno@clisp.org>
28715
28716         Tests for module 'poll-h'.
28717         * modules/poll-h-c++-tests: New file.
28718         * tests/test-poll-h-c++.cc: New file.
28719
28720         Tests for module 'poll-h'.
28721         * modules/poll-h-tests: New file.
28722         * tests/test-poll-h.c: New file.
28723
28724 2010-09-28  Bruno Haible  <bruno@clisp.org>
28725
28726         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
28727         * modules/poll-h (Depends-on): Add 'extensions'.
28728
28729 2010-09-28  Bruno Haible  <bruno@clisp.org>
28730
28731         New module 'poll-h'.
28732         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
28733         (poll): Use modern idiom.
28734         * modules/poll-h: New file.
28735         * modules/poll (Files): Remove lib/poll.in.h.
28736         (Depends-on): Add poll-h.
28737         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
28738         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
28739         * m4/poll_h.m4: New file.
28740         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
28741         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
28742         and invoke gl_REPLACE_POLL_H.
28743         * lib/poll.c: Use common idiom.
28744         * tests/test-poll.c: Likewise.
28745         * doc/posix-headers/poll.texi: Mention the poll-h module.
28746         Suggested by Eric Blake.
28747
28748 2010-09-26  Bruno Haible  <bruno@clisp.org>
28749
28750         sys_wait: Implement WSTOPSIG.
28751         * lib/sys_wait.in.h (WSTOPSIG): New macro.
28752         Reported by Simon Josefsson.
28753
28754 2010-09-26  Simon Josefsson  <simon@josefsson.org>
28755
28756         stdlib, sys_wait: Avoid compilation error on mingw.
28757         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
28758
28759 2010-09-26  Bruno Haible  <bruno@clisp.org>
28760
28761         stdlib tests: Avoid code duplication.
28762         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
28763         * modules/sys_wait-tests (Files): Likewise.
28764         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
28765         * tests/test-stdlib.c: Include test-sys_wait.h.
28766         (main): Invoke test_sys_wait_macros.
28767         * tests/test-sys_wait.c: Include test-sys_wait.h.
28768         (main): Invoke test_sys_wait_macros.
28769
28770 2010-09-25  Simon Josefsson  <simon@josefsson.org>
28771
28772         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
28773         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
28774         sure Windows sockets are working before calling getaddrinfo.
28775         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
28776         * doc/gnulib.texi (Windows sockets): Fix typo.
28777
28778 2010-09-25  Bruno Haible  <bruno@clisp.org>
28779
28780         Tests for module 'regex-quote'.
28781         * modules/regex-quote-tests: New file.
28782         * tests/test-regex-quote.c: New file.
28783
28784         New module 'regex-quote'.
28785         * lib/regex-quote.h: New file.
28786         * lib/regex-quote.c: New file.
28787         * modules/regex-quote: New file.
28788         Suggested by Reuben Thomas <rrt@sc3d.org>.
28789
28790 2010-09-24  Bruno Haible  <bruno@clisp.org>
28791
28792         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
28793         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
28794
28795 2010-09-23  Bruno Haible  <bruno@clisp.org>
28796
28797         setenv: Relax license.
28798         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
28799         Blake.
28800         Requested by Eric Blake.
28801
28802 2010-09-22  Bruno Haible  <bruno@clisp.org>
28803
28804         termios: Relax license.
28805         * modules/termios (License): Change to LGPLv2+.
28806         Requested by Eric Blake.
28807
28808 2010-09-22  Bruno Haible  <bruno@clisp.org>
28809
28810         threadlib: Allow the package to change the default to 'no'.
28811         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
28812         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
28813         Reported by Paul Eggert.
28814
28815 2010-09-22  Pádraig Brady  <P@draigbrady.com>
28816             Bruno Haible  <bruno@clisp.org>
28817
28818         Fix endless loop in mbmemcasecoll.
28819         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
28820         byte.
28821         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
28822
28823 2010-09-22  Bruno Haible  <bruno@clisp.org>
28824
28825         Tests for module 'memcoll'.
28826         * modules/memcoll-tests: New file.
28827         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
28828
28829         memcoll, xmemcoll: Clarify size vs. length.
28830         * modules/memcoll.c (memcoll0): Clarify specification.
28831         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
28832         passed to collate_error.
28833
28834 2010-09-22  Bruno Haible  <bruno@clisp.org>
28835
28836         Tests for module 'memcasecmp'.
28837         * modules/memcasecmp-tests: New file.
28838         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
28839
28840 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28841
28842         * lib/pthread.in.h: Add split double-inclusion guard, and include
28843         system <pthread.h> if there is one.  Use @@-style as in other
28844         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
28845         pthread.h doesn't.
28846         (pthread_mutexattr_destroy, pthread_mutexattr_init):
28847         (pthread_mutexattr_settype, pthread_mutex_trylock):
28848         New static inline functions, if there's no system <pthread.h>.
28849         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
28850         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
28851         Approximate with mutexes if the system lacks spinlocks, as in
28852         MacOS.
28853         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
28854         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
28855         @@-style.  Check for spinlocks separately.
28856         (gl_PTHREAD_DEFAULTS): New macro.
28857         * modules/pthread: Redo to use a more typical style for in.h files.
28858
28859 2010-09-21  Eric Blake  <eblake@redhat.com>
28860
28861         net_if: enhance tests
28862         * tests/test-net_if.c (main): Move signature checks earlier.
28863         Print failures to stderr.
28864         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
28865         Document the bug that we do not yet fix.
28866
28867 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28868
28869         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
28870         about gnulib, not GSS.
28871
28872 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28873
28874         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
28875         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
28876         for Emacs.
28877         * build-aux/pmccabe2html: Make Makefile.am example code more
28878         cut-and-paste friendly.
28879
28880 2010-09-21  Simon Josefsson  <simon@josefsson.org>
28881
28882         * tests/test-net_if.c: New file.
28883         * modules/net_if-tests: New file.
28884
28885 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
28886
28887         pthread: add pthread_spin_destroy
28888         * lib/pthread.in.h (pthread_spin_destroy): New function.
28889
28890 2010-09-19  Bruno Haible  <bruno@clisp.org>
28891
28892         gnulib-tool: Fix --help output.
28893         * gnulib-tool (func_usage): Fix help message.
28894         Reported by Reuben Thomas <rrt@sc3d.org>.
28895
28896 2010-09-18  Jim Meyering  <meyering@redhat.com>
28897
28898         maint.mk: avoid unexpanded \n in two diagnostics
28899         * top/maint.mk (sc_prohibit_always_true_header_tests):
28900         Don't use a literal \n in a halt=... assignment.  It would not be
28901         expanded, and the two \n bytes would appear in the diagnostic output
28902         rather than the desired newline.  Use halt=$$(printf ... instead.
28903         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
28904
28905 2010-09-18  Bruno Haible  <bruno@clisp.org>
28906
28907         netinet_in: Doc tweak.
28908         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
28909         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28910
28911 2010-09-18  Jim Meyering  <meyering@redhat.com>
28912
28913         init.sh: correct an outdated comment
28914         * tests/init.sh (create_exe_shims_):  s/function/alias/
28915
28916         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
28917         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
28918         a file named "*.exe" is removed between the glob expansion and the
28919         processing of that oddly named file.
28920
28921 2010-09-17  Eric Blake  <eblake@redhat.com>
28922
28923         mirbsd: add some more support
28924         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
28925         in BSD family.
28926         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
28927         devices as OpenBSD.
28928         * m4/host-os.m4 (mirbsd): Add MirBSD.
28929
28930         tests: fix unportable assumption on sys/wait.h
28931         * tests/test-sys_wait.c (main): Relax test.
28932         * tests/test-stdlib.c (main): Likewise.
28933
28934         init.sh: accommodate directory with no .exes
28935         * tests/init.sh: Accomodate directory containing only scripts.
28936
28937         tests: avoid compiler warning
28938         * tests/test-stdlib.c (main): Use the variable.
28939
28940         fdutimens, fdutimensat: update signature, again
28941         * lib/utimens.h (gl_futimens): Delete, and move signature...
28942         (fdutimens): ...here.
28943         (fdutimensat): Rearrange signature.
28944         (lutimensat): Rename variable for clarity.
28945         * lib/fdutimensat.c (fdutimensat): Update signature.
28946         * lib/utimens.c (fdutimens): Likewise.
28947         (gl_futimens): Delete.
28948         (utimens, lutimens): Update callers.
28949         * lib/futimens.c (futimens): Likewise.
28950         * tests/test-fdutimensat.c: Likewise.
28951         * tests/test-utimens.c: Likewise.
28952         * tests/test-futimens.h: Update comment.
28953         * NEWS: Mention this.
28954         Suggested by Paul Eggert.
28955
28956 2010-09-17  Bruno Haible  <bruno@clisp.org>
28957
28958         Take over the maintenance of some older macros from Autoconf.
28959         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
28960         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
28961         GNU Autoconf.
28962         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
28963         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
28964
28965 2010-09-17  Eric Blake  <eblake@redhat.com>
28966
28967         fdutimensat: drop atflag validation
28968         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
28969         with valid fd, to close a race scenario where futimens is
28970         unsupported and FILE was replaced by a symlink.
28971         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
28972         accordingly.
28973         Suggested by Paul Eggert.
28974
28975 2010-09-16  Bruno Haible  <bruno@clisp.org>
28976
28977         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
28978         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
28979
28980 2010-09-16  Bruno Haible  <bruno@clisp.org>
28981
28982         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
28983         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
28984         login_tty exists.
28985         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28986
28987 2010-09-16  Bruno Haible  <bruno@clisp.org>
28988
28989         login_tty: Make the replacement code work on BSD systems.
28990         * lib/login_tty.c: Include <sys/ioctl.h>.
28991         (login_tty): Use ioctl TIOCSCTTY when available.
28992         * modules/login_tty (Depends-on): Add sys_ioctl.
28993         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28994
28995 2010-09-16  Bruno Haible  <bruno@clisp.org>
28996
28997         login_tty: Stricter unit test.
28998         * modules/login_tty-tests (Depends-on): Add tcgetsid.
28999         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
29000         and tcgetsid() after login_tty.
29001         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29002
29003 2010-09-16  Bruno Haible  <bruno@clisp.org>
29004
29005         New module 'tcgetsid'.
29006         * lib/tcgetsid.c: New file.
29007         * m4/tcgetsid.m4: New file.
29008         * modules/tcgetsid: New file.
29009         * modules/termios (Depends-on): Add c++defs, warn-on-use.
29010         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
29011         GNULIB_TCGETSID, HAVE_TCGETSID.
29012         * lib/termios.in.h: Include <sys/types.h>.
29013         (tcgetsid): New declaration.
29014         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
29015         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
29016         * doc/posix-functions/tcgetsid.texi: Mention the new module.
29017         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
29018
29019 2010-09-16  Bruno Haible  <bruno@clisp.org>
29020
29021         Tests for module 'termios'.
29022         * modules/termios-c++-tests: New file.
29023         * modules/termios-tests: New file.
29024         * tests/test-termios-c++.cc: New file.
29025         * tests/test-termios.c: New file.
29026
29027         New module 'termios'.
29028         * modules/termios: New file.
29029         * lib/termios.in.h: New file.
29030         * m4/termios_h.m4: New file.
29031         * doc/posix-headers/termios.texi: Mention the new module.
29032
29033 2010-09-16  Eric Blake  <eblake@redhat.com>
29034
29035         fdutimensat: add an atflag parameter
29036         * lib/fdutimensat.c (fdutimensat): Add new parameter.
29037         * lib/utimens.h (fdutimensat): Update prototype.
29038         * tests/test-fdutimensat.c: Adjust test to match.
29039         * NEWS: Document the change.
29040         Suggested by Paul Eggert.
29041
29042 2010-09-16  Bruno Haible  <bruno@clisp.org>
29043
29044         Fix typos in comments.
29045         * lib/striconveh.h: Fix typo in comment.
29046         * lib/login_tty.c (login_tty): Likewise.
29047
29048 2010-09-15  Bruno Haible  <bruno@clisp.org>
29049
29050         stdlib: clarify MirBSD WEXITSTATUS bug
29051         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
29052         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29053
29054 2010-09-15  Eric Blake  <eblake@redhat.com>
29055
29056         stdlib: work around MirBSD WEXITSTATUS bug
29057         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
29058         * modules/stdlib (Depends-on): Add sys_wait.
29059         * tests/test-sys_wait.c (main): Enhance test.
29060         * tests/test-stdlib.c (main): Likewise.
29061         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
29062
29063         docs: mention MacOS issue with WEXITSTATUS(constant)
29064         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
29065         issue.
29066         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29067
29068         strnlen: add tests
29069         * modules/strnlen-tests: New file.
29070         * tests/test-strnlen.c: Likewise.
29071
29072 2010-09-14  Bruno Haible  <bruno@clisp.org>
29073
29074         unistr/base: Avoid link errors when module 'libunistring' is also used.
29075         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
29076         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
29077         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
29078         Declare also when HAVE_LIBUNISTRING is set.
29079         Reported by Pádraig Brady <P@draigbrady.com>.
29080
29081 2010-09-14  Eric Blake  <eblake@redhat.com>
29082
29083         test-rawmemchr: make more robust
29084         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
29085         (Depends-on, configure.ac): Add needed prerequisites to use it.
29086         * modules/memchr-tests (Files, Depends-on, configure.ac):
29087         Likewise, to avoid implicit reliance on memchr module prereqs.
29088         * tests/test-memchr.c (main): Ensure proper masking.
29089         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
29090         reads.
29091
29092         memchr: detect glibc Alpha bug
29093         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
29094         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
29095         Alpha.
29096         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
29097         * tests/test-memchr.c (main): Enhance test.
29098         Reported by Nelson H. F. Beebe.
29099
29100 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29101
29102         fts, getcwd, glob: audit for dirfd returning -1
29103         * lib/fts.c (opendir): Remove #define; no longer used.
29104         (opendirat): New arg PDIR_FD.  All callers changed.
29105         (fts_build, _opendir2): Use new opendirat to avoid the need for
29106         dirfd, or for checking whether dirfd returns a negative value.
29107         Don't use opendir; always use openat followed by fdopendir.
29108         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
29109         it.
29110         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
29111         returns -1 here.
29112         * modules/fts (Depends-on): Remove dirfd.
29113         * modules/getcwd (Depends-on): Likewise.
29114
29115 2010-09-13  Eric Blake  <eblake@redhat.com>
29116
29117         float: fix broken MirBSD header
29118         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
29119         * doc/posix-headers/float.texi (float.h): Document it.
29120
29121 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29122
29123         fts: use O_NOFOLLOW to avoid race condition when opening a directory
29124         * lib/fts.c (opendirat): New arg extra_flags.
29125         (__opendir2): Use it to avoid following symlinks when opening
29126         a directory, if symlinks are not supposed to be followed.  See
29127         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
29128
29129         fdopendir: preserve argument fd before returning
29130         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
29131         (fdopendir_with_dup, fd_clone_opendir): New static functions.
29132         (fdopendir): Use them, arranging for FD to be open to the same
29133         directory that it was when it started.  (It might be temporarily
29134         closed while fdopendir is running, so this not thread- or
29135         signal-safe.)  Be careful to do the right thing even when file
29136         descriptors are scarce and dup fails with errno == EMFILE.  See
29137         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
29138
29139 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
29140
29141         regex: Pass the system regex if its only problem is 32-bit regoff_t.
29142         * NEWS: Document change.
29143         * m4/regex.m4: Disable test for regoff_t size.
29144
29145 2010-09-13  Jim Meyering  <meyering@redhat.com>
29146
29147         fts: don't operate on an invalid file descriptor after failed dup
29148         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
29149         negative file descriptor.
29150
29151 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
29152
29153         savedir: add streamsavedir, deprecate fdsavedir
29154         * NEWS: Mention deprecation of fdsavedir.
29155         * lib/savedir.c (streamsavedir): New extern function, whose name
29156         ends in "savedir" to be consistent with the others.  This differs
29157         from savedirstream in that it doesn't close its argument.  The
29158         next version of GNU tar will use this instead of fdsavedir, to
29159         avoid some race conditions and conserve file descriptors.
29160         (savedirstream): Reimplement as a wrapper around streamsavedir.
29161         (fdsavedir): Add a comment deprecating this function.  As far as
29162         I know, only GNU tar used it, and GNU tar doesn't need it any more.
29163         * lib/savedir.h (streamsavedir): New decl.
29164         (fdsavedir): Add a comment deprecating this.
29165
29166 2010-09-10  Bruno Haible  <bruno@clisp.org>
29167
29168         langinfo: Fix last commit.
29169         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
29170         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
29171         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29172
29173 2010-09-10  Bruno Haible  <bruno@clisp.org>
29174
29175         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
29176         * lib/progreloc.c (O_EXEC): Define fallback.
29177
29178 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
29179
29180         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
29181         * NEWS: Document recent changes to fcntl-h.
29182         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
29183         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
29184         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
29185         Similarly for O_SEARCH; this last was already true, but not documented.
29186         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
29187         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
29188         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
29189         Likewise.
29190         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
29191         is zero, not whether it is defined.
29192         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
29193         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
29194         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
29195
29196 2010-09-10  Bruno Haible  <bruno@clisp.org>
29197
29198         langinfo, nl_langinfo: Fix for IRIX 5.3.
29199         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
29200         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
29201         HAVE_LANGINFO_YESEXPR.
29202         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
29203         HAVE_LANGINFO_YESEXPR.
29204         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
29205         HAVE_LANGINFO_T_FMT_AMPM is 0.
29206         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
29207         HAVE_LANGINFO_YESEXPR is 0.
29208         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
29209         NOEXPR.
29210         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
29211         * doc/posix-functions/nl_langinfo.texi: Likewise.
29212         Reported by Eric Blake.
29213
29214 2010-09-10  Bruno Haible  <bruno@clisp.org>
29215
29216         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
29217         * doc/glibc-functions/login_tty.texi: Mention the include file problem
29218         on FreeBSD 8.0 and OpenBSD 4.6.
29219         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
29220         * m4/pty_h.m4 (gl_PTY_H): Likewise.
29221         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
29222         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
29223         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
29224         ac_includes_default.
29225         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29226
29227 2010-09-09  Eric Blake  <eblake@redhat.com>
29228
29229         strsignal: work around NetBSD bug
29230         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
29231         * lib/string.in.h (includes): Likewise.
29232         * doc/posix-functions/strsignal.texi (strsignal): Document the
29233         bug.
29234         Reported by Nelson H. F. Beebe.
29235
29236         gnulib-tool: work with NetBSD /bin/sh
29237         * gnulib-tool (func_cache_var, func_cache_lookup_module)
29238         (func_get_description, func_get_comment, func_get_status)
29239         (func_get_notice, func_get_applicability, func_get_filelist)
29240         (func_get_dependencies, func_get_autoconf_early_snippet)
29241         (func_get_autoconf_snippet, func_get_automake_snippet)
29242         (func_get_include_directive, func_get_link_directive)
29243         (func_get_license, func_get_maintainer, func_import): Avoid
29244         shell syntax errors from parsing syntax extensions.
29245
29246 2010-09-09  Bruno Haible  <bruno@clisp.org>
29247
29248         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29249         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
29250         a reliable way to determine whether the 'alias' command works.
29251
29252 2010-09-08  Jim Meyering  <meyering@redhat.com>
29253
29254         init.sh: penalize a set-x-impaired shell; don't disqualify it
29255         * tests/init.sh: Too many shells corrupt application stderr when
29256         you set -x, so we can't afford to disqualify them, since at least
29257         on Irix-6.5, that would disqualify all bourne shells.
29258         Instead, use a two-pass approach.
29259         On the first pass, try to find a shell that meets the stricter
29260         condition that set -x does not corrupt stderr.
29261         If no shell meets the stricter condition, retest each candidate
29262         shell, but without that extra condition.  Finally, when
29263         VERBOSE=yes is requested and set -x might cause trouble, simply
29264         issue a warning and refrain from enabling debug output.
29265
29266 2010-09-08  Eric Blake  <eblake@redhat.com>
29267
29268         unsetenv: fix OpenBSD bug
29269         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
29270         * doc/posix-functions/unsetenv.texi (unsetenv): Update
29271         documentation.
29272         Reported by Jim Meyering.
29273
29274         strtod: work around IRIX 6.5 bug
29275         * lib/strtod.c (strtod): Reparse number on shorter string if
29276         exponent parse was invalid.
29277         * tests/test-strtod.c (main): Add check for "0x1p 2".
29278         Reported by Tom G. Christensen.
29279
29280         getopt: optimize previous patch
29281         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
29282         empty variable.  Speed up awk script.
29283         Reported by Paolo Bonzini.
29284
29285 2010-09-08  Jim Meyering  <meyering@redhat.com>
29286
29287         test.sh: disqualify shells for which set -x corrupts stderr
29288         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
29289         and OpenBSD 4.7.  They make it so with "set -x", environment settings
29290         appear in stderr output.  For example, this command:
29291             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
29292         prints "P=1" on those two systems:
29293
29294 2010-09-08  Bruno Haible  <bruno@clisp.org>
29295
29296         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29297         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
29298         commands, because some shells ignore redirections when there is an
29299         error in the command lookup.
29300         Reported by Eric Blake.
29301
29302 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
29303
29304         * lib/regex.h: Fix a mention of `regex_compile' (should be
29305         `re_compile_pattern').
29306         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
29307         (re_set_registers): Correct name of parameter in comment.
29308
29309         * doc/regex.texi: Add documentation for missing syntax flags.
29310         Remove commented-out documentation of defunct syntax option
29311         RE_NO_EMPTY_ALTS.
29312         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
29313         Add documentation of re_set_registers.
29314         Document trick to re-use a pattern buffer by setting fastmap manually.
29315         Update documentation of struct re_pattern_buffer per public members.
29316         Uncomment documentation of equivalence class operators and
29317         collating symbol operators, since they are now implemented,
29318         Explain leftmost-longest matching in relation to alternatives.
29319         Tidy documentation of substring matching.
29320         Remove POSIX documentation, which is done better in
29321         glibc, and refer the reader there. Keep BSD API documentation, as
29322         that is not readily available elsewhere.
29323
29324 2010-09-07  Eric Blake  <eblake@redhat.com>
29325
29326         getopt: handle POSIXLY_CORRECT set but not exported
29327         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
29328         export state of POSIXLY_CORRECT, due to bash set -o posix.
29329         Reported by Dustin J. Mitchell.
29330
29331 2010-09-05  Bruno Haible  <bruno@clisp.org>
29332
29333         gnulib-tool: Highlight the changed options.
29334         * gnulib-tool (func_usage): Display the --import, --add-import,
29335         --remove-import explanations in bold font.
29336
29337 2010-09-06  Karl Berry  <karl@gnu.org>
29338
29339         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
29340
29341 2010-09-05  Bruno Haible  <bruno@clisp.org>
29342
29343         uniwidth/width: Update comment.
29344         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
29345         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
29346
29347 2010-09-05  Bruno Haible  <bruno@clisp.org>
29348
29349         isinf, isnan: Relax license.
29350         * modules/isinf (License): Change from GPL to LGPL, with consent from
29351         Ben Pfaff.
29352         * modules/isnan (License): Likewise.
29353         Requested by Ludovic Courtès.
29354
29355 2010-09-04  Bruno Haible  <bruno@clisp.org>
29356
29357         gnulib-tool: Help migration from --import to --add-import or --update.
29358         * gnulib-tool: Emit a verbose error message when --import is used
29359         without any module name.
29360
29361 2010-09-04  Bruno Haible  <bruno@clisp.org>
29362
29363         Update doc about gnulib-tool.
29364         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
29365         'gnulib-tool --update' in more detail.
29366         Reported by Eric Blake.
29367
29368 2010-09-04  Bruno Haible  <bruno@clisp.org>
29369
29370         gnulib-tool: Change --import. New options --add/remove-import.
29371         * gnulib-tool: New options --add-import, --remove-import.
29372         (func_usage): Document them.
29373         (have_associative): Define always.
29374         (func_import): In import mode, don't merge the specified settings with
29375         the cached settings. Implement remove-import mode.
29376         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
29377         Explain when to use them versus --import.
29378         (Simple update): Use --add-import instead of --import.
29379         * NEWS: Mention the change.
29380
29381 2010-09-04  Bruno Haible  <bruno@clisp.org>
29382
29383         * doc/gnulib-tool.texi (Initial import): Update paragraph about
29384         separate gnulib.mk.
29385
29386 2010-09-04  Bruno Haible  <bruno@clisp.org>
29387
29388         gnulib-tool: Don't talk about CVS any more.
29389         * gnulib-tool (func_usage, func_import): Write "version control"
29390         instead of CVS.
29391
29392 2010-09-04  Jim Meyering  <meyering@redhat.com>
29393
29394         maint.mk: avoid obscure sc_copyright_check failure in coreutils
29395         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
29396         false positives (whose names may be ill-chosen) when searching
29397         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
29398         would cause a false-positive.
29399
29400         avoid coreutils "make distcheck" failure
29401         Coreutils tests with an absolute build directory name that contains
29402         a space.  Not quoting this directory name caused a failure.
29403         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
29404         * tests/test-vc-list-files-cvs.sh: Likewise.
29405
29406 2010-09-04  Bruno Haible  <bruno@clisp.org>
29407
29408         gnulib-tool: Avoid error when run in a package without Makefile.am.
29409         * gnulib-tool: When collecting the m4dirs in a package that does not
29410         have a Makefile.am, eliminate those directories that contain no
29411         gnulib-cache.m4. Fix expression that counts these directories.
29412
29413 2010-09-04  Bruno Haible  <bruno@clisp.org>
29414
29415         update-copyright test: Improve output when perl is missing or too old.
29416         * tests/test-update-copyright.sh: Move test of Perl version down after
29417         the test whether Perl exists. Provide an explanation relating Perl's
29418         error message to Automake's SKIP: message.
29419
29420 2010-09-04  Bruno Haible  <bruno@clisp.org>
29421
29422         Don't augment PATH in TESTS_ENVIRONMENT.
29423         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
29424         set abs_aux_dir instead of augmenting PATH.
29425         * modules/vc-list-files-tests (Makefile.am): Likewise.
29426         * tests/test-update-copyright.sh: Augment PATH here.
29427         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
29428         path_prepend_.
29429         * tests/test-vc-list-files-git.sh: Likewise.
29430
29431 2010-09-04  Jim Meyering  <meyering@redhat.com>
29432
29433         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
29434         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
29435
29436 2010-09-04  Bruno Haible  <bruno@clisp.org>
29437
29438         strdup: Fix compilation error in C++ mode.
29439         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
29440         the macro.
29441
29442 2010-09-04  Bruno Haible  <bruno@clisp.org>
29443
29444         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
29445         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
29446         macro into a function.
29447         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29448
29449 2010-09-04  Bruno Haible  <bruno@clisp.org>
29450
29451         Set PATH_SEPARATOR the same way autoconf does.
29452         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
29453         the value of PATH_SEPARATOR the same way autoconf-generated configure
29454         scripts do.
29455         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
29456         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
29457
29458 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
29459
29460         Set PATH_SEPARATOR the same way autoconf does.
29461         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
29462         the same way autoconf-generated configure scripts do.
29463         * posix-modules: Likewise.
29464
29465 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
29466
29467         hash: fix safe_hasher const typo
29468         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
29469         const; otherwise, there is a type error later.
29470
29471 2010-09-02  Jim Meyering  <meyering@redhat.com>
29472
29473         test-update-copyright.sh: require perl 5.8.0
29474         * tests/test-update-copyright.sh: Require 5.8.0,
29475         which Tom G. Christensen has confirmed is adequate,
29476         while 5.6.1 is not.
29477
29478 2010-09-02  Eric Blake  <eblake@redhat.com>
29479
29480         tests: init.sh improvements for re-exec'ing with zsh
29481         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
29482         -vx through shell re-exec.
29483         Reported by Tom G. Christensen.
29484
29485         wctype: fix typo in previous commit
29486         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
29487         Reported by Ludovic Courtès.
29488
29489 2010-09-02  Jim Meyering  <meyering@redhat.com>
29490
29491         test-update-copyright.sh: skip test if Perl is too old
29492         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
29493         Reported by Tom G. Christensen.
29494
29495 2010-09-02  Bruno Haible  <bruno@clisp.org>
29496
29497         wctype: Avoid compilation error on IRIX 6.5.30.
29498         * lib/wctype.in.h (iswblank): Declare with a replacement if
29499         REPLACE_ISWBLANK is set.
29500         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
29501         declared. Set REPLACE_ISWBLANK.
29502         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
29503         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
29504         * doc/posix-headers/wctype.texi: Likewise.
29505         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29506
29507 2010-09-01  Bruno Haible  <bruno@clisp.org>
29508
29509         New module 'socketlib'.
29510         * modules/socketlib: New file.
29511         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
29512         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
29513         * modules/sockets (Depends-on): Add socketlib.
29514         Suggested by Sam Steingold <sds@gnu.org>.
29515
29516 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29517
29518         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
29519
29520         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
29521         when one needs search access to a directory but not read access.
29522         On systems where it is available, it works in some cases where
29523         O_RDONLY does not, namely on directories that are searchable but
29524         not readable, and which need only to be searchable.  If O_SEARCH
29525         is not available, fall back to the traditional method of using
29526         O_RDONLY.
29527
29528         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
29529         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
29530         when opening a directory that needs only to be searchable.
29531         * lib/chdir-safer.c (chdir_no_follow): Likewise.
29532         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
29533         * lib/openat-proc.c (openat_proc_name): Likewise.
29534         * lib/openat.c (openat_needs_fchdir): Likewise.
29535         * lib/save-cwd.c (save_cwd): Likewise.
29536         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
29537
29538 2010-08-28  Bruno Haible  <bruno@clisp.org>
29539
29540         New module 'host-cpu-c-abi'.
29541         * modules/host-cpu-c-abi: New file.
29542         * m4/host-cpu-c-abi.m4: New file, based on part of
29543         clisp/src/m4/general.m4.
29544         Requested by Sam Steingold <sds@gnu.org>.
29545
29546 2010-08-31  Eric Blake  <eblake@redhat.com>
29547         and Jim Meyering  <meyering@redhat.com>
29548
29549         hash: factor, and guard against misbehaving hasher function
29550         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
29551         of table->hasher's return value.  Also protect against a hash value
29552         so large that adding it to table->bucket results in a NULL pointer.
29553         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
29554         Use it in place of open-coded check-and-abort.
29555
29556 2010-08-30  Bruno Haible  <bruno@clisp.org>
29557
29558         hash: silence spurious clang warning
29559         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
29560         Reported by Eric Blake.
29561
29562 2010-08-30  Eric Blake  <eblake@redhat.com>
29563
29564         strstr, memmem, strcasestr: avoid leaked shell message
29565         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
29566         FreeBSD.
29567         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29568         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29569
29570         tests: silence clang warning
29571         * tests/test-malloca.c (do_allocation): Avoid dead store.
29572
29573 2010-08-29  Bruno Haible  <bruno@clisp.org>
29574
29575         gettext: Fix recent mistake.
29576         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
29577
29578 2010-08-29  Bruno Haible  <bruno@clisp.org>
29579
29580         selinux-h: Offer a --without-selinux option.
29581         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
29582         --without-selinux was specified, skip all tests and define
29583         HAVE_SELINUX_SELINUX_H to 0.
29584         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
29585         set LIB_SELINUX to empty.
29586         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
29587         gl_LIBSELINUX. If --without-selinux was specified, replace
29588         selinux/context.h.
29589         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
29590
29591 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29592             Bruno Haible  <bruno@clisp.org>
29593
29594         Make the module 'realloc-gnu' work again on AIX and OSF/1.
29595         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
29596         of HAVE_REALLOC.
29597         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
29598         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
29599         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
29600         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29601
29602 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29603             Bruno Haible  <bruno@clisp.org>
29604
29605         Make the module 'calloc-gnu' work again on AIX and OSF/1.
29606         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
29607         HAVE_CALLOC.
29608         * lib/xmalloc.c: Update accordingly.
29609         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
29610         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
29611         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
29612
29613 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29614             Bruno Haible  <bruno@clisp.org>
29615
29616         Make the module 'malloc-gnu' work again on AIX and OSF/1.
29617         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
29618         HAVE_MALLOC.
29619         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
29620         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
29621         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29622
29623 2010-08-29  Bruno Haible  <bruno@clisp.org>
29624
29625         Update modules list.
29626         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
29627         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
29628         (String handling <string.h>): Add astrxfrm.
29629         (File system functions): Add readlinkat.
29630
29631 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29632
29633         Tests for module 'realloc-gnu'.
29634         * modules/realloc-gnu-tests: New file.
29635         * tests/test-realloc-gnu.c: New file.
29636
29637         Tests for module 'calloc-gnu'.
29638         * modules/calloc-gnu-tests: New file.
29639         * tests/test-calloc-gnu.c: New file.
29640
29641         Tests for module 'malloc-gnu'.
29642         * modules/malloc-gnu-tests: New file.
29643         * tests/test-malloc-gnu.c: New file.
29644
29645 2010-08-28  Bruno Haible  <bruno@clisp.org>
29646
29647         Rename module 'realloc' -> 'realloc-gnu'.
29648         * modules/realloc-gnu: New file, copied from modules/realloc.
29649         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
29650         obsolete.
29651         * modules/mgetgroups (Depends-on): Update.
29652         * doc/posix-functions/realloc.texi: Update.
29653         * NEWS: Mention the change.
29654
29655         Rename module 'calloc' -> 'calloc-gnu'.
29656         * modules/calloc-gnu: New file, copied from modules/calloc.
29657         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
29658         obsolete.
29659         * doc/posix-functions/calloc.texi: Update.
29660         * NEWS: Mention the change.
29661
29662         Rename module 'malloc' -> 'malloc-gnu'.
29663         * modules/malloc-gnu: New file, copied from modules/malloc.
29664         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
29665         obsolete.
29666         * modules/argp (Depends-on): Update.
29667         * modules/regex (Depends-on): Update.
29668         * doc/posix-functions/malloc.texi: Update.
29669         * NEWS: Mention the change.
29670
29671 2010-08-28  Eric Blake  <eblake@redhat.com>
29672
29673         pread, pwrite: add missing dependency
29674         * modules/pread (Depends-on): Add extensions.
29675         * modules/pwrite (Depends-on): Likewise.
29676
29677 2010-08-28  Bruno Haible  <bruno@clisp.org>
29678
29679         unistr/u*-strchr: Fix tests dependencies.
29680         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
29681         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
29682         Reported by Ian Beckwith <ianb@erislabs.net>.
29683
29684 2010-08-28  Bruno Haible  <bruno@clisp.org>
29685
29686         read-file: Don't occupy too much unused memory.
29687         * lib/read-file.c (fread_file): Shrink the buffer at the end.
29688
29689 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
29690             Eric Blake  <eblake@redhat.com>
29691             Bruno Haible  <bruno@clisp.org>
29692
29693         read-file: Avoid memory reallocations with regular files.
29694         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
29695         (fread_file): With regular files, use the remaining length as the
29696         initial buffer size.  Check against overflow.
29697         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
29698         sys_stat.
29699
29700 2010-08-28  Bruno Haible  <bruno@clisp.org>
29701
29702         ftello: Relax license.
29703         * modules/ftello (License): Relax to LGPLv2+.
29704         Reported by Eric Blake.
29705
29706 2010-08-28  Bruno Haible  <bruno@clisp.org>
29707
29708         Avoid relocwrapper link errors due to gnulib replacement functions.
29709         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
29710         function.
29711         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29712
29713 2010-08-28  Bruno Haible  <bruno@clisp.org>
29714
29715         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
29716         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
29717         defined.
29718         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
29719         Suggested by Eric Blake.
29720
29721 2010-08-28  Bruno Haible  <bruno@clisp.org>
29722
29723         sys_socket, netdb: Ensure socklen_t gets defined.
29724         * modules/sys_socket (Depends-on): Add socklen.
29725         * modules/netdb (Depends-on): Likewise.
29726         * modules/getaddrinfo (Depends-on): Remove socklen.
29727         * modules/getsockopt (Depends-on): Likewise.
29728         * modules/setsockopt (Depends-on): Likewise.
29729         * tests/test-sys_socket.c: Check that socklen_t is defined.
29730         * tests/test-netdb.c: Likewise.
29731         * m4/socklen.m4: Update comments.
29732         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29733
29734 2010-08-27  Eric Blake  <eblake@redhat.com>
29735
29736         login_tty: add missing dependency
29737         * modules/login_tty (Depends-on): Add pty.
29738
29739 2010-08-26  Eric Blake  <eblake@redhat.com>
29740
29741         lib-symbol-versions: fix m4 quoting
29742         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
29743         format for AC_LINK_IFELSE.
29744
29745         glob: fix compile test
29746         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
29747
29748         btowc: fix missing file
29749         * modules/btowc (Files): Also ship locale-fr.m4.
29750
29751         lseek: fix link test
29752         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
29753         AC_LINK_IFELSE.
29754
29755         include_next: silence autoconf 2.68 warning
29756         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
29757         AC_COMPILE_IFELSE as special.
29758         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
29759         autoconf < 2.68.
29760
29761         acl: fix compilation test
29762         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
29763         AC_COMPILE_IFELSE.
29764
29765 2010-08-26  Bruno Haible  <bruno@clisp.org>
29766
29767         Modernize AC_TRY_RUN invocations.
29768         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
29769         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29770         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
29771         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
29772         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
29773         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29774         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
29775         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
29776         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29777         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29778         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
29779         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29780         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
29781         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29782         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
29783         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
29784         gl_MBRLEN_NUL_RETVAL): Likewise.
29785         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
29786         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
29787         Likewise.
29788         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29789         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
29790         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
29791         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
29792         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
29793         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
29794         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
29795         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
29796         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
29797         Likewise.
29798         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
29799         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
29800         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29801         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29802         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29803         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
29804         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
29805         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
29806         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29807         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29808
29809 2010-08-26  Bruno Haible  <bruno@clisp.org>
29810
29811         Modernize AC_TRY_LINK invocations.
29812         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
29813         AC_TRY_LINK.
29814         * m4/argp.m4 (gl_ARGP): Likewise.
29815         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
29816         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29817         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29818         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29819         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29820         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
29821         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
29822         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
29823         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29824         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29825         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29826         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
29827         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
29828         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29829         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
29830         * m4/hostent.m4 (gl_HOSTENT): Likewise.
29831         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29832         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
29833         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
29834         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
29835         Likewise.
29836         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
29837         Likewise.
29838         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
29839         Likewise.
29840         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
29841         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
29842         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
29843         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
29844         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
29845         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
29846         * m4/servent.m4 (gl_SERVENT): Likewise.
29847         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
29848         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
29849         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
29850         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
29851         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29852         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
29853         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29854         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29855         * modules/tsearch-tests (configure.ac): Likewise.
29856
29857 2010-08-26  Bruno Haible  <bruno@clisp.org>
29858
29859         Modernize AC_TRY_COMPILE invocations.
29860         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
29861         AC_TRY_COMPILE.
29862         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
29863         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
29864         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
29865         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
29866         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
29867         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
29868         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29869         * m4/lock.m4 (gl_LOCK): Likewise.
29870         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
29871         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29872         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
29873         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
29874         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
29875         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
29876         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29877         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
29878         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
29879         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
29880         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
29881         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
29882         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
29883         extraneous semicolon.
29884
29885 2010-08-26  Jim Meyering  <meyering@redhat.com>
29886
29887         stat-time: relax license LGPL
29888         * modules/stat-time (License): Change from GPL to LGPL,
29889         with consent from all contributors, for use in libguile.
29890         Requested by Ludovic Courtès.
29891
29892 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
29893
29894         poll: return immediately on POLLHUP.
29895         * lib/poll.c (poll): Always set timeout before wait_timeout is
29896         computed.
29897
29898 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29899
29900         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
29901         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
29902         rmdir ("dir/.//"), unlinkat.
29903
29904 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29905
29906         stdbool: avoid spurious failure with modern xlc
29907         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29908
29909 2010-08-24  Bruno Haible  <bruno@clisp.org>
29910
29911         getloadavg: simplify code
29912         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
29913         gl_have_func. Update comments.
29914
29915 2010-08-24  Eric Blake  <eblake@redhat.com>
29916
29917         getloadavg: don't define SVR4 on cygwin
29918         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
29919         only define SVR4 when -lkvm is required.
29920         Reported by Yaakov Selkowitz.
29921
29922 2010-08-24  Bruno Haible  <bruno@clisp.org>
29923
29924         priv-set: fix comment
29925         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
29926
29927 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29928
29929         priv-set: fix comments
29930         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
29931         to match code, as suggested by David Bartley in:
29932         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
29933
29934 2010-08-23  Eric Blake  <eblake@redhat.com>
29935
29936         stdbool: avoid rejecting clang
29937         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29938         * tests/test-stdbool.c: Enable more tests if using the system
29939         <stdbool.h> instead of the gnulib replacement.
29940         (main): Move xlc bug test to a runtime test for all compilers.
29941         Reported by Anders Kaseorg.
29942
29943         argz: fix shell quoting issue
29944         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
29945         Reported by Charles Wilson.
29946
29947 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
29948             Erik Faye-Lund <kusmabite@gmail.com>
29949
29950         poll, select: handle ERROR_BROKEN_PIPE.
29951         * lib/poll.c (win32_compute_revents): Return POLLHUP when
29952         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29953         * lib/select.c (win32_compute_revents): Do not mark a pipe
29954         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29955
29956 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
29957
29958         fts: allow compilation with C++
29959         * lib/fts_.h: Specify extern "C" linkage with C++.
29960
29961 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29962
29963         Fix gnulib-tool sed script de-commentation for AIX sed.
29964         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
29965         sed.
29966
29967 2010-08-17  Eric Blake  <eblake@redhat.com>
29968
29969         test-stddef: test for (some) offsetof bugs
29970         * tests/test-stddef.c: Enhance test to ensure correct type of
29971         offsetof.
29972         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
29973         that we are not fixing at this time.
29974
29975 2010-08-15  Bruno Haible  <bruno@clisp.org>
29976
29977         stpncpy: Allow stpncpy to be defined as a macro.
29978         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
29979         if it's already correctly declared.
29980         * lib/string.in.h (stpncpy): Undefine before redefining.
29981         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
29982
29983 2010-08-14  Bruno Haible  <bruno@clisp.org>
29984
29985         Rename module 'memxfrm' to 'amemxfrm'.
29986         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
29987         (amemxfrm): Renamed from memxfrm.
29988         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
29989         (amemxfrm): Renamed from memxfrm.
29990         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
29991         * NEWS: Mention the change.
29992         * MODULES.html.sh (String handling <string.h>): Update.
29993         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
29994         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
29995         * lib/unicase/u16-casexfrm.c: Likewise.
29996         * lib/unicase/u32-casexfrm.c: Likewise.
29997         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
29998         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
29999         * lib/uninorm/u16-normxfrm.c: Likewise.
30000         * lib/uninorm/u32-normxfrm.c: Likewise.
30001         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
30002         memxfrm.
30003         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
30004         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
30005         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
30006         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
30007         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
30008         Suggested by Paul Eggert.
30009
30010 2010-08-14  Bruno Haible  <bruno@clisp.org>
30011
30012         Tests for module 'astrxfrm'.
30013         * modules/astrxfrm-tests: New file.
30014         * tests/test-astrxfrm.c: New file.
30015
30016         New module 'astrxfrm'.
30017         * lib/astrxfrm.h: New file.
30018         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
30019         * modules/astrxfrm: New file.
30020
30021 2010-08-14  Reuben Thomas <rrt@sc3d.org>
30022
30023         regex: Tweak doc.
30024         * doc/regex.texi (Overview): Don't mention regex.c.
30025         (GNU Regular Expression Compiling): Likewise.
30026         (Match-end-of-line Operator): Mention 'not_eol'.
30027
30028 2010-08-14  Brian Gough  <bjg@gnu.org>
30029             Bruno Haible  <bruno@clisp.org>
30030
30031         git-merge-changelog: add doc relating to use with bzr and hg.
30032         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
30033
30034 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
30035
30036         pthread: fix pthread.h creation for srcdir != builddir
30037         * modules/pthread (Makefile.am): Fix the rule to work also in a
30038         non-srcdir build.
30039
30040 2010-08-13  Karl Berry  <karl@gnu.org>
30041
30042         * doc/regex.texi (Predefined Syntaxes): @smallexample.
30043         * doc/posix-*/*: force line break before @url of POSIX
30044         specifications.
30045         Suggested by Werner Lemberg.
30046
30047 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30048
30049         strtod: fix const diagnostic
30050         * lib/strtod.c (strtod): Don't assign const char * to char *,
30051         as this elicits a warning from GCC when warnings are enabled.
30052
30053 2010-08-10  Pádraig Brady <P@draigbrady.com>
30054         and Eric Blake  <eblake@redhat.com>
30055
30056         copy-acl: ignore ENOTSUP on HP-UX
30057         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
30058         so that it is available for HP-UX.
30059         * lib/copy-acl.c (qcopy_acl): Use it.
30060         Reported by Patrick M. Callahan.
30061
30062 2010-08-10  Eric Blake  <eblake@redhat.com>
30063
30064         open, chown: relax license
30065         * modules/open (License): Change to LGPLv2+, with consent by all
30066         authors, for use in augeas.
30067         * modules/chown (License): Likewise.
30068         * modules/lchown (Likewise): Likewise.
30069         Requested by Adam Stokes.
30070
30071 2010-08-09  Karl Berry  <karl@gnu.org>
30072
30073         * build-aux/ar-lib: new file, import from Automake.
30074         * config/srclist.txt: autocheck for updates.
30075
30076 2010-08-09  Eric Blake  <eblake@redhat.com>
30077
30078         readlinkat: adjust client modules
30079         * modules/areadlinkat (Depends-on): Use readlinkat, not
30080         symlinkat.
30081         * modules/areadlinkat-with-size (Depends-on): Likewise.
30082
30083         mknod: be more vocal about danger of running tests as root
30084         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
30085         root, since that is just asking for problems.
30086         Suggested by Bruno Haible, based on a report by Rainer Tammer.
30087
30088         readlinkat: split into its own module
30089         * modules/symlinkat: Split readlinkat...
30090         * modules/readlinkat: ...into separate module.
30091         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
30092         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
30093         * lib/symlinkat.c (readlinkat): Move...
30094         * lib/readlinkat.c: ...into new file.
30095         * modules/symlinkat-tests: Split readlinkat test...
30096         * modules/readlinkat-tests: ...into separate module.
30097         * tests/test-symlinkat.c: Split...
30098         * tests/test-readlinkat.c: ...into new file.
30099         * NEWS: Document the split.
30100         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30101         * lib/unistd.in.h (readlinkat): Likewise.
30102         Suggested by Bruno Haible.
30103
30104 2010-08-08  Bruno Haible  <bruno@clisp.org>
30105
30106         memxfrm: Speed up.
30107         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
30108         that usually only one call to strxfrm is necessary for each string
30109         part.
30110         Reported by Paul Eggert <eggert@cs.ucla.edu>.
30111
30112 2010-08-07  Karl Berry  <karl@gnu.org>
30113
30114         * doc/posix-headers/limits.texi,
30115         * doc/posix-functions/malloc.texi,
30116         * doc/posix-functions/strsignal.texi: missing @item.
30117         * doc/ld-version-script.texi: spurious leading i.
30118         * doc/regex.texi (Interval Operators): no commas inside @var.
30119
30120 2010-08-01  Bruno Haible  <bruno@clisp.org>
30121
30122         Integrate the regex documentation.
30123         * doc/gnulib.texi: Define 'cn' index.
30124         (Regular expressions): New a chapter that includes regex.texi and
30125         regexprops-generic.texi.
30126         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
30127         syntax.
30128
30129         Whitespace cleanup.
30130         * doc/regex.texi: Remove trailing spaces.
30131
30132         Add regex documentation.
30133         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
30134         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
30135         Written by Kathy A. Hargreaves and Karl Berry.
30136
30137 2010-08-01  Bruno Haible  <bruno@clisp.org>
30138
30139         link: Update documentation.
30140         * doc/posix-functions/link.texi: Update regarding Solaris.
30141
30142 2010-07-31  Bruno Haible  <bruno@clisp.org>
30143
30144         Update modules list.
30145         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
30146         (String handling <string.h>): Add memcmp2, memxfrm.
30147         (Container data structures): Add xlist, xsublist, xoset.
30148         (Core language properties): Add alignof, unused-parameter.
30149         (Process control, Numeric conversion functions <stdlib.h>): Renamed
30150         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
30151         (Unibyte characters <ctype.h>): New section.
30152         (String handling <string.h>): New section.
30153         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
30154         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
30155         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
30156         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
30157         tan, tanh, tanl, y0, y1, yn.
30158         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
30159         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
30160         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
30161         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
30162         unlockpt, vdprintf, vdprintf-posix.
30163         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
30164         (File system functions): Add concat-filename, sys_file, sys_ioctl,
30165         xconcat-filename.
30166         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
30167         getdtablesize, pipe2, pipe2-safer.
30168         (Security): New section.
30169         (Networking functions): Add accept4.
30170         (Signal handling): Add sigpipe.
30171         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
30172         mbmemcasecoll.
30173         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
30174         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
30175         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
30176         pipe-filter-ii.
30177         (Misc): Add argp-version-etc, login_tty, parse-duration.
30178
30179 2010-07-31  Bruno Haible  <bruno@clisp.org>
30180
30181         Improve doc in MODULES.html.
30182         * modules/linkat (Description): Add the word "function".
30183         * modules/mkfifo (Description): Likewise.
30184         * modules/mknod (Description): Likewise.
30185         * modules/remove (Description): Likewise.
30186         * modules/renameat (Description): Likewise.
30187         * modules/stat (Description): Likewise.
30188         * modules/symlink (Description): Likewise.
30189         * modules/unlink (Description): Likewise.
30190
30191 2010-07-31  Bruno Haible  <bruno@clisp.org>
30192
30193         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
30194         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
30195         option --enable/disable-c++ instead of --enable/disable-cxx.
30196         * NEWS: Mention the change.
30197
30198 2010-07-31  Bruno Haible  <bruno@clisp.org>
30199
30200         readlink, areadlink: Relax test a bit.
30201         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
30202         alternative to ENOTDIR.
30203         * tests/test-areadlink.h (test_areadlink): Likewise.
30204         Reported by Rainer Tammer.
30205
30206 2010-07-31  Bruno Haible  <bruno@clisp.org>
30207
30208         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
30209         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
30210         character, perform the search using U_STRCHR.
30211         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
30212         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
30213         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
30214         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
30215         Suggested by Paolo Bonzini.
30216
30217 2010-07-31  Bruno Haible  <bruno@clisp.org>
30218
30219         unistr/u*-strstr: Fix dependencies.
30220         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
30221         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
30222         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
30223
30224 2010-07-31  Bruno Haible  <bruno@clisp.org>
30225
30226         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
30227         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
30228         the beginning of the loop.
30229         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
30230         cases in 'switch' statement.
30231
30232         unistr/u8-strchr: Fix several bugs.
30233         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
30234         the string. When not found, return NULL, not a pointer near the end.
30235
30236         More tests for unistr/u8-strchr.
30237         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
30238         that the function does not read past the first occurrence of the byte
30239         being searched.
30240         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
30241         * tests/unistr/test-u16-strchr.c (main): New function.
30242         * tests/unistr/test-u32-strchr.c (main): New function.
30243
30244 2010-07-31  Bruno Haible  <bruno@clisp.org>
30245
30246         posix-modules: Ignore backup files of documentation files.
30247         * posix-modules: grep only through files named *.texi.
30248
30249 2010-07-31  Bruno Haible  <bruno@clisp.org>
30250
30251         symlinkat: Fix documentation.
30252         * doc/posix-functions/readlinkat.texi: Fix module name.
30253
30254 2010-07-31  Bruno Haible  <bruno@clisp.org>
30255
30256         fchownat: Replace also when chown has the trailing slash bug.
30257         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
30258         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
30259         introduced on 2010-04-10.
30260         Reported by Rainer Tammer.
30261
30262 2010-07-31  Bruno Haible  <bruno@clisp.org>
30263
30264         linkat: Work around AIX 7.1 bug.
30265         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
30266         whether linkat handles trailing slash correctly. If not, replace linkat
30267         and define LINKAT_TRAILING_SLASH_BUG.
30268         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
30269         check whether (fd1,file1) points to a directory if file1 or file2 ends
30270         in a slash. Code taken from lib/link.c.
30271         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
30272         Reported by Rainer Tammer.
30273
30274 2010-07-31  Bruno Haible  <bruno@clisp.org>
30275
30276         Correctly determine whether pow is available in libc on AIX 7 with xlc.
30277         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
30278         This disables an xlc optimization that was causing wrong test results.
30279         Reported by Rainer Tammer.
30280
30281 2010-07-31  Bruno Haible  <bruno@clisp.org>
30282
30283         iconv: Work around AIX 6.1..7.1 bug.
30284         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
30285         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
30286         cross-compiling, guess no on all versions of AIX.
30287         Reported by Rainer Tammer.
30288
30289 2010-07-31  Bruno Haible  <bruno@clisp.org>
30290
30291         readlink: Relax test a bit.
30292         * tests/test-readlink.h (test_readlink): Allow different errno value
30293         when readlink is called with a file name that ends in / and refers to
30294         a file.
30295         Suggested by Eric Blake.
30296         Reported by Rainer Tammer.
30297
30298 2010-07-31  Bruno Haible  <bruno@clisp.org>
30299
30300         copysign: Does not require -lm on glibc systems.
30301         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
30302         gl_COMMON_DOUBLE_MATHFUNC.
30303         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
30304
30305 2010-07-31  Bruno Haible  <bruno@clisp.org>
30306
30307         duplocale: Work around AIX 7.1 bug.
30308         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
30309         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
30310         * lib/duplocale.c (rpl_duplocale): Update comment.
30311         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
30312         Reported by Rainer Tammer.
30313
30314 2010-07-30  Bruno Haible  <bruno@clisp.org>
30315
30316         dirfd: Avoid link error on AIX 7.1.
30317         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
30318         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
30319         exist, set REPLACE_DIRFD.
30320         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
30321         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
30322         * doc/posix-functions/dirfd.texi: Update.
30323         Reported by Rainer Tammer.
30324
30325 2010-07-30  Eric Blake  <eblake@redhat.com>
30326
30327         strtod: next round of AIX fixes
30328         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
30329         exponent.
30330         * tests/test-strtod.c (main): Enhance tests.
30331         * doc/posix-functions/strtod.texi (strtod): Document next bug.
30332         Reported by Rainer Tammer.
30333
30334         futimens: fix configure check
30335         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
30336         Reported by Bruno Haible.
30337
30338 2010-07-30  Bruno Haible  <bruno@clisp.org>
30339
30340         getline: Update regarding AIX.
30341         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
30342         Reported by Rainer Tammer.
30343
30344 2010-07-30  Bruno Haible  <bruno@clisp.org>
30345
30346         wcwidth: Drop replacement on AIX 7.
30347         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
30348         AIX 7.
30349         Reported by Rainer Tammer.
30350
30351 2010-07-30  Bruno Haible  <bruno@clisp.org>
30352
30353         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
30354         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
30355         a 'char *'.
30356         Reported by Rainer Tammer.
30357
30358 2010-07-30  Bruno Haible  <bruno@clisp.org>
30359
30360         unlink: Update regarding AIX.
30361         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
30362         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
30363         Reported by Rainer Tammer.
30364
30365 2010-07-30  Bruno Haible  <bruno@clisp.org>
30366
30367         symlink: Update regarding AIX.
30368         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
30369         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
30370         Reported by Rainer Tammer.
30371
30372 2010-07-30  Bruno Haible  <bruno@clisp.org>
30373
30374         strndup: Update regarding AIX.
30375         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
30376         AIX 7.
30377         Reported by Rainer Tammer.
30378
30379 2010-07-30  Bruno Haible  <bruno@clisp.org>
30380
30381         stat: Update regarding AIX.
30382         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
30383         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
30384         Reported by Rainer Tammer.
30385
30386 2010-07-30  Bruno Haible  <bruno@clisp.org>
30387
30388         truncl: Fix autoconf test.
30389         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
30390         whether truncl works.
30391         Reported by Rainer Tammer.
30392
30393 2010-07-30  Bruno Haible  <bruno@clisp.org>
30394
30395         round: Update regarding AIX.
30396         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
30397         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
30398         Reported by Rainer Tammer.
30399
30400 2010-07-30  Bruno Haible  <bruno@clisp.org>
30401
30402         rename: Update regarding AIX.
30403         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
30404         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
30405         Reported by Rainer Tammer.
30406
30407 2010-07-30  Bruno Haible  <bruno@clisp.org>
30408
30409         printf.m4: Update regarding AIX.
30410         * m4/printf.m4: Update comments regarding AIX.
30411         Reported by Rainer Tammer.
30412
30413 2010-07-30  Bruno Haible  <bruno@clisp.org>
30414
30415         iconv: Update regarding AIX.
30416         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
30417         AIX 7.
30418         Reported by Rainer Tammer.
30419
30420 2010-07-30  Bruno Haible  <bruno@clisp.org>
30421
30422         getopt: Update regarding AIX.
30423         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
30424         no on AIX.
30425         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
30426         Reported by Rainer Tammer.
30427
30428 2010-07-30  Bruno Haible  <bruno@clisp.org>
30429
30430         ldexpl; Update regarding AIX.
30431         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
30432         on AIX 7.
30433         Reported by Rainer Tammer.
30434
30435 2010-07-30  Bruno Haible  <bruno@clisp.org>
30436
30437         frexpl: Update regarding AIX.
30438         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
30439         on AIX 7.
30440         Reported by Rainer Tammer.
30441
30442 2010-07-30  Bruno Haible  <bruno@clisp.org>
30443
30444         open, fopen: Update regarding AIX.
30445         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
30446         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30447         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
30448         * doc/posix-functions/fopen.texi: Likewise.
30449         Reported by Rainer Tammer.
30450
30451 2010-07-30  Bruno Haible  <bruno@clisp.org>
30452
30453         chown: Update doc regarding AIX.
30454         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
30455         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
30456         Reported by Rainer Tammer.
30457
30458 2010-07-30  Eric Blake  <eblake@redhat.com>
30459
30460         strtod: fix bug in replacement function on AIX
30461         * lib/strtod.c (strtod): Special case broken "0x" parse in
30462         underlying strtod.
30463         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
30464         * doc/posix-functions/strtod.texi (strtod): Likewise.
30465         Reported by Rainer Tammer.
30466
30467 2010-07-30  Bruno Haible  <bruno@clisp.org>
30468
30469         mbrlen: Fix cross-compilation guess for AIX.
30470         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
30471         guess. Leftover from 2008-12-22.
30472
30473 2010-07-30  Bruno Haible  <bruno@clisp.org>
30474
30475         mbrtowc: Fix cross-compilation guess for AIX.
30476         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
30477         guess. Leftover from 2008-12-21.
30478
30479 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
30480
30481         init.sh: work around trap limitation of some shells
30482         * tests/init.sh (setup_): Move exit trap outside of shell function.
30483
30484 2010-07-29  Eric Blake  <eblake@redhat.com>
30485
30486         strtod: aid debugging
30487         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
30488         understanding why strtod is rejected.
30489
30490 2010-07-28  Bruno Haible  <bruno@clisp.org>
30491
30492         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
30493         * lib/unistr/u8-chr.c: Include <string.h>.
30494         * tests/unistr/test-u8-chr.c: Likewise.
30495         * tests/unistr/test-u16-chr.c: Likewise.
30496         * tests/unistr/test-u32-chr.c: Likewise.
30497         * tests/unistr/test-u8-strchr.c: Likewise.
30498         * tests/unistr/test-u16-strchr.c: Likewise.
30499         * tests/unistr/test-u32-strchr.c: Likewise.
30500         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
30501         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
30502         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
30503         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
30504
30505 2010-07-28  Bruno Haible  <bruno@clisp.org>
30506
30507         Use spaces for indentation, not tabs.
30508         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
30509
30510 2010-07-27  Bruno Haible  <bruno@clisp.org>
30511
30512         mbspcasecmp: Fix function specification.
30513         * lib/string.in.h (mbspcasecmp): Fix specification comment.
30514         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
30515         Reported by Eric Blake <eblake@redhat.com>.
30516
30517 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
30518
30519         timespec: use cast and not conditional, as truncation isn't possible
30520         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
30521         instead of a conditional.  Comment about the situation in more detail.
30522         This undoes most of the 2009-10-29 patch.
30523
30524 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
30525
30526         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
30527         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
30528         * lib/unistr/u8-strchr.c: Likewise.
30529         * modules/unistr/u8-chr: Depend on memchr.
30530
30531         unistr/u*-strchr: add tests
30532         * modules/unistr/u8-strchr-tests: New file.
30533         * modules/unistr/u16-strchr-tests: New file.
30534         * modules/unistr/u32-strchr-tests: New file.
30535         * tests/unistr/test-strchr.h: New file.
30536         * tests/unistr/test-u8-strchr.c: New file.
30537         * tests/unistr/test-u16-strchr.c: New file.
30538         * tests/unistr/test-u32-strchr.c: New file.
30539
30540         unistr/u*-chr: test multibyte sequences more
30541         * tests/unistr/test-chr.h: Do complete testing of the characters in the
30542         test vector.
30543         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
30544         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
30545         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
30546
30547         unistr/u*-chr: test multibyte sequences
30548         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
30549
30550         unistr/u*-chr: prepare for multibyte tests
30551         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
30552         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
30553         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
30554         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
30555         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
30556         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
30557
30558 2010-07-18  Bruno Haible  <bruno@clisp.org>
30559
30560         unistr/u8-strchr: Optimize non-ASCII argument case.
30561         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
30562         because the first byte often matches anyway.
30563         Reported by Pádraig Brady <P@draigbrady.com>.
30564
30565 2010-07-15  Karl Berry  <karl@gnu.org>
30566
30567         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
30568
30569 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
30570
30571         getcwd: on Solaris, work better if ancestors are inaccessible
30572         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
30573         buffer and size, try again with a large buffer.  This works better
30574         on Solaris, since its getcwd succeeds even if the path to the root
30575         is inaccessible, and this is helpful in common cases such as .zfs
30576         hidden directories.  Problem reported by J Chapman Flack in
30577         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
30578         Use system getcwd if it's declared, not merely if it's partly
30579         working; use the partly-working test only to avoid needless effort
30580         if the system getcwd fails.
30581         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
30582         comment that was already obsolete and is now even more obsolete.
30583         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
30584         now might call strdup.
30585
30586 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
30587
30588         pthread: Add enough so that coreutils/src/sort.c compiles.
30589         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
30590         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
30591         gnulib. Include <sched.h> and <time.h>, as per POSIX.
30592         Include <sys/types.h>, in case it defines pthread_t.
30593         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
30594         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
30595         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
30596         (pthread_rwlockattr_t, pthread_spinlock_t):
30597         New typedefs, if HAVE_PTHREAD_T is not defined.
30598         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
30599         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
30600         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
30601         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
30602         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
30603         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
30604         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
30605         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
30606         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
30607         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
30608         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
30609         New macros.
30610         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
30611         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
30612         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
30613         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
30614         (pthread_spin_unlock): New dummy functions.
30615         (pthread_create): Return EAGAIN; don't set errno.
30616         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
30617         require AC_C_INLINE.
30618         * modules/pthread (Depends-on): Add sched, time.
30619         (pthread.h): Use AM_V_GEN.
30620
30621 2010-07-13  Bruno Haible  <bruno@clisp.org>
30622
30623         striconveh: Don't malloc memory if the result buffer is sufficient.
30624         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
30625         buffer if its size is sufficient.
30626         Reported by Ludovic Courtès <ludo@gnu.org>.
30627
30628 2010-07-13  Bruno Haible  <bruno@clisp.org>
30629
30630         strtod: Add safety check.
30631         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
30632
30633 2010-07-12  Bruno Haible  <bruno@clisp.org>
30634
30635         Unify tests that set gl_cv_func_ldexpl_no_libm.
30636         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
30637         gl_FUNC_LDEXPL.
30638         (gl_FUNC_LDEXPL): Invoke it.
30639         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30640
30641 2010-07-12  Bruno Haible  <bruno@clisp.org>
30642
30643         Unify tests that set gl_cv_func_ldexp_no_libm.
30644         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
30645         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
30646         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
30647         (configure.ac): Simply invoke gl_FUNC_LDEXP.
30648         * modules/strtod (Files): Add m4/ldexp.m4.
30649
30650 2010-07-12  Bruno Haible  <bruno@clisp.org>
30651
30652         Unify tests that set gl_cv_func_frexpl_no_libm.
30653         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
30654         gl_FUNC_FREXPL_NO_LIBM.
30655         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
30656         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30657
30658 2010-07-12  Bruno Haible  <bruno@clisp.org>
30659
30660         Unify tests that set gl_cv_func_frexp_no_libm.
30661         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
30662         gl_FUNC_FREXP_NO_LIBM.
30663         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
30664         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30665
30666 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30667
30668         memcoll: clarify sizes versus lengths, document better, and tweak perf
30669         * lib/memcoll.c (strcoll_loop, memcoll0):
30670         Improve quality of descriptive comments.  Name variables
30671         consistently as to whether they are lengths (which do not include
30672         terminating null) versus sizes (which do).
30673         * lib/xmemcoll.c (xmemcoll0): Likewise.
30674         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
30675         returned when s1size == 0; this is easier to compile and saves
30676         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
30677
30678 2010-07-12  Bruno Haible  <bruno@clisp.org>
30679
30680         Tests for module '_Exit'.
30681         * modules/_Exit-tests: New file.
30682         * tests/test-_Exit.sh: New file.
30683         * tests/test-_Exit.c: New file.
30684
30685         New module '_Exit'.
30686         * lib/stdlib.in.h (__attribute__): New macro.
30687         (_Exit): New declaration.
30688         * lib/_Exit.c: New file.
30689         * m4/_Exit.m4: New file.
30690         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
30691         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
30692         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
30693         * modules/_Exit: New file.
30694         * tests/test-stdlib-c++.cc (_Exit): Check signature.
30695         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
30696
30697 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30698
30699         strtod: make it more-accurate typically, and don't require libm
30700         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
30701         Include limits.h.  Don't include string.h.
30702         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
30703         (locale_isspace): New function, so that no casts are needed to
30704         check whether *s is a space.
30705         (ldexp): Provide an unused dummy if not available.
30706         (scale_radix_exp, parse_number, underlying_strtod): New functions.
30707         (strtod): Use them.  This implementation prefers to use the
30708         underlying strtod if available, falling back on our own code
30709         only to fix known bugs.  This is more likely to produce an
30710         accurate result.  Also, it avoids the use of libm functions.
30711         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
30712         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
30713         was absent, but it caused a test failure with coreutils.
30714         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
30715         with libm.
30716         * modules/strtod (Makefile.am, Link): libm is no longer needed.
30717         * modules/strtod-tests (Makefile.am): Likewise.
30718
30719 2010-07-11  Pádraig Brady  <P@draigBrady.com>
30720             Bruno Haible  <bruno@clisp.org>
30721
30722         unistr/u8-strchr: Optimize ASCII argument case.
30723         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
30724
30725 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
30726
30727         (x)memcoll: minor tweaks
30728         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
30729         is after the type that it qualifies.
30730         (memcoll0): Likewise.
30731         * lib/memcoll.h (memcoll0): Likewise.
30732         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
30733         * lib/xmemcoll.h (xmemcoll0): Likewise.
30734         * lib/memcoll.c (memcoll0): Correct the comment.  This function
30735         differs from memcoll in that the NUL byte is part of the argument.
30736         Omit the abort-checks, as performance is a real issue here.  Plus,
30737         the checks were wrong anyway (an off-by-one error).  Omit local
30738         variable 'diff', as it's a bit clearer that way.
30739         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
30740         no longer needed.
30741
30742 2010-07-08  Chen Guo <chenguo4@yahoo.com>
30743
30744         (x)memcoll: speedup when input is known to be NUL delimited
30745         * lib/memcoll.c: Include stdlib.
30746         (memcoll0): New function.
30747         (strcoll_loop): New function, refactored for use in both memcoll
30748         and memcoll0.
30749         * lib/memcoll.h (memcoll0): Add prototype.
30750         * lib/xmemcoll.c (xmemcoll0): New function.
30751         (collate_error): New function, refactored for use in both xmemcoll
30752         and xmemcoll0.
30753         * lib/xmemcoll.h (xmemcoll0): Add prototype.
30754         * m4/memcoll.m4: add inline invocation.
30755
30756 2010-07-06  Pádraig Brady  <P@draigBrady.com>
30757
30758         * build-aux/bootstrap: Remove any local translations
30759         from the translation project synchronization directory,
30760         so that local only translations are not distributed.
30761
30762 2010-07-04  Bruno Haible  <bruno@clisp.org>
30763
30764         fsusage: Clarify which code applies to which platforms.
30765         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
30766         platform.
30767         * lib/fsusage.c (get_fs_usage): Likewise.
30768
30769 2010-07-04  Bruno Haible  <bruno@clisp.org>
30770
30771         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
30772         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
30773         Reported by Martin Lambers <marlam@marlam.de>.
30774
30775 2010-07-04  Jim Meyering  <meyering@redhat.com>
30776
30777         hash: once again explicitly disallow insertion of NULL
30778         * lib/hash.c (hash_insert0): Reinstate just-removed test:
30779         inserting a NULL pointer cannot work with these functions.
30780         Add a comment with details.
30781         This reverts part of the 2010-07-01 commit, 5bef1a35
30782         "hash: extend module to deal with non-pointer keys".
30783
30784 2010-07-01  Bruno Haible  <bruno@clisp.org>
30785
30786         stdbool: Update doc.
30787         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
30788         Info from Christian Weisgerber <naddy@mips.inka.de>.
30789
30790 2010-07-01  Jim Meyering  <meyering@redhat.com>
30791
30792         hash: extend module to deal with non-pointer keys
30793         * lib/hash.c (hash_insert0): New interface, much like hash_insert
30794         but that allows insertion of non-pointer entries.
30795         Do not disallow an ENTRY value of NULL.
30796         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
30797         * lib/hash.h (hash_insert0): Declare.
30798
30799 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
30800
30801         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
30802         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
30803         not present (i.e. with autoconf 2.59 and when using gettextize, not
30804         gnulib), require AC_GNU_SOURCE instead.
30805
30806 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
30807
30808         idpriv-drop: Fix tests.
30809         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
30810         not to the test-idpriv-droptemp program.
30811
30812 2010-06-29  Bruno Haible  <bruno@clisp.org>
30813
30814         string: Fix syntax error with g++ 2.96.
30815         * lib/string.in.h (__pure__): Remove definition.
30816         (_GL_ATTRIBUTE_PURE): New macro.
30817         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
30818         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
30819         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30820
30821 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
30822
30823         unitypes: Fix bug introduced on 2010-05-18.
30824         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
30825
30826 2010-06-22  Eric Blake  <eblake@redhat.com>
30827
30828         memmem: slight optimization
30829         * lib/str-two-way.h (critical_factorization): Update comments.
30830         Reduce work during factorization phase.
30831         Reported by Carlos Bueno <carlos@bueno.org>.
30832
30833 2010-06-21  Bruno Haible  <bruno@clisp.org>
30834
30835         Fix HAVE_CALLOC_POSIX misnomer.
30836         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
30837         !HAVE_CALLOC_POSIX.
30838         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
30839         HAVE_CALLOC_POSIX.
30840         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
30841         instead of HAVE_CALLOC_POSIX.
30842         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
30843         HAVE_CALLOC_POSIX.
30844
30845         Use modern idiom for calloc() replacement.
30846         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
30847         AC_FUNC_CALLOC.
30848         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
30849         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
30850         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30851         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
30852         (gl_REPLACE_CALLOC): New macro.
30853
30854 2010-06-21  Bruno Haible  <bruno@clisp.org>
30855
30856         Fix HAVE_REALLOC_POSIX misnomer.
30857         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
30858         !HAVE_REALLOC_POSIX.
30859         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
30860         HAVE_REALLOC_POSIX.
30861         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
30862         instead of HAVE_REALLOC_POSIX.
30863         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
30864         HAVE_REALLOC_POSIX.
30865
30866         Use modern idiom for realloc() replacement.
30867         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
30868         AC_FUNC_REALLOC.
30869         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
30870         Autoconf's AC_FUNC_REALLOC.
30871         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30872         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
30873         (gl_REPLACE_REALLOC): New macro.
30874         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30875
30876 2010-06-21  Bruno Haible  <bruno@clisp.org>
30877
30878         Fix HAVE_MALLOC_POSIX misnomer.
30879         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
30880         !HAVE_MALLOC_POSIX.
30881         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
30882         HAVE_MALLOC_POSIX.
30883         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
30884         instead of HAVE_MALLOC_POSIX.
30885         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
30886         HAVE_MALLOC_POSIX.
30887
30888         Use modern idiom for malloc() replacement.
30889         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
30890         AC_FUNC_MALLOC.
30891         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
30892         Autoconf's AC_FUNC_MALLOC.
30893         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30894         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
30895         (gl_REPLACE_MALLOC): New macro.
30896         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30897
30898 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
30899
30900         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
30901         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
30902         This macro takes 3 arguments, not 4.
30903
30904 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
30905
30906         ipv6: fix detection under mingw
30907         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
30908         in6_addr.
30909
30910 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
30911
30912         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
30913         that strtod() works when cross-compiling to a glibc version known
30914         to work.
30915
30916 2010-06-15  Bruno Haible  <bruno@clisp.org>
30917
30918         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
30919
30920 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
30921
30922         select: Correct timeout.
30923         * lib/select.c (rpl_select): Compute wait_timeout correctly.
30924
30925 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
30926
30927         git-version-gen: init shell var to avoid env var influence
30928         * build-aux/git-version-gen (v): Init shell var to empty.
30929
30930 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
30931
30932         priv-set: Don't assume that priv.h exists merely because getppriv does.
30933         See Jan Andersen's bug report about AIX 5L in
30934         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
30935         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
30936         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
30937         * lib/priv-set.h: Likewise.
30938         * tests/test-priv-set.c: Likewise.
30939
30940 2010-06-13  Bruno Haible  <bruno@clisp.org>
30941
30942         relocatable: Make it easier to test whether to install wrappers.
30943         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
30944         RELOCATABLE_VIA_WRAPPER.
30945
30946 2010-06-13  Bruno Haible  <bruno@clisp.org>
30947
30948         gnulib-tool: Display specified modules and dependencies differently.
30949         * gnulib-tool (func_show_module_list): New function.
30950         (func_import, func_create_testdir): Invoke it.
30951         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30952
30953 2010-06-13  Bruno Haible  <bruno@clisp.org>
30954
30955         gnulib-tool: Align code of func_import and func_create_testdir.
30956         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
30957         specified_modules.
30958
30959 2010-06-12  Jim Meyering  <meyering@redhat.com>
30960
30961         test-inttostr: avoid spurious failure on Solaris 9
30962         * tests/test-inttostr.c (main): Skip the test when snprintf fails
30963         to accept "%ju".  Reported by Bruno Haible.
30964
30965 2010-06-11  Jim Meyering  <meyering@redhat.com>
30966
30967         test-sys_socket: mark variables as used more readably
30968         * tests/test-sys_socket.c (main): Mark otherwise unused variables
30969         as "used" explicitly via (void) statement casts.  This is more
30970         readable than using them in an artificial return expression.
30971         Suggestion from Bruno Haible.
30972
30973 2010-06-11  Bruno Haible  <bruno@clisp.org>
30974
30975         Avoid some more warnings from "gcc -Wwrite-strings".
30976         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
30977         to 'const char *'.
30978         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
30979         * tests/test-c-strcasestr.c (main): Likewise.
30980         * tests/test-mbscasestr1.c (main): Likewise.
30981         * tests/test-mbscasestr2.c (main): Likewise.
30982         * tests/test-memmem.c (main): Likewise.
30983         * tests/test-strstr.c (main): Likewise.
30984         * tests/test-strcasestr.c (main): Likewise.
30985
30986 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30987
30988         init.sh: change framework_failure_ to fail with status 99, not 1
30989         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
30990         automake's parallel-tests rule that this is an unexpected failure,
30991         even if the test is listed in XFAIL_TESTS.
30992
30993 2010-06-11  Jim Meyering  <meyering@redhat.com>
30994
30995         test-inttostr: avoid warnings about 4-6KB literal strings
30996         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
30997         Include "macros.h", for its definition of ASSERT.
30998         (CK): s/assert/ASSERT/
30999         * modules/inttostr-tests (Files): Add macros.h.
31000
31001         init.sh: don't use $ME_ or skip_ before they are defined
31002         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
31003         their first uses.  Also hoist their companions: warn_, fail_,
31004         framework_failure_, $stderr_fileno.  Prompted by a patch from
31005         Stefano Lattarini.
31006
31007         test-sys_socket: avoid set-but-not-used warnings from gcc
31008         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
31009         avoid warning about set-but-not-used variables.
31010
31011         test-xvasprintf: avoid 'const' discard warnings
31012         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
31013         "const" when assigning from literal strings.
31014         (test_xasprintf): Add "void" in function argument list to placate
31015         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
31016
31017         tests: avoid compilation warnings in argmatch and exclude tests...
31018         in packages that define ARGMATCH_DIE_DECL, like coreutils.
31019         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
31020         Since it always exits, declare with the "noreturn" attribute.
31021         * tests/test-argmatch.c: Likewise.
31022
31023         tests: avoid 'const' discard warnings in mbsstr tests
31024         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
31025         * tests/test-mbsstr2.c (main): Likewise.
31026
31027         test-verify: avoid warning from gcc's -Wmissing-declarations
31028         * tests/test-verify.c (function): Declare to be static.
31029
31030         test-inttostr.c: include <string.h> for use of strcmp
31031         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
31032
31033         test-linkat: avoid failed assertion on "other" architectures
31034         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
31035         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
31036         sparc: https://bugs.launchpad.net/bugs/591968
31037
31038 2010-06-11  Jim Meyering  <meyering@redhat.com>
31039
31040         printf.m4: avoid autoconf's "Expanded Before Required" warning
31041         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
31042         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
31043         autoconf warning.
31044
31045 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
31046
31047         Replacement header templates are now named with ".in", not "_".
31048         * doc/gnulib-intro.texi: Correct.
31049
31050 2010-06-10  Jim Meyering  <meyering@redhat.com>
31051
31052         inttostr-tests: depend on snprintf, not snprintf-posix
31053         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
31054         snprintf-posix, to avoid this aclocal failure:
31055           missing file gnulib-tests/vasnprintf.c
31056           configure.ac:45: error: expected source file, required through \
31057           AC_LIBSOURCES, not found
31058
31059 2010-06-10  Jim Meyering  <meyering@redhat.com>
31060
31061         inttostr: add a new function, inttostr, and tests
31062         The namesake function was not available.  The existence of the
31063         template file, inttostr.c makes its addition nontrivial.
31064         * lib/anytostr.c: Rename from inttostr.c.
31065         (anytostr): Rename from inttostr.
31066         * lib/inttostr.c: New file.
31067         * modules/inttostr (Files): Add anytostr.c.
31068         (Makefile.am): Set lib_SOURCES instead of ...
31069         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
31070         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
31071         * lib/offtostr.c: Likewise.
31072         * lib/uinttostr.c: Likewise.
31073         * lib/umaxtostr.c: Likewise.
31074         * modules/inttostr-tests: New file.
31075         * tests/test-inttostr.c: New file.  Test these functions.
31076
31077 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
31078             Bruno Haible  <bruno@clisp.org>
31079
31080         Add "Extending Gnulib" chapter to manual.
31081         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
31082         chapter.
31083         (Extending Gnulib): New chapter.
31084         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
31085         chapter.
31086
31087 2010-06-09  Bruno Haible  <bruno@clisp.org>
31088
31089         Avoid relocwrapper link errors due to gnulib replacement functions.
31090         * lib/areadlink.c: Use the system's malloc, realloc functions.
31091         (areadlink): Set errno to ENOMEM explicitly.
31092         * modules/areadlink (Depends-on): Remove malloc-posix.
31093         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31094
31095 2010-06-09  Bruno Haible  <bruno@clisp.org>
31096
31097         Avoid relocwrapper link errors due to gnulib replacement functions.
31098         * lib/canonicalize-lgpl.c: Use the system's malloc function.
31099         * lib/malloca.c: Likewise.
31100         * lib/relocatable.c: Likewise.
31101         * lib/progreloc.c: Use the system's malloc, sprintf functions.
31102         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
31103         * lib/setenv.c: Use the system's malloc, realloc functions.
31104         * lib/strerror.c: Use the system's sprintf function.
31105         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31106
31107 2010-06-04  Bruno Haible  <bruno@clisp.org>
31108
31109         Prefer documented low-level autoconf macro names.
31110         * m4/lib-link.m4: Use m4_translit instead of translit.
31111         * m4/environ.m4: Likewise.
31112         * m4/mathfunc.m4: Likewise.
31113         * m4/onceonly.m4: Likewise.
31114         * m4/stdint.m4: Likewise.
31115         Suggested by Eric Blake.
31116
31117 2010-06-04  Martin Lambers  <marlam@marlam.de>
31118             Bruno Haible  <bruno@clisp.org>
31119
31120         havelib: Allow library names with '+' characters.
31121         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31122         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
31123
31124 2010-06-09  Bruno Haible  <bruno@clisp.org>
31125
31126         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
31127         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
31128         realloc failed.
31129
31130 2010-06-08  Peter Simons  <simons@cryp.to>
31131
31132         maint.mk: make the news-check rule more configurable
31133         * top/maint.mk (news-check-lines-spec): New variable.
31134         (news-check): Use "sed -n 1,10p" in place of "head".
31135
31136 2010-06-07  Jim Meyering  <meyering@redhat.com>
31137
31138         do-release-commit-and-tag: fix typo in --help
31139         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
31140
31141         regex: avoid new dead-code warning with gcc-4.6.0
31142         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
31143         if-block containing a while-loop.  It's been unused for at least
31144         5 years.
31145
31146 2010-06-05  Bruno Haible  <bruno@clisp.org>
31147
31148         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
31149         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
31150
31151 2010-06-04  Bruno Haible  <bruno@clisp.org>
31152
31153         Update to GNU gettext 0.18.1.
31154         * modules/gettext (configure.ac): Require gettext infrastructure from
31155         version 0.18.1.
31156
31157 2010-06-03  Bruno Haible  <bruno@clisp.org>
31158
31159         Don't use AC_LIBOBJ with file names in subdirectories.
31160         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
31161         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
31162         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
31163         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
31164         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
31165         gl_LIBUNISTRING_LIBSOURCE.
31166         (Makefile.am): Augment lib_SOURCES here, conditionally.
31167         * NEWS: Drop requirement for Automake option 'subdir-objects'.
31168
31169 2010-06-03  Bruno Haible  <bruno@clisp.org>
31170
31171         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
31172         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
31173         expansion does not end with a newline.
31174         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
31175         unnecessary newline.
31176
31177 2010-06-03  Bruno Haible  <bruno@clisp.org>
31178
31179         Reduce dependencies.
31180         * tests/test-quotearg.h: New file, extracted from
31181         tests/test-quotearg.c.
31182         * tests/test-quotearg-simple.c: New file, extracted from
31183         tests/test-quotearg.c.
31184         * tests/test-quotearg.c: Don't include <ctype.h>.
31185         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
31186         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
31187         use_quote_double_quotes, use_quotearg_colon): Moved to
31188         tests/test-quotearg.h.
31189         (results_g, flag_results, custom_quotes, custom_results): Moved
31190         to tests/test-quotearg-simple.c.
31191         (main): Moved the part that does not depend on gettext to
31192         tests/test-quotearg-simple.c. Return 77 if the test cannot be
31193         performed.
31194         * modules/quotearg-simple: New file.
31195         * modules/quotearg-simple-tests: New file.
31196         * modules/quotearg (Depends-on): Add quotearg-simple.
31197         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
31198         (Files): Add tests/test-quotearg.h.
31199         Reported by Paolo Bonzini.
31200
31201 2010-06-03  Bruno Haible  <bruno@clisp.org>
31202
31203         Reduce dependencies.
31204         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
31205
31206 2010-06-03  Bruno Haible  <bruno@clisp.org>
31207
31208         time: Undefine more broken macros.
31209         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
31210         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
31211         Reported by Eric Blake.
31212
31213 2010-06-03  Bruno Haible  <bruno@clisp.org>
31214
31215         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
31216         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
31217         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
31218         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
31219         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
31220         Reported by Ludovic Courtès <ludo@gnu.org>.
31221
31222 2010-06-02  Eric Blake  <eblake@redhat.com>
31223
31224         time: work with mingw + pthreads-win32 library
31225         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
31226         if timespec is defined only in pthread.h.
31227         * modules/time (Makefile.am): Substitute it.
31228         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
31229         <pthread.h>, when needed.
31230         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
31231         from the library.
31232
31233 2010-05-31  Bruno Haible  <bruno@clisp.org>
31234
31235         Avoid expanding two macros in the wrong order.
31236         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
31237         gl_LIBUNISTRING if it is defined.
31238         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
31239         autoconf >= 2.64.
31240         Reported by Ludovic Courtès <ludo@gnu.org>.
31241
31242 2010-05-27  Jim Meyering  <meyering@redhat.com>
31243
31244         maint.mk: also prohibit "#undef" of always-defined symbols
31245         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
31246         Allow more than one space before the symbol name.
31247         (sc_prohibit_always-defined_macros): Use grep's -E, now that
31248         the regexp uses alternation.
31249
31250 2010-05-26  Eric Blake  <eblake@redhat.com>
31251
31252         maint.mk: avoid echo -e
31253         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
31254         Convert all uses of echo -* to printf.
31255         Reported by Matthias Bolte.
31256
31257 2010-05-25  Bruno Haible  <bruno@clisp.org>
31258
31259         Update to GNU gettext 0.18, part 2.
31260         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
31261         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
31262
31263 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31264
31265         Add missing include in test-pwrite.c.
31266         * tests/test-pwrite.c: Include string.h, for strcmp.
31267
31268 2010-05-24  Bruno Haible  <bruno@clisp.org>
31269
31270         * NEWS: Mention requirement for Automake option 'subdir-objects'.
31271
31272 2010-05-24  Bruno Haible  <bruno@clisp.org>
31273
31274         Don't use conversion with transliteration in u{8,16,32}_strcoll.
31275         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
31276         iconveh_error argument.
31277         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
31278         U_STRCONV_TO_LOCALE.
31279         * lib/unistr/u16-strcoll.c: Likewise.
31280         * lib/unistr/u32-strcoll.c: Likewise.
31281         * modules/unistr/u8-strcoll (Depends-on): Add
31282         uniconv/u8-strconv-to-enc, localcharset. Remove
31283         uniconv/u8-strconv-to-locale.
31284         (configure.ac): Bump version number.
31285         * modules/unistr/u16-strcoll (Depends-on): Add
31286         uniconv/u16-strconv-to-enc, localcharset. Remove
31287         uniconv/u16-strconv-to-locale.
31288         (configure.ac): Bump version number.
31289         * modules/unistr/u32-strcoll (Depends-on): Add
31290         uniconv/u32-strconv-to-enc, localcharset. Remove
31291         uniconv/u32-strconv-to-locale.
31292         (configure.ac): Bump version number.
31293
31294 2010-05-24  Bruno Haible  <bruno@clisp.org>
31295
31296         Avoid a test failure on NetBSD 5.0.
31297         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
31298         an iconv() bug.
31299
31300 2010-05-24  Bruno Haible  <bruno@clisp.org>
31301
31302         Adjust #include directive style.
31303         * modules/regex (Includes): Recommend to write <regex.h>.
31304
31305 2010-05-24  Bruno Haible  <bruno@clisp.org>
31306
31307         regex: Don't require alloca.
31308         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
31309         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
31310         only inside if (0).
31311
31312 2010-05-23  Jim Meyering  <meyering@redhat.com>
31313
31314         test-renameat.c: include <sys/stat.h>
31315         * tests/test-renameat.c: Include <sys/stat.h>; required for
31316         definition of S_IS* macros.
31317
31318 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
31319
31320         Update maintainer documentation for 'relocatable-prog' module.
31321         * doc/relocatable-maint.texi: Update.
31322         Comments by Bruno Haible.
31323
31324 2010-05-23  Bruno Haible  <bruno@clisp.org>
31325
31326         git-merge-changelog: Enable --split-merged-entry by default.
31327         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
31328         (usage): Don't mention this option any more.
31329         Reported by Ralf Wildenhues.
31330
31331 2010-05-23  Jim Meyering  <meyering@redhat.com>
31332
31333         test-pwrite: do not leave behind a test file named "out"
31334         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
31335         The trivial-looking use of init.sh is really necessary.
31336         It ensures that the temporary file, "out", is created in
31337         a temporary directory, and removed upon termination.
31338         * tests/test-pwrite.sh: Re-add file.
31339         * modules/pwrite-tests: Reference it.
31340
31341 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31342
31343         Fix output redirection buglet in init.sh.
31344         * tests/init.sh: Fix redirection of stderr.
31345
31346 2010-05-20  Simon Josefsson  <simon@josefsson.org>
31347
31348         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
31349
31350 2010-05-17  Simon Josefsson  <simon@josefsson.org>
31351
31352         * modules/valgrind-tests: New file.
31353         * m4/valgrind-tests.m4: New file.
31354         * doc/valgrind-tests.texi: New file.
31355         * doc/gnulib.texi (Running self-tests under valgrind): New
31356         section.
31357
31358 2010-05-19  Bruno Haible  <bruno@clisp.org>
31359
31360         Clean up dead code in recent commit.
31361         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
31362         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
31363         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
31364         Suggested by Paolo Bonzini.
31365
31366 2010-05-19  Bruno Haible  <bruno@clisp.org>
31367
31368         Avoid valgrind error reports from libunistring.
31369         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
31370         * modules/libunistring (Files): Add it.
31371         * modules/libunistring-optional (Files): Likewise.
31372
31373 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
31374             Bruno Haible  <bruno@clisp.org>
31375
31376         New module 'libunistring-optional'.
31377         * modules/libunistring-optional: New file.
31378         * m4/libunistring-base.m4: New file.
31379         * m4/libunistring-optional.m4: New file.
31380         * lib/unicase.in.h: Renamed from lib/unicase.h.
31381         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
31382         * lib/unictype.in.h: Renamed from lib/unictype.h.
31383         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
31384         * lib/uniname.in.h: Renamed from lib/uniname.h.
31385         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
31386         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
31387         * lib/unistr.in.h: Renamed from lib/unistr.h.
31388         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
31389         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
31390         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
31391         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
31392         gl_LIBUNISTRING. If the library was found, determine the installed
31393         version and set LIBUNISTRING_VERSION.
31394         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
31395         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
31396         handle a configuration option --with-included-libunistring.
31397         * modules/libunistring (Files): Add m4/absolute-header.m4.
31398         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
31399         Add m4/libunistring-base.m4.
31400         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31401         (Makefile.am): Build unicase.h from unicase.in.h.
31402         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
31403         Add m4/libunistring-base.m4.
31404         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31405         (Makefile.am): Build uniconv.h from uniconv.in.h.
31406         * modules/unictype/base (Files): Use unictype.in.h instead of
31407         unictype.h. Add m4/libunistring-base.m4.
31408         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31409         (Makefile.am): Build unictype.h from unictype.in.h.
31410         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
31411         Add m4/libunistring-base.m4.
31412         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31413         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
31414         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
31415         Add m4/libunistring-base.m4.
31416         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31417         (Makefile.am): Build uniname.h from uniname.in.h.
31418         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
31419         Add m4/libunistring-base.m4.
31420         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31421         (Makefile.am): Build uninorm.h from uninorm.in.h.
31422         * modules/unistdio/base (Files): Use unistdio.in.h instead of
31423         unistdio.h. Add m4/libunistring-base.m4.
31424         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31425         (Makefile.am): Build unistdio.h from unistdio.in.h.
31426         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
31427         Add m4/libunistring-base.m4.
31428         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31429         (Makefile.am): Build unistr.h from unistr.in.h.
31430         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
31431         Add m4/libunistring-base.m4.
31432         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31433         (Makefile.am): Build unitypes.h from unitypes.in.h.
31434         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
31435         Add m4/libunistring-base.m4.
31436         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31437         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
31438         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
31439         uniwidth.h. Add m4/libunistring-base.m4.
31440         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31441         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
31442         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
31443         instead of augmenting lib_SOURCES.
31444         * modules/unicase/empty-suffix-context: Likewise.
31445         * modules/unicase/locale-language: Likewise.
31446         * modules/unicase/tolower: Likewise.
31447         * modules/unicase/totitle: Likewise.
31448         * modules/unicase/toupper: Likewise.
31449         * modules/unicase/u8-casecmp: Likewise.
31450         * modules/unicase/u8-casecoll: Likewise.
31451         * modules/unicase/u8-casefold: Likewise.
31452         * modules/unicase/u8-casexfrm: Likewise.
31453         * modules/unicase/u8-ct-casefold: Likewise.
31454         * modules/unicase/u8-ct-tolower: Likewise.
31455         * modules/unicase/u8-ct-totitle: Likewise.
31456         * modules/unicase/u8-ct-toupper: Likewise.
31457         * modules/unicase/u8-is-cased: Likewise.
31458         * modules/unicase/u8-is-casefolded: Likewise.
31459         * modules/unicase/u8-is-lowercase: Likewise.
31460         * modules/unicase/u8-is-titlecase: Likewise.
31461         * modules/unicase/u8-is-uppercase: Likewise.
31462         * modules/unicase/u8-prefix-context: Likewise.
31463         * modules/unicase/u8-suffix-context: Likewise.
31464         * modules/unicase/u8-tolower: Likewise.
31465         * modules/unicase/u8-totitle: Likewise.
31466         * modules/unicase/u8-toupper: Likewise.
31467         * modules/unicase/u16-casecmp: Likewise.
31468         * modules/unicase/u16-casecoll: Likewise.
31469         * modules/unicase/u16-casefold: Likewise.
31470         * modules/unicase/u16-casexfrm: Likewise.
31471         * modules/unicase/u16-ct-casefold: Likewise.
31472         * modules/unicase/u16-ct-tolower: Likewise.
31473         * modules/unicase/u16-ct-totitle: Likewise.
31474         * modules/unicase/u16-ct-toupper: Likewise.
31475         * modules/unicase/u16-is-cased: Likewise.
31476         * modules/unicase/u16-is-casefolded: Likewise.
31477         * modules/unicase/u16-is-lowercase: Likewise.
31478         * modules/unicase/u16-is-titlecase: Likewise.
31479         * modules/unicase/u16-is-uppercase: Likewise.
31480         * modules/unicase/u16-prefix-context: Likewise.
31481         * modules/unicase/u16-suffix-context: Likewise.
31482         * modules/unicase/u16-tolower: Likewise.
31483         * modules/unicase/u16-totitle: Likewise.
31484         * modules/unicase/u16-toupper: Likewise.
31485         * modules/unicase/u32-casecmp: Likewise.
31486         * modules/unicase/u32-casecoll: Likewise.
31487         * modules/unicase/u32-casefold: Likewise.
31488         * modules/unicase/u32-casexfrm: Likewise.
31489         * modules/unicase/u32-ct-casefold: Likewise.
31490         * modules/unicase/u32-ct-tolower: Likewise.
31491         * modules/unicase/u32-ct-totitle: Likewise.
31492         * modules/unicase/u32-ct-toupper: Likewise.
31493         * modules/unicase/u32-is-cased: Likewise.
31494         * modules/unicase/u32-is-casefolded: Likewise.
31495         * modules/unicase/u32-is-lowercase: Likewise.
31496         * modules/unicase/u32-is-titlecase: Likewise.
31497         * modules/unicase/u32-is-uppercase: Likewise.
31498         * modules/unicase/u32-prefix-context: Likewise.
31499         * modules/unicase/u32-suffix-context: Likewise.
31500         * modules/unicase/u32-tolower: Likewise.
31501         * modules/unicase/u32-totitle: Likewise.
31502         * modules/unicase/u32-toupper: Likewise.
31503         * modules/unicase/ulc-casecmp: Likewise.
31504         * modules/unicase/ulc-casecoll: Likewise.
31505         * modules/unicase/ulc-casexfrm: Likewise.
31506         * modules/uniconv/u8-conv-from-enc: Likewise.
31507         * modules/uniconv/u8-conv-to-enc: Likewise.
31508         * modules/uniconv/u8-strconv-from-enc: Likewise.
31509         * modules/uniconv/u8-strconv-from-locale: Likewise.
31510         * modules/uniconv/u8-strconv-to-enc: Likewise.
31511         * modules/uniconv/u8-strconv-to-locale: Likewise.
31512         * modules/uniconv/u16-conv-from-enc: Likewise.
31513         * modules/uniconv/u16-conv-to-enc: Likewise.
31514         * modules/uniconv/u16-strconv-from-enc: Likewise.
31515         * modules/uniconv/u16-strconv-from-locale: Likewise.
31516         * modules/uniconv/u16-strconv-to-enc: Likewise.
31517         * modules/uniconv/u16-strconv-to-locale: Likewise.
31518         * modules/uniconv/u32-conv-from-enc: Likewise.
31519         * modules/uniconv/u32-conv-to-enc: Likewise.
31520         * modules/uniconv/u32-strconv-from-enc: Likewise.
31521         * modules/uniconv/u32-strconv-from-locale: Likewise.
31522         * modules/uniconv/u32-strconv-to-enc: Likewise.
31523         * modules/uniconv/u32-strconv-to-locale: Likewise.
31524         * modules/unictype/bidicategory-byname: Likewise.
31525         * modules/unictype/bidicategory-name: Likewise.
31526         * modules/unictype/bidicategory-of: Likewise.
31527         * modules/unictype/bidicategory-test: Likewise.
31528         * modules/unictype/block-list: Likewise.
31529         * modules/unictype/block-test: Likewise.
31530         * modules/unictype/category-C: Likewise.
31531         * modules/unictype/category-Cc: Likewise.
31532         * modules/unictype/category-Cf: Likewise.
31533         * modules/unictype/category-Cn: Likewise.
31534         * modules/unictype/category-Co: Likewise.
31535         * modules/unictype/category-Cs: Likewise.
31536         * modules/unictype/category-L: Likewise.
31537         * modules/unictype/category-Ll: Likewise.
31538         * modules/unictype/category-Lm: Likewise.
31539         * modules/unictype/category-Lo: Likewise.
31540         * modules/unictype/category-Lt: Likewise.
31541         * modules/unictype/category-Lu: Likewise.
31542         * modules/unictype/category-M: Likewise.
31543         * modules/unictype/category-Mc: Likewise.
31544         * modules/unictype/category-Me: Likewise.
31545         * modules/unictype/category-Mn: Likewise.
31546         * modules/unictype/category-N: Likewise.
31547         * modules/unictype/category-Nd: Likewise.
31548         * modules/unictype/category-Nl: Likewise.
31549         * modules/unictype/category-No: Likewise.
31550         * modules/unictype/category-P: Likewise.
31551         * modules/unictype/category-Pc: Likewise.
31552         * modules/unictype/category-Pd: Likewise.
31553         * modules/unictype/category-Pe: Likewise.
31554         * modules/unictype/category-Pf: Likewise.
31555         * modules/unictype/category-Pi: Likewise.
31556         * modules/unictype/category-Po: Likewise.
31557         * modules/unictype/category-Ps: Likewise.
31558         * modules/unictype/category-S: Likewise.
31559         * modules/unictype/category-Sc: Likewise.
31560         * modules/unictype/category-Sk: Likewise.
31561         * modules/unictype/category-Sm: Likewise.
31562         * modules/unictype/category-So: Likewise.
31563         * modules/unictype/category-Z: Likewise.
31564         * modules/unictype/category-Zl: Likewise.
31565         * modules/unictype/category-Zp: Likewise.
31566         * modules/unictype/category-Zs: Likewise.
31567         * modules/unictype/category-and: Likewise.
31568         * modules/unictype/category-and-not: Likewise.
31569         * modules/unictype/category-byname: Likewise.
31570         * modules/unictype/category-name: Likewise.
31571         * modules/unictype/category-none: Likewise.
31572         * modules/unictype/category-of: Likewise.
31573         * modules/unictype/category-or: Likewise.
31574         * modules/unictype/category-test: Likewise.
31575         * modules/unictype/combining-class: Likewise.
31576         * modules/unictype/ctype-alnum: Likewise.
31577         * modules/unictype/ctype-alpha: Likewise.
31578         * modules/unictype/ctype-blank: Likewise.
31579         * modules/unictype/ctype-cntrl: Likewise.
31580         * modules/unictype/ctype-digit: Likewise.
31581         * modules/unictype/ctype-graph: Likewise.
31582         * modules/unictype/ctype-lower: Likewise.
31583         * modules/unictype/ctype-print: Likewise.
31584         * modules/unictype/ctype-punct: Likewise.
31585         * modules/unictype/ctype-space: Likewise.
31586         * modules/unictype/ctype-upper: Likewise.
31587         * modules/unictype/ctype-xdigit: Likewise.
31588         * modules/unictype/decimal-digit: Likewise.
31589         * modules/unictype/digit: Likewise.
31590         * modules/unictype/mirror: Likewise.
31591         * modules/unictype/numeric: Likewise.
31592         * modules/unictype/property-alphabetic: Likewise.
31593         * modules/unictype/property-ascii-hex-digit: Likewise.
31594         * modules/unictype/property-bidi-arabic-digit: Likewise.
31595         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
31596         * modules/unictype/property-bidi-block-separator: Likewise.
31597         * modules/unictype/property-bidi-boundary-neutral: Likewise.
31598         * modules/unictype/property-bidi-common-separator: Likewise.
31599         * modules/unictype/property-bidi-control: Likewise.
31600         * modules/unictype/property-bidi-embedding-or-override: Likewise.
31601         * modules/unictype/property-bidi-eur-num-separator: Likewise.
31602         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
31603         * modules/unictype/property-bidi-european-digit: Likewise.
31604         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
31605         * modules/unictype/property-bidi-left-to-right: Likewise.
31606         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
31607         * modules/unictype/property-bidi-other-neutral: Likewise.
31608         * modules/unictype/property-bidi-pdf: Likewise.
31609         * modules/unictype/property-bidi-segment-separator: Likewise.
31610         * modules/unictype/property-bidi-whitespace: Likewise.
31611         * modules/unictype/property-byname: Likewise.
31612         * modules/unictype/property-combining: Likewise.
31613         * modules/unictype/property-composite: Likewise.
31614         * modules/unictype/property-currency-symbol: Likewise.
31615         * modules/unictype/property-dash: Likewise.
31616         * modules/unictype/property-decimal-digit: Likewise.
31617         * modules/unictype/property-default-ignorable-code-point: Likewise.
31618         * modules/unictype/property-deprecated: Likewise.
31619         * modules/unictype/property-diacritic: Likewise.
31620         * modules/unictype/property-extender: Likewise.
31621         * modules/unictype/property-format-control: Likewise.
31622         * modules/unictype/property-grapheme-base: Likewise.
31623         * modules/unictype/property-grapheme-extend: Likewise.
31624         * modules/unictype/property-grapheme-link: Likewise.
31625         * modules/unictype/property-hex-digit: Likewise.
31626         * modules/unictype/property-hyphen: Likewise.
31627         * modules/unictype/property-id-continue: Likewise.
31628         * modules/unictype/property-id-start: Likewise.
31629         * modules/unictype/property-ideographic: Likewise.
31630         * modules/unictype/property-ids-binary-operator: Likewise.
31631         * modules/unictype/property-ids-trinary-operator: Likewise.
31632         * modules/unictype/property-ignorable-control: Likewise.
31633         * modules/unictype/property-iso-control: Likewise.
31634         * modules/unictype/property-join-control: Likewise.
31635         * modules/unictype/property-left-of-pair: Likewise.
31636         * modules/unictype/property-line-separator: Likewise.
31637         * modules/unictype/property-logical-order-exception: Likewise.
31638         * modules/unictype/property-lowercase: Likewise.
31639         * modules/unictype/property-math: Likewise.
31640         * modules/unictype/property-non-break: Likewise.
31641         * modules/unictype/property-not-a-character: Likewise.
31642         * modules/unictype/property-numeric: Likewise.
31643         * modules/unictype/property-other-alphabetic: Likewise.
31644         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
31645         * modules/unictype/property-other-grapheme-extend: Likewise.
31646         * modules/unictype/property-other-id-continue: Likewise.
31647         * modules/unictype/property-other-id-start: Likewise.
31648         * modules/unictype/property-other-lowercase: Likewise.
31649         * modules/unictype/property-other-math: Likewise.
31650         * modules/unictype/property-other-uppercase: Likewise.
31651         * modules/unictype/property-paired-punctuation: Likewise.
31652         * modules/unictype/property-paragraph-separator: Likewise.
31653         * modules/unictype/property-pattern-syntax: Likewise.
31654         * modules/unictype/property-pattern-white-space: Likewise.
31655         * modules/unictype/property-private-use: Likewise.
31656         * modules/unictype/property-punctuation: Likewise.
31657         * modules/unictype/property-quotation-mark: Likewise.
31658         * modules/unictype/property-radical: Likewise.
31659         * modules/unictype/property-sentence-terminal: Likewise.
31660         * modules/unictype/property-soft-dotted: Likewise.
31661         * modules/unictype/property-space: Likewise.
31662         * modules/unictype/property-terminal-punctuation: Likewise.
31663         * modules/unictype/property-test: Likewise.
31664         * modules/unictype/property-titlecase: Likewise.
31665         * modules/unictype/property-unassigned-code-value: Likewise.
31666         * modules/unictype/property-unified-ideograph: Likewise.
31667         * modules/unictype/property-uppercase: Likewise.
31668         * modules/unictype/property-variation-selector: Likewise.
31669         * modules/unictype/property-white-space: Likewise.
31670         * modules/unictype/property-xid-continue: Likewise.
31671         * modules/unictype/property-xid-start: Likewise.
31672         * modules/unictype/property-zero-width: Likewise.
31673         * modules/unictype/scripts: Likewise.
31674         * modules/unictype/syntax-c-ident: Likewise.
31675         * modules/unictype/syntax-c-whitespace: Likewise.
31676         * modules/unictype/syntax-java-ident: Likewise.
31677         * modules/unictype/syntax-java-whitespace: Likewise.
31678         * modules/unilbrk/u8-possible-linebreaks: Likewise.
31679         * modules/unilbrk/u8-width-linebreaks: Likewise.
31680         * modules/unilbrk/u16-possible-linebreaks: Likewise.
31681         * modules/unilbrk/u16-width-linebreaks: Likewise.
31682         * modules/unilbrk/u32-possible-linebreaks: Likewise.
31683         * modules/unilbrk/u32-width-linebreaks: Likewise.
31684         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
31685         * modules/unilbrk/ulc-width-linebreaks: Likewise.
31686         * modules/uniname/uniname: Likewise.
31687         * modules/uninorm/canonical-decomposition: Likewise.
31688         * modules/uninorm/composition: Likewise.
31689         * modules/uninorm/decomposing-form: Likewise.
31690         * modules/uninorm/decomposition: Likewise.
31691         * modules/uninorm/filter: Likewise.
31692         * modules/uninorm/nfc: Likewise.
31693         * modules/uninorm/nfd: Likewise.
31694         * modules/uninorm/nfkc: Likewise.
31695         * modules/uninorm/nfkd: Likewise.
31696         * modules/uninorm/u8-normalize: Likewise.
31697         * modules/uninorm/u8-normcmp: Likewise.
31698         * modules/uninorm/u8-normcoll: Likewise.
31699         * modules/uninorm/u8-normxfrm: Likewise.
31700         * modules/uninorm/u16-normalize: Likewise.
31701         * modules/uninorm/u16-normcmp: Likewise.
31702         * modules/uninorm/u16-normcoll: Likewise.
31703         * modules/uninorm/u16-normxfrm: Likewise.
31704         * modules/uninorm/u32-normalize: Likewise.
31705         * modules/uninorm/u32-normcmp: Likewise.
31706         * modules/uninorm/u32-normcoll: Likewise.
31707         * modules/uninorm/u32-normxfrm: Likewise.
31708         * modules/unistdio/u8-asnprintf: Likewise.
31709         * modules/unistdio/u8-asprintf: Likewise.
31710         * modules/unistdio/u8-snprintf: Likewise.
31711         * modules/unistdio/u8-sprintf: Likewise.
31712         * modules/unistdio/u8-u8-asnprintf: Likewise.
31713         * modules/unistdio/u8-u8-asprintf: Likewise.
31714         * modules/unistdio/u8-u8-snprintf: Likewise.
31715         * modules/unistdio/u8-u8-sprintf: Likewise.
31716         * modules/unistdio/u8-u8-vasnprintf: Likewise.
31717         * modules/unistdio/u8-u8-vasprintf: Likewise.
31718         * modules/unistdio/u8-u8-vsnprintf: Likewise.
31719         * modules/unistdio/u8-u8-vsprintf: Likewise.
31720         * modules/unistdio/u8-vasnprintf: Likewise.
31721         * modules/unistdio/u8-vasprintf: Likewise.
31722         * modules/unistdio/u8-vsnprintf: Likewise.
31723         * modules/unistdio/u8-vsprintf: Likewise.
31724         * modules/unistdio/u16-asnprintf: Likewise.
31725         * modules/unistdio/u16-asprintf: Likewise.
31726         * modules/unistdio/u16-snprintf: Likewise.
31727         * modules/unistdio/u16-sprintf: Likewise.
31728         * modules/unistdio/u16-u16-asnprintf: Likewise.
31729         * modules/unistdio/u16-u16-asprintf: Likewise.
31730         * modules/unistdio/u16-u16-snprintf: Likewise.
31731         * modules/unistdio/u16-u16-sprintf: Likewise.
31732         * modules/unistdio/u16-u16-vasnprintf: Likewise.
31733         * modules/unistdio/u16-u16-vasprintf: Likewise.
31734         * modules/unistdio/u16-u16-vsnprintf: Likewise.
31735         * modules/unistdio/u16-u16-vsprintf: Likewise.
31736         * modules/unistdio/u16-vasnprintf: Likewise.
31737         * modules/unistdio/u16-vasprintf: Likewise.
31738         * modules/unistdio/u16-vsnprintf: Likewise.
31739         * modules/unistdio/u16-vsprintf: Likewise.
31740         * modules/unistdio/u32-asnprintf: Likewise.
31741         * modules/unistdio/u32-asprintf: Likewise.
31742         * modules/unistdio/u32-snprintf: Likewise.
31743         * modules/unistdio/u32-sprintf: Likewise.
31744         * modules/unistdio/u32-u32-asnprintf: Likewise.
31745         * modules/unistdio/u32-u32-asprintf: Likewise.
31746         * modules/unistdio/u32-u32-snprintf: Likewise.
31747         * modules/unistdio/u32-u32-sprintf: Likewise.
31748         * modules/unistdio/u32-u32-vasnprintf: Likewise.
31749         * modules/unistdio/u32-u32-vasprintf: Likewise.
31750         * modules/unistdio/u32-u32-vsnprintf: Likewise.
31751         * modules/unistdio/u32-u32-vsprintf: Likewise.
31752         * modules/unistdio/u32-vasnprintf: Likewise.
31753         * modules/unistdio/u32-vasprintf: Likewise.
31754         * modules/unistdio/u32-vsnprintf: Likewise.
31755         * modules/unistdio/u32-vsprintf: Likewise.
31756         * modules/unistdio/ulc-asnprintf: Likewise.
31757         * modules/unistdio/ulc-asprintf: Likewise.
31758         * modules/unistdio/ulc-fprintf: Likewise.
31759         * modules/unistdio/ulc-snprintf: Likewise.
31760         * modules/unistdio/ulc-sprintf: Likewise.
31761         * modules/unistdio/ulc-vasnprintf: Likewise.
31762         * modules/unistdio/ulc-vasprintf: Likewise.
31763         * modules/unistdio/ulc-vfprintf: Likewise.
31764         * modules/unistdio/ulc-vsnprintf: Likewise.
31765         * modules/unistdio/ulc-vsprintf: Likewise.
31766         * modules/unistr/u8-check: Likewise.
31767         * modules/unistr/u8-chr: Likewise.
31768         * modules/unistr/u8-cmp: Likewise.
31769         * modules/unistr/u8-cmp2: Likewise.
31770         * modules/unistr/u8-cpy: Likewise.
31771         * modules/unistr/u8-cpy-alloc: Likewise.
31772         * modules/unistr/u8-endswith: Likewise.
31773         * modules/unistr/u8-mblen: Likewise.
31774         * modules/unistr/u8-mbsnlen: Likewise.
31775         * modules/unistr/u8-mbtouc: Likewise.
31776         * modules/unistr/u8-mbtouc-unsafe: Likewise.
31777         * modules/unistr/u8-mbtoucr: Likewise.
31778         * modules/unistr/u8-move: Likewise.
31779         * modules/unistr/u8-next: Likewise.
31780         * modules/unistr/u8-prev: Likewise.
31781         * modules/unistr/u8-set: Likewise.
31782         * modules/unistr/u8-startswith: Likewise.
31783         * modules/unistr/u8-stpcpy: Likewise.
31784         * modules/unistr/u8-stpncpy: Likewise.
31785         * modules/unistr/u8-strcat: Likewise.
31786         * modules/unistr/u8-strchr: Likewise.
31787         * modules/unistr/u8-strcmp: Likewise.
31788         * modules/unistr/u8-strcoll: Likewise.
31789         * modules/unistr/u8-strcpy: Likewise.
31790         * modules/unistr/u8-strcspn: Likewise.
31791         * modules/unistr/u8-strdup: Likewise.
31792         * modules/unistr/u8-strlen: Likewise.
31793         * modules/unistr/u8-strmblen: Likewise.
31794         * modules/unistr/u8-strmbtouc: Likewise.
31795         * modules/unistr/u8-strncat: Likewise.
31796         * modules/unistr/u8-strncmp: Likewise.
31797         * modules/unistr/u8-strncpy: Likewise.
31798         * modules/unistr/u8-strnlen: Likewise.
31799         * modules/unistr/u8-strpbrk: Likewise.
31800         * modules/unistr/u8-strrchr: Likewise.
31801         * modules/unistr/u8-strspn: Likewise.
31802         * modules/unistr/u8-strstr: Likewise.
31803         * modules/unistr/u8-strtok: Likewise.
31804         * modules/unistr/u8-to-u16: Likewise.
31805         * modules/unistr/u8-to-u32: Likewise.
31806         * modules/unistr/u8-uctomb: Likewise.
31807         * modules/unistr/u16-check: Likewise.
31808         * modules/unistr/u16-chr: Likewise.
31809         * modules/unistr/u16-cmp: Likewise.
31810         * modules/unistr/u16-cmp2: Likewise.
31811         * modules/unistr/u16-cpy: Likewise.
31812         * modules/unistr/u16-cpy-alloc: Likewise.
31813         * modules/unistr/u16-endswith: Likewise.
31814         * modules/unistr/u16-mblen: Likewise.
31815         * modules/unistr/u16-mbsnlen: Likewise.
31816         * modules/unistr/u16-mbtouc: Likewise.
31817         * modules/unistr/u16-mbtouc-unsafe: Likewise.
31818         * modules/unistr/u16-mbtoucr: Likewise.
31819         * modules/unistr/u16-move: Likewise.
31820         * modules/unistr/u16-next: Likewise.
31821         * modules/unistr/u16-prev: Likewise.
31822         * modules/unistr/u16-set: Likewise.
31823         * modules/unistr/u16-startswith: Likewise.
31824         * modules/unistr/u16-stpcpy: Likewise.
31825         * modules/unistr/u16-stpncpy: Likewise.
31826         * modules/unistr/u16-strcat: Likewise.
31827         * modules/unistr/u16-strchr: Likewise.
31828         * modules/unistr/u16-strcmp: Likewise.
31829         * modules/unistr/u16-strcoll: Likewise.
31830         * modules/unistr/u16-strcpy: Likewise.
31831         * modules/unistr/u16-strcspn: Likewise.
31832         * modules/unistr/u16-strdup: Likewise.
31833         * modules/unistr/u16-strlen: Likewise.
31834         * modules/unistr/u16-strmblen: Likewise.
31835         * modules/unistr/u16-strmbtouc: Likewise.
31836         * modules/unistr/u16-strncat: Likewise.
31837         * modules/unistr/u16-strncmp: Likewise.
31838         * modules/unistr/u16-strncpy: Likewise.
31839         * modules/unistr/u16-strnlen: Likewise.
31840         * modules/unistr/u16-strpbrk: Likewise.
31841         * modules/unistr/u16-strrchr: Likewise.
31842         * modules/unistr/u16-strspn: Likewise.
31843         * modules/unistr/u16-strstr: Likewise.
31844         * modules/unistr/u16-strtok: Likewise.
31845         * modules/unistr/u16-to-u32: Likewise.
31846         * modules/unistr/u16-to-u8: Likewise.
31847         * modules/unistr/u16-uctomb: Likewise.
31848         * modules/unistr/u32-check: Likewise.
31849         * modules/unistr/u32-chr: Likewise.
31850         * modules/unistr/u32-cmp: Likewise.
31851         * modules/unistr/u32-cmp2: Likewise.
31852         * modules/unistr/u32-cpy: Likewise.
31853         * modules/unistr/u32-cpy-alloc: Likewise.
31854         * modules/unistr/u32-endswith: Likewise.
31855         * modules/unistr/u32-mblen: Likewise.
31856         * modules/unistr/u32-mbsnlen: Likewise.
31857         * modules/unistr/u32-mbtouc: Likewise.
31858         * modules/unistr/u32-mbtouc-unsafe: Likewise.
31859         * modules/unistr/u32-mbtoucr: Likewise.
31860         * modules/unistr/u32-move: Likewise.
31861         * modules/unistr/u32-next: Likewise.
31862         * modules/unistr/u32-prev: Likewise.
31863         * modules/unistr/u32-set: Likewise.
31864         * modules/unistr/u32-startswith: Likewise.
31865         * modules/unistr/u32-stpcpy: Likewise.
31866         * modules/unistr/u32-stpncpy: Likewise.
31867         * modules/unistr/u32-strcat: Likewise.
31868         * modules/unistr/u32-strchr: Likewise.
31869         * modules/unistr/u32-strcmp: Likewise.
31870         * modules/unistr/u32-strcoll: Likewise.
31871         * modules/unistr/u32-strcpy: Likewise.
31872         * modules/unistr/u32-strcspn: Likewise.
31873         * modules/unistr/u32-strdup: Likewise.
31874         * modules/unistr/u32-strlen: Likewise.
31875         * modules/unistr/u32-strmblen: Likewise.
31876         * modules/unistr/u32-strmbtouc: Likewise.
31877         * modules/unistr/u32-strncat: Likewise.
31878         * modules/unistr/u32-strncmp: Likewise.
31879         * modules/unistr/u32-strncpy: Likewise.
31880         * modules/unistr/u32-strnlen: Likewise.
31881         * modules/unistr/u32-strpbrk: Likewise.
31882         * modules/unistr/u32-strrchr: Likewise.
31883         * modules/unistr/u32-strspn: Likewise.
31884         * modules/unistr/u32-strstr: Likewise.
31885         * modules/unistr/u32-strtok: Likewise.
31886         * modules/unistr/u32-to-u16: Likewise.
31887         * modules/unistr/u32-to-u8: Likewise.
31888         * modules/unistr/u32-uctomb: Likewise.
31889         * modules/uniwbrk/u8-wordbreaks: Likewise.
31890         * modules/uniwbrk/u16-wordbreaks: Likewise.
31891         * modules/uniwbrk/u32-wordbreaks: Likewise.
31892         * modules/uniwbrk/ulc-wordbreaks: Likewise.
31893         * modules/uniwbrk/wordbreak-property: Likewise.
31894         * modules/uniwidth/u8-strwidth: Likewise.
31895         * modules/uniwidth/u8-width: Likewise.
31896         * modules/uniwidth/u16-strwidth: Likewise.
31897         * modules/uniwidth/u16-width: Likewise.
31898         * modules/uniwidth/u32-strwidth: Likewise.
31899         * modules/uniwidth/u32-width: Likewise.
31900         * modules/uniwidth/width: Likewise.
31901         * modules/unicase/cased-tests (Makefile.am): Link all test programs
31902         with $(LIBUNISTRING).
31903         * modules/unicase/ignorable-tests: Likewise.
31904         * modules/unicase/locale-language-tests: Likewise.
31905         * modules/unicase/tolower-tests: Likewise.
31906         * modules/unicase/totitle-tests: Likewise.
31907         * modules/unicase/toupper-tests: Likewise.
31908         * modules/unicase/u8-casecmp-tests: Likewise.
31909         * modules/unicase/u8-casecoll-tests: Likewise.
31910         * modules/unicase/u8-casefold-tests: Likewise.
31911         * modules/unicase/u8-is-cased-tests: Likewise.
31912         * modules/unicase/u8-is-casefolded-tests: Likewise.
31913         * modules/unicase/u8-is-lowercase-tests: Likewise.
31914         * modules/unicase/u8-is-titlecase-tests: Likewise.
31915         * modules/unicase/u8-is-uppercase-tests: Likewise.
31916         * modules/unicase/u8-tolower-tests: Likewise.
31917         * modules/unicase/u8-totitle-tests: Likewise.
31918         * modules/unicase/u8-toupper-tests: Likewise.
31919         * modules/unicase/u16-casecmp-tests: Likewise.
31920         * modules/unicase/u16-casecoll-tests: Likewise.
31921         * modules/unicase/u16-casefold-tests: Likewise.
31922         * modules/unicase/u16-is-cased-tests: Likewise.
31923         * modules/unicase/u16-is-casefolded-tests: Likewise.
31924         * modules/unicase/u16-is-lowercase-tests: Likewise.
31925         * modules/unicase/u16-is-titlecase-tests: Likewise.
31926         * modules/unicase/u16-is-uppercase-tests: Likewise.
31927         * modules/unicase/u16-tolower-tests: Likewise.
31928         * modules/unicase/u16-totitle-tests: Likewise.
31929         * modules/unicase/u16-toupper-tests: Likewise.
31930         * modules/unicase/u32-casecmp-tests: Likewise.
31931         * modules/unicase/u32-casecoll-tests: Likewise.
31932         * modules/unicase/u32-casefold-tests: Likewise.
31933         * modules/unicase/u32-is-cased-tests: Likewise.
31934         * modules/unicase/u32-is-casefolded-tests: Likewise.
31935         * modules/unicase/u32-is-lowercase-tests: Likewise.
31936         * modules/unicase/u32-is-titlecase-tests: Likewise.
31937         * modules/unicase/u32-is-uppercase-tests: Likewise.
31938         * modules/unicase/u32-tolower-tests: Likewise.
31939         * modules/unicase/u32-totitle-tests: Likewise.
31940         * modules/unicase/u32-toupper-tests: Likewise.
31941         * modules/unicase/ulc-casecmp-tests: Likewise.
31942         * modules/unicase/ulc-casecoll-tests: Likewise.
31943         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
31944         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
31945         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
31946         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
31947         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
31948         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
31949         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
31950         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
31951         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
31952         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
31953         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
31954         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
31955         * modules/unictype/bidicategory-byname-tests: Likewise.
31956         * modules/unictype/bidicategory-name-tests: Likewise.
31957         * modules/unictype/bidicategory-of-tests: Likewise.
31958         * modules/unictype/bidicategory-test-tests: Likewise.
31959         * modules/unictype/block-list-tests: Likewise.
31960         * modules/unictype/block-of-tests: Likewise.
31961         * modules/unictype/block-test-tests: Likewise.
31962         * modules/unictype/category-C-tests: Likewise.
31963         * modules/unictype/category-Cc-tests: Likewise.
31964         * modules/unictype/category-Cf-tests: Likewise.
31965         * modules/unictype/category-Cn-tests: Likewise.
31966         * modules/unictype/category-Co-tests: Likewise.
31967         * modules/unictype/category-Cs-tests: Likewise.
31968         * modules/unictype/category-L-tests: Likewise.
31969         * modules/unictype/category-Ll-tests: Likewise.
31970         * modules/unictype/category-Lm-tests: Likewise.
31971         * modules/unictype/category-Lo-tests: Likewise.
31972         * modules/unictype/category-Lt-tests: Likewise.
31973         * modules/unictype/category-Lu-tests: Likewise.
31974         * modules/unictype/category-M-tests: Likewise.
31975         * modules/unictype/category-Mc-tests: Likewise.
31976         * modules/unictype/category-Me-tests: Likewise.
31977         * modules/unictype/category-Mn-tests: Likewise.
31978         * modules/unictype/category-N-tests: Likewise.
31979         * modules/unictype/category-Nd-tests: Likewise.
31980         * modules/unictype/category-Nl-tests: Likewise.
31981         * modules/unictype/category-No-tests: Likewise.
31982         * modules/unictype/category-P-tests: Likewise.
31983         * modules/unictype/category-Pc-tests: Likewise.
31984         * modules/unictype/category-Pd-tests: Likewise.
31985         * modules/unictype/category-Pe-tests: Likewise.
31986         * modules/unictype/category-Pf-tests: Likewise.
31987         * modules/unictype/category-Pi-tests: Likewise.
31988         * modules/unictype/category-Po-tests: Likewise.
31989         * modules/unictype/category-Ps-tests: Likewise.
31990         * modules/unictype/category-S-tests: Likewise.
31991         * modules/unictype/category-Sc-tests: Likewise.
31992         * modules/unictype/category-Sk-tests: Likewise.
31993         * modules/unictype/category-Sm-tests: Likewise.
31994         * modules/unictype/category-So-tests: Likewise.
31995         * modules/unictype/category-Z-tests: Likewise.
31996         * modules/unictype/category-Zl-tests: Likewise.
31997         * modules/unictype/category-Zp-tests: Likewise.
31998         * modules/unictype/category-Zs-tests: Likewise.
31999         * modules/unictype/category-and-not-tests: Likewise.
32000         * modules/unictype/category-and-tests: Likewise.
32001         * modules/unictype/category-byname-tests: Likewise.
32002         * modules/unictype/category-name-tests: Likewise.
32003         * modules/unictype/category-none-tests: Likewise.
32004         * modules/unictype/category-of-tests: Likewise.
32005         * modules/unictype/category-or-tests: Likewise.
32006         * modules/unictype/category-test-withtable-tests: Likewise.
32007         * modules/unictype/combining-class-tests: Likewise.
32008         * modules/unictype/ctype-alnum-tests: Likewise.
32009         * modules/unictype/ctype-alpha-tests: Likewise.
32010         * modules/unictype/ctype-blank-tests: Likewise.
32011         * modules/unictype/ctype-cntrl-tests: Likewise.
32012         * modules/unictype/ctype-digit-tests: Likewise.
32013         * modules/unictype/ctype-graph-tests: Likewise.
32014         * modules/unictype/ctype-lower-tests: Likewise.
32015         * modules/unictype/ctype-print-tests: Likewise.
32016         * modules/unictype/ctype-punct-tests: Likewise.
32017         * modules/unictype/ctype-space-tests: Likewise.
32018         * modules/unictype/ctype-upper-tests: Likewise.
32019         * modules/unictype/ctype-xdigit-tests: Likewise.
32020         * modules/unictype/decimal-digit-tests: Likewise.
32021         * modules/unictype/digit-tests: Likewise.
32022         * modules/unictype/mirror-tests: Likewise.
32023         * modules/unictype/numeric-tests: Likewise.
32024         * modules/unictype/property-alphabetic-tests: Likewise.
32025         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
32026         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
32027         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
32028         * modules/unictype/property-bidi-block-separator-tests: Likewise.
32029         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
32030         * modules/unictype/property-bidi-common-separator-tests: Likewise.
32031         * modules/unictype/property-bidi-control-tests: Likewise.
32032         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
32033         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
32034         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
32035         * modules/unictype/property-bidi-european-digit-tests: Likewise.
32036         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
32037         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
32038         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
32039         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
32040         * modules/unictype/property-bidi-pdf-tests: Likewise.
32041         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
32042         * modules/unictype/property-bidi-whitespace-tests: Likewise.
32043         * modules/unictype/property-byname-tests: Likewise.
32044         * modules/unictype/property-combining-tests: Likewise.
32045         * modules/unictype/property-composite-tests: Likewise.
32046         * modules/unictype/property-currency-symbol-tests: Likewise.
32047         * modules/unictype/property-dash-tests: Likewise.
32048         * modules/unictype/property-decimal-digit-tests: Likewise.
32049         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
32050         * modules/unictype/property-deprecated-tests: Likewise.
32051         * modules/unictype/property-diacritic-tests: Likewise.
32052         * modules/unictype/property-extender-tests: Likewise.
32053         * modules/unictype/property-format-control-tests: Likewise.
32054         * modules/unictype/property-grapheme-base-tests: Likewise.
32055         * modules/unictype/property-grapheme-extend-tests: Likewise.
32056         * modules/unictype/property-grapheme-link-tests: Likewise.
32057         * modules/unictype/property-hex-digit-tests: Likewise.
32058         * modules/unictype/property-hyphen-tests: Likewise.
32059         * modules/unictype/property-id-continue-tests: Likewise.
32060         * modules/unictype/property-id-start-tests: Likewise.
32061         * modules/unictype/property-ideographic-tests: Likewise.
32062         * modules/unictype/property-ids-binary-operator-tests: Likewise.
32063         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
32064         * modules/unictype/property-ignorable-control-tests: Likewise.
32065         * modules/unictype/property-iso-control-tests: Likewise.
32066         * modules/unictype/property-join-control-tests: Likewise.
32067         * modules/unictype/property-left-of-pair-tests: Likewise.
32068         * modules/unictype/property-line-separator-tests: Likewise.
32069         * modules/unictype/property-logical-order-exception-tests: Likewise.
32070         * modules/unictype/property-lowercase-tests: Likewise.
32071         * modules/unictype/property-math-tests: Likewise.
32072         * modules/unictype/property-non-break-tests: Likewise.
32073         * modules/unictype/property-not-a-character-tests: Likewise.
32074         * modules/unictype/property-numeric-tests: Likewise.
32075         * modules/unictype/property-other-alphabetic-tests: Likewise.
32076         * modules/unictype/property-other-default-ignorable-code-point-tests:
32077         Likewise.
32078         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
32079         * modules/unictype/property-other-id-continue-tests: Likewise.
32080         * modules/unictype/property-other-id-start-tests: Likewise.
32081         * modules/unictype/property-other-lowercase-tests: Likewise.
32082         * modules/unictype/property-other-math-tests: Likewise.
32083         * modules/unictype/property-other-uppercase-tests: Likewise.
32084         * modules/unictype/property-paired-punctuation-tests: Likewise.
32085         * modules/unictype/property-paragraph-separator-tests: Likewise.
32086         * modules/unictype/property-pattern-syntax-tests: Likewise.
32087         * modules/unictype/property-pattern-white-space-tests: Likewise.
32088         * modules/unictype/property-private-use-tests: Likewise.
32089         * modules/unictype/property-punctuation-tests: Likewise.
32090         * modules/unictype/property-quotation-mark-tests: Likewise.
32091         * modules/unictype/property-radical-tests: Likewise.
32092         * modules/unictype/property-sentence-terminal-tests: Likewise.
32093         * modules/unictype/property-soft-dotted-tests: Likewise.
32094         * modules/unictype/property-space-tests: Likewise.
32095         * modules/unictype/property-terminal-punctuation-tests: Likewise.
32096         * modules/unictype/property-test-tests: Likewise.
32097         * modules/unictype/property-titlecase-tests: Likewise.
32098         * modules/unictype/property-unassigned-code-value-tests: Likewise.
32099         * modules/unictype/property-unified-ideograph-tests: Likewise.
32100         * modules/unictype/property-uppercase-tests: Likewise.
32101         * modules/unictype/property-variation-selector-tests: Likewise.
32102         * modules/unictype/property-white-space-tests: Likewise.
32103         * modules/unictype/property-xid-continue-tests: Likewise.
32104         * modules/unictype/property-xid-start-tests: Likewise.
32105         * modules/unictype/property-zero-width-tests: Likewise.
32106         * modules/unictype/scripts-tests: Likewise.
32107         * modules/unictype/syntax-c-ident-tests: Likewise.
32108         * modules/unictype/syntax-c-whitespace-tests: Likewise.
32109         * modules/unictype/syntax-java-ident-tests: Likewise.
32110         * modules/unictype/syntax-java-whitespace-tests: Likewise.
32111         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
32112         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
32113         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
32114         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
32115         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
32116         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
32117         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
32118         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
32119         * modules/uniname/uniname-tests: Likewise.
32120         * modules/uninorm/canonical-decomposition-tests: Likewise.
32121         * modules/uninorm/compat-decomposition-tests: Likewise.
32122         * modules/uninorm/composition-tests: Likewise.
32123         * modules/uninorm/decomposing-form-tests: Likewise.
32124         * modules/uninorm/decomposition-tests: Likewise.
32125         * modules/uninorm/filter-tests: Likewise.
32126         * modules/uninorm/nfc-tests: Likewise.
32127         * modules/uninorm/nfd-tests: Likewise.
32128         * modules/uninorm/nfkc-tests: Likewise.
32129         * modules/uninorm/nfkd-tests: Likewise.
32130         * modules/uninorm/u8-normcmp-tests: Likewise.
32131         * modules/uninorm/u8-normcoll-tests: Likewise.
32132         * modules/uninorm/u16-normcmp-tests: Likewise.
32133         * modules/uninorm/u16-normcoll-tests: Likewise.
32134         * modules/uninorm/u32-normcmp-tests: Likewise.
32135         * modules/uninorm/u32-normcoll-tests: Likewise.
32136         * modules/unistdio/u8-asnprintf-tests: Likewise.
32137         * modules/unistdio/u8-vasnprintf-tests: Likewise.
32138         * modules/unistdio/u8-vasprintf-tests: Likewise.
32139         * modules/unistdio/u8-vsnprintf-tests: Likewise.
32140         * modules/unistdio/u8-vsprintf-tests: Likewise.
32141         * modules/unistdio/u16-asnprintf-tests: Likewise.
32142         * modules/unistdio/u16-vasnprintf-tests: Likewise.
32143         * modules/unistdio/u16-vasprintf-tests: Likewise.
32144         * modules/unistdio/u16-vsnprintf-tests: Likewise.
32145         * modules/unistdio/u16-vsprintf-tests: Likewise.
32146         * modules/unistdio/u32-asnprintf-tests: Likewise.
32147         * modules/unistdio/u32-vasnprintf-tests: Likewise.
32148         * modules/unistdio/u32-vasprintf-tests: Likewise.
32149         * modules/unistdio/u32-vsnprintf-tests: Likewise.
32150         * modules/unistdio/u32-vsprintf-tests: Likewise.
32151         * modules/unistdio/ulc-asnprintf-tests: Likewise.
32152         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
32153         * modules/unistdio/ulc-vasprintf-tests: Likewise.
32154         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
32155         * modules/unistdio/ulc-vsprintf-tests: Likewise.
32156         * modules/unistr/u8-check-tests: Likewise.
32157         * modules/unistr/u8-chr-tests: Likewise.
32158         * modules/unistr/u8-cmp-tests: Likewise.
32159         * modules/unistr/u8-cmp2-tests: Likewise.
32160         * modules/unistr/u8-cpy-alloc-tests: Likewise.
32161         * modules/unistr/u8-cpy-tests: Likewise.
32162         * modules/unistr/u8-mblen-tests: Likewise.
32163         * modules/unistr/u8-mbsnlen-tests: Likewise.
32164         * modules/unistr/u8-mbtouc-tests: Likewise.
32165         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
32166         * modules/unistr/u8-mbtoucr-tests: Likewise.
32167         * modules/unistr/u8-move-tests: Likewise.
32168         * modules/unistr/u8-next-tests: Likewise.
32169         * modules/unistr/u8-prev-tests: Likewise.
32170         * modules/unistr/u8-set-tests: Likewise.
32171         * modules/unistr/u8-stpcpy-tests: Likewise.
32172         * modules/unistr/u8-stpncpy-tests: Likewise.
32173         * modules/unistr/u8-strcat-tests: Likewise.
32174         * modules/unistr/u8-strcmp-tests: Likewise.
32175         * modules/unistr/u8-strcoll-tests: Likewise.
32176         * modules/unistr/u8-strcpy-tests: Likewise.
32177         * modules/unistr/u8-strdup-tests: Likewise.
32178         * modules/unistr/u8-strlen-tests: Likewise.
32179         * modules/unistr/u8-strmblen-tests: Likewise.
32180         * modules/unistr/u8-strmbtouc-tests: Likewise.
32181         * modules/unistr/u8-strncat-tests: Likewise.
32182         * modules/unistr/u8-strncmp-tests: Likewise.
32183         * modules/unistr/u8-strncpy-tests: Likewise.
32184         * modules/unistr/u8-strnlen-tests: Likewise.
32185         * modules/unistr/u8-to-u16-tests: Likewise.
32186         * modules/unistr/u8-to-u32-tests: Likewise.
32187         * modules/unistr/u8-uctomb-tests: Likewise.
32188         * modules/unistr/u16-check-tests: Likewise.
32189         * modules/unistr/u16-chr-tests: Likewise.
32190         * modules/unistr/u16-cmp-tests: Likewise.
32191         * modules/unistr/u16-cmp2-tests: Likewise.
32192         * modules/unistr/u16-cpy-alloc-tests: Likewise.
32193         * modules/unistr/u16-cpy-tests: Likewise.
32194         * modules/unistr/u16-mblen-tests: Likewise.
32195         * modules/unistr/u16-mbsnlen-tests: Likewise.
32196         * modules/unistr/u16-mbtouc-tests: Likewise.
32197         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
32198         * modules/unistr/u16-mbtoucr-tests: Likewise.
32199         * modules/unistr/u16-move-tests: Likewise.
32200         * modules/unistr/u16-next-tests: Likewise.
32201         * modules/unistr/u16-prev-tests: Likewise.
32202         * modules/unistr/u16-set-tests: Likewise.
32203         * modules/unistr/u16-stpcpy-tests: Likewise.
32204         * modules/unistr/u16-stpncpy-tests: Likewise.
32205         * modules/unistr/u16-strcat-tests: Likewise.
32206         * modules/unistr/u16-strcmp-tests: Likewise.
32207         * modules/unistr/u16-strcoll-tests: Likewise.
32208         * modules/unistr/u16-strcpy-tests: Likewise.
32209         * modules/unistr/u16-strdup-tests: Likewise.
32210         * modules/unistr/u16-strlen-tests: Likewise.
32211         * modules/unistr/u16-strmblen-tests: Likewise.
32212         * modules/unistr/u16-strmbtouc-tests: Likewise.
32213         * modules/unistr/u16-strncat-tests: Likewise.
32214         * modules/unistr/u16-strncmp-tests: Likewise.
32215         * modules/unistr/u16-strncpy-tests: Likewise.
32216         * modules/unistr/u16-strnlen-tests: Likewise.
32217         * modules/unistr/u16-to-u32-tests: Likewise.
32218         * modules/unistr/u16-to-u8-tests: Likewise.
32219         * modules/unistr/u16-uctomb-tests: Likewise.
32220         * modules/unistr/u32-check-tests: Likewise.
32221         * modules/unistr/u32-chr-tests: Likewise.
32222         * modules/unistr/u32-cmp-tests: Likewise.
32223         * modules/unistr/u32-cmp2-tests: Likewise.
32224         * modules/unistr/u32-cpy-alloc-tests: Likewise.
32225         * modules/unistr/u32-cpy-tests: Likewise.
32226         * modules/unistr/u32-mblen-tests: Likewise.
32227         * modules/unistr/u32-mbsnlen-tests: Likewise.
32228         * modules/unistr/u32-mbtouc-tests: Likewise.
32229         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
32230         * modules/unistr/u32-mbtoucr-tests: Likewise.
32231         * modules/unistr/u32-move-tests: Likewise.
32232         * modules/unistr/u32-next-tests: Likewise.
32233         * modules/unistr/u32-prev-tests: Likewise.
32234         * modules/unistr/u32-set-tests: Likewise.
32235         * modules/unistr/u32-stpcpy-tests: Likewise.
32236         * modules/unistr/u32-stpncpy-tests: Likewise.
32237         * modules/unistr/u32-strcat-tests: Likewise.
32238         * modules/unistr/u32-strcmp-tests: Likewise.
32239         * modules/unistr/u32-strcoll-tests: Likewise.
32240         * modules/unistr/u32-strcpy-tests: Likewise.
32241         * modules/unistr/u32-strdup-tests: Likewise.
32242         * modules/unistr/u32-strlen-tests: Likewise.
32243         * modules/unistr/u32-strmblen-tests: Likewise.
32244         * modules/unistr/u32-strmbtouc-tests: Likewise.
32245         * modules/unistr/u32-strncat-tests: Likewise.
32246         * modules/unistr/u32-strncmp-tests: Likewise.
32247         * modules/unistr/u32-strncpy-tests: Likewise.
32248         * modules/unistr/u32-strnlen-tests: Likewise.
32249         * modules/unistr/u32-to-u16-tests: Likewise.
32250         * modules/unistr/u32-to-u8-tests: Likewise.
32251         * modules/unistr/u32-uctomb-tests: Likewise.
32252         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
32253         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
32254         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
32255         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
32256         * modules/uniwidth/u8-strwidth-tests: Likewise.
32257         * modules/uniwidth/u8-width-tests: Likewise.
32258         * modules/uniwidth/u16-strwidth-tests: Likewise.
32259         * modules/uniwidth/u16-width-tests: Likewise.
32260         * modules/uniwidth/u32-strwidth-tests: Likewise.
32261         * modules/uniwidth/u32-width-tests: Likewise.
32262         * modules/uniwidth/width-tests: Likewise.
32263
32264 2010-05-18  Richard Jones  <rjones@redhat.com>
32265
32266         doc: users.txt: list hivex
32267         * users.txt: Add hivex.
32268
32269 2010-05-18  Richard Jones  <rjones@redhat.com>
32270
32271         doc: users.txt: list febootstrap
32272         * users.txt: Add febootstrap.
32273
32274 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
32275
32276         bootstrap: fix an error when gnulib is not used as a git submodule
32277         * build-aux/bootstrap (gnulib_path): If its length is zero then
32278         assign "gnulib" to it.
32279         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
32280
32281 2010-05-16  Bruno Haible  <bruno@clisp.org>
32282
32283         Avoid autoconf warnings about AM_ICONV.
32284         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
32285         2.64.
32286
32287 2010-05-16  Bruno Haible  <bruno@clisp.org>
32288
32289         absolute-header: Make the macro usable in more situations.
32290         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
32291         from gl_ABSOLUTE_HEADER.
32292         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
32293
32294 2010-05-16  James Youngman  <jay@gnu.org>
32295
32296         doc: update users.txt
32297         * users.txt: Add CSSC.
32298
32299 2010-05-16  Jim Meyering  <meyering@redhat.com>
32300
32301         init.sh: fix an error in the previous change; add more comments
32302         * tests/init.sh: Compare exit code in loop against 9, not 2.
32303         Patch by Bruno Haible.
32304         Make the two tests more similar by adding an empty "then" clause.
32305         Add comments.
32306
32307         init.sh: avoid unnecessary shell re-exec
32308         * tests/init.sh: Improve the re-exec-required check to first test the
32309         current shell.  If it passes the test, do not search for a shell that
32310         does pass, and do not re-exec.  This test is particularly contorted to
32311         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
32312         of $(...) evokes a syntax error and causes immediate shell exit with
32313         status 2.  Bruno Haible reported that the re-exec made it impossible
32314         to single-step through any init.sh-using script.
32315
32316 2010-05-16  Bruno Haible  <bruno@clisp.org>
32317
32318         Fix collision between gnulib's and libintl's printf replacements.
32319         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
32320         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
32321         (printf): When using GNU C, map the __printf__ function to rpl_printf
32322         via __asm__. When not using GNU C, define rpl_printf instead of
32323         __printf__.
32324         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
32325         commit.
32326         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
32327         commit.
32328         * m4/asm-underscore.m4: New file.
32329         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
32330         * modules/stdio (Files): Add m4/asm-underscore.m4.
32331         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
32332         Reported by Ben Pfaff.
32333
32334 2010-05-16  Bruno Haible  <bruno@clisp.org>
32335
32336         verify: Avoid skipping the test on openSUSE 11.0.
32337         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
32338
32339 2010-05-13  Bruno Haible  <bruno@clisp.org>
32340
32341         Avoid useless warnings from G++.
32342         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
32343         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
32344         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32345
32346 2010-05-11  Jim Meyering  <meyering@redhat.com>
32347
32348         maint.mk: tweak preceding change
32349         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
32350         regexps tighter by anchoring at EOL, and make the new group "shy"
32351         for slightly decreased overhead.
32352
32353 2010-05-11  Eric Blake  <eblake@redhat.com>
32354
32355         maint.mk: gnulib doesn't guarantee NSIG
32356         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
32357
32358 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32359
32360         test-pwrite.c: Remove unused variable declaration.
32361         * tests/test-pwrite.c (main): Remove read_buf declaration.
32362
32363         Remove useless test-pwrite.sh file.
32364         * tests/test-pwrite.sh: Delete file.
32365         * modules/pwrite-tests: Remove references.
32366         Reported by Bruno Haible.
32367
32368 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32369
32370         init.sh: fix a typo
32371         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
32372
32373 2010-05-10  Jim Meyering  <meyering@redhat.com>
32374
32375         maint.mk: avoid using a temporary file in the always-defined-macros check
32376         * top/maint.mk (.re-defmac): Remove rule.
32377         (gl_trap_): Remove definition.
32378         (sc_prohibit_always-defined_macros): Rewrite not to create and
32379         depend on a temporary file.  Instead, depend on GNU grep's ability
32380         to read a list of regular expressions from stdin when given "-f -".
32381
32382 2010-05-09  Bruno Haible  <bruno@clisp.org>
32383
32384         Update to GNU gettext 0.18, part 1.
32385         * m4/gettext.m4: Update to GNU gettext 0.18.
32386         * m4/intl.m4: Likewise.
32387         * m4/po.m4: Likewise.
32388         * modules/gettext (Files): Add m4/fcntl-o.m4.
32389         (configure.ac): Require gettext infrastructure from version 0.18.
32390
32391 2010-05-09  Jim Meyering  <meyering@redhat.com>
32392
32393         init.sh: enable MALLOC_PERTURB_
32394         * tests/init.sh: Enable glibc's malloc-perturbing option.
32395
32396         maint.mk: improve sc_cross_check_PATH_usage_in_tests
32397         With my recent change in init.sh from the two-line form:
32398             -#   : ${srcdir=.}
32399             -#   . "$srcdir/init.sh"; path_prepend_ .
32400             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
32401         I noticed that using the one-line form would cause this test
32402         to fail with a false-positive, or to stop working altogether,
32403         depending on whether help-version changed or all the tests did.
32404         * top/maint.mk (_hv_regex): Remove this definition.
32405         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
32406         (_hv_regex_strong): Use a stronger regex to check for conformance.
32407         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
32408         Give a separate diagnostic for lack of conforming use.
32409
32410         maint.mk: prohibit definition of symbols defined by gnulib
32411         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
32412         definition of symbols defined by gnulib.
32413
32414 2010-05-09  Bruno Haible  <bruno@clisp.org>
32415
32416         acl: Avoid test failure on Cygwin-hosted mingw.
32417         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
32418
32419 2010-05-09  Bruno Haible  <bruno@clisp.org>
32420
32421         error: Use system's fcntl function.
32422         * lib/error.c (fcntl): Undefine.
32423
32424 2010-05-09  Jim Meyering  <meyering@redhat.com>
32425
32426         verify: adjust formatting to be more consistent
32427         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
32428         argument-list '('s, and after one comma.
32429
32430 2010-05-09  Bruno Haible  <bruno@clisp.org>
32431
32432         error: More reliable output on mingw.
32433         * lib/error.c: Include <windows.h>.
32434         (is_open): New function.
32435         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
32436         defined.
32437
32438 2010-05-09  Bruno Haible  <bruno@clisp.org>
32439
32440         vasnprintf: Fix syntax errors in libintl build on mingw.
32441         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
32442         pad_ourselves and prec_ourselves after use.
32443
32444 2010-05-08  Bruno Haible  <bruno@clisp.org>
32445
32446         * lib/config.charset: Update comments for Cygwin 1.7.
32447         * lib/localcharset.c: Likewise.
32448
32449 2010-05-07  Jim Meyering  <meyering@redhat.com>
32450
32451         init.sh: improve comments
32452         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
32453         . "${srcdir=.}/init.sh"; path_prepend_ .
32454         Add a note about path_prepend_ and the alternative of using
32455         TESTS_ENVIRONMENT.
32456
32457 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32458
32459         exclude: Unescape hashed patterns in wildcard mode.
32460         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
32461         to the hash list.
32462         * tests/test-exclude8.sh: New test case.
32463         * modules/exclude-tests: Add new test.
32464
32465 2010-05-05  Eric Blake  <eblake@redhat.com>
32466
32467         verify: automate tests
32468         * modules/verify-tests: New module.
32469         * tests/test-verify.sh: New file.
32470         * tests/test-verify.c: Guard each negative test with a unique id.
32471         Also avoid warning about unused left hand of comma expressions.
32472
32473 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
32474
32475         Further improvements to verify.h, suggested by Eric Blake.
32476         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
32477         the GL_* versions, to avoid collision with OpenGL.
32478         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
32479         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
32480         than testing merely whether it's defined.
32481
32482         Modify verify.h to pacify gcc -Wredundant_decls.
32483         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
32484         These use the prefix "GL_" since they're likely to be useful elsewhere.
32485         We may need to break them out into a different .h file.
32486         (__COUNTER__): Define to 0 if the compiler doesn't support it.
32487         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
32488         of verify_function__.
32489
32490 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32491
32492         Tests for module pwrite.
32493         * modules/pwrite-tests: New file.
32494         * tests/test-pwrite.sh: New file.
32495         * tests/test-pwrite.c: New file.
32496
32497         New module pwrite.
32498         * lib/unistd.in.h (pwrite): New declaration.
32499         * lib/pwrite.c: New file, from glibc with modifications.
32500         * m4/pwrite.m4: New file.
32501         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
32502         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
32503         REPLACE_PWRITE.
32504         * modules/pwrite: New file.
32505         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
32506         REPLACE_PWRITE.
32507         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
32508         * doc/posix-functions/pwrite.texi: Mention the new module.
32509
32510 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32511
32512         pread: Update documentation.
32513         * doc/posix-functions/pread.texi: Mention the 'pread' module.
32514
32515 2010-05-04  Eric Blake  <eblake@redhat.com>
32516
32517         docs: update cygwin progress
32518         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
32519         this bug.
32520         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
32521         Added in cygwin 1.7.2.
32522         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
32523         Likewise.
32524         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
32525         Likewise.
32526         * doc/glibc-functions/dup3.texi (dup3): Likewise.
32527         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
32528         * doc/glibc-functions/accept4.texi (accept4): Likewise.
32529         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
32530         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
32531         Mention nproc module.
32532         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
32533         bug in cygwin 1.7.5 addition.
32534         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
32535         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
32536         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
32537         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
32538         1.7.5.
32539         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
32540         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
32541         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
32542         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
32543         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
32544         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
32545         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
32546         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
32547         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
32548         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
32549         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
32550         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
32551         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
32552         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
32553         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
32554         Likewise.
32555         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
32556         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
32557         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
32558         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
32559         Likewise.
32560         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
32561         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
32562         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
32563         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
32564         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
32565         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
32566         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
32567         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
32568         Likewise.
32569         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
32570         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
32571         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
32572         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
32573         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
32574         Likewise.
32575         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
32576         Likewise.
32577         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
32578         Likewise.
32579         * doc/glibc-functions/xdrrec_endofrecord.texi
32580         (xdrrec_endofrecord): Likewise.
32581         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
32582         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
32583         Likewise.
32584         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
32585         Likewise.
32586
32587 2010-05-04  Jim Meyering  <meyering@redhat.com>
32588
32589         gendocs.sh: make its "-s FILE" option more useful
32590         * build-aux/gendocs.sh: When honoring the -s FILE option, update
32591         $PACKAGE to reflect the probably-different basename of "FILE".
32592
32593 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
32594
32595         bootstrap: don't ignore download_po_files failure
32596         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
32597         failure.
32598
32599 2010-05-03  Jim Meyering  <meyering@redhat.com>
32600
32601         maint.mk: allow to pass options to gendocs.sh
32602         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
32603         (gendocs_options_): New overridable variable.
32604
32605         gnu-web-doc-update: don't ignore configure or build failure
32606         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
32607
32608         announce-gen: backslash-escape '@'s in --help output
32609         * build-aux/announce-gen: Fix syntax errors.
32610
32611         maint.mk, announce-gen: allow project-specific announcement mail headers
32612         * top/maint.mk (translation_project_): Define default.
32613         (announcement_Cc_, announcement_mail_headers_): Likewise.
32614         (announcement): Invoke announce-gen with new --mail-headers option.
32615         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
32616
32617         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
32618         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
32619         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
32620         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
32621         line in the "err2" output file when running "make check" in verbose
32622         mode (i.e., with set -x enabled).
32623
32624 2010-05-03  Bruno Haible  <bruno@clisp.org>
32625
32626         wctob: Fix for weird platforms.
32627         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
32628         argument value.
32629
32630 2010-05-03  Jim Meyering  <meyering@redhat.com>
32631
32632         maint.mk: prohibit unwarranted use of <strings.h>
32633         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
32634         strings.h in a file that does not also use strcasecmp, strncasecmp,
32635         ffs or ffsll.
32636
32637         maint.mk: remove obsolete comments
32638         * top/maint.mk: Remove stale, commented-out rules.
32639
32640 2010-05-02  Bruno Haible  <bruno@clisp.org>
32641
32642         wcwidth: Declare also when it's aliased.
32643         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
32644         macro.
32645
32646 2010-05-02  Bruno Haible  <bruno@clisp.org>
32647
32648         Fix regression from 2010-04-25.
32649         * gnulib-tool (func_modules_transitive_closure): Check the status of
32650         all modules, not only of the tests that are of the form foo-tests where
32651         foo is a module.
32652
32653 2010-05-02  Bruno Haible  <bruno@clisp.org>
32654
32655         wctob: Work around nasty Cygwin 1.7.2 bug.
32656         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
32657         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
32658
32659 2010-05-01  Bruno Haible  <bruno@clisp.org>
32660
32661         fpurge: Sharper test.
32662         * tests/test-fpurge.c (main): Add one more ftell check.
32663         * modules/fpurge-tests (Depends-on): Add ftell.
32664         Suggested by Eric Blake.
32665
32666 2010-05-01  Bruno Haible  <bruno@clisp.org>
32667
32668         ftello: Another test.
32669         * tests/test-ftello3.c: New file.
32670         * modules/ftello-tests (Files): Add it.
32671         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32672         MOSTLYCLEANFILES.
32673
32674         ftell: Another test.
32675         * tests/test-ftell3.c: New file.
32676         * modules/ftell-tests (Files): Add it.
32677         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32678         MOSTLYCLEANFILES.
32679
32680 2010-05-01  Bruno Haible  <bruno@clisp.org>
32681
32682         ftell, ftello: Work around Solaris bug.
32683         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
32684         * lib/ftello.c: Include stdio-impl.h.
32685         (ftello): On Solaris, when _IOWRT is set, compute the result without
32686         looking at _IOREAD.
32687         * modules/ftello (Files): Add lib/stdio-impl.h.
32688         * doc/posix-functions/ftell.texi: Mention Solaris bug.
32689         * doc/posix-functions/ftello.texi: Likewise.
32690         Reported by Eric Blake.
32691
32692 2010-05-01  Bruno Haible  <bruno@clisp.org>
32693
32694         freading: Adapt to special meaning of _IOREAD flag on Solaris.
32695         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
32696         the _IOWRT flag is also set.
32697
32698 2010-05-01  Bruno Haible  <bruno@clisp.org>
32699
32700         Fix doc about a HP-UX stdio bug.
32701         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
32702         * doc/posix-functions/ftello.texi: Likewise.
32703
32704 2010-05-01  Bruno Haible  <bruno@clisp.org>
32705
32706         lseek test: Fix failure on Solaris.
32707         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
32708         output.
32709
32710 2010-04-30  Jim Meyering  <meyering@redhat.com>
32711
32712         bootstrap: don't ignore failure to generate po*/Makevars
32713         * build-aux/bootstrap (with_gettext): Don't ignore failure
32714         to create po/Makevars or runtime-po/Makevars.
32715
32716 2010-04-29  Eric Blake  <eblake@redhat.com>
32717
32718         headers: relax license to LGPLv2+
32719         * modules/fcntl-h (License): Relax license.
32720         * modules/getopt-posix (License): Likewise.
32721         * modules/locale (License): Likewise.
32722         * modules/math (License): Likewise.
32723         * modules/pty (License): Likewise.
32724         * modules/sched (License): Likewise.
32725         * modules/search (License): Likewise.
32726         * modules/spawn (License): Likewise.
32727         * modules/stdarg (License): Likewise.
32728         * modules/sysexits (License): Likewise.
32729
32730 2010-04-29  Jim Meyering  <meyering@redhat.com>
32731
32732         inttypes: relax license to LGPLv2+
32733         * modules/inttypes (License): Relax license.
32734
32735 2010-04-29  Simon Josefsson  <simon@josefsson.org>
32736
32737         * top/maint.mk (indent): Run twice to produce idempotent results.
32738
32739 2010-04-28  Bruno Haible  <bruno@clisp.org>
32740
32741         getdate: Generate getdate.c in the source directory.
32742         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
32743         MOSTLYCLEANFILES.
32744         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
32745
32746 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
32747
32748         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
32749         is not declared as a const *; avoid warnings in that case.
32750
32751 2010-04-28  Eric Blake  <eblake@redhat.com>
32752
32753         canonicalize-lgpl: avoid compiler warning
32754         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
32755         declaration' / 'extraneous semicolon' warning with some compilers.
32756         Reported by Andreas Gruenbacher.
32757
32758 2010-04-28  Jim Meyering  <meyering@redhat.com>
32759
32760         init.sh: ensure a more reliable exit status when exiting via trap
32761         * tests/init.sh (setup_): Don't rely on $? in signal handler.
32762         Inspired by patches from Dmitry V. Levin.
32763         Also trap on signal 3 (SIGQUIT).
32764
32765 2010-04-27  Bruno Haible  <bruno@clisp.org>
32766
32767         Update doc about utimes().
32768         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
32769         'utimens' module.
32770         Reported by Andreas Gruenbacher <agruen@suse.de>.
32771
32772 2010-04-27  Eric Blake  <eblake@redhat.com>
32773
32774         full-read, full-write: relax license
32775         * modules/full-read (License): Drop to LGPLv2+.
32776         * modules/full-write (License): Likewise.
32777         * modules/safe-read (License): Likewise.
32778         * modules/safe-write (License): Likewise.
32779
32780         pthread: mention library for linking
32781         * modules/pthread (Link): Mention $(LIB_PTHREAD).
32782
32783 2010-04-27  Jim Meyering  <meyering@redhat.com>
32784
32785         maint.mk: fix a bug introduced in last change
32786         * top/maint.mk (gl_assured_headers_): Now that all names are on
32787         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
32788         is not anchored to end of word, it should be adequate.
32789
32790         maint.mk: avoid side-effect in latest syntax-check
32791         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
32792         to run commands via $(shell...), and hence to incur cost only when
32793         the new rule is actually run.
32794
32795         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
32796         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
32797         and use that to create a regexp used to detect all #if HAVE_..._H uses.
32798         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
32799         (gl_assured_headers_, az_, AZ_): Define.
32800         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
32801
32802 2010-04-26  Jim Meyering  <jim@meyering.net>
32803             Bruno Haible  <bruno@clisp.org>
32804
32805         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
32806         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
32807         Prompted by an exchange with Gilles Espinasse.
32808
32809 2010-04-26  Jim Meyering  <meyering@redhat.com>
32810
32811         git-version-gen: aesthetic tweak
32812         * build-aux/git-version-gen: Use "$nl" rather than a literal,
32813         so that the command remains on a single line.
32814
32815 2010-04-26  Eric Blake  <eblake@redhat.com>
32816
32817         git-version-gen: allow use on EBCDIC hosts
32818         * build-aux/git-version-gen (dirty): Use literal rather than tying
32819         ourselves to ascii.
32820         Reported by Steve Goetze.
32821
32822 2010-04-25  Bruno Haible  <bruno@clisp.org>
32823
32824         netdb: Add support for GNULIB_POSIXCHECK.
32825         * lib/netdb.in.h: Include warn-on-use.h.
32826         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
32827         functions are used when GNULIB_POSIXCHECK is defined and the
32828         getaddrinfo module is not in use.
32829         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
32830         freeaddrinfo, gai_strerror, getnameinfo are declared.
32831         * modules/netdb (Depends-on): Add warn-on-use.
32832         (Makefile.am): Include warn-on-use.h in netdb.h.
32833
32834 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
32835
32836         build: avoid "make check" failure without .git/ directory
32837         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
32838         there is no .git/ directory.
32839
32840 2010-04-25  Bruno Haible  <bruno@clisp.org>
32841
32842         ptsname: Fix misuse of ttyname_r.
32843         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
32844         of errno.
32845
32846 2010-04-25  Bruno Haible  <bruno@clisp.org>
32847
32848         ttyname_r: Make it work on Solaris 10.
32849         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
32850         if the system function has the POSIX declaration. Test whether the
32851         function fails if the buffer is less than 128 bytes large.
32852         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
32853         system's ttyname_r function. Provide a reasonably large buffer.
32854         * modules/ttyname_r (Depends-on): Add extensions.
32855         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
32856
32857 2010-04-25  Bruno Haible  <bruno@clisp.org>
32858
32859         Use the 'extensions' module for some more functions on Solaris.
32860         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
32861         module.
32862         * doc/posix-functions/ctime_r.texi: Likewise.
32863         * doc/posix-functions/getgrgid_r.texi: Likewise.
32864         * doc/posix-functions/getgrnam_r.texi: Likewise.
32865         * doc/posix-functions/getpwnam_r.texi: Likewise.
32866         * doc/posix-functions/getpwuid_r.texi: Likewise.
32867         * doc/posix-functions/readdir_r.texi: Likewise.
32868         * doc/posix-functions/sigwait.texi: Likewise.
32869         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
32870         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
32871
32872 2010-04-25  Bruno Haible  <bruno@clisp.org>
32873
32874         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
32875         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
32876         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
32877         * lib/ttyname_r.c: Include <limits.h>.
32878         (ttyname_r): Define using the system's ttyname_r function, if it exists
32879         and not on Solaris.
32880         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
32881         set.
32882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
32883         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
32884         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
32885         Reported by Simon Josefsson.
32886
32887 2010-04-25  Bruno Haible  <bruno@clisp.org>
32888
32889         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
32890         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
32891         * doc/posix-functions/ctime_r.texi: Likewise.
32892         * doc/posix-functions/getgrgid_r.texi: Likewise.
32893         * doc/posix-functions/getgrnam_r.texi: Likewise.
32894         * doc/posix-functions/getlogin_r.texi: Likewise.
32895         * doc/posix-functions/getpwnam_r.texi: Likewise.
32896         * doc/posix-functions/getpwuid_r.texi: Likewise.
32897         * doc/posix-functions/readdir_r.texi: Likewise.
32898         * doc/posix-functions/sigwait.texi: Likewise.
32899         * doc/posix-functions/ttyname_r.texi: Likewise.
32900         Reported by Simon Josefsson.
32901
32902 2010-04-25  Bruno Haible  <bruno@clisp.org>
32903
32904         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
32905         * gnulib-tool (func_usage): Document that --with-*-tests options apply
32906         also to --create-testdir.
32907         (func_acceptable): Don't consider the status of *-tests modules here.
32908         (func_modules_transitive_closure): Consider it here, before including a
32909         test module.
32910         (func_import, func_create_testdir): Set inc_all_direct_tests,
32911         inc_all_indirect_tests.
32912         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
32913         --create-testdir and --create-megatestdir.
32914
32915 2010-04-25  Bruno Haible  <bruno@clisp.org>
32916
32917         gnulib-tool: Add --without-*-tests options.
32918         * gnulib-tool (func_usage): Document the --without-*-tests options.
32919         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
32920         excl_unportable_tests): New variables.
32921         Fail if they are specified with --import or --update.
32922         (func_acceptable): Respect the excl_*_tests variables.
32923         (func_import): Set the excl_*_tests variables to empty.
32924
32925 2010-04-25  Simon Josefsson  <simon@josefsson.org>
32926             Bruno Haible  <bruno@clisp.org>
32927
32928         Work around a MacOS X 10.4 bug with openpty.
32929         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
32930         * tests/test-openpty.c (main): Close the master side explicitly.
32931
32932 2010-04-25  Bruno Haible  <bruno@clisp.org>
32933
32934         strnlen: Fix a C++ test error on MacOS X and Solaris.
32935         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
32936         the function is not declared.
32937         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
32938         Simon Josefsson.
32939
32940 2010-04-24  Bruno Haible  <bruno@clisp.org>
32941
32942         Avoid a gcc warning.
32943         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
32944         of correct type for %08lx directive.
32945         Reported by Eric Blake.
32946
32947 2010-04-24  Bruno Haible  <bruno@clisp.org>
32948
32949         vasnprintf: Correct errno value in case of out-of-memory.
32950         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
32951         or sprintf. Use the errno value from SNPRINTF or sprintf.
32952         Reported by Ian Beckwith <ianb@erislabs.net>.
32953
32954 2010-04-24  Bruno Haible  <bruno@clisp.org>
32955
32956         ansi-c++-opt: Find correct compiler when cross-compiling.
32957         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
32958         AC_CHECK_PROGS.
32959         Reported by Simon Josefsson.
32960
32961 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
32962
32963         vc-list-files: Add support for subversion
32964         * build-aux/vc-list-files: Use "svn list" to generate the list of
32965         files controlled by subversion.
32966
32967 2010-04-23  Jim Meyering  <meyering@redhat.com>
32968
32969         vc-list-files tests: convert to use init.sh
32970         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
32971         path_prepend_.
32972         Use Exit, not exit.
32973         Use skip_ rather than open coding it.
32974         Remove trap set-up and compare definitions.
32975         * tests/test-vc-list-files-git.sh: Likewise.
32976         * modules/vc-list-files-tests (Files): Add tests/init.sh.
32977
32978 2010-04-22  Simon Josefsson  <simon@josefsson.org>
32979
32980         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
32981         backup files.
32982
32983 2010-04-21  Simon Josefsson  <simon@josefsson.org>
32984
32985         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
32986
32987 2010-04-20  Eric Blake  <eblake@redhat.com>
32988
32989         tests: be robust to ignored SIGPIPE
32990         * tests/test-select-in.sh: Consume all output.
32991         * tests/test-lseek.sh: Check correct exit status, while avoiding
32992         EPIPE.
32993
32994 2010-04-20  Simon Josefsson  <simon@josefsson.org>
32995             Bruno Haible  <bruno@clisp.org>
32996
32997         visibility: Don't use -fvisibility if it leads to a warning.
32998         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
32999         yes, don't pretend that visibility works if it leads to a warning.
33000         Reported by Mike Gran <spk121@yahoo.com>.
33001
33002 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
33003
33004         * build-aux/bootstrap: Use "git -h" for testing for supported options
33005         instead of "git --help".  The short-form option only shows a summary,
33006         and doesn't layout the full man page.  Grep for the full option name
33007         in the summary, too.
33008
33009 2010-04-19  Bruno Haible  <bruno@clisp.org>
33010
33011         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
33012         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
33013         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
33014         mention of RELOCATABLE_STRIP.
33015         Reported by Sylvain Beucler <beuc@beuc.net>.
33016
33017 2010-04-19  Bruno Haible  <bruno@clisp.org>
33018
33019         * lib/diffseq.h: Fix typo in comment.
33020         Reported by Eric Blake.
33021
33022 2010-04-19  Bruno Haible  <bruno@clisp.org>
33023
33024         ioctl: Move autoconf macro to a .m4 file.
33025         * m4/ioctl.m4: New file, extracted from modules/ioctl.
33026         * modules/ioctl (Files): Add it.
33027         (configure.ac): Simply invoke gl_FUNC_IOCTL.
33028         Reported by Ian Beckwith <ianb@erislabs.net>.
33029
33030 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
33031             Bruno Haible  <bruno@clisp.org>
33032
33033         diffseq: Accommodate use-case with abstract arrays.
33034         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
33035         is not defined.
33036         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
33037         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
33038
33039 2010-04-18  Bruno Haible  <bruno@clisp.org>
33040
33041         * doc/posix-headers/stdbool.texi: More precise wording.
33042
33043 2010-04-17  Jim Meyering  <meyering@redhat.com>
33044
33045         maint.mk: use gnu-style indentation in an embedded perl script
33046         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
33047         Rename variable: s/two/last_two_bytes/
33048
33049 2010-04-16  Eric Blake  <eblake@redhat.com>
33050
33051         test-stdbool: skip test that fails with Solaris CC
33052         * tests/test-stdbool.c (f): Skip test that causes compilation
33053         error under buggy C++ compiler.
33054         * lib/stdbool.in.h: Document the limitation.
33055         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
33056
33057         setenv: allow compilation with C++
33058         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
33059         register keyword.
33060
33061         stdint: allow test to pass with C++
33062         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
33063
33064         getopt: allow compilation with C++
33065         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
33066         struct.
33067         * lib/getopt.c (_getopt_internal_r): Use correct type.
33068         Reported by Dagobert Michelson, via Joel E. Denny.
33069
33070 2010-04-16  Bruno Haible  <bruno@clisp.org>
33071
33072         Override netdb.h always.
33073         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
33074         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
33075         Reported by Ludovic Courtès <ludo@gnu.org>.
33076
33077 2010-04-15  Bruno Haible  <bruno@clisp.org>
33078
33079         openpty: Fix mistake from 2010-03-21.
33080         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
33081         Reported by Simon Josefsson.
33082
33083 2010-04-15  Eric Blake  <eblake@redhat.com>
33084
33085         test-forkpty: fix expected signature
33086         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
33087         Reported by Simon Josefsson.
33088
33089 2010-04-15  Jim Meyering  <meyering@redhat.com>
33090
33091         maint.mk: texinfo_suffix_re_: correct the default regexp
33092         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
33093
33094         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
33095         make it configurable via texinfo_suffix_re_.
33096
33097 2010-04-14  Eric Blake  <eblake@redhat.com>
33098
33099         strtok_r: relax license to LGPLv2+
33100         * modules/strtok_r (License): Relax license.
33101         Reported by Matthias Bolte.
33102
33103 2010-04-14  Simon Josefsson  <simon@josefsson.org>
33104
33105         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
33106         version 1.4.4 by default instead of requiring the libgcrypt
33107         version used during build.  This makes it possible to use the
33108         application with older but still binary compatible libgcrypt
33109         versions.
33110
33111 2010-04-13  Eric Blake  <eblake@redhat.com>
33112
33113         getopt-gnu: match recent glibc fixes and posix ruling
33114         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
33115         '+' handling, when requesting extensions.
33116         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
33117         'W;' handling.
33118         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
33119         * doc/posix-functions/getopt.texi (getopt): Document this.
33120         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33121         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33122         Likewise.
33123
33124         getopt: merge bug fixes from glibc
33125         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
33126         diagnostics.  Honor '+:' correctly.  Reject ';'.
33127
33128         getopt-posix: detect MacOS bug
33129         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
33130         optind when missing a required argument.
33131         * doc/posix-functions/getopt.texi (getopt): Document the bug.
33132         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33133         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33134         Likewise.
33135
33136         getopt-posix: avoid spurious failure on Solaris
33137         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
33138         an indicator that setting optind=1 is sufficient for reset.
33139
33140         getopt-posix: avoid spurious failure on FreeBSD
33141         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
33142         in POSIX mode, since the m4 test uses it.
33143
33144         gnulib-tool: silence warning on BSD sh
33145         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
33146
33147 2010-04-13  Jim Meyering  <meyering@redhat.com>
33148
33149         doc: users.txt: GNU patch now uses gnulib
33150         * users.txt: Add patch.
33151
33152 2010-04-12  Jim Meyering  <meyering@redhat.com>
33153
33154         maint.mk: generate more concise timing data for syntax-check rules
33155         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
33156         " done" from each line that reports a syntax-check test duration.
33157
33158 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
33159
33160         git-version-gen: use "git update-index..." rather than "git status"
33161         * build-aux/git-version-gen: Use git update-index --refresh, not
33162         "git status".  With some versions of git, "git status" would fail
33163         to update the index and result in an unwarranted "-dirty" suffix.
33164
33165 2010-04-11  Jim Meyering  <meyering@redhat.com>
33166
33167         openat: correct formatting (no semantic change)
33168         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
33169         Suggested by Bruno Haible.
33170
33171 2010-04-11  Bruno Haible  <bruno@clisp.org>
33172
33173         Stricter declaration checking in testdirs.
33174         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33175         If for_tests is true, augment AM_CPPFLAGS to define
33176         GNULIB_STRICT_CHECKING.
33177         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
33178         GNULIB_STRICT_CHECKING is defined, verify that the function is
33179         declared.
33180
33181 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
33182             Bruno Haible  <bruno@clisp.org>
33183
33184         libunistring: Improve configure output.
33185         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
33186         Don't say "consider installing GNU libunistring" when checking again
33187         with libiconv.
33188
33189 2010-04-11  Bruno Haible  <bruno@clisp.org>
33190
33191         libunistring: Correct value of $LTLIBUNISTRING.
33192         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
33193         correct the value of $LTLIBUNISTRING.
33194
33195 2010-04-11  Bruno Haible  <bruno@clisp.org>
33196
33197         havelib: Add static libraries to LIBS in the right order.
33198         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
33199         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
33200
33201 2010-04-11  Bruno Haible  <bruno@clisp.org>
33202
33203         libunistring: Detect libunistring also when it depends on libiconv.
33204         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
33205         the second AC_LIB_HAVE_LINKFLAGS invocation.
33206
33207 2010-04-11  James Youngman  <jay@gnu.org>
33208
33209         close-stream: declare local scalars to be "const"
33210         * lib/close-stream.c (close_stream): Make boolean variables const
33211         to document the fact that we set but do not change them.
33212
33213 2010-04-11  Bruno Haible  <bruno@clisp.org>
33214
33215         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
33216
33217 2010-04-11  Jim Meyering  <meyering@redhat.com>
33218
33219         maint.mk: don't include dist-check.mk
33220         * top/maint.mk: Remove bogus include directive.
33221
33222         maint.mk: improve empty-line-at-EOF check
33223         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
33224         solution, rather than tail+Perl-based one.  The latter would read
33225         a few kilobytes from the end of each file, and did not handle empty
33226         files properly.
33227
33228         maint.mk: print the elapsed time for each syntax-check rule
33229         * top/maint.mk (sc_m_rules_): Save start time in a file.
33230         (sc_z_rules_): New rules: remove temp file and print elapsed time.
33231         (local-check): Interpose the .z rules
33232
33233 2010-04-11  Jim Meyering  <meyering@redhat.com>
33234
33235         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
33236         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
33237         empty file with one that ends in an empty line.
33238
33239 2010-04-10  Bruno Haible  <bruno@clisp.org>
33240
33241         mkdir: Make it work on mingw64.
33242         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
33243         * lib/mkdir.c: Update comment.
33244         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
33245
33246 2010-04-10  Bruno Haible  <bruno@clisp.org>
33247
33248         Don't override improved macro from newer autoconf.
33249         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
33250         autoconf >= 2.62.
33251         Reported by Joel E. Denny <jdenny@clemson.edu>.
33252
33253 2010-04-10  Jim Meyering  <meyering@redhat.com>
33254
33255         maint.mk: new syntax-check rule: prohibit empty lines at end of file
33256         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
33257
33258         maint.mk: correct a diagnostic
33259         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
33260         in diagnostic; now use $prohibit.
33261
33262 2010-04-10  Bruno Haible  <address@hidden>
33263
33264         fchownat: Fix a C++ test error on Solaris 8.
33265         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
33266         the function does not exist.
33267
33268 2010-04-10  Bruno Haible  <bruno@clisp.org>
33269
33270         vasnprintf: Add more tests.
33271         * tests/test-vasnprintf-posix.c: Include <errno.h>.
33272         (test_function): Test converting an invalid wide string.
33273
33274         vasnprintf: Correct handling of unconvertible wide string arguments.
33275         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
33276         VASNPRINTF.
33277         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
33278         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
33279         smaller than the expected maximum need for the directive. Set errno to
33280         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
33281         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
33282         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
33283         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
33284         * modules/vasnprintf (Files): Add m4/printf.m4.
33285         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33286
33287 2010-04-10  Bruno Haible  <bruno@clisp.org>
33288
33289         vasnprintf: Fix crash in %ls directive.
33290         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
33291         string is passed as argument to %ls, with no precision and no width.
33292         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33293
33294 2010-04-10  Bruno Haible  <bruno@clisp.org>
33295
33296         vasnprintf: Fix multiple test failures on mingw.
33297         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
33298         _snprintf, or snwprintf, not _snwprintf.
33299
33300 2010-04-10  Bruno Haible  <bruno@clisp.org>
33301
33302         write: Fix a C++ test error on mingw.
33303         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
33304
33305 2010-04-10  Bruno Haible  <bruno@clisp.org>
33306
33307         vasnprintf test: Reduce code duplication.
33308         * tests/test-vasnprintf.c (test_function): New function, extracted from
33309         test_vasnprintf.
33310         (test_vasnprintf, test_asnprintf): Invoke it.
33311
33312 2010-04-10  Bruno Haible  <bruno@clisp.org>
33313
33314         strnlen: Fix warning in C++ mode on MacOS X.
33315         * lib/string.in.h (strnlen): Use the modern idiom.
33316         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
33317         defining strnlen as a macro already in <config.h>.
33318         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33319         REPLACE_STRNLEN.
33320         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
33321         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33322
33323 2010-04-08  James Youngman  <jay@gnu.org>
33324
33325         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
33326         the example.
33327
33328 2010-04-09  Jim Meyering  <meyering@redhat.com>
33329
33330         maint.mk: print better diagnostic when there is no $(_hv_file)
33331         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
33332         announce that when $(_hv_file) (aka help-version) does not exist.
33333
33334         init.sh: run tr in the "C" locale to avoid multibyte interpretation
33335         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
33336         not try to interpret its random input bytes.  Jarno Rajahalme reported
33337         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
33338         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
33339         (mktempd_): Likewise, just in case.
33340
33341         ftruncate: add two years to projected module removal date: 2012
33342         * m4/ftruncate.m4: Adjust comments.
33343
33344         ftruncate: mark module as obsolete; even MinGW provides it, now
33345         * modules/ftruncate (Status): Obsolete.
33346         (Notice): Say that.
33347         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
33348         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
33349
33350 2010-04-08  Bruno Haible  <bruno@clisp.org>
33351
33352         Fix side effects from tests-related modules.
33353         * modules/dprintf-posix (Comment): New section.
33354         * modules/fprintf-posix (Comment): Likewise.
33355         * modules/obstack-printf-posix (Comment): Likewise.
33356         * modules/printf-posix (Comment): Likewise.
33357         * modules/snprintf-posix (Comment): Likewise.
33358         * modules/sprintf-posix (Comment): Likewise.
33359         * modules/vasnprintf-posix (Comment): Likewise.
33360         * modules/vasprintf-posix (Comment): Likewise.
33361         * modules/vdprintf-posix (Comment): Likewise.
33362         * modules/vfprintf-posix (Comment): Likewise.
33363         * modules/vprintf-posix (Comment): Likewise.
33364         * modules/vsnprintf-posix (Comment): Likewise.
33365         * modules/vsprintf-posix (Comment): Likewise.
33366         * modules/xprintf-posix (Comment): Likewise.
33367         * modules/xvasprintf-posix (Comment): Likewise.
33368         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
33369         * modules/floorf-tests (Depends-on): Likewise.
33370         * modules/round-tests (Depends-on): Likewise.
33371         * modules/roundf-tests (Depends-on): Likewise.
33372         * modules/trunc-tests (Depends-on): Likewise.
33373         * modules/truncf-tests (Depends-on): Likewise.
33374         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
33375         'fprintf-posix' module is not present.
33376         * tests/test-floorf2.c (check): Likewise.
33377         * tests/test-trunc2.c (check): Likewise.
33378         * tests/test-truncf2.c (check): Likewise.
33379         * tests/test-round2.c (equal): Likewise.
33380         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33381
33382 2010-04-07  Karl Berry  <karl@gnu.org>
33383
33384         * config/srclist.txt,
33385         * config/srclistvars.sh,
33386         * config/srclist-update: doc fixes.
33387
33388 2010-04-07  Jim Meyering  <meyering@redhat.com>
33389
33390         maint.mk: add a PATH crosschecking syntax-check rule
33391         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
33392         Useful if you use a test like the one in help-version (coreutils,
33393         diffutils, grep, gzip) that ensures $(VERSION) matches what is
33394         printed by prog --version.
33395
33396 2010-04-06  Bruno Haible  <bruno@clisp.org>
33397
33398         Fix link error on mingw.
33399         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
33400         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
33401
33402 2010-04-06  Bruno Haible  <bruno@clisp.org>
33403
33404         Assume rmdir exists.
33405         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
33406
33407 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
33408
33409         doc: update users.txt
33410         * users.txt: Add gcal.
33411
33412 2010-04-06  Jim Meyering  <meyering@redhat.com>
33413
33414         init.sh: simply unset TMPDIR rather than risking env -i
33415         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
33416         although it probably works fine on all Unix-based systems, some
33417         systems (Cygwin?) cannot tolerate a totally cleared environment.
33418         Suggestion from Eric Blake.
33419
33420 2010-04-06  Jim Meyering  <meyering@redhat.com>
33421
33422         init.sh: portability fix: use env's POSIX-specified -i option not -u
33423         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
33424         than unportable env -u.  Solaris 5.11's env lacks support for -u.
33425
33426 2010-04-05  Bruno Haible  <bruno@clisp.org>
33427
33428         btowc: Work around Cygwin 1.7.2 bug.
33429         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
33430         does not map NUL to 0.
33431         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
33432
33433 2010-04-05  Bruno Haible  <bruno@clisp.org>
33434
33435         Make the multithread modules work on Cygwin 1.7.2.
33436         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
33437         imported symbols can be declared weak, so that it returns "no" on
33438         Cygwin 1.7.2.
33439
33440 2010-04-05  Bruno Haible  <bruno@clisp.org>
33441
33442         Use the module 'strncat'.
33443         * modules/unistr/u8-strncat (Depends-on): Add strncat.
33444
33445         Tests for module 'strncat'.
33446         * modules/strncat-tests: New file.
33447         * tests/test-strncat.c: New file.
33448
33449         New module 'strncat'.
33450         * lib/string.in.h (strncat): New declaration.
33451         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
33452         * m4/strncat.m4: New file, based on m4/memchr.m4.
33453         * modules/strncat: New file.
33454         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
33455         is declared.
33456         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
33457         REPLACE_STRNCAT.
33458         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
33459         REPLACE_STRNCAT.
33460         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
33461         module.
33462         * tests/test-string-c++.cc: Check signature of strncat.
33463
33464 2010-04-05  Jim Meyering  <meyering@redhat.com>
33465
33466         xstrtoumax-tests: convert to use init.sh
33467         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
33468         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33469         Use Exit, not exit.
33470         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33471
33472         xstrtoimax-tests: convert to use init.sh
33473         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
33474         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33475         Use Exit, not exit.
33476         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33477
33478 2010-04-05  Bruno Haible  <bruno@clisp.org>
33479
33480         sys_socket: Avoid #define replacements in C++ mode.
33481         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
33482         warning to the function if possible, rather than #defining the symbol
33483         to a dysfunctional alias.
33484
33485 2010-04-05  Bruno Haible  <bruno@clisp.org>
33486
33487         fseeko: Fix C++ test error on mingw.
33488         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
33489         gl_FUNC_FSEEKO.
33490         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
33491         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
33492         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
33493         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
33494
33495 2010-04-05  Bruno Haible  <bruno@clisp.org>
33496
33497         duplocale: Improve test output.
33498         * tests/test-duplocale.c (main): Print reason for skipped test.
33499
33500 2010-04-05  Bruno Haible  <bruno@clisp.org>
33501
33502         Assume rmdir exists.
33503         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
33504         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
33505
33506 2010-04-05  Bruno Haible  <bruno@clisp.org>
33507
33508         Fix link error on Solaris 8 with cc.
33509         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
33510
33511 2010-04-05  Bruno Haible  <bruno@clisp.org>
33512
33513         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33514         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
33515
33516 2010-04-05  Bruno Haible  <bruno@clisp.org>
33517
33518         vasprintf: Update documentation.
33519         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
33520
33521 2010-04-05  Bruno Haible  <bruno@clisp.org>
33522
33523         ptsname: Improve test.
33524         * tests/test-ptsname.c (main): Also try the various master names of BSD
33525         systems.
33526
33527 2010-04-05  Bruno Haible  <bruno@clisp.org>
33528
33529         memchr: Avoid a possible C++ test error.
33530         * lib/string.in.h (memchr): Provide declaration if function is missing.
33531         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
33532         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
33533         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
33534         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
33535
33536 2010-04-05  Bruno Haible  <bruno@clisp.org>
33537
33538         strtok_r: Improve idiom.
33539         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
33540         AC_LIBOBJ is used.
33541
33542 2010-04-05  Bruno Haible  <bruno@clisp.org>
33543
33544         strdup: Improve idiom.
33545         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
33546         AC_LIBOBJ is used.
33547         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
33548         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
33549         when AC_LIBOBJ is used.
33550
33551 2010-04-05  Bruno Haible  <bruno@clisp.org>
33552
33553         mbsinit, mbrtowc, wcrtomb: Improve idioms.
33554         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
33555         don't set REPLACE_MBSINIT to 1.
33556         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
33557         don't set REPLACE_MBRTOWC to 1.
33558         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
33559         exist, don't set REPLACE_MBSRTOWCS to 1.
33560         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
33561         exist, don't set REPLACE_MBSNRTOWCS to 1.
33562         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
33563         don't set REPLACE_WCRTOMB to 1.
33564         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
33565         exist, don't set REPLACE_WCSRTOMBS to 1.
33566         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
33567         exist, don't set REPLACE_WCSNRTOMBS to 1.
33568
33569 2010-04-05  Bruno Haible  <bruno@clisp.org>
33570
33571         ldexpl: Improve idiom.
33572         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
33573         make sure to set HAVE_DECL_LDEXPL to 0.
33574
33575 2010-04-05  Jim Meyering  <meyering@redhat.com>
33576
33577         xstrtol-tests: convert to use init.sh
33578         * modules/xstrtol-tests (Files): Add tests/init.sh.
33579         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33580         Use Exit, not exit.
33581         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33582
33583         atexit-tests: convert to use init.sh
33584         * modules/atexit-tests (Files): Add tests/init.sh.
33585         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33586         Use Exit, not exit.
33587         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33588
33589         init.sh: fix typo
33590         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
33591
33592         init.sh: make it easier for a test script to write to the tty, ...
33593         when using automake's parallel-tests mode.
33594         * tests/init.sh (stderr_fileno_): Define overridable variable.
33595         (warn_): New function, to use it.
33596         (fail_, skip_, framework_failure_): Use warn_.
33597
33598 2010-04-04  Bruno Haible  <bruno@clisp.org>
33599
33600         btowc: Avoid warning.
33601         * lib/btowc.c: Include <stdlib.h>.
33602         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
33603
33604 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33605             Bruno Haible  <bruno@clisp.org>
33606
33607         wchar: Port to NetBSD 1.5.
33608         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
33609         * lib/wctype.in.h (WEOF): Likewise.
33610
33611 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33612             Bruno Haible  <bruno@clisp.org>
33613
33614         Port extended stdio to NetBSD 1.5.
33615         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
33616         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
33617         older.
33618
33619 2010-04-04  Bruno Haible  <bruno@clisp.org>
33620
33621         string: Remove unused substitution.
33622         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
33623         HAVE_DECL_STRERROR.
33624         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
33625
33626 2010-04-04  Bruno Haible  <bruno@clisp.org>
33627
33628         strtod: Avoid a possible C++ test error.
33629         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
33630         set REPLACE_STRTOD.
33631
33632 2010-04-04  Bruno Haible  <bruno@clisp.org>
33633
33634         strerror: Update documentation.
33635         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
33636
33637 2010-04-04  Bruno Haible  <bruno@clisp.org>
33638
33639         stdio: Fix some C++ test errors on Solaris 8 with GCC.
33640         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
33641         _GL_CXXALIAS_SYS_CAST.
33642
33643 2010-04-04  Bruno Haible  <bruno@clisp.org>
33644
33645         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33646         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
33647         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
33648         REPLACE_FREXPL to 1.
33649         * doc/posix-functions/frexpl.texi: Update documentation.
33650
33651 2010-04-04  Bruno Haible  <bruno@clisp.org>
33652
33653         math: Fix some C++ test errors on Solaris 8 and Cygwin.
33654         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
33655
33656 2010-04-04  Bruno Haible  <bruno@clisp.org>
33657
33658         Implement nanosleep for native Windows.
33659         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
33660
33661 2010-04-04  Bruno Haible  <bruno@clisp.org>
33662
33663         math: Fix some C++ test errors on Solaris 8.
33664         * lib/math.in.h (truncf, trunc): Use simpler idiom.
33665
33666 2010-04-04  Bruno Haible  <bruno@clisp.org>
33667
33668         math: Fix some C++ test errors on Cygwin.
33669         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
33670         truncl): Provide declaration if the system does not have it.
33671         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
33672         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
33673         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
33674         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
33675         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
33676         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
33677         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
33678         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
33679         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
33680         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
33681         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
33682         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
33683         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
33684         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
33685         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
33686         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
33687         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
33688         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33689         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33690         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
33691         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33692         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33693
33694 2010-04-04  Bruno Haible  <bruno@clisp.org>
33695
33696         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
33697         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
33698         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
33699         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
33700         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33701         * m4/isinf.m4 (gl_ISINF): Likewise.
33702         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
33703
33704 2010-04-04  Bruno Haible  <bruno@clisp.org>
33705
33706         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
33707         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
33708
33709 2010-04-04  Bruno Haible  <bruno@clisp.org>
33710
33711         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
33712         * modules/tmpfile (configure.ac): Update.
33713
33714         tmpfile: Fix C++ test error on mingw.
33715         * lib/stdio.in.h (tmpfile): New declaration.
33716         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
33717         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
33718         * modules/tmpfile (Depends-on): Add stdio.
33719         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
33720         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
33721         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
33722         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
33723         REPLACE_TMPFILE.
33724         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
33725
33726 2010-04-04  Bruno Haible  <bruno@clisp.org>
33727
33728         ioctl: Fix C++ test error on mingw.
33729         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
33730         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
33731         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
33732
33733 2010-04-03  Bruno Haible  <bruno@clisp.org>
33734
33735         wcwidth: Fix C++ test error on mingw.
33736         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
33737         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
33738         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
33739
33740 2010-04-03  Bruno Haible  <bruno@clisp.org>
33741
33742         nanosleep: Fix C++ test error on mingw.
33743         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
33744         * lib/time.in.h (nanosleep): Use modern idiom.
33745         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
33746         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
33747         REPLACE_NANOSLEEP to 1.
33748         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
33749         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
33750
33751 2010-04-03  Bruno Haible  <bruno@clisp.org>
33752
33753         strptime: Fix C++ test error on mingw.
33754         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
33755         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
33756         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
33757         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
33758         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
33759         not REPLACE_STRPTIME.
33760         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
33761         REPLACE_STRPTIME.
33762
33763 2010-04-03  Bruno Haible  <bruno@clisp.org>
33764
33765         timegm: Fix C++ test error on mingw.
33766         * lib/time.in.h (timegm): Use modern idiom.
33767         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
33768         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
33769         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
33770         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
33771
33772 2010-04-03  Bruno Haible  <bruno@clisp.org>
33773
33774         timegm: Assume declaration if function exists.
33775         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
33776         if it exists. Don't clobber ac_cv_func_timegm.
33777
33778 2010-04-03  Bruno Haible  <bruno@clisp.org>
33779
33780         time_r: Fix C++ test error on mingw.
33781         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
33782         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
33783         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
33784         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
33785         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
33786
33787 2010-04-03  Bruno Haible  <bruno@clisp.org>
33788
33789         time_r: Minor updates.
33790         * modules/time_r (Description): Mention the provided functions.
33791         * lib/time_r.c: Don't include <string.h>.
33792         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
33793         * doc/posix-functions/localtime_r.texi: Likewise.
33794
33795 2010-04-03  Bruno Haible  <bruno@clisp.org>
33796
33797         time: Fix regression introduced on 2010-03-08.
33798         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
33799         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
33800
33801 2010-04-03  Jim Meyering  <meyering@redhat.com>
33802
33803         maint.mk: don't silently disable project-specific syntax-check rules
33804         * top/maint.mk (_prohibit_regexp): Define, to help people realize
33805         that they need to convert their project-specific syntax-check rules
33806         to use the new _sc_search_regexp.
33807
33808 2010-04-03  Bruno Haible  <bruno@clisp.org>
33809
33810         fchdir: Fix regression introduced on 2010-03-08.
33811         * lib/unistd.in.h (fchdir): Fix declaration.
33812         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
33813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
33814         REPLACE_FCHDIR.
33815         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
33816         REPLACE_FCHDIR.
33817
33818 2010-04-03  Bruno Haible  <bruno@clisp.org>
33819
33820         getpagesize: Fix C++ test error on mingw.
33821         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
33822         system does not declare the function.
33823         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
33824         declared.
33825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33826         HAVE_DECL_GETPAGESIZE.
33827         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
33828
33829 2010-04-03  Bruno Haible  <bruno@clisp.org>
33830
33831         stdio: Make C++ tests work on mingw.
33832         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
33833         does not declare the function.
33834
33835 2010-04-03  Bruno Haible  <bruno@clisp.org>
33836
33837         ftello: Fix C++ test error on mingw.
33838         * lib/stdio.in.h (ftello): Use modern idiom.
33839         * lib/ftello.c (ftello): Renamed from rpl_ftello.
33840         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
33841         is missing and that it needs to be replaced.
33842         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
33843         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
33844         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
33845
33846 2010-04-03  Bruno Haible  <bruno@clisp.org>
33847
33848         fseeko: Fix C++ test error on mingw.
33849         * lib/stdio.in.h (fseeko): Use modern idiom.
33850         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
33851         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
33852         is missing and that it needs to be replaced.
33853         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
33854         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
33855         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
33856
33857 2010-04-03  Bruno Haible  <bruno@clisp.org>
33858
33859         mkstemp: Fix C++ test error on mingw.
33860         * lib/stdlib.in.h (mkstemp): Use modern idiom.
33861         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
33862         function is missing and that it needs to be replaced.
33863         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
33864         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
33865
33866 2010-04-03  Bruno Haible  <bruno@clisp.org>
33867
33868         stpncpy: Fix C++ test error on mingw.
33869         * lib/string.in.h (stpncpy): Use modern idiom.
33870         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
33871         function is missing and that it needs to be replaced.
33872         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33873         REPLACE_STPNCPY.
33874         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
33875
33876 2010-04-03  Bruno Haible  <bruno@clisp.org>
33877
33878         sys_stat: Fix C++ test error on mingw.
33879         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
33880         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
33881
33882 2010-04-03  Bruno Haible  <bruno@clisp.org>
33883
33884         pty: Update doc.
33885         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
33886
33887 2010-04-03  Bruno Haible  <bruno@clisp.org>
33888
33889         unistd: Fix C++ test error on mingw.
33890         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
33891
33892 2010-04-03  Bruno Haible  <bruno@clisp.org>
33893
33894         Update doc regarding mingw.
33895         * doc/glibc-functions/openpty.texi: Update regarding mingw.
33896         * doc/glibc-functions/login_tty.texi: Likewise.
33897         * doc/glibc-functions/forkpty.texi: Likewise.
33898
33899 2010-04-03  Bruno Haible  <bruno@clisp.org>
33900
33901         stdlib: Avoid compilation failure of c-strtold on mingw.
33902         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
33903
33904 2010-04-03  Bruno Haible  <bruno@clisp.org>
33905
33906         locale: Make C++ tests work on Cygwin and mingw.
33907         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
33908         cannot provide the function.
33909         Reported by Simon Josefsson.
33910
33911 2010-04-03  Bruno Haible  <bruno@clisp.org>
33912
33913         localename: Port to MacOS X 10.6.
33914         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
33915         memory layout of the locales in MacOS X 10.6 as well.
33916         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
33917
33918 2010-04-02  Bruno Haible  <bruno@clisp.org>
33919
33920         gnulib-tool: Ensure that long-running tests are executed last.
33921         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
33922         running tests after the one for the other tests.
33923
33924 2010-04-02  Bruno Haible  <bruno@clisp.org>
33925
33926         gnulib-tool: Ensure the tests in the main directory are executed first.
33927         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
33928         start with the current directory.
33929
33930 2010-04-02  Bruno Haible  <bruno@clisp.org>
33931
33932         Tests for module 'havelib', moved here from GNU gettext.
33933         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
33934         modifications.
33935         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
33936         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
33937         with modifications.
33938         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
33939         modifications.
33940         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
33941         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
33942         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
33943         with modifications.
33944         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
33945         with modifications.
33946         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
33947         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
33948         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
33949         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
33950         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
33951         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
33952         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
33953         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
33954         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
33955         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
33956         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
33957         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
33958         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
33959         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
33960         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
33961         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
33962         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
33963         with modifications.
33964         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
33965         with modifications.
33966         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
33967         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
33968         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
33969         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
33970         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
33971         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
33972         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
33973         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
33974         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
33975         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
33976         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
33977         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
33978         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
33979         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
33980         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
33981         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
33982         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
33983         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
33984         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
33985         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
33986         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
33987         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
33988         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
33989         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
33990         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
33991         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
33992         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
33993         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
33994         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
33995         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
33996         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
33997         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
33998         * tests/havelib/rpathx/rpathx.c: New file, from
33999         gettext/autoconf-lib-link.
34000         * tests/havelib/rpathx/Makefile.am: New file, from
34001         gettext/autoconf-lib-link.
34002         * tests/havelib/rpathx/configure.ac: New file, from
34003         gettext/autoconf-lib-link with modifications.
34004         * tests/havelib/rpathy/rpathy.c: New file, from
34005         gettext/autoconf-lib-link.
34006         * tests/havelib/rpathy/Makefile.am: New file, from
34007         gettext/autoconf-lib-link.
34008         * tests/havelib/rpathy/configure.ac: New file, from
34009         gettext/autoconf-lib-link with modifications.
34010         * tests/havelib/rpathz/rpathz.c: New file, from
34011         gettext/autoconf-lib-link.
34012         * tests/havelib/rpathz/Makefile.am: New file, from
34013         gettext/autoconf-lib-link.
34014         * tests/havelib/rpathz/configure.ac: New file, from
34015         gettext/autoconf-lib-link with modifications.
34016         * tests/havelib/rpathlx/usex.c: New file, from
34017         gettext/autoconf-lib-link.
34018         * tests/havelib/rpathlx/Makefile.am: New file, from
34019         gettext/autoconf-lib-link.
34020         * tests/havelib/rpathlx/configure.ac: New file, from
34021         gettext/autoconf-lib-link with modifications.
34022         * tests/havelib/rpathly/usey.c: New file, from
34023         gettext/autoconf-lib-link.
34024         * tests/havelib/rpathly/Makefile.am: New file, from
34025         gettext/autoconf-lib-link.
34026         * tests/havelib/rpathly/configure.ac: New file, from
34027         gettext/autoconf-lib-link with modifications.
34028         * tests/havelib/rpathlz/usez.c: New file, from
34029         gettext/autoconf-lib-link.
34030         * tests/havelib/rpathlz/Makefile.am: New file, from
34031         gettext/autoconf-lib-link.
34032         * tests/havelib/rpathlz/configure.ac: New file, from
34033         gettext/autoconf-lib-link with modifications.
34034         * tests/havelib/rpathlyx/usey.c: New file, from
34035         gettext/autoconf-lib-link.
34036         * tests/havelib/rpathlyx/Makefile.am: New file, from
34037         gettext/autoconf-lib-link.
34038         * tests/havelib/rpathlyx/configure.ac: New file, from
34039         gettext/autoconf-lib-link with modifications.
34040         * tests/havelib/rpathlzyx/usez.c: New file, from
34041         gettext/autoconf-lib-link.
34042         * tests/havelib/rpathlzyx/Makefile.am: New file, from
34043         gettext/autoconf-lib-link.
34044         * tests/havelib/rpathlzyx/configure.ac: New file, from
34045         gettext/autoconf-lib-link with modifications.
34046         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
34047         with modifications.
34048
34049 2010-04-02  Bruno Haible  <bruno@clisp.org>
34050
34051         gnulib-tool: Create distributed built sources also for the tests.
34052         * gnulib-tool (func_create_testdir): Also generate distributed built
34053         sources in the tests directory.
34054
34055 2010-04-02  Bruno Haible  <bruno@clisp.org>
34056
34057         gnulib-tool: Obey user's environment variables.
34058         * gnulib-tool (func_create_testdir): When creating built sources,
34059         respect the environment variables for autoconf, automake, etc. given by
34060         the user.
34061
34062 2010-04-02  Bruno Haible  <bruno@clisp.org>
34063
34064         gnulib-tool: Provide the value of --m4-base to modules.
34065         * gnulib-tool (func_import, func_create_testdir): Emit a definition
34066         of gl_m4_base.
34067
34068 2010-04-02  Eric Blake  <eblake@redhat.com>
34069
34070         maint.mk: fix some fallout
34071         * NEWS: Document the incompatible change, and its effect on cfg.mk.
34072         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
34073
34074 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34075
34076         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
34077         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
34078         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
34079         (sc_cast_of_x_alloc_return_value): Likewise.
34080         (sc_cast_of_alloca_return_value): Likewise.
34081         (sc_space_tab): Likewise.
34082         (sc_prohibit_atoi_atof): Likewise.
34083         (sc_prohibit_magic_number_exit): Likewise.
34084         (sc_error_exit_success): Likewise.
34085         (sc_file_system): Likewise.
34086         (sc_prohibit_have_config_h): Likewise.
34087         (sc_require_config_h): Likewise.
34088         (sc_prohibit_HAVE_MBRTOWC): Likewise.
34089         (sc_obsolete_symbols): Likewise.
34090         (sc_changelog): Likewise.
34091         (sc_program_name): Likewise.
34092         (sc_the_the): Likewise.
34093         (sc_trailing_blank): Likewise.
34094         (sc_two_space_separator_in_usage): Likewise.
34095         (sc_useless_cpp_parens): Likewise.
34096         (sc_GPL_version): Likewise.
34097         (sc_GFDL_version): Likewise.
34098         (sc_texinfo_acronym): Likewise.
34099         (sc_prohibit_cvs_keyword): Likewise.
34100         (sc_prohibit_stat_st_blocks): Likewise.
34101         (sc_prohibit_S_IS_definition): Likewise.
34102         (sc_redundant_const): Likewise.
34103         (sc_makefile_TAB_only_indentation): Likewise.
34104         (sc_m4_quote_check): Likewise.
34105         (sc_makefile_path_separator_check): Likewise.
34106         (sc_copyright_check): Likewise.
34107         (sc_Wundef_boolean): Likewise.
34108         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
34109
34110         maint.mk: match 0 or more whitespace-before-function-call '('
34111         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
34112         that have zero or two-and-more spaces between the function name
34113         and the open parenthesis.
34114         (sc_error_message_warn_fatal): Likewise.
34115         (sc_error_message_uppercase): Likewise.
34116         (sc_error_message_period): Likewise.
34117
34118 2010-03-31  Eric Blake  <eblake@redhat.com>
34119
34120         maint.mk: check for [ as well as test
34121         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
34122         Based on a libvirt report by Matthias Bolte.
34123
34124         gnumakefile: don't squelch _version output
34125         * top/GNUmakefile (_version): Create one-shot dependency rather
34126         than using $(shell) when version must be regenerated.
34127         (_autoreconf): Run verbosely, by default.
34128
34129         sys_time: avoid compiler warnings
34130         * lib/sys_time.in.h (includes): Ensure gcc pragma is
34131         unconditional, fixing regression from 2010-03-29.
34132         Reported by Simon Josefsson.
34133
34134 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34135
34136         maint.mk: s/_header_without_use/_sc_header_without_use/
34137         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
34138         (sc_prohibit_assert_without_use): Use the new name.
34139         (sc_prohibit_close_stream_without_use): Likewise.
34140         (sc_prohibit_getopt_without_use): Likewise.
34141         (sc_prohibit_quotearg_without_use): Likewise.
34142         (sc_prohibit_quote_without_use): Likewise.
34143         (sc_prohibit_long_options_without_use): Likewise.
34144         (sc_prohibit_inttostr_without_use): Likewise.
34145         (sc_prohibit_ignore_value_without_use): Likewise.
34146         (sc_prohibit_error_without_use): Likewise.
34147         (sc_prohibit_xalloc_without_use): Likewise.
34148         (sc_prohibit_hash_without_use): Likewise.
34149         (sc_prohibit_hash_pjw_without_use): Likewise.
34150         (sc_prohibit_safe_read_without_use): Likewise.
34151         (sc_prohibit_argmatch_without_use): Likewise.
34152         (sc_prohibit_canonicalize_without_use): Likewise.
34153         (sc_prohibit_root_dev_ino_without_use): Likewise.
34154         (sc_prohibit_openat_without_use): Likewise.
34155         (sc_prohibit_c_ctype_without_use): Likewise.
34156         (sc_prohibit_signal_without_use): Likewise.
34157         (sc_prohibit_intprops_without_use): Likewise.
34158
34159 2010-03-30  Eric Blake  <eblake@redhat.com>
34160
34161         maint: improve module indicators
34162         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
34163         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
34164         columns, and avoid extra macro expansion.
34165
34166         fdopendir: work around FreeBSD bug
34167         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34168         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
34169         * modules/dirent (Makefile.am): Substitute it.
34170         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
34171         declaration.
34172         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
34173         fix.
34174         Reported by Christian Weisgerber <naddy@mips.inka.de>.
34175
34176 2010-03-29  Bruno Haible  <bruno@clisp.org>
34177
34178         Emit #pragma system_header after the inclusion guard, not before.
34179         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
34180         guard that spans the entire file, not before. This enables an
34181         optimization in GCC's preprocessor.
34182         * lib/ctype.in.h: Likewise.
34183         * lib/dirent.in.h: Likewise.
34184         * lib/errno.in.h: Likewise.
34185         * lib/float.in.h: Likewise.
34186         * lib/getopt.in.h: Likewise.
34187         * lib/iconv.in.h: Likewise.
34188         * lib/langinfo.in.h: Likewise.
34189         * lib/locale.in.h: Likewise.
34190         * lib/math.in.h: Likewise.
34191         * lib/netdb.in.h: Likewise.
34192         * lib/netinet_in.in.h: Likewise.
34193         * lib/pty.in.h: Likewise.
34194         * lib/sched.in.h: Likewise.
34195         * lib/se-selinux.in.h: Likewise.
34196         * lib/search.in.h: Likewise.
34197         * lib/spawn.in.h: Likewise.
34198         * lib/stdarg.in.h: Likewise.
34199         * lib/stdint.in.h: Likewise.
34200         * lib/string.in.h: Likewise.
34201         * lib/strings.in.h: Likewise.
34202         * lib/sys_file.in.h: Likewise.
34203         * lib/sys_ioctl.in.h: Likewise.
34204         * lib/sys_time.in.h: Likewise.
34205         * lib/sys_times.in.h: Likewise.
34206         * lib/sys_utsname.in.h: Likewise.
34207         * lib/sys_wait.in.h: Likewise.
34208         * lib/sysexits.in.h: Likewise.
34209         * lib/wctype.in.h: Likewise.
34210
34211 2010-03-28  James Youngman  <jay@gnu.org>
34212
34213         save-cwd: don't leak a file descriptor when the caller execs.
34214         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
34215         saved file descriptor.
34216         * modules/save-cwd (Depends-on): Depend on cloexec.
34217
34218 2010-03-29  Bruno Haible  <bruno@clisp.org>
34219
34220         Remove vestiges of fts-lgpl module.
34221         * lib/fts_.h: Assume GNULIB_FTS is 1.
34222         * lib/fts.c: Likewise.
34223         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34224
34225 2010-03-28  Bruno Haible  <bruno@clisp.org>
34226
34227         Fix definition of tests witness macro.
34228         * gnulib-tool (func_import): Fix definition of witness macro.
34229
34230 2010-03-28  Bruno Haible  <bruno@clisp.org>
34231
34232         Fix ioctl's protoype on glibc systems.
34233         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
34234         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
34235         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
34236         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
34237         signature. If not, arrange to replace the ioctl function.
34238         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
34239         REPLACE_IOCTL.
34240         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
34241         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
34242         Reported by Ludovic Courtès <ludo@gnu.org>.
34243
34244 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
34245
34246         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
34247         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
34248         made it so grep -r --include=GLOB* ... did not work.
34249
34250 2010-03-26  Jim Meyering  <meyering@redhat.com>
34251             Eric Blake  <eblake@redhat.com>
34252
34253         maint.mk: prohibit use of test's -o and -a operators
34254         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
34255
34256 2010-03-28  Bruno Haible  <bruno@clisp.org>
34257
34258         Remove unused GNULIB_XYZ macro definitions.
34259         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
34260         invocation.
34261
34262 2010-03-28  Bruno Haible  <bruno@clisp.org>
34263
34264         Mark privileged tests modules.
34265         * modules/idpriv-drop-tests (Status): New section.
34266         * modules/idpriv-droptemp-tests (Status): New section.
34267
34268 2010-03-28  Bruno Haible  <bruno@clisp.org>
34269
34270         Split C++ tests into separate tests modules.
34271         * modules/dirent-c++-tests: New file, extracted from
34272         modules/dirent-tests.
34273         * modules/dirent-tests: Depend on it.
34274         * modules/fcntl-h-c++-tests: New file, extracted from
34275         modules/fcntl-h-tests.
34276         * modules/fcntl-h-tests: Depend on it.
34277         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
34278         * modules/glob-tests: Depend on it.
34279         * modules/iconv-h-c++-tests: New file, extracted from
34280         modules/iconv-h-tests.
34281         * modules/iconv-h-tests: Depend on it.
34282         * modules/langinfo-c++-tests: New file, extracted from
34283         modules/langinfo-tests.
34284         * modules/langinfo-tests: Depend on it.
34285         * modules/locale-c++-tests: New file, extracted from
34286         modules/locale-tests.
34287         * modules/locale-tests: Depend on it.
34288         * modules/math-c++-tests: New file, extracted from modules/math-tests.
34289         * modules/math-tests: Depend on it.
34290         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
34291         * modules/pty-tests: Depend on it.
34292         * modules/search-c++-tests: New file, extracted from
34293         modules/search-tests.
34294         * modules/search-tests: Depend on it.
34295         * modules/signal-c++-tests: New file, extracted from
34296         modules/signal-tests.
34297         * modules/signal-tests: Depend on it.
34298         * modules/spawn-c++-tests: New file, extracted from
34299         modules/spawn-tests.
34300         * modules/spawn-tests: Depend on it.
34301         * modules/stdio-c++-tests: New file, extracted from
34302         modules/stdio-tests.
34303         * modules/stdio-tests: Depend on it.
34304         * modules/stdlib-c++-tests: New file, extracted from
34305         modules/stdlib-tests.
34306         * modules/stdlib-tests: Depend on it.
34307         * modules/string-c++-tests: New file, extracted from
34308         modules/string-tests.
34309         * modules/string-tests: Depend on it.
34310         * modules/sys_ioctl-c++-tests: New file, extracted from
34311         modules/sys_ioctl-tests.
34312         * modules/sys_ioctl-tests: Depend on it.
34313         * modules/sys_select-c++-tests: New file, extracted from
34314         modules/sys_select-tests.
34315         * modules/sys_select-tests: Depend on it.
34316         * modules/sys_socket-c++-tests: New file, extracted from
34317         modules/sys_socket-tests.
34318         * modules/sys_socket-tests: Depend on it.
34319         * modules/sys_stat-c++-tests: New file, extracted from
34320         modules/sys_stat-tests.
34321         * modules/sys_stat-tests: Depend on it.
34322         * modules/sys_time-c++-tests: New file, extracted from
34323         modules/sys_time-tests.
34324         * modules/sys_time-tests: Depend on it.
34325         * modules/time-c++-tests: New file, extracted from modules/time-tests.
34326         * modules/time-tests: Depend on it.
34327         * modules/unistd-c++-tests: New file, extracted from
34328         modules/unistd-tests.
34329         * modules/unistd-tests: Depend on it.
34330         * modules/wchar-c++-tests: New file, extracted from
34331         modules/wchar-tests.
34332         * modules/wchar-tests: Depend on it.
34333         * modules/wctype-c++-tests: New file, extracted from
34334         modules/wctype-tests.
34335         * modules/wctype-tests: Depend on it.
34336         Reported by Simon Josefsson.
34337
34338 2010-03-28  Bruno Haible  <bruno@clisp.org>
34339
34340         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
34341         * gnulib-tool (func_exists_module): New function, extracted from
34342         func_verify_module.
34343         (func_verify_module): Use it.
34344         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
34345         'foo' only if 'foo' exists.
34346         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
34347         module.
34348
34349 2010-03-28  Bruno Haible  <bruno@clisp.org>
34350
34351         gnulib-tool: Add support for special categories of tests.
34352         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
34353         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
34354         (func_usage): Document them.
34355         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
34356         inc_unportable_tests, inc_all_tests): New variables.
34357         (func_acceptable): Consider these variables.
34358         (func_modules_transitive_closure): Make it work when the 'Status' field
34359         consists of multiple words.
34360         (func_import): Store and restore the values of inc_cxx_tests,
34361         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
34362         inc_all_tests in gnulib-comp.m4.
34363         (func_create_testdir): Set inc_all_tests to true.
34364         * doc/gnulib.texi (Extra tests modules): New section.
34365         Suggested by Jim Meyering.
34366
34367 2010-03-28  Bruno Haible  <bruno@clisp.org>
34368
34369         ansi-c++-opt: Allow turning off the C++ build by default.
34370         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
34371         gl_CXX_CHOICE_DEFAULT_NO is defined.
34372         Requested by Eric Blake.
34373
34374 2010-03-28  Bruno Haible  <bruno@clisp.org>
34375
34376         unistd: Avoid #define replacements in C++ mode.
34377         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
34378         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
34379         setsockopt, shutdown, select): In C++, attach a warning to the function
34380         if possible, rather than #defining the symbol to a dysfunctional alias.
34381         Reported by John W. Eaton <jwe@gnu.org>.
34382
34383 2010-03-28  Bruno Haible  <bruno@clisp.org>
34384
34385         Fix link errors on mingw.
34386         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
34387         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
34388         $(LIBSOCKET).
34389         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
34390         $(LIBSOCKET).
34391
34392 2010-03-28  Bruno Haible  <bruno@clisp.org>
34393             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34394
34395         lib-ignore: Determine different options for different compilers.
34396         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
34397         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
34398         Add comments.
34399         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
34400         * NEWS: Mention the change.
34401
34402 2010-03-27  Bruno Haible  <bruno@clisp.org>
34403
34404         Remove unused GNULIB_XYZ macro definitions.
34405         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34406         * modules/fseek (configure.ac): Likewise.
34407         * modules/ioctl (configure.ac): Likewise.
34408         * modules/open (configure.ac): Likewise.
34409         * modules/stdlib-safer (configure.ac): Likewise.
34410
34411 2010-03-27  Bruno Haible  <bruno@clisp.org>
34412
34413         Add a remark about certain modules.
34414         * modules/malloc (Comment): New section.
34415         * modules/realloc (Comment): Likewise.
34416         * modules/sigpipe (Comment): Likewise.
34417
34418 2010-03-27  Bruno Haible  <bruno@clisp.org>
34419
34420         Resolve conflict between the two kinds of module indicators.
34421         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
34422         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
34423         * modules/canonicalize (configure.ac): Invoke
34424         gl_MODULE_INDICATOR_FOR_TESTS.
34425         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
34426         GNULIB_XYZ.
34427         * tests/test-dirent-c++.cc: Likewise.
34428         * tests/test-dirent-safer.c: Likewise.
34429         * tests/test-dup2.c: Likewise.
34430         * tests/test-fchdir.c: Likewise.
34431         * tests/test-fcntl-h-c++.cc: Likewise.
34432         * tests/test-getopt.c: Likewise.
34433         * tests/test-getopt.h: Likewise.
34434         * tests/test-langinfo-c++.cc: Likewise.
34435         * tests/test-locale-c++.cc: Likewise.
34436         * tests/test-math-c++.cc: Likewise.
34437         * tests/test-pty-c++.cc: Likewise.
34438         * tests/test-search-c++.cc: Likewise.
34439         * tests/test-signal-c++.cc: Likewise.
34440         * tests/test-spawn-c++.cc: Likewise.
34441         * tests/test-stdio-c++.cc: Likewise.
34442         * tests/test-stdlib-c++.cc: Likewise.
34443         * tests/test-string-c++.cc: Likewise.
34444         * tests/test-sys_ioctl-c++.cc: Likewise.
34445         * tests/test-sys_select-c++.cc: Likewise.
34446         * tests/test-sys_socket-c++.cc: Likewise.
34447         * tests/test-sys_stat-c++.cc: Likewise.
34448         * tests/test-sys_time-c++.cc: Likewise.
34449         * tests/test-time-c++.cc: Likewise.
34450         * tests/test-unistd-c++.cc: Likewise.
34451         * tests/test-wchar-c++.cc: Likewise.
34452         * tests/uninorm/test-u8-nfc.c: Likewise.
34453         * tests/uninorm/test-u8-nfd.c: Likewise.
34454         * tests/uninorm/test-u8-nfkc.c: Likewise.
34455         * tests/uninorm/test-u8-nfkd.c: Likewise.
34456         * tests/uninorm/test-u16-nfc.c: Likewise.
34457         * tests/uninorm/test-u16-nfd.c: Likewise.
34458         * tests/uninorm/test-u16-nfkc.c: Likewise.
34459         * tests/uninorm/test-u16-nfkd.c: Likewise.
34460         * tests/uninorm/test-u32-nfc.c: Likewise.
34461         * tests/uninorm/test-u32-nfc-big.c: Likewise.
34462         * tests/uninorm/test-u32-nfd.c: Likewise.
34463         * tests/uninorm/test-u32-nfd-big.c: Likewise.
34464         * tests/uninorm/test-u32-nfkc.c: Likewise.
34465         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
34466         * tests/uninorm/test-u32-nfkd.c: Likewise.
34467         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
34468         * tests/uninorm/test-u32-normalize-big.c: Likewise.
34469
34470 2010-03-27  Bruno Haible  <bruno@clisp.org>
34471
34472         Distinguish two kinds of module indicators.
34473         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
34474         gl_MODULE_INDICATOR.
34475         (gl_MODULE_INDICATOR): New macro.
34476         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34477         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
34478         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34479         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34480         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34481         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34482         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34483         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34484         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34485         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34486         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34487         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34488         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34489         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34490         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34491         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34492         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34493         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34494         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34495         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34496         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34497         * modules/cloexec (configure.ac): Likewise.
34498         * modules/getopt-gnu (configure.ac): Likewise.
34499         * modules/uninorm/u8-normalize (configure.ac): Likewise.
34500         * modules/uninorm/u16-normalize (configure.ac): Likewise.
34501         * modules/uninorm/u32-normalize (configure.ac): Likewise.
34502         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
34503
34504 2010-03-27  Bruno Haible  <bruno@clisp.org>
34505
34506         New module description field 'Comment'.
34507         * gnulib-tool: New option --extract-comment.
34508         (func_usage): Document it.
34509         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
34510         (func_get_comment): New function.
34511         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
34512
34513 2010-03-27  Bruno Haible  <bruno@clisp.org>
34514
34515         Addendum to 2010-02-07 commit.
34516         * gnulib-tool (func_usage): Document --extract-applicability option.
34517
34518 2010-03-27  Bruno Haible  <bruno@clisp.org>
34519
34520         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
34521         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
34522         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
34523         rather than link errors.
34524
34525 2010-03-27  Bruno Haible  <bruno@clisp.org>
34526
34527         Avoid side effects from tests-related modules on the compilation of lib.
34528         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
34529         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
34530         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
34531         parameter. Emit into AM_CPPFLAGS a definition of the designated C
34532         macro.
34533         (func_import): Define a witness macro. Assign it a value that depends
34534         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
34535         tests-related modules.
34536         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
34537         Reported by Jim Meyering.
34538
34539 2010-03-27  Bruno Haible  <bruno@clisp.org>
34540
34541         Factorize common .m4 code.
34542         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
34543         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
34544         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
34545         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
34546         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34547         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
34548         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
34549         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34550         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34551         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34552         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
34553         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34554         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34555         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34556         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34557         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
34558         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34559         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34560         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34561         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
34562         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
34563         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34564         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34565         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34566         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34567         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34568         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
34569         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
34570         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
34571         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34572         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34573         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34574
34575 2010-03-27  Bruno Haible  <bruno@clisp.org>
34576
34577         Fix a compilation error on Cygwin with g++ >= 4.3.
34578         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
34579         if it is undefined or if we alias it to chmod.
34580         (lstat): Don't warn about the use of this function if it is undefined
34581         or if we alias it to stat.
34582         Reported by Simon Josefsson.
34583
34584 2010-03-27  Bruno Haible  <bruno@clisp.org>
34585
34586         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
34587         * modules/getlogin (configure.ac): Update.
34588
34589         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
34590         * modules/getlogin_r (configure.ac): Update.
34591
34592         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
34593         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
34594         * modules/inet_ntop (configure.ac): Update.
34595
34596         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
34597         * modules/inet_pton (configure.ac): Update.
34598
34599         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
34600         * modules/mbslen (configure.ac): Update.
34601
34602         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
34603         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
34604         * modules/forkpty (configure.ac): Update.
34605         * modules/openpty (configure.ac): Update.
34606
34607 2010-03-26  Simon Josefsson  <simon@josefsson.org>
34608
34609         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
34610         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
34611
34612 2010-03-25  Eric Blake  <eblake@redhat.com>
34613
34614         maint: use pragma consistently across replacement headers
34615         * lib/ctype.in.h (system_header): Hoist for consistent placement.
34616         * lib/dirent.in.h (system_header): Likewise.
34617         * lib/errno.in.h (system_header): Likewise.
34618         * lib/float.in.h (system_header): Likewise.
34619         * lib/getopt.in.h (system_header): Likewise.
34620         * lib/iconv.in.h (system_header): Likewise.
34621         * lib/inttypes.in.h (system_header): Likewise.
34622         * lib/langinfo.in.h (system_header): Likewise.
34623         * lib/locale.in.h (system_header): Likewise.
34624         * lib/math.in.h (system_header): Likewise.
34625         * lib/netdb.in.h (system_header): Likewise.
34626         * lib/netinet_in.in.h (system_header): Likewise.
34627         * lib/pty.in.h (system_header): Likewise.
34628         * lib/sched.in.h (system_header): Likewise.
34629         * lib/se-selinux.in.h (system_header): Likewise.
34630         * lib/search.in.h (system_header): Likewise.
34631         * lib/spawn.in.h (system_header): Likewise.
34632         * lib/stdarg.in.h (system_header): Likewise.
34633         * lib/stdint.in.h (system_header): Likewise.
34634         * lib/string.in.h (system_header): Likewise.
34635         * lib/strings.in.h (system_header): Likewise.
34636         * lib/sys_file.in.h (system_header): Likewise.
34637         * lib/sys_ioctl.in.h (system_header): Likewise.
34638         * lib/sys_socket.in.h (system_header): Likewise.
34639         * lib/sys_times.in.h (system_header): Likewise.
34640         * lib/sys_utsname.in.h (system_header): Likewise.
34641         * lib/sys_wait.in.h (system_header): Likewise.
34642         * lib/sysexits.in.h (system_header): Likewise.
34643         * lib/unistd.in.h (system_header): Likewise.
34644         * lib/wctype.in.h (system_header): Likewise.
34645
34646         arpa/inet: fix mingw compilation warning
34647         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
34648         Reported by Matthew Bolte.
34649
34650 2010-03-25  Bruno Haible  <bruno@clisp.org>
34651
34652         Avoid collision between gnulib wrapper and libintl wrapper.
34653         * lib/printf.c (printf): Don't define if a printf wrapper is already
34654         defined in intl/printf.c.
34655         Reported by Michel Boaventura <michel@michelboaventura.com>.
34656
34657 2010-03-25  Bruno Haible  <bruno@clisp.org>
34658
34659         Use ANSI C.
34660         * lib/readutmp.h (getutent): Provide ANSI C prototype.
34661
34662 2010-03-25  Bruno Haible  <bruno@clisp.org>
34663
34664         Minor formatting changes.
34665         * lib/acosl.c: Insert space before function argument list.
34666         * lib/argz.c: Likewise.
34667         * lib/asinl.c: Likewise.
34668         * lib/expl.c: Likewise.
34669         * lib/gen-uni-tables.c: Likewise.
34670         * lib/gettext.h: Likewise.
34671         * lib/glthread/lock.h: Likewise.
34672         * lib/tanl.c: Likewise.
34673         * lib/uniname/uniname.c: Likewise.
34674         * tests/test-idpriv-drop.c: Likewise.
34675         * tests/test-idpriv-droptemp.c: Likewise.
34676         * tests/test-lock.c: Likewise.
34677         * tests/test-tls.c: Likewise.
34678         * lib/argp-help.c: Insert space before function-like macro argument
34679         list.
34680         * lib/memcmp.c: Likewise.
34681         * tests/test-base64.c: Likewise.
34682         * lib/localename.c: Insert space before sizeof's argument list.
34683         * lib/safe-alloc.h: Likewise.
34684         * lib/file-set.h: Insert space before macro argument list.
34685         * tests/test-argp.c: Likewise.
34686         * lib/argp-namefrob.h: Insert space before function parameter list.
34687         * lib/getaddrinfo.c: Likewise.
34688         * lib/netdb.in.h: Likewise.
34689         * lib/parse-duration.h: Likewise.
34690         * lib/parse-duration.c: Likewise.
34691         * lib/poll.c: Likewise.
34692         * lib/select.c: Likewise.
34693         * lib/trim.h: Likewise.
34694         * tests/test-usleep.c: Likewise.
34695         * lib/ldexpl.c: Insert space before function parameter list and before
34696         function argument list.
34697         * lib/logl.c: Likewise.
34698         * lib/sqrtl.c: Likewise.
34699         * lib/trim.c: Likewise.
34700         * lib/cosl.c: Use GNU style indentation. Insert space before function
34701         argument list.
34702         * lib/sinl.c: Likewise.
34703         * lib/tsearch.c: Insert space after 'for'.
34704         Reported by Jim Meyering.
34705
34706 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
34707
34708         * maint.mk (sc_Wundef_boolean): Check for the presence of the
34709         config header before grepping, as it's not present before
34710         autoreconf/configure are run.  Reported by Simon Josefsson.
34711
34712 2010-03-23  Bruno Haible  <bruno@clisp.org>
34713
34714         pt_chown: Make it work with automake < 1.11.
34715         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
34716         Reported by Simon Josefsson.
34717
34718 2010-03-23  Bruno Haible  <bruno@clisp.org>
34719
34720         pt_chown: Don't depend on GPLed modules.
34721         * lib/pt_chown.c: Don't include idpriv.h.
34722         (main): Don't drop privileges.
34723         * modules/pt_chown (Depends-on): Remove idpriv-drop.
34724         Reported by Simon Josefsson.
34725
34726 2010-03-24  Simon Josefsson  <simon@josefsson.org>
34727
34728         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
34729         suggestions from karl@freefriends.org (Karl Berry).
34730
34731 2010-03-22  Eric Blake  <eblake@redhat.com>
34732
34733         gethostname: further tweaks
34734         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
34735         are overriding gethostname.
34736         Suggested by Bruno Haible.
34737
34738 2010-03-21  Bruno Haible  <bruno@clisp.org>
34739
34740         Fix comments.
34741         * lib/forkpty.c (rpl_forkpty): Fix comment.
34742         * lib/openpty.c (rpl_openpty): Likewise.
34743         Reported by Eric Blake.
34744
34745 2010-03-22  Eric Blake  <eblake@redhat.com>
34746
34747         gethostname: fix build on mingw
34748         * lib/unistd.in.h (includes): Work around fact that mingw
34749         <winsock2.h> re-includes <unistd.h>, by avoiding any
34750         redeclarations if we are being included by <winsock2.h>.
34751         Reported by Matthias Bolte.
34752
34753 2010-03-21  Bruno Haible  <bruno@clisp.org>
34754
34755         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34756         * lib/forkpty.c (forkpty): New replacement function, from glibc with
34757         modifications.
34758         * lib/pty.in.h (forkpty): Update declaration. Add comments.
34759         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
34760         provide the replacement.
34761         * modules/forkpty (Depends-on): Add openpty, login_tty.
34762         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
34763         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
34764         * doc/glibc-functions/forkpty.texi: More supported platforms.
34765         * config/srclist.txt: Add forkpty.c (commented).
34766
34767 2010-03-21  Bruno Haible  <bruno@clisp.org>
34768
34769         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
34770         (Makefile.am): Verify that PTY_LIB is defined.
34771
34772         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
34773
34774 2010-03-21  Bruno Haible  <bruno@clisp.org>
34775
34776         Tests for module 'login_tty'.
34777         * modules/login_tty-tests: New file.
34778         * tests/test-login_tty.c: New file.
34779
34780         New module 'login_tty'.
34781         * lib/login_tty.c: New file.
34782         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
34783         * modules/login_tty: New file.
34784         * doc/glibc-functions/login_tty.texi: Mention the new module.
34785
34786 2010-03-21  Bruno Haible  <bruno@clisp.org>
34787
34788         login_tty: Documentation.
34789         * doc/glibc-functions/login_tty.texi: New file.
34790         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
34791
34792 2010-03-21  Bruno Haible  <bruno@clisp.org>
34793
34794         pty: Consistent macro naming.
34795         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
34796         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
34797         * modules/pty (configure.ac): Update.
34798
34799 2010-03-21  Bruno Haible  <bruno@clisp.org>
34800
34801         Tests for openpty: Make stricter.
34802         * tests/test-openpty.c (main): Add test of canonical processing and
34803         erase.
34804         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
34805
34806         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34807         * lib/openpty.c (openpty): New replacement function.
34808         * lib/pty.in.h: Include <termios.h>.
34809         (openpty): Update declaration. Add comments.
34810         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
34811         is not declared, arrange to provide the replacement. Check for _getpty
34812         and posix_openpt.
34813         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
34814         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
34815         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
34816         * modules/pty-tests (test_pty_c___LDADD): New variable.
34817         * doc/glibc-functions/openpty.texi: More supported platforms.
34818
34819 2010-03-21  Bruno Haible  <bruno@clisp.org>
34820
34821         setenv: Tweaks.
34822         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
34823         the test program.
34824         * doc/posix-functions/setenv.texi: Update platforms list.
34825
34826 2010-03-21  Bruno Haible  <bruno@clisp.org>
34827
34828         New module 'unlockpt'.
34829         * lib/unlockpt.c: New file, from glibc with modifications.
34830         * m4/unlockpt.m4: New file.
34831         * modules/unlockpt: New file.
34832         * lib/stdlib.in.h (unlockpt): New declaration.
34833         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
34834         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
34835         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
34836         HAVE_UNLOCKPT.
34837         * doc/posix-functions/unlockpt.texi: Mention the new module.
34838         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
34839         * config/srclist.txt: Add unlockpt.c (commented).
34840
34841 2010-03-21  Jim Meyering  <meyering@redhat.com>
34842
34843         maint.mk: prohibit inclusion of "intprops.h" without use
34844         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
34845
34846 2010-03-21  Bruno Haible  <bruno@clisp.org>
34847
34848         New module 'grantpt'.
34849         * lib/grantpt.c: New file, from glibc with modifications.
34850         * m4/grantpt.m4: New file.
34851         * modules/grantpt: New file.
34852         * lib/stdlib.in.h (grantpt): New declaration.
34853         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
34854         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
34855         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
34856         HAVE_GRANTPT.
34857         * doc/posix-functions/grantpt.texi: Mention the new module.
34858         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
34859         * config/srclist.txt: Add grantpt.c (commented).
34860
34861 2010-03-21  Bruno Haible  <bruno@clisp.org>
34862
34863         New module 'pt_chown'.
34864         * lib/pt_chown.c: New file, from glibc with modifications.
34865         * lib/pty-private.h: New file, from glibc with modifications.
34866         * modules/pt_chown: New file.
34867         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
34868
34869 2010-03-21  Bruno Haible  <bruno@clisp.org>
34870
34871         Tests for module 'ptsname'.
34872         * modules/ptsname-tests: New file.
34873         * tests/test-ptsname.c: New file.
34874
34875         New module 'ptsname'.
34876         * lib/ptsname.c: New file, from glibc with modifications.
34877         * m4/ptsname.m4: New file.
34878         * modules/ptsname: New file.
34879         * lib/stdlib.in.h (ptsname): New declaration.
34880         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
34881         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
34882         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
34883         HAVE_PTSNAME.
34884         * doc/posix-functions/ptsname.texi: Mention the new module.
34885         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
34886         * config/srclist.txt: Add ptsname.c (commented).
34887
34888 2010-03-21  Bruno Haible  <bruno@clisp.org>
34889
34890         Tests for module 'ttyname_r'.
34891         * modules/ttyname_r-tests: New file.
34892         * tests/test-ttyname_r.c: New file.
34893
34894         New module 'ttyname_r'.
34895         * lib/ttyname_r.c: New file.
34896         * m4/ttyname_r.m4: New file.
34897         * modules/ttyname_r: New file.
34898         * lib/unistd.in.h (ttyname_r): New declaration.
34899         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
34900         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
34901         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
34902         HAVE_TTYNAME_R.
34903         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
34904         * doc/posix-functions/ttyname_r.texi: Mention the new module.
34905
34906 2010-03-20  Bruno Haible  <bruno@clisp.org>
34907
34908         signal: Undefine macro definitions in C++ mode.
34909         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
34910         sigfillset): Undefine macro definitions from the system header in C++
34911         mode.
34912         Reported by John W. Eaton <jwe@gnu.org>.
34913
34914 2010-03-20  Bruno Haible  <bruno@clisp.org>
34915
34916         Ensure no #include statements inside extern "C" { ... }.
34917         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
34918         contain #include statements.
34919         * lib/time.in.h: Likewise.
34920
34921 2010-03-20  Bruno Haible  <bruno@clisp.org>
34922
34923         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
34924         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
34925         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
34926         Reported by John W. Eaton <jwe@gnu.org>.
34927
34928 2010-03-20  Bruno Haible  <bruno@clisp.org>
34929
34930         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
34931         Reported by Jim Meyering.
34932
34933 2010-03-20  Bruno Haible  <bruno@clisp.org>
34934
34935         pipe: Set errno upon failure.
34936         * lib/pipe.h: Specify that when -1 is returned, errno is set.
34937         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
34938         errno value in error message.
34939
34940 2010-03-20  Bruno Haible  <bruno@clisp.org>
34941             Jim Meyering  <meyering@redhat.com>
34942
34943         lchown: Avoid "unused variable" warning.
34944         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
34945
34946 2010-03-20  Bruno Haible  <bruno@clisp.org>
34947
34948         Work around unlink() bug on MacOS X 10.5.6.
34949         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
34950         attempting to unlink a parent directory.
34951         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
34952         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
34953         activate for the replacement function.
34954         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
34955
34956 2010-03-20  Bruno Haible  <bruno@clisp.org>
34957
34958         Fix link errors on Solaris 8.
34959         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
34960         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
34961
34962 2010-03-19  Jim Meyering  <meyering@redhat.com>
34963
34964         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
34965         The _LIBC implementation of build_range_exp correctly honors the
34966         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
34967         However, the non-_LIBC implementation would ignore that syntax-bit
34968         flag and return REG_ERANGE unconditionally.
34969         This change makes it honor that flag.
34970         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
34971         Make two pointer parameters "const".
34972         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
34973         (parse_bracket_exp): Update caller.
34974
34975         regex.m4: correct the reversed range endpoint ([b-a]) test
34976         * m4/regex.m4: When requiring that [b-a] evoke failure,
34977         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
34978         test pass once again for x86-based systems.
34979
34980 2010-03-19  Bruno Haible  <bruno@clisp.org>
34981
34982         scandir: Fix link error on Solaris 8.
34983         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
34984         macros.
34985
34986 2010-03-19  Bruno Haible  <bruno@clisp.org>
34987
34988         getusershell: Fix documentation.
34989         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
34990         module.
34991         * doc/glibc-functions/setusershell.texi: Likewise.
34992
34993         getusershell: Provide declaration, missing on Solaris 9.
34994         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
34995         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
34996         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
34997         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
34998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34999         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
35000         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
35001         HAVE_GETUSERSHELL.
35002         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
35003
35004 2010-03-19  Bruno Haible  <bruno@clisp.org>
35005
35006         wctype: Provide iswblank function.
35007         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
35008         exists and is fine.
35009         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
35010         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
35011         * tests/test-wctype.c (main): Re-enable the iswblank tests.
35012         * doc/posix-functions/iswblank.texi: Update.
35013
35014 2010-03-19  Bruno Haible  <bruno@clisp.org>
35015
35016         Tests of module 'pty' in C++ mode.
35017         * modules/pty-tests: New file.
35018         * tests/test-pty-c++.cc: New file.
35019         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35020
35021 2010-03-19  Eric Blake  <eblake@redhat.com>
35022
35023         logb: fix documentation
35024         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
35025         1.5 declaration bug.
35026
35027         forkpty, openpty: prefer glibc's const-safe prototype
35028         * lib/forkpty.c (rpl_forkpty): New file.
35029         * lib/openpty.c (rpl_openpty): Likewise.
35030         * modules/forkpty (Files): Distribute it.
35031         * modules/openpty (Files): Likewise.
35032         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
35033         check...
35034         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
35035         replacement for for non-const BSD signature.
35036         * modules/pty (Makefile.am): Substitute witnesses.
35037         * lib/pty.in.h (forkpty, openpty): Declare replacements.
35038         * tests/test-forkpty.c: Update signature check.
35039         * tests/test-openpty.c: Likewise.
35040         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
35041         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35042
35043         forkpty, openpty: split functions into new modules
35044         * modules/pty (Makefile.am): Substitute new witnesses.
35045         (Libraries): Move library detection...
35046         * modules/forkpty: ...into new module.
35047         * modules/openpty: Another new module.
35048         * modules/pty-tests: Rename and split...
35049         * modules/forkpty-tests: ...to this...
35050         * modules/openpty-tests: ...and this.
35051         * tests/test-pty.c: Rename and split...
35052         * tests/test-forkpty.c: ...to this...
35053         * tests/test-openpty.c: ...and this.
35054         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
35055         (gl_PTY): Split library searching...
35056         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
35057         (gl_FORKPTY, gl_OPENPTY): New macros.
35058         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
35059         * NEWS: Mention the split.
35060         * MODULES.html.sh (Misc): Document the modules.
35061         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
35062         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35063
35064         pty: improve replacement header
35065         * lib/pty.in.h: New file.
35066         * modules/pty (Files): Ship it.
35067         (Makefile.am): Always build replacement.
35068         * m4/pty.m4: Rename...
35069         * m4/pty_h.m4: ...to this.
35070         (gl_PTY): Modernize setting of witness macros; update check of
35071         forkpty to take proper advantage of cache.
35072         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
35073
35074         getopt: avoid compiler warning
35075         * lib/getopt.c (attribute_hidden): Remove unused macro.
35076
35077 2010-03-18  Bruno Haible  <bruno@clisp.org>
35078
35079         Fix link errors on Solaris 8.
35080         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
35081         * modules/search-tests (test_search_c___LDADD): Likewise.
35082         * modules/signal-tests (test_signal_c___LDADD): Likewise.
35083         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
35084         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
35085         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
35086         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
35087         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
35088         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
35089
35090 2010-03-18  Bruno Haible  <bruno@clisp.org>
35091
35092         Fix bug introduced on 2010-03-14.
35093         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
35094         (gl_SPAWN_H): Require it.
35095         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
35096         Reported by Simon Josefsson.
35097
35098 2010-03-18  Bruno Haible  <bruno@clisp.org>
35099
35100         Fix typo introduced on 2009-12-31.
35101         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
35102         posix_spawn_file_actions_adddup2.
35103
35104 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
35105         and Eric Blake  <eblake@redhat.com>
35106
35107         test-vc-list-files-git: make more robust
35108         * tests/test-vc-list-files-git.sh: Unset problematic environment
35109         variables.  Chain commands together.
35110
35111 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
35112
35113         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
35114         `AC_CHECK_DECL' invocation.
35115
35116 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
35117
35118         * lib/inttostr.c (inttostr): Make sure the invocation of verify
35119         appears before executable statements. Suggested by Petr Sumbera
35120         <Petr.Sumbera@Sun.COM>.
35121
35122 2010-03-14  Bruno Haible  <bruno@clisp.org>
35123
35124         * tests/test-flock.c (test_exclusive): Comment out a test that causes
35125         portability problems. Instead use a simpler test.
35126         (main): Check that invalid arguments are rejected only on Linux.
35127
35128 2010-03-14  Bruno Haible  <bruno@clisp.org>
35129
35130         Fix bug introduced on 2009-12-31.
35131         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35132         gl_PREREQ_SYS_H_WINSOCK2 always.
35133         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
35134         SYS_SOCKET_H variable.
35135         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
35136         Update comments.
35137         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
35138         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35139         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35140         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
35141         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
35142
35143 2010-03-14  Bruno Haible  <bruno@clisp.org>
35144
35145         Fix values returned by sinl, cosl.
35146         * lib/trigl.h: Add specification comments.
35147         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
35148         that combines the values from the precomputed table with the values of
35149         the Chebyshev polynomials.
35150
35151 2010-03-14  Bruno Haible  <bruno@clisp.org>
35152
35153         Fix compilation error when modules 'posix_spawn[p]' are not used.
35154         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
35155         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
35156
35157 2010-03-14  Bruno Haible  <bruno@clisp.org>
35158
35159         Fix compilation error on mingw when module 'time_r' is not used.
35160         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
35161         is 1.
35162         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
35163         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35164         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
35165         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
35166
35167 2010-03-14  Bruno Haible  <bruno@clisp.org>
35168
35169         Fix compilation error with Sun C.
35170         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
35171         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
35172         instead of GCC specific ULONG_LONG_MAX.
35173         * lib/xstrtoll.c: Likewise.
35174         * lib/xstrtoull.c: Likewise.
35175
35176 2010-03-13  Bruno Haible  <bruno@clisp.org>
35177
35178         Allow the user to disable C++ code and tests.
35179         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
35180         (gl_PROG_ANSI_CXX): Require it.
35181
35182 2010-03-13  Bruno Haible  <bruno@clisp.org>
35183
35184         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
35185         cases.
35186
35187 2010-03-13  Bruno Haible  <bruno@clisp.org>
35188
35189         Test that gnulib does not break the standard C++ headers.
35190         * tests/test-locale-c++2.cc: New file.
35191         * modules/locale-tests (Files): Add it.
35192         (Makefile.am): Compile it for test-locale-c++.
35193         * tests/test-math-c++2.cc: New file.
35194         * modules/math-tests (Files): Add it.
35195         (Makefile.am): Compile it for test-math-c++.
35196         * tests/test-signal-c++2.cc: New file.
35197         * modules/signal-tests (Files): Add it.
35198         (Makefile.am): Compile it for test-signal-c++.
35199         * tests/test-stdio-c++2.cc: New file.
35200         * modules/stdio-tests (Files): Add it.
35201         (Makefile.am): Compile it for test-stdio-c++.
35202         * tests/test-stdlib-c++2.cc: New file.
35203         * modules/stdlib-tests (Files): Add it.
35204         (Makefile.am): Compile it for test-stdlib-c++.
35205         * tests/test-string-c++2.cc: New file.
35206         * modules/string-tests (Files): Add it.
35207         (Makefile.am): Compile it for test-string-c++.
35208         * tests/test-time-c++2.cc: New file.
35209         * modules/time-tests (Files): Add it.
35210         (Makefile.am): Compile it for test-time-c++.
35211         Reported by John W. Eaton <jwe@gnu.org>.
35212
35213 2010-03-13  Bruno Haible  <bruno@clisp.org>
35214
35215         * gnulib-tool (func_usage): Clarify which options are available for
35216         --create-testdir and --create-megatestdir.
35217
35218 2010-03-13  Bruno Haible  <bruno@clisp.org>
35219
35220         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
35221         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
35222         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
35223         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
35224         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
35225         when appropriate.
35226         Reported by Jim Meyering.
35227
35228 2010-03-12  Simon Josefsson  <simon@josefsson.org>
35229
35230         * gnulib-tool (func_import): Explain origin of code.
35231
35232 2010-03-12  Bruno Haible  <bruno@clisp.org>
35233
35234         Fix problem with automake's definition of CXXLINK.
35235         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
35236         Reported by Simon Josefsson and Ludovic Courtès.
35237
35238 2010-03-12  Bruno Haible  <bruno@clisp.org>
35239
35240         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
35241         stable releases.
35242
35243 2010-03-11  Bruno Haible  <bruno@clisp.org>
35244
35245         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
35246         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
35247         whether the system provides one variant or multiple variants of the
35248         function.
35249         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
35250         C++ compilers.
35251         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
35252         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
35253         Reported by Jim Meyering.
35254
35255 2010-03-09  Simon Josefsson  <simon@josefsson.org>
35256
35257         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
35258
35259 2010-03-08  Bruno Haible  <bruno@clisp.org>
35260
35261         gnulib-tool: Add support for --libtool in --create-testdir.
35262         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
35263         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
35264
35265 2010-03-08  Eric Blake  <eblake@redhat.com>
35266
35267         gnulib-tool.texi: mention possibility of git submodule
35268         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
35269         submodules.
35270         * doc/.gitignore: Ignore another generated file.
35271
35272 2010-03-08  Karl Berry  <karl@gnu.org>
35273
35274         * doc/gnulib-tool.texi (VCS Issues): Mention third option
35275         of committing gnulib files while skipping others.
35276
35277 2010-03-07  Bruno Haible  <bruno@clisp.org>
35278
35279         Tests of module 'wctype' in C++ mode.
35280         * tests/test-wctype-c++.cc: New file.
35281         * modules/wctype-tests (Files): Add it and tests/signature.h.
35282         (Depends-on): Add ansi-c++-opt.
35283         (Makefile.am): Arrange to compile and run test-wctype-c++.
35284
35285         Tests of module 'wchar' in C++ mode.
35286         * tests/test-wchar-c++.cc: New file.
35287         * modules/wchar-tests (Files): Add it and tests/signature.h.
35288         (Depends-on): Add ansi-c++-opt.
35289         (Makefile.am): Arrange to compile and run test-wchar-c++.
35290         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
35291         gl_MODULE_INDICATOR.
35292
35293         Tests of module 'unistd' in C++ mode.
35294         * tests/test-unistd-c++.cc: New file.
35295         * modules/unistd-tests (Files): Add it and tests/signature.h.
35296         (Depends-on): Add ansi-c++-opt.
35297         (Makefile.am): Arrange to compile and run test-unistd-c++.
35298         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
35299         gl_MODULE_INDICATOR.
35300
35301         Tests of module 'time' in C++ mode.
35302         * tests/test-time-c++.cc: New file.
35303         * modules/time-tests (Files): Add it and tests/signature.h.
35304         (Depends-on): Add ansi-c++-opt.
35305         (Makefile.am): Arrange to compile and run test-time-c++.
35306         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35307
35308         Tests of module 'sys_time' in C++ mode.
35309         * tests/test-sys_time-c++.cc: New file.
35310         * modules/sys_time-tests (Files): Add it and tests/signature.h.
35311         (Depends-on): Add ansi-c++-opt.
35312         (Makefile.am): Arrange to compile and run test-sys_time-c++.
35313         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
35314         gl_MODULE_INDICATOR.
35315
35316         Tests of module 'sys_stat' in C++ mode.
35317         * tests/test-sys_stat-c++.cc: New file.
35318         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
35319         (Depends-on): Add ansi-c++-opt.
35320         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
35321         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
35322         gl_MODULE_INDICATOR.
35323
35324         Tests of module 'sys_socket' in C++ mode.
35325         * tests/test-sys_socket-c++.cc: New file.
35326         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
35327         (Depends-on): Add ansi-c++-opt.
35328         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
35329         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
35330         gl_MODULE_INDICATOR.
35331
35332         Tests of module 'sys_select' in C++ mode.
35333         * tests/test-sys_select-c++.cc: New file.
35334         * modules/sys_select-tests (Files): Add it and tests/signature.h.
35335         (Depends-on): Add ansi-c++-opt.
35336         (Makefile.am): Arrange to compile and run test-sys_select-c++.
35337         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
35338         gl_MODULE_INDICATOR.
35339
35340         Tests of module 'sys_ioctl' in C++ mode.
35341         * tests/test-sys_ioctl-c++.cc: New file.
35342         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
35343         (Depends-on): Add ansi-c++-opt.
35344         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
35345         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
35346         gl_MODULE_INDICATOR.
35347
35348         Tests of module 'string' in C++ mode.
35349         * tests/test-string-c++.cc: New file.
35350         * modules/string-tests (Files): Add it and tests/signature.h.
35351         (Depends-on): Add ansi-c++-opt.
35352         (Makefile.am): Arrange to compile and run test-string-c++.
35353         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
35354         gl_MODULE_INDICATOR.
35355
35356         Tests of module 'stdlib' in C++ mode.
35357         * tests/test-stdlib-c++.cc: New file.
35358         * modules/stdlib-tests (Files): Add it and tests/signature.h.
35359         (Depends-on): Add ansi-c++-opt.
35360         (Makefile.am): Arrange to compile and run test-stdlib-c++.
35361         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
35362         gl_MODULE_INDICATOR.
35363
35364         Tests of module 'stdio' in C++ mode.
35365         * tests/test-stdio-c++.cc: New file.
35366         * modules/stdio-tests (Files): Add it and tests/signature.h.
35367         (Depends-on): Add ansi-c++-opt.
35368         (Makefile.am): Arrange to compile and run test-stdio-c++.
35369         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
35370         gl_MODULE_INDICATOR.
35371
35372         Tests of module 'spawn' in C++ mode.
35373         * tests/test-spawn-c++.cc: New file.
35374         * modules/spawn-tests (Files): Add it and tests/signature.h.
35375         (Depends-on): Add ansi-c++-opt.
35376         (Makefile.am): Arrange to compile and run test-spawn-c++.
35377         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
35378         gl_MODULE_INDICATOR.
35379
35380         Tests of module 'signal' in C++ mode.
35381         * tests/test-signal-c++.cc: New file.
35382         * modules/signal-tests (Files): Add it and tests/signature.h.
35383         (Depends-on): Add ansi-c++-opt.
35384         (Makefile.am): Arrange to compile and run test-signal-c++.
35385         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
35386         gl_MODULE_INDICATOR.
35387
35388         Tests of module 'search' in C++ mode.
35389         * tests/test-search-c++.cc: New file.
35390         * modules/search-tests (Files): Add it and tests/signature.h.
35391         (Depends-on): Add ansi-c++-opt.
35392         (Makefile.am): Arrange to compile and run test-search-c++.
35393         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
35394         gl_MODULE_INDICATOR.
35395
35396         Tests of module 'math' in C++ mode.
35397         * tests/test-math-c++.cc: New file.
35398         * modules/math-tests (Files): Add it and tests/signature.h.
35399         (Depends-on): Add ansi-c++-opt.
35400         (Makefile.am): Arrange to compile and run test-math-c++.
35401         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35402
35403         Tests of module 'locale' in C++ mode.
35404         * tests/test-locale-c++.cc: New file.
35405         * modules/locale-tests (Files): Add it and tests/signature.h.
35406         (Depends-on): Add ansi-c++-opt.
35407         (Makefile.am): Arrange to compile and run test-locale-c++.
35408         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
35409         gl_MODULE_INDICATOR.
35410
35411         Tests of module 'langinfo' in C++ mode.
35412         * tests/test-langinfo-c++.cc: New file.
35413         * modules/langinfo-tests (Files): Add it and tests/signature.h.
35414         (Depends-on): Add ansi-c++-opt.
35415         (Makefile.am): Arrange to compile and run test-langinfo-c++.
35416         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
35417         gl_MODULE_INDICATOR.
35418
35419         Tests of module 'iconv-h' in C++ mode.
35420         * tests/test-iconv-h-c++.cc: New file.
35421         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
35422         (Depends-on): Add ansi-c++-opt.
35423         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
35424
35425         Tests of module 'glob' in C++ mode.
35426         * tests/test-glob-c++.cc: New file.
35427         * modules/glob-tests (Files): Add it.
35428         (Depends-on): Add ansi-c++-opt.
35429         (Makefile.am): Arrange to compile and run test-glob-c++.
35430
35431         Tests of module 'fcntl-h' in C++ mode.
35432         * tests/test-fcntl-h-c++.cc: New file.
35433         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
35434         (Depends-on): Add ansi-c++-opt.
35435         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
35436         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
35437         gl_MODULE_INDICATOR.
35438
35439         Tests of module 'dirent' in C++ mode.
35440         * tests/test-dirent-c++.cc: New file.
35441         * modules/dirent-tests (Files): Add it and tests/signature.h.
35442         (Depends-on): Add ansi-c++-opt.
35443         (Makefile.am): Arrange to compile and run test-dirent-c++.
35444         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35445         gl_MODULE_INDICATOR.
35446
35447         New module 'ansi-c++-opt'.
35448         * modules/ansi-c++-opt: New file.
35449         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
35450
35451         Document C++ namespace mode.
35452         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
35453
35454         wctype: Avoid #define replacements in C++ mode.
35455         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
35456         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
35457         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
35458         In C++, define a namespaced alias symbol.
35459         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
35460         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
35461         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
35462         rule.
35463
35464         wchar: Avoid #define replacements in C++ mode.
35465         * lib/wchar.in.h: Include c++defs.h.
35466         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
35467         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
35468         symbol.
35469         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
35470         * modules/wchar (Depends-on): Add c++defs.
35471         (Makefile.am): Update wchar.h rule.
35472
35473         unistd: Avoid #define replacements in C++ mode.
35474         * lib/unistd.in.h: Include c++defs.h.
35475         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
35476         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
35477         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
35478         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
35479         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
35480         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
35481         symbol.
35482         (environ): Update.
35483         * modules/unistd (Depends-on): Add c++defs.
35484         (Makefile.am): Update unistd.h rule.
35485
35486         time: Avoid #define replacements in C++ mode.
35487         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
35488         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
35489         define a namespaced alias symbol.
35490         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
35491         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
35492         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
35493         * modules/time (Depends-on): Add c++defs, warn-on-use.
35494         (Makefile.am): Update time.h rule.
35495         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35496         * modules/nanosleep (configure.ac): Likewise.
35497         * modules/strptime (configure.ac): Likewise.
35498         * modules/timegm (configure.ac): Likewise.
35499
35500         sys_time: Avoid #define replacements in C++ mode.
35501         * lib/sys_time.in.h: Include c++defs.h.
35502         (gettimeofday): In C++, define a namespaced alias symbol.
35503         * modules/sys_time (Depends-on): Add c++defs.
35504         (Makefile.am): Update sys/time.h rule.
35505
35506         sys_stat: Avoid #define replacements in C++ mode.
35507         * lib/sys_stat.in.h: Include c++defs.h.
35508         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
35509         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
35510         namespaced alias symbol.
35511         In C++, define a namespaced alias symbol.
35512         * modules/sys_stat (Depends-on): Add c++defs.
35513         (Makefile.am): Update sys/stat.h rule.
35514
35515         sys_socket: Avoid #define replacements in C++ mode.
35516         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
35517         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
35518         definitions also when the system has a <sys/socket.h>.
35519         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35520         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
35521         In C++, define a namespaced alias symbol.
35522         * modules/sys_socket (Depends-on): Add c++defs.
35523         (Makefile.am): Update sys/socket.h rule.
35524
35525         sys_select: Avoid #define replacements in C++ mode.
35526         * lib/sys_select.in.h: Include c++defs.h. Enable the function
35527         definitions also when the system has a <sys/select.h>.
35528         (select): In C++, define a namespaced alias symbol.
35529         * modules/sys_select (Depends-on): Add c++defs.
35530         (Makefile.am): Update sys/select.h rule.
35531
35532         sys_ioctl: Avoid #define replacements in C++ mode.
35533         * lib/sys_ioctl.in.h: Include c++defs.h.
35534         (ioctl): In C++, define a namespaced alias symbol.
35535         * modules/sys_ioctl (Depends-on): Add c++defs.
35536         (Makefile.am): Update sys/ioctl.h rule.
35537
35538         string: Avoid #define replacements in C++ mode.
35539         * lib/string.in.h: Include c++defs.h.
35540         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
35541         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
35542         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
35543         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
35544         strsignal, strverscmp): In C++, define a namespaced alias symbol.
35545         * modules/string (Depends-on): Add c++defs.
35546         (Makefile.am): Update string.h rule.
35547
35548         stdlib: Avoid #define replacements in C++ mode.
35549         * lib/stdlib.in.h: Include c++defs.h.
35550         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
35551         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
35552         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
35553         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
35554         symbol.
35555         * modules/stdlib (Depends-on): Add c++defs.
35556         (Makefile.am): Update stdlib.h rule.
35557
35558         stdio: Avoid #define replacements in C++ mode.
35559         * lib/stdio.in.h: Include c++defs.h.
35560         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
35561         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
35562         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
35563         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
35564         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
35565         namespaced alias symbol.
35566         * modules/stdio (Depends-on): Add c++defs.
35567         (Makefile.am): Update stdio.h rule.
35568
35569         spawn: Avoid #define replacements in C++ mode.
35570         * lib/spawn.in.h: Include c++defs.h.
35571         (posix_spawn, posix_spawnp, posix_spawnattr_init,
35572         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
35573         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
35574         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
35575         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
35576         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
35577         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
35578         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
35579         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
35580         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
35581         In C++, define a namespaced alias symbol.
35582         * modules/spawn (Depends-on): Add c++defs.
35583         (Makefile.am): Update spawn.h rule.
35584
35585         signal: Avoid #define replacements in C++ mode.
35586         * lib/signal.in.h: Include c++defs.h.
35587         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
35588         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
35589         namespaced alias symbol.
35590         * modules/signal (Depends-on): Add c++defs.
35591         (Makefile.am): Update signal.h rule.
35592
35593         search: Avoid #define replacements in C++ mode.
35594         * lib/search.in.h: Include c++defs.h.
35595         (_gl_search_compar_fn, _gl_search_action_fn): New types.
35596         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
35597         symbol.
35598         * modules/search (Depends-on): Add c++defs.
35599         (Makefile.am): Update search.h rule.
35600
35601         math: Avoid #define replacements in C++ mode.
35602         * lib/math.in.h: Include c++defs.h.
35603         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
35604         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
35605         trunc, truncl): In C++, define a namespaced alias symbol.
35606         * modules/math (Depends-on): Add c++defs.
35607         (Makefile.am): Update math.h rule.
35608
35609         locale: Avoid #define replacements in C++ mode.
35610         * lib/locale.in.h: Include c++defs.h.
35611         (duplocale): In C++, define a namespaced alias symbol.
35612         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
35613         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
35614         * modules/locale (Depends-on): Add c++defs.
35615         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
35616
35617         langinfo: Avoid #define replacements in C++ mode.
35618         * lib/langinfo.in.h: Include c++defs.h.
35619         (nl_langinfo): In C++, define a namespaced alias symbol.
35620         * modules/langinfo (Depends-on): Add c++defs.
35621         (Makefile.am): Update langinfo.h rule.
35622
35623         iconv-h: Avoid #define replacements in C++ mode.
35624         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
35625         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
35626         symbol.
35627         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
35628         whenever iconv is present.
35629         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
35630         (Makefile.am): Update iconv.h rule.
35631
35632         glob: Avoid #define replacements in C++ mode.
35633         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
35634         (_gl_glob_errfunc_fn): New type.
35635         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
35636         symbol.
35637         * modules/glob (Depends-on): Add c++defs, warn-on-use.
35638         (Makefile.am): Update glob.h rule.
35639
35640         fcntl-h: Avoid #define replacements in C++ mode.
35641         * lib/fcntl.in.h: Include c++defs.h.
35642         (fcntl, open, openat): In C++, define a namespaced alias symbol.
35643         * modules/fcntl-h (Depends-on): Add c++defs.
35644         (Makefile.am): Update fcntl.h rule.
35645
35646         dirent: Avoid #define replacements in C++ mode.
35647         * lib/dirent.in.h: Include c++defs.h.
35648         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
35649         namespaced alias symbol.
35650         (dirfd): Update declaration.
35651         * modules/dirent (Depends-on): Add c++defs.
35652         (Makefile.am): Update dirent.h rule.
35653
35654         ctype: Make it usable in C++ code.
35655         * lib/ctype.in.h: Include c++defs.h.
35656         (isblank): Declare as extern "C".
35657         * modules/ctype (Depends-on): Add c++defs.
35658         (Makefile.am): Update ctype.h rule.
35659
35660         New module 'c++defs'.
35661         * modules/c++defs: New file.
35662         * build-aux/c++defs.h: New file.
35663         Reported by John W. Eaton <jwe@gnu.org>.
35664
35665 2010-03-07  Bruno Haible  <bruno@clisp.org>
35666
35667         logb: Provide missing declaration for Cygwin.
35668         * lib/math.in.h (logb): New declaration.
35669         * m4/logb.m4: New file.
35670         * modules/logb (Files): Add m4/logb.m4.
35671         (Depends-on): Add math.
35672         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
35673         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
35674         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
35675         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
35676         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
35677
35678 2010-03-07  Bruno Haible  <bruno@clisp.org>
35679
35680         Fix test-cond link error.
35681         * tests/test-cond.c: Include <stdio.h>.
35682
35683 2010-03-07  Bruno Haible  <bruno@clisp.org>
35684
35685         Fix test-dirent-safer link error.
35686         * modules/dirent-safer-tests (Makefile.am): Define
35687         test_dirent_safer_LDADD.
35688
35689 2010-03-07  Bruno Haible  <bruno@clisp.org>
35690
35691         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
35692         among default module list.
35693
35694 2010-03-07  Bruno Haible  <bruno@clisp.org>
35695
35696         Fix link error on platforms with GNU libiconv.
35697         * modules/unistr/u8-strcoll-tests (Makefile): Define
35698         test_u8_strcoll_LDADD.
35699         * modules/unistr/u16-strcoll-tests (Makefile): Define
35700         test_u16_strcoll_LDADD.
35701         * modules/unistr/u32-strcoll-tests (Makefile): Define
35702         test_u32_strcoll_LDADD.
35703
35704 2010-03-07  Bruno Haible  <bruno@clisp.org>
35705
35706         Use POSIX declarations for socket functions.
35707         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
35708         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
35709         rpl_sendto): Change declaration to match POSIX.
35710         * lib/connect.c (rpl_connect): Likewise.
35711         * lib/accept.c (rpl_accept): Likewise.
35712         * lib/bind.c (rpl_bind): Likewise.
35713         * lib/getpeername.c (rpl_getpeername): Likewise.
35714         * lib/getsockname.c (rpl_getsockname): Likewise.
35715         * lib/recv.c (rpl_recv): Likewise.
35716         * lib/send.c (rpl_send): Likewise.
35717         * lib/recvfrom.c (rpl_recvfrom): Likewise.
35718         * lib/sendto.c (rpl_sendto): Likewise.
35719
35720 2010-03-06  Bruno Haible  <bruno@clisp.org>
35721
35722         Clarify access, euidaccess, faccessat.
35723         * doc/posix-functions/faccessat.texi: Mention security problem under
35724         "Other problems", not "Portability problems".
35725         * doc/posix-functions/access.texi: Likewise. Mention a related security
35726         problem.
35727         * doc/glibc-functions/euidaccess.texi: Mention security problems.
35728         * lib/euidaccess.c: Add comments about platforms.
35729         * lib/unistd.in.h (access, euidaccess): Add warnings.
35730
35731 2010-03-07  Bruno Haible  <bruno@clisp.org>
35732
35733         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
35734         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
35735         (POSIX_SPAWN_SETSCHEDULER): Likewise.
35736         (POSIX_SPAWN_USEVFORK): Define in a way that works when
35737         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35738         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
35739         declare when POSIX_SPAWN_SETSCHEDULER is zero.
35740         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
35741         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
35742         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
35743         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
35744         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
35745         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
35746         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
35747         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
35748         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
35749         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
35750         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
35751         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
35752         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
35753         Likewise.
35754         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
35755         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
35756         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
35757         Likewise.
35758         * tests/test-spawn.c (main): Make it work when
35759         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35760
35761 2010-03-07  Bruno Haible  <bruno@clisp.org>
35762
35763         Fix incorrect Makefile.am generation in German locale.
35764         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35765         Execute sed command with character range in C locale.
35766
35767 2010-03-06  Bruno Haible  <bruno@clisp.org>
35768
35769         Tests for module 'iconv-h'.
35770         * modules/iconv-h-tests: New file.
35771         * tests/test-iconv-h.c: New file.
35772
35773         New module 'iconv-h'.
35774         * modules/iconv-h: New file.
35775         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
35776         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
35777         (configure.ac): Remove gl_ICONV_H.
35778         (Makefile.am): Remove rule for iconv.h.
35779
35780 2010-03-06  Bruno Haible  <bruno@clisp.org>
35781
35782         More consistent naming of *.m4 files.
35783         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
35784         * modules/wctype (Files): Update.
35785
35786         More consistent naming of *.m4 files.
35787         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
35788         * modules/wchar (Files): Update.
35789
35790 2010-03-06  Jim Meyering  <meyering@redhat.com>
35791
35792         euidaccess: relax license to LGPLv2+
35793         * modules/euidaccess (License): Relax to LGPLv2+.
35794
35795 2010-03-06  Bruno Haible  <bruno@clisp.org>
35796
35797         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
35798         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
35799         (Makefile.am): Augment lib_SOURCES instead.
35800
35801 2010-03-04  Jim Meyering  <meyering@redhat.com>
35802
35803         utime: remove obsolete module
35804         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
35805         unnecessary for years, and has been marked as obsolete for 10 months.
35806         * modules/utime: Remove file.
35807         * lib/utime.c: Remove file.
35808         * m4/utime.m4: Remove file.
35809         * m4/utimes-null.m4: Remove file.
35810         * doc/posix-functions/utime.texi (utime): Remove reference to
35811         the module.  Move the sole "fixed by gnulib" item into the
35812         "problems not fixed by Gnulib" list.
35813         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
35814
35815 2010-03-05  Simon Josefsson  <simon@josefsson.org>
35816
35817         * modules/exit (License): Relax license to LGPLv2+.
35818         (Status): Mark as obsolete.
35819         * NEWS: Mention deprecated 'exit' module.
35820         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
35821         of now obsolete 'exit'.
35822
35823 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35824
35825         fts-lgpl: remove unused module
35826         * modules/fts-lgpl: Remove.
35827         * MODULES.html.sh (func_all_modules): Adjust.
35828         * check-module (find_included_lib_files): Adjust.
35829         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
35830
35831 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
35832
35833         copy-acl: enhance Solaris ACL error handling
35834         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
35835         * lib/set-mode-acl.c (qset_acl): Likewise.
35836
35837 2010-03-02  Bruno Haible  <bruno@clisp.org>
35838
35839         spawn: Don't override the system defined values on FreeBSD 8.
35840         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
35841         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
35842         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
35843         if HAVE_POSIX_SPAWN is 1.
35844         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
35845
35846 2010-03-01  Bruno Haible  <bruno@clisp.org>
35847
35848         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
35849         regarding Automake.
35850
35851 2010-02-25  Bruno Haible  <bruno@clisp.org>
35852
35853         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
35854         * gnulib-tool: Define 'echo' as a function only before the ksh alias
35855         setting, not afterwards.
35856         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
35857
35858 2010-02-24  Eric Blake  <eblake@redhat.com>
35859
35860         bootstrap, git-version-gen: use timestamp
35861         * build-aux/git-version-gen (scriptversion): Force UTC.
35862         * build-aux/bootstrap (scriptversion): New variable.
35863
35864         bootstrap: allow older git
35865         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
35866         older than 1.6.4.  Requested by the libvirt project.
35867
35868 2010-02-23  Eric Blake  <eblake@redhat.com>
35869
35870         warn-on-use: work with old autoconf
35871         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
35872         AS_VAR semantics of autoconf 2.60.
35873         Reported by Bruno Haible.
35874
35875         bootstrap: improve some comments
35876         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
35877         clarification comments.
35878
35879         gettimeofday: provide correct function
35880         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
35881         when replacement is declared, otherwise provide gettimeofday.
35882         Reported by Michael Goffioul.
35883
35884 2010-02-23  Jim Meyering  <meyering@redhat.com>
35885
35886         lib-ignore: relax license to "unlimited", not LGPLv2+
35887         * modules/lib-ignore (License): Relax to "unlimited".
35888
35889 2010-02-23  Jim Meyering  <meyering@redhat.com>
35890
35891         lib-ignore: relax license to LGPLv2+
35892         * modules/lib-ignore (License): Relax to LGPLv2+.
35893
35894 2010-02-22  Eric Blake  <eblake@redhat.com>
35895
35896         lseek: avoid bash 3.2 broken pipe bug
35897         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
35898         warning from bash 3.2.
35899         Reported by Ben Pfaff, with analysis from Bruno Haible.
35900
35901         bootstrap: support non-FSF copyright holder
35902         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
35903         bootstrap.conf override of COPYRIGHT_HOLDER.
35904         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
35905
35906         bootstrap: interoperate with gettext 0.14.1
35907         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
35908
35909         bootstrap: allow for alternate submodule location
35910         * build-aux/bootstrap (gnulib_path): New variable; use instead of
35911         hardcoding submodule location.
35912         (gnulib_mk): Allow direct use of Makefile.am.
35913
35914         bootstrap: use GNULIB_SRCDIR to reduce disk usage
35915         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
35916         rather than reconfiguring where the submodule points.
35917
35918         gettimeofday: restore support for platforms that lack function
35919         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
35920         replacement if function is missing.
35921         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
35922         * modules/sys_time (Makefile.am): Substitute it.
35923         * lib/sys_time.in.h (gettimeofday): Check it.
35924         Reported by Michael Goffioul.
35925
35926 2010-02-21  Bruno Haible  <bruno@clisp.org>
35927
35928         * lib/stdio.in.h (obstack_printf): Fix typo.
35929
35930 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
35931
35932         vc-list-files: use bzr ls's -R option
35933         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
35934         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
35935
35936 2010-02-21  Jim Meyering  <meyering@redhat.com>
35937
35938         init.sh: fix EXEEXT shims to work also for names like test-prog
35939         * tests/init.sh: Re-exec a better shell, when needed.
35940         If the current shell lacks support for posix $(...), an init.sh-using
35941         test will now try to find a shell that supports that.  If EXEEXT is
35942         nonempty, we also require support for hyphen-in-alias-name and shell
35943         substitutions like ${var#glob}.  Failure to find such a shell results
35944         in a skipped test.
35945
35946 2010-02-21  Bruno Haible  <bruno@clisp.org>
35947
35948         Really work around around "broken pipe" error message from bash 3.2.
35949         * gnulib-tool (func_reset_sigpipe): Remove function.
35950         (echo): In bash 3.2, define to a function that uses printf.
35951         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
35952
35953 2010-02-20  Bruno Haible  <bruno@clisp.org>
35954
35955         Restore support for automake 1.9.6 with autoconf 2.61.
35956         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
35957         Reported by James Youngman <jay@gnu.org>.
35958
35959 2010-02-20  Bruno Haible  <bruno@clisp.org>
35960
35961         Improve *printf warning condition.
35962         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
35963         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
35964         and the function is overridden due to SIGPIPE emulation.
35965
35966 2010-02-20  Bruno Haible  <bruno@clisp.org>
35967
35968         * lib/stdio.in.h: Tweak comments.
35969
35970 2010-02-19  Bruno Haible  <bruno@clisp.org>
35971
35972         Make it easier to find modules. New gnulib-tool option '--find'.
35973         * gnulib-tool: New option --find.
35974         (func_usage): Document it.
35975         (func_sanitize_modulelist): New function, extracted from
35976         func_all_modules.
35977         (func_all_modules): Invoke it.
35978         * doc/gnulib-tool.texi (Which modules?): New node.
35979
35980 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
35981
35982         * lib/sys_select.in.h: Provide select replacement even if
35983         sys/select.h exists on a system, for Interix.
35984
35985 2010-02-18  Jim Meyering  <meyering@redhat.com>
35986
35987         init.sh: don't use $(...) just yet
35988         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
35989         to accommodate e.g., Solaris' /bin/sh.
35990
35991 2010-02-17  Bruno Haible  <bruno@clisp.org>
35992
35993         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
35994         Reported by Ludovic Courtès <ludo@gnu.org>.
35995
35996 2010-02-16  Simon Josefsson  <simon@josefsson.org>
35997
35998         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
35999         linking with -lintl.
36000
36001 2010-02-17  Simon Josefsson  <simon@josefsson.org>
36002
36003         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
36004         if not provided by the system's netdb.h.  Reported by
36005         ludo@gnu.org (Ludovic Courtès).
36006
36007 2010-02-15  Jim Meyering  <meyering@redhat.com>
36008
36009         init.sh: improve portability and efficiency
36010         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
36011         "dummy" in a for loop.
36012         Use '!', not '^' to select the complement of a character set used
36013         in a "case" statement.
36014         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
36015         Suggestions from Eric Blake.
36016
36017         init.sh: automatically accommodate programs with the .exe suffix
36018         Automatically arrange for an invocation of "prog" to execute the
36019         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
36020         may use the simpler "prog", yet still work when built on a system
36021         that requires specifying the added suffix.
36022         Do this by constructing a function named "prog" that invokes
36023         "prog.exe" for each .exe file in selected directories.
36024         * tests/init.sh (find_exe_basenames_): New function.
36025         (create_exe_shim_functions_): New function.
36026         (path_prepend_): Use it.
36027
36028         maint.mk: mark syntax-check sc_*.m rules as .PHONY
36029         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
36030         "make -t syntax-check" doesn't create a ton of sc_*.m files.
36031
36032 2010-02-14  Jim Meyering  <meyering@redhat.com>
36033
36034         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
36035         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
36036         (sc_prohibit_hash_pjw_without_use): New rule.
36037
36038         maint.mk: allow the default upload destination dir to be overridden
36039         * top/maint.mk (upload_dest_dir_): Define with a default that
36040         preserves the status quo.
36041         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
36042         Reported by Peter Simons.
36043
36044         maint.mk: prohibit inclusion of "hash.h" without_use
36045         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
36046
36047 2010-02-10  Jim Meyering  <meyering@redhat.com>
36048
36049         maint.mk: prohibit inclusion of "ignore-value.h" without_use
36050         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
36051
36052 2010-02-09  Eric Blake  <ebb9@byu.net>
36053         and Bruno Haible  <bruno@clisp.org>
36054
36055         obstack-printf-posix: ensure declaration
36056         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
36057         extracted from gl_FUNC_OBSTACK_PRINTF.
36058         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
36059         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36060         Likewise.
36061         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
36062         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
36063         0.
36064
36065 2010-02-08  Bruno Haible  <bruno@clisp.org>
36066
36067         gnulib-tool: Fix typo in 2010-02-07 commit.
36068         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
36069         Reported by Eric Blake.
36070
36071 2010-02-07  Bruno Haible  <bruno@clisp.org>
36072
36073         gnulib-tool: Fix up caching patches.
36074         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
36075         option --no-cache. Use associative arrays when supported by the shell.
36076         (sed_comments): New variable.
36077         (modcache): Renamed from do_cache.
36078         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
36079         abbreviate unnecessarily.
36080         (have_associative): New variable.
36081         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
36082         way also for ksh and zsh.
36083         (func_init_sed_convert_to_cache_statements): New function, extracted
36084         from func_cache_lookup_module. Add support for associative arrays.
36085         Don't set the c_MODULE_cached variable here. Ignore all lines before
36086         the first field header. Remove only the final newline, not all trailing
36087         newlines. Support empty fields correctly. Limit the use of 'eval' to
36088         assignments.
36089         (func_get_description, func_get_status, func_get_notice,
36090         func_get_applicability, func_get_filelist, func_get_dependencies,
36091         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
36092         func_get_automake_snippet, func_get_include_directive,
36093         func_get_link_directive, func_get_license, func_get_maintainer):
36094         Update documentation. List the unoptimized code first. Add support for
36095         associative arrays. Limit the use of 'eval' to assignments.
36096         (func_get_applicability): Undo stylistic pessimisations.
36097         (func_get_automake_snippet, func_get_include_directive): Reduce code
36098         duplication.
36099         (func_modules_transitive_closure, func_modules_add_dummy,
36100         func_modules_notice, func_modules_to_filelist, func_add_file,
36101         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
36102         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
36103         func_create_testdir, func_create_megatestdir): Update documentation.
36104
36105 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36106
36107         * gnulib-tool (func_cache_lookup_module): Store the module name
36108         belonging to the cache variable; error out if two different
36109         module names map to the same cache variable name.
36110
36111 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36112
36113         gnulib-tool: Make caching optional.
36114         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
36115         Update matching short versions of --no-changelog.
36116         (func_usage): Update.
36117         (sed_extract_cache_prog): Renamed from ...
36118         (sed_extract_prog): ... this; revert to old extraction script.
36119         (func_get_description, func_get_status)
36120         (func_get_notice, func_get_applicability, func_get_filelist)
36121         (func_get_dependencies, func_get_autoconf_early_snippet)
36122         (func_get_autoconf_snippet, func_get_automake_snippet)
36123         (func_get_include_directive, func_get_link_directive)
36124         (func_get_license, func_get_maintainer): If $do_cache is false,
36125         use old, non-caching extraction scripts.
36126         Suggestion by Bruno Haible.
36127
36128 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36129
36130         gnulib-tool: cache module metainformation.
36131         * gnulib-tool (sed_extract_prog): Match newline before each
36132         header, and rewrite header to a shell variable suffix.
36133         (func_cache_var, func_cache_lookup_module): New functions,
36134         to turn a module name into a cache variable prefix, and to
36135         look up and cache module metainformation.
36136         (func_get_description, func_get_status)
36137         (func_get_notice, func_get_applicability, func_get_filelist)
36138         (func_get_dependencies, func_get_autoconf_early_snippet)
36139         (func_get_autoconf_snippet, func_get_automake_snippet)
36140         (func_get_include_directive, func_get_link_directive)
36141         (func_get_license, func_get_maintainer): Use
36142         func_cache_lookup_module.
36143
36144 2010-02-07  Bruno Haible  <bruno@clisp.org>
36145
36146         fnctl: Fix missing dependency.
36147         * modules/fcntl (Depends-on): Add getdtablesize.
36148         Reported by John W. Eaton <jwe@gnu.org>.
36149
36150 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36151
36152         Argp: fix recognition of short alias options.
36153
36154         * lib/argp-parse.c (convert_options): Fix improper use of
36155         `|' between character values.
36156         * tests/test-argp.c (group1_option): New alias option
36157         --read (-r).
36158         (group1_parser): Special handling for 'r'.
36159         (test15): New test case.
36160         (test_fun): Add test15.
36161         * tests/test-argp-2.sh: Update expected --help and --usage
36162         outputs.
36163
36164 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36165
36166         * tests/test-argp.c: Fix indentation.
36167
36168 2010-02-04  Eric Blake  <ebb9@byu.net>
36169
36170         gettimeofday: expose type of second argument
36171         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
36172         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
36173         * tests/test-gettimeofday.c: Use it to silence warning.
36174         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
36175         the issue.
36176
36177 2010-02-03  Jim Meyering  <meyering@redhat.com>
36178
36179         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
36180         * lib/regcomp.c (TYPE_SIGNED): Define.
36181         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
36182
36183         regcomp.c: avoid a new -Wshadow warning
36184         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
36185
36186 2010-02-01  Jim Meyering  <meyering@redhat.com>
36187
36188         removing useless parentheses in cpp #define directives
36189         For motivation, see commit c0221df4, "define STREQ(a,b)
36190         consistently, removing useless parentheses"
36191         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
36192         * lib/mountlist.c (MNT_IGNORE): Likewise.
36193         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
36194
36195 2010-02-01  Eric Blake  <ebb9@byu.net>
36196
36197         sys_time: use link-warning
36198         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
36199         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
36200         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
36201         * modules/sys_time (Depends-on): Add warn-on-use.
36202         (Makefile.am): Always build replacement.
36203         (configure.ac): Update substitutions.
36204         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
36205         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
36206         bother with SYS_TIME_H.
36207         * modules/gettimeofday (configure.ac): Declare indicator.
36208         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
36209         in use.
36210
36211         closein-tests: silence compiler warning
36212         * tests/test-closein.c (main): Ignore fread result.
36213         * modules/closein-tests (Depends-on): Add ignore-value.
36214
36215         tests: silence warning about system return
36216         * tests/test-areadlink-with-size.c (main): Ignore system result.
36217         * tests/test-areadlink.c (main): Likewise.
36218         * tests/test-areadlinkat-with-size.c (main): Likewise.
36219         * tests/test-areadlinkat.c (main): Likewise.
36220         * tests/test-canonicalize-lgpl.c (main): Likewise.
36221         * tests/test-canonicalize.c (main): Likewise.
36222         * tests/test-chown.c (main): Likewise.
36223         * tests/test-fchownat.c (main): Likewise.
36224         * tests/test-fdutimensat.c (main): Likewise.
36225         * tests/test-fstatat.c (main): Likewise.
36226         * tests/test-futimens.c (main): Likewise.
36227         * tests/test-lchown.c (main): Likewise.
36228         * tests/test-link.c (main): Likewise.
36229         * tests/test-linkat.c (main): Likewise.
36230         * tests/test-lstat.c (main): Likewise.
36231         * tests/test-mkdir.c (main): Likewise.
36232         * tests/test-mkdirat.c (main): Likewise.
36233         * tests/test-mkfifo.c (main): Likewise.
36234         * tests/test-mkfifoat.c (main): Likewise.
36235         * tests/test-mknod.c (main): Likewise.
36236         * tests/test-readlink.c (main): Likewise.
36237         * tests/test-remove.c (main): Likewise.
36238         * tests/test-rename.c (main): Likewise.
36239         * tests/test-renameat.c (main): Likewise.
36240         * tests/test-rmdir.c (main): Likewise.
36241         * tests/test-symlink.c (main): Likewise.
36242         * tests/test-symlinkat.c (main): Likewise.
36243         * tests/test-unlink.c (main): Likewise.
36244         * tests/test-unlinkat.c (main): Likewise.
36245         * tests/test-utimens.c (main): Likewise.
36246         * tests/test-utimensat.c (main): Likewise.
36247         * modules/areadlink-tests (Depends-on): Add ignore-value.
36248         * modules/areadlink-with-size-tests (Depends-on): Likewise.
36249         * modules/areadlinkat-tests (Depends-on): Likewise.
36250         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
36251         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36252         * modules/canonicalize-tests (Depends-on): Likewise.
36253         * modules/chown-tests (Depends-on): Likewise.
36254         * modules/fdutimensat-tests (Depends-on): Likewise.
36255         * modules/futimens-tests (Depends-on): Likewise.
36256         * modules/lchown-tests (Depends-on): Likewise.
36257         * modules/link-tests (Depends-on): Likewise.
36258         * modules/linkat-tests (Depends-on): Likewise.
36259         * modules/lstat-tests (Depends-on): Likewise.
36260         * modules/mkdir-tests (Depends-on): Likewise.
36261         * modules/mkfifo-tests (Depends-on): Likewise.
36262         * modules/mkfifoat-tests (Depends-on): Likewise.
36263         * modules/mknod-tests (Depends-on): Likewise.
36264         * modules/openat-tests (Depends-on): Likewise.
36265         * modules/readlink-tests (Depends-on): Likewise.
36266         * modules/remove-tests (Depends-on): Likewise.
36267         * modules/rename-tests (Depends-on): Likewise.
36268         * modules/renameat-tests (Depends-on): Likewise.
36269         * modules/rmdir-tests (Depends-on): Likewise.
36270         * modules/symlink-tests (Depends-on): Likewise.
36271         * modules/symlinkat-tests (Depends-on): Likewise.
36272         * modules/unlink-tests (Depends-on): Likewise.
36273         * modules/utimens-tests (Depends-on): Likewise.
36274         * modules/utimensat-tests (Depends-on): Likewise.
36275
36276 2010-01-31  Bruno Haible  <bruno@clisp.org>
36277
36278         Perform the same test for many <math.h> functions.
36279         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
36280         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
36281         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
36282         of gl_MATHFUNC.
36283         * modules/acos (configure.ac): Likewise.
36284         * modules/asin (configure.ac): Likewise.
36285         * modules/atan (configure.ac): Likewise.
36286         * modules/atan2 (configure.ac): Likewise.
36287         * modules/cbrt (configure.ac): Likewise.
36288         * modules/copysign (configure.ac): Likewise.
36289         * modules/cos (configure.ac): Likewise.
36290         * modules/cosh (configure.ac): Likewise.
36291         * modules/erf (configure.ac): Likewise.
36292         * modules/erfc (configure.ac): Likewise.
36293         * modules/exp (configure.ac): Likewise.
36294         * modules/fmod (configure.ac): Likewise.
36295         * modules/hypot (configure.ac): Likewise.
36296         * modules/j0 (configure.ac): Likewise.
36297         * modules/j1 (configure.ac): Likewise.
36298         * modules/jn (configure.ac): Likewise.
36299         * modules/lgamma (configure.ac): Likewise.
36300         * modules/log (configure.ac): Likewise.
36301         * modules/log10 (configure.ac): Likewise.
36302         * modules/log1p (configure.ac): Likewise.
36303         * modules/pow (configure.ac): Likewise.
36304         * modules/remainder (configure.ac): Likewise.
36305         * modules/sin (configure.ac): Likewise.
36306         * modules/sinh (configure.ac): Likewise.
36307         * modules/tan (configure.ac): Likewise.
36308         * modules/tanh (configure.ac): Likewise.
36309         * modules/y0 (configure.ac): Likewise.
36310         * modules/y1 (configure.ac): Likewise.
36311         * modules/yn (configure.ac): Likewise.
36312         Suggested by Paolo Bonzini.
36313
36314 2010-01-31  Bruno Haible  <bruno@clisp.org>
36315
36316         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
36317
36318 2010-01-31  Bruno Haible  <bruno@clisp.org>
36319
36320         Work around getdelim() bug on FreeBSD 8.0.
36321         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
36322         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
36323         not work.
36324         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
36325         is 1.
36326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
36327         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
36328         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
36329         a non-zero size.
36330         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
36331
36332 2010-01-31  Bruno Haible  <bruno@clisp.org>
36333
36334         Work around getline() bug on FreeBSD 8.0.
36335         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
36336         and a non-zero size.
36337         * tests/test-getline.c (main): Likewise.
36338         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
36339         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
36340
36341 2010-01-28  Eric Blake  <ebb9@byu.net>
36342
36343         regex: fix build failure
36344         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
36345         platforms.
36346
36347 2010-01-28  Jim Meyering  <meyering@redhat.com>
36348
36349         regex: do not ignore memory allocation failure
36350         * lib/regex_internal.c (create_cd_newstate): Detect
36351         re_node_set_init_copy failure.   Extracted from glibc commit
36352         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36353
36354         regex: sync more white-space changes from libc
36355         * lib/regex_internal.c: White-space only changes.
36356         * lib/regexec.c: Likewise.
36357
36358         regex: add many uses of __attribute_warn_unused_result__
36359         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
36360         * lib/regexec.c: Likewise.
36361         Extracted from a messy glibc commit.
36362
36363         regcomp.c: spelling and merge-artifact from glibc
36364         * lib/regcomp.c: Merge remainder of glibc's
36365         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36366
36367         regcomp.c: sync white-space changes from glibc
36368         * lib/regcomp.c: Merge to accommodate white space
36369         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36370
36371         regcomp.c: do not ignore internal return values
36372         * lib/regcomp.c: Do not ignore internal return values.
36373         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
36374         but without its white-space changes and spelling fixes.
36375
36376         regex_internal.h: define __attribute_warn_unused_result__
36377         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
36378
36379         maint: add a syntax-check rule to check for vulnerable Makefile.in
36380         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
36381
36382 2010-01-27  Jim Meyering  <meyering@redhat.com>
36383
36384         ncftpput-ftp: clean up spaces
36385         * build-aux/ncftpput-ftp: Make Copyright line consistent.
36386         Remove trailing blanks.
36387
36388 2010-01-27  Simon Josefsson  <simon@josefsson.org>
36389
36390         * build-aux/git-version-gen: Fix copyright statement.
36391         * build-aux/gnupload: Likewise.
36392         * tests/test-arcfour.c: Likewise.
36393         * tests/test-arctwo.c: Likewise.
36394         * tests/test-count-one-bits.c: Likewise.
36395         * tests/test-crc.c: Likewise.
36396         * tests/test-des.c: Likewise.
36397         * tests/test-gc-arcfour.c: Likewise.
36398         * tests/test-gc-arctwo.c: Likewise.
36399         * tests/test-gc-des.c: Likewise.
36400         * tests/test-gc-hmac-md5.c: Likewise.
36401         * tests/test-gc-hmac-sha1.c: Likewise.
36402         * tests/test-gc-md2.c: Likewise.
36403         * tests/test-gc-md4.c: Likewise.
36404         * tests/test-gc-md5.c: Likewise.
36405         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36406         * tests/test-gc-rijndael.c: Likewise.
36407         * tests/test-gc-sha1.c: Likewise.
36408         * tests/test-gc.c: Likewise.
36409         * tests/test-gethostname.c: Likewise.
36410         * tests/test-gettimeofday.c: Likewise.
36411         * tests/test-hash.c: Likewise.
36412         * tests/test-hmac-md5.c: Likewise.
36413         * tests/test-hmac-sha1.c: Likewise.
36414         * tests/test-md2.c: Likewise.
36415         * tests/test-md4.c: Likewise.
36416         * tests/test-md5.c: Likewise.
36417         * tests/test-memchr.c: Likewise.
36418         * tests/test-memchr2.c: Likewise.
36419         * tests/test-memcmp.c: Likewise.
36420         * tests/test-memmem.c: Likewise.
36421         * tests/test-memrchr.c: Likewise.
36422         * tests/test-rawmemchr.c: Likewise.
36423         * tests/test-read-file.c: Likewise.
36424         * tests/test-rijndael.c: Likewise.
36425         * tests/test-sockets.c: Likewise.
36426         * tests/test-strchrnul.c: Likewise.
36427         * tests/test-strstr.c: Likewise.
36428         * tests/test-strtod.c: Likewise.
36429         * build-aux/ncftpput-ftp: Likewise.
36430
36431 2010-01-26  Eric Blake  <ebb9@byu.net>
36432
36433         ignore-value: update recommended header name
36434         * modules/ignore-value (Include): Only use <> for headers that
36435         exist in glibc.
36436
36437 2010-01-26  Jim Meyering  <meyering@redhat.com>
36438
36439         test-userspec.c: avoid compiler warnings
36440         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
36441         and "initialization discards qualifiers..." warnings.
36442         Put the first "uid" in its own scope, and make char* members "const".
36443
36444 2010-01-25  Bruno Haible  <bruno@clisp.org>
36445
36446         gnulib-tool: Make warning diagnostics consistent.
36447         * gnulib-tool (func_warning): New function.
36448         Use it everywhere where gnulib-tool produces output to stderr and it is
36449         not a fatal error.
36450
36451 2010-01-25  Bruno Haible  <bruno@clisp.org>
36452
36453         Fix test dependencies.
36454         * modules/xstrtol-tests (Depends-on): Add inttypes.
36455         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
36456
36457 2010-01-25 Pádraig Brady <P@draigBrady.com>
36458
36459         syntax-check: detect incorrect boolean macro values in config.h
36460         * modules/maintainer-makefile (configure.ac): Parameterize the location
36461         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
36462         The logic is from Eric Blake and the location indicated by Jim Meyering.
36463         Note the more natural CONFIG_HEADER name is prohibited by automake
36464         for backwards compatibility reasons.
36465         * top/maint.mk (sc_Wundef_boolean): New rule.
36466
36467 2010-01-25  Jim Meyering  <meyering@redhat.com>
36468
36469         bootstrap: detect MacOS 10.6's shasum, too
36470         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
36471         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
36472
36473 2010-01-23  Jim Meyering  <meyering@redhat.com>
36474
36475         xstrtoll: new module
36476         * modules/xstrtoll: New file.
36477         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
36478         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
36479         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
36480         ./configure fails if you use this module and lack "long long".
36481         * modules/xstrtoll-tests: New module.
36482         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
36483         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
36484         new init.sh-based test framework.
36485
36486 2010-01-24  Bruno Haible  <bruno@clisp.org>
36487
36488         Tests for module 'yn'.
36489         * modules/yn-tests: New file.
36490         * tests/test-yn.c: New file.
36491
36492         Tests for module 'y1'.
36493         * modules/y1-tests: New file.
36494         * tests/test-y1.c: New file.
36495
36496         Tests for module 'y0'.
36497         * modules/y0-tests: New file.
36498         * tests/test-y0.c: New file.
36499
36500         Tests for module 'tanh'.
36501         * modules/tanh-tests: New file.
36502         * tests/test-tanh.c: New file.
36503
36504         Tests for module 'tan'.
36505         * modules/tan-tests: New file.
36506         * tests/test-tan.c: New file.
36507
36508         Tests for module 'sqrt'.
36509         * modules/sqrt-tests: New file.
36510         * tests/test-sqrt.c: New file.
36511
36512         Tests for module 'sinh'.
36513         * modules/sinh-tests: New file.
36514         * tests/test-sinh.c: New file.
36515
36516         Tests for module 'sin'.
36517         * modules/sin-tests: New file.
36518         * tests/test-sin.c: New file.
36519
36520         Tests for module 'rint'.
36521         * modules/rint-tests: New file.
36522         * tests/test-rint.c: New file.
36523
36524         Tests for module 'remainder'.
36525         * modules/remainder-tests: New file.
36526         * tests/test-remainder.c: New file.
36527
36528         Tests for module 'pow'.
36529         * modules/pow-tests: New file.
36530         * tests/test-pow.c: New file.
36531
36532         Tests for module 'nextafter'.
36533         * modules/nextafter-tests: New file.
36534         * tests/test-nextafter.c: New file.
36535
36536         Tests for module 'modf'.
36537         * modules/modf-tests: New file.
36538         * tests/test-modf.c: New file.
36539
36540         Tests for module 'logb'.
36541         * modules/logb-tests: New file.
36542         * tests/test-logb.c: New file.
36543
36544         Tests for module 'log1p'.
36545         * modules/log1p-tests: New file.
36546         * tests/test-log1p.c: New file.
36547
36548         Tests for module 'log10'.
36549         * modules/log10-tests: New file.
36550         * tests/test-log10.c: New file.
36551
36552         Tests for module 'log'.
36553         * modules/log-tests: New file.
36554         * tests/test-log.c: New file.
36555
36556         Tests for module 'lgamma'.
36557         * modules/lgamma-tests: New file.
36558         * tests/test-lgamma.c: New file.
36559
36560         Tests for module 'ldexp'.
36561         * modules/ldexp-tests: New file.
36562         * tests/test-ldexp.c: New file.
36563
36564         Tests for module 'jn'.
36565         * modules/jn-tests: New file.
36566         * tests/test-jn.c: New file.
36567
36568         Tests for module 'j1'.
36569         * modules/j1-tests: New file.
36570         * tests/test-j1.c: New file.
36571
36572         Tests for module 'j0'.
36573         * modules/j0-tests: New file.
36574         * tests/test-j0.c: New file.
36575
36576         Tests for module 'hypot'.
36577         * modules/hypot-tests: New file.
36578         * tests/test-hypot.c: New file.
36579
36580         Tests for module 'fmod'.
36581         * modules/fmod-tests: New file.
36582         * tests/test-fmod.c: New file.
36583
36584         Tests for module 'fabs'.
36585         * modules/fabs-tests: New file.
36586         * tests/test-fabs.c: New file.
36587
36588         Tests for module 'exp'.
36589         * modules/exp-tests: New file.
36590         * tests/test-exp.c: New file.
36591
36592         Tests for module 'erfc'.
36593         * modules/erfc-tests: New file.
36594         * tests/test-erfc.c: New file.
36595
36596         Tests for module 'erf'.
36597         * modules/erf-tests: New file.
36598         * tests/test-erf.c: New file.
36599
36600         Tests for module 'cosh'.
36601         * modules/cosh-tests: New file.
36602         * tests/test-cosh.c: New file.
36603
36604         Tests for module 'cos'.
36605         * modules/cos-tests: New file.
36606         * tests/test-cos.c: New file.
36607
36608         Tests for module 'copysign'.
36609         * modules/copysign-tests: New file.
36610         * tests/test-copysign.c: New file.
36611
36612         Tests for module 'cbrt'.
36613         * modules/cbrt-tests: New file.
36614         * tests/test-cbrt.c: New file.
36615
36616         Tests for module 'atan2'.
36617         * modules/atan2-tests: New file.
36618         * tests/test-atan2.c: New file.
36619
36620         Tests for module 'atan'.
36621         * modules/atan-tests: New file.
36622         * tests/test-atan.c: New file.
36623
36624         Tests for module 'asin'.
36625         * modules/asin-tests: New file.
36626         * tests/test-asin.c: New file.
36627
36628         Tests for module 'acos'.
36629         * modules/acos-tests: New file.
36630         * tests/test-acos.c: New file.
36631
36632 2010-01-24  Bruno Haible  <bruno@clisp.org>
36633
36634         Fix tests for common <math.h> functions.
36635         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
36636         code snippet that references the function pointer, rather than merely
36637         calling the function. Substitute the FUNC_LIBM variable.
36638         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
36639         * modules/acos (configure.ac): Likewise.
36640         * modules/asin (configure.ac): Likewise.
36641         * modules/atan (configure.ac): Likewise.
36642         * modules/atan2 (configure.ac): Likewise.
36643         * modules/cbrt (configure.ac): Likewise.
36644         * modules/copysign (configure.ac): Likewise.
36645         * modules/cos (configure.ac): Likewise.
36646         * modules/cosh (configure.ac): Likewise.
36647         * modules/erf (configure.ac): Likewise.
36648         * modules/erfc (configure.ac): Likewise.
36649         * modules/exp (configure.ac): Likewise.
36650         * modules/fabs (configure.ac): Likewise.
36651         * modules/fmod (configure.ac): Likewise.
36652         * modules/hypot (configure.ac): Likewise.
36653         * modules/j0 (configure.ac): Likewise.
36654         * modules/j1 (configure.ac): Likewise.
36655         * modules/jn (configure.ac): Likewise.
36656         * modules/ldexp (configure.ac): Likewise.
36657         * modules/lgamma (configure.ac): Likewise.
36658         * modules/log (configure.ac): Likewise.
36659         * modules/log10 (configure.ac): Likewise.
36660         * modules/log1p (configure.ac): Likewise.
36661         * modules/logb (configure.ac): Likewise.
36662         * modules/modf (configure.ac): Likewise.
36663         * modules/nextafter (configure.ac): Likewise.
36664         * modules/pow (configure.ac): Likewise.
36665         * modules/remainder (configure.ac): Likewise.
36666         * modules/rint (configure.ac): Likewise.
36667         * modules/sin (configure.ac): Likewise.
36668         * modules/sinh (configure.ac): Likewise.
36669         * modules/tan (configure.ac): Likewise.
36670         * modules/tanh (configure.ac): Likewise.
36671         * modules/y0 (configure.ac): Likewise.
36672         * modules/y1 (configure.ac): Likewise.
36673         * modules/yn (configure.ac): Likewise.
36674
36675 2010-01-24  Bruno Haible  <bruno@clisp.org>
36676
36677         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
36678         * tests/test-acosl.c (x): New variable.
36679         (main): Store argument in x and fetch it from x.
36680         * tests/test-asinl.c (x): New variable.
36681         (main): Store argument in x and fetch it from x.
36682         * tests/test-atanl.c (x): New variable.
36683         (main): Store argument in x and fetch it from x.
36684         * tests/test-cosl.c (x): New variable.
36685         (main): Store argument in x and fetch it from x.
36686         * tests/test-expl.c (x): New variable.
36687         (main): Store argument in x and fetch it from x.
36688         * tests/test-logl.c (x): New variable.
36689         (main): Store argument in x and fetch it from x.
36690         * tests/test-sinl.c (x): New variable.
36691         (main): Store argument in x and fetch it from x.
36692         * tests/test-sqrtl.c (x): New variable.
36693         (main): Store argument in x and fetch it from x.
36694         * tests/test-tanl.c (x): New variable.
36695         (main): Store argument in x and fetch it from x.
36696
36697 2010-01-24  Bruno Haible  <bruno@clisp.org>
36698
36699         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
36700         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
36701         assignments to the initial TESTS_ENVIRONMENT.
36702         * doc/gnulib.texi (Unit test modules): Document it.
36703         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
36704         TESTS_ENVIRONMENT.
36705         * modules/btowc-tests (Makefile.am): Likewise.
36706         * modules/c-stack-tests (Makefile.am): Likewise.
36707         * modules/c-strcase-tests (Makefile.am): Likewise.
36708         * modules/copy-file-tests (Makefile.am): Likewise.
36709         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
36710         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
36711         * modules/mbrtowc-tests (Makefile.am): Likewise.
36712         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36713         * modules/mbscasestr-tests (Makefile.am): Likewise.
36714         * modules/mbschr-tests (Makefile.am): Likewise.
36715         * modules/mbscspn-tests (Makefile.am): Likewise.
36716         * modules/mbsinit-tests (Makefile.am): Likewise.
36717         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36718         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
36719         * modules/mbspbrk-tests (Makefile.am): Likewise.
36720         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36721         * modules/mbsrchr-tests (Makefile.am): Likewise.
36722         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
36723         * modules/mbsspn-tests (Makefile.am): Likewise.
36724         * modules/mbsstr-tests (Makefile.am): Likewise.
36725         * modules/nl_langinfo-tests (Makefile.am): Likewise.
36726         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
36727         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36728         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36729         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36730         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36731         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
36732         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36733         * modules/wcrtomb-tests (Makefile.am): Likewise.
36734         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
36735         * modules/wcsrtombs-tests (Makefile.am): Likewise.
36736         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
36737         assignments from TESTS_ENVIRONMENT.
36738         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
36739         augmentation.
36740         * modules/argp-version-etc-tests (Makefile.am): Likewise.
36741         * modules/atexit-tests (Makefile.am): Likewise.
36742         * modules/binary-io-tests (Makefile.am): Likewise.
36743         * modules/closein-tests (Makefile.am): Likewise.
36744         * modules/dprintf-posix-tests (Makefile.am): Likewise.
36745         * modules/exclude-tests (Makefile.am): Likewise.
36746         * modules/fflush-tests (Makefile.am): Likewise.
36747         * modules/fpending-tests (Makefile.am): Likewise.
36748         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36749         * modules/freadahead-tests (Makefile.am): Likewise.
36750         * modules/freadptr-tests (Makefile.am): Likewise.
36751         * modules/freadseek-tests (Makefile.am): Likewise.
36752         * modules/fseek-tests (Makefile.am): Likewise.
36753         * modules/fseeko-tests (Makefile.am): Likewise.
36754         * modules/ftell-tests (Makefile.am): Likewise.
36755         * modules/ftello-tests (Makefile.am): Likewise.
36756         * modules/idpriv-drop-tests (Makefile.am): Likewise.
36757         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
36758         * modules/lseek-tests (Makefile.am): Likewise.
36759         * modules/parse-duration-tests (Makefile.am): Likewise.
36760         * modules/perror-tests (Makefile.am): Likewise.
36761         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
36762         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
36763         * modules/pipe-tests (Makefile.am): Likewise.
36764         * modules/pread-tests (Makefile.am): Likewise.
36765         * modules/printf-posix-tests (Makefile.am): Likewise.
36766         * modules/select-tests (Makefile.am): Likewise.
36767         * modules/sigpipe-tests (Makefile.am): Likewise.
36768         * modules/tsearch-tests (Makefile.am): Likewise.
36769         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
36770         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
36771         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36772         * modules/uniwidth/width-tests (Makefile.am): Likewise.
36773         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
36774         * modules/version-etc-tests (Makefile.am): Likewise.
36775         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36776         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36777         * modules/xalloc-die-tests (Makefile.am): Likewise.
36778         * modules/xprintf-posix-tests (Makefile.am): Likewise.
36779         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36780         * modules/xstrtol-tests (Makefile.am): Likewise.
36781         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36782         * modules/yesno-tests (Makefile.am): Likewise.
36783         Suggested by Jim Meyering.
36784
36785 2010-01-24  Bruno Haible  <bruno@clisp.org>
36786
36787         More documentation.
36788         * doc/gnulib.texi (Writing modules): New chapter.
36789         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
36790         the new chapter.
36791
36792 2010-01-24  Jim Meyering  <meyering@redhat.com>
36793
36794         maint.mk: do not prepend "./" after filtering
36795         * top/maint.mk (_prepend_srcdir_prefix): New variable
36796         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
36797         "./" when $(srcdir) is ".".
36798
36799         define STREQ(a,b) consistently, removing useless parentheses
36800         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
36801         since the only risk is that "a" or "b" contains an unparenthesized
36802         comma, but if either did that, STREQ would have 3 or more arguments.
36803         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
36804         * lib/fts.c (STREQ): Remove unnecessary parentheses.
36805         * lib/hash-triple.c (STREQ): Likewise.
36806         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
36807         * lib/getugroups.c (STREQ): Likewise.
36808
36809 2010-01-23  Jim Meyering  <meyering@redhat.com>
36810
36811         maint.mk: fix syntax-check in a non-srcdir build directory
36812         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
36813         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
36814
36815 2010-01-22  Jim Meyering  <meyering@redhat.com>
36816
36817         userspec: add unit tests
36818         * tests/test-userspec.c: New file.
36819         * modules/userspec-tests: Likewise.
36820
36821 2010-01-21  Jim Meyering  <meyering@redhat.com>
36822
36823         maint.mk: handle source file names containing "." robustly
36824         * top/maint.mk (_dot_escaped_srcdir): Define.
36825         (VC_LIST): Use it in LHS of sed substitution.
36826
36827 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
36828
36829         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
36830         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
36831         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
36832         from a non-srcdir build.
36833
36834 2010-01-20  Eric Blake  <ebb9@byu.net>
36835
36836         warn-on-use: use instead of link-warning
36837         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
36838         * modules/unistd (Depends-on, Makefile.am): Likewise.
36839         * modules/arpa_inet (Depends-on): Replace link-warning with
36840         warn-on-use.
36841         (Makefile.am): Update rules accordingly.
36842         * modules/ctype (Depends-on, Makefile.am): Likewise.
36843         * modules/dirent (Depends-on, Makefile.am): Likewise.
36844         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
36845         * modules/inttypes (Depends-on, Makefile.am): Likewise.
36846         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36847         * modules/locale (Depends-on, Makefile.am): Likewise.
36848         * modules/math (Depends-on, Makefile.am): Likewise.
36849         * modules/search (Depends-on, Makefile.am): Likewise.
36850         * modules/signal (Depends-on, Makefile.am): Likewise.
36851         * modules/spawn (Depends-on, Makefile.am): Likewise.
36852         * modules/stdlib (Depends-on, Makefile.am): Likewise.
36853         * modules/string (Depends-on, Makefile.am): Likewise.
36854         * modules/strings (Depends-on, Makefile.am): Likewise.
36855         * modules/sys_file (Depends-on, Makefile.am): Likewise.
36856         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
36857         * modules/sys_select (Depends-on, Makefile.am): Likewise.
36858         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
36859         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
36860         * modules/sys_times (Depends-on, Makefile.am): Likewise.
36861         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36862         * modules/wchar (Depends-on, Makefile.am): Likewise.
36863         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
36864         should be poisoned.
36865         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
36866         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
36867         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
36868         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36869         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36870         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
36871         * m4/math_h.m4 (gl_MATH_H): Likewise.
36872         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36873         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
36874         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
36875         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
36876         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
36877         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
36878         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
36879         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
36880         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
36881         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36882         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
36883         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
36884         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36885         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36886         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36887         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36888         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
36889         GL_LINK_WARNING.
36890         * lib/ctype.in.h: Likewise.
36891         * lib/dirent.in.h: Likewise.
36892         * lib/fcntl.in.h: Likewise.
36893         * lib/inttypes.in.h: Likewise.
36894         * lib/langinfo.in.h: Likewise.
36895         * lib/locale.in.h: Likewise.
36896         * lib/math.in.h: Likewise.
36897         * lib/search.in.h: Likewise.
36898         * lib/signal.in.h: Likewise.
36899         * lib/spawn.in.h: Likewise.
36900         * lib/stdio.in.h: Likewise.
36901         * lib/stdlib.in.h: Likewise.
36902         * lib/string.in.h: Likewise.
36903         * lib/strings.in.h: Likewise.
36904         * lib/sys_file.in.h: Likewise.
36905         * lib/sys_ioctl.in.h: Likewise.
36906         * lib/sys_select.in.h: Likewise.
36907         * lib/sys_socket.in.h: Likewise.
36908         * lib/sys_stat.in.h: Likewise.
36909         * lib/sys_times.in.h: Likewise.
36910         * lib/sys_utsname.in.h: Likewise.
36911         * lib/unistd.in.h: Likewise.
36912         * lib/wchar.in.h: Likewise.
36913
36914 2010-01-20  Bruno Haible  <bruno@clisp.org>
36915
36916         Avoid duplicate -lm.
36917         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
36918         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
36919         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
36920         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
36921         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
36922         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
36923         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
36924         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
36925         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
36926         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
36927         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
36928         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
36929         Reported by Paolo Bonzini.
36930
36931 2010-01-19  Bruno Haible  <bruno@clisp.org>
36932
36933         langinfo, nl_langinfo: Relicense under LGPLv2+.
36934         * modules/langinfo (License): Change to LGPLv2+.
36935         * modules/nl_langinfo (License): Likewise.
36936         Patch by David Lutterkort <lutter@redhat.com>.
36937
36938 2010-01-19  Bruno Haible  <bruno@clisp.org>
36939
36940         Avoid compilation error with cc on OSF/1 5.1.
36941         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
36942         statement, not before.
36943         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36944
36945 2010-01-18  Bruno Haible  <bruno@clisp.org>
36946
36947         Avoid a link error due to the __printf__ symbol.
36948         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
36949         and 2.6.x.
36950         (__format__, __printf__): Remove definitions.
36951         * lib/argp-fmtstream.h: Likewise.
36952         * lib/argp.h: Likewise.
36953         * lib/error.h: Likewise.
36954         * lib/vasnprintf.h: Likewise.
36955         * lib/xprintf.h: Likewise.
36956         * lib/xvasprintf.h: Likewise.
36957         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36958
36959 2010-01-18  Bruno Haible  <bruno@clisp.org>
36960
36961         Tests for module 'tanl'.
36962         * modules/tanl-tests: New file.
36963         * tests/test-tanl.c: New file.
36964
36965         Tests for module 'sqrtl'.
36966         * modules/sqrtl-tests: New file.
36967         * tests/test-sqrtl.c: New file.
36968
36969         Tests for module 'sinl'.
36970         * modules/sinl-tests: New file.
36971         * tests/test-sinl.c: New file.
36972
36973         Tests for module 'logl'.
36974         * modules/logl-tests: New file.
36975         * tests/test-logl.c: New file.
36976
36977         Tests for module 'expl'.
36978         * modules/expl-tests: New file.
36979         * tests/test-expl.c: New file.
36980
36981         Tests for module 'cosl'.
36982         * modules/cosl-tests: New file.
36983         * tests/test-cosl.c: New file.
36984
36985         Tests for module 'atanl'.
36986         * modules/atanl-tests: New file.
36987         * tests/test-atanl.c: New file.
36988
36989         Tests for module 'asinl'.
36990         * modules/asinl-tests: New file.
36991         * tests/test-asinl.c: New file.
36992
36993         Tests for module 'acosl'.
36994         * modules/acosl-tests: New file.
36995         * tests/test-acosl.c: New file.
36996
36997         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36998         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
36999         tanl): Use the standard gnulib idiom.
37000         * lib/cosl.c: Don't include trigl.c and sincosl.c.
37001         * lib/sinl.c: Likewise.
37002         * lib/tanl.c: Don't include trigl.c.
37003         (kernel_tanl): Make static.
37004         * lib/sincosl.c: Include trigl.h first.
37005         * lib/trigl.c: Likewise.
37006         * m4/acosl.m4: New file.
37007         * m4/asinl.m4: New file.
37008         * m4/atanl.m4: New file.
37009         * m4/cosl.m4: New file.
37010         * m4/expl.m4: New file.
37011         * m4/logl.m4: New file.
37012         * m4/sinl.m4: New file.
37013         * m4/sqrtl.m4: New file.
37014         * m4/tanl.m4: New file.
37015         * m4/mathl.m4: Remove file.
37016         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
37017         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37018         Don't initialize GNULIB_MATHL.
37019         * modules/acosl: New file.
37020         * modules/asinl: New file.
37021         * modules/atanl: New file.
37022         * modules/cosl: New file.
37023         * modules/expl: New file.
37024         * modules/logl: New file.
37025         * modules/sinl: New file.
37026         * modules/sqrtl: New file.
37027         * modules/tanl: New file.
37028         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
37029         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
37030         substitute GNULIB_MATHL.
37031         * modules/mathl: Rewritten.
37032         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
37033         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
37034         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
37035         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
37036         * doc/posix-functions/expl.texi: Mention the 'expl' module.
37037         * doc/posix-functions/logl.texi: Mention the 'logl' module.
37038         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
37039         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
37040         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
37041
37042 2010-01-18  Bruno Haible  <bruno@clisp.org>
37043
37044         sqrt: Make gl_FUNC_SQRT requirable.
37045         * m4/sqrt.m4: New file.
37046         * modules/sqrt (Files): Add it.
37047         (configure.ac): Invoke gl_FUNC_SQRT.
37048
37049 2010-01-18  Bruno Haible  <bruno@clisp.org>
37050
37051         New modules for common <math.h> functions.
37052         * m4/mathfunc.m4: New file.
37053         * modules/acos: New file.
37054         * modules/asin: New file.
37055         * modules/atan: New file.
37056         * modules/atan2: New file.
37057         * modules/cbrt: New file.
37058         * modules/copysign: New file.
37059         * modules/cos: New file.
37060         * modules/cosh: New file.
37061         * modules/erf: New file.
37062         * modules/erfc: New file.
37063         * modules/exp: New file.
37064         * modules/fabs: New file.
37065         * modules/fmod: New file.
37066         * modules/hypot: New file.
37067         * modules/j0: New file.
37068         * modules/j1: New file.
37069         * modules/jn: New file.
37070         * modules/ldexp: New file.
37071         * modules/lgamma: New file.
37072         * modules/log: New file.
37073         * modules/log10: New file.
37074         * modules/log1p: New file.
37075         * modules/logb: New file.
37076         * modules/modf: New file.
37077         * modules/nextafter: New file.
37078         * modules/pow: New file.
37079         * modules/remainder: New file.
37080         * modules/rint: New file.
37081         * modules/sin: New file.
37082         * modules/sinh: New file.
37083         * modules/sqrt: New file.
37084         * modules/tan: New file.
37085         * modules/tanh: New file.
37086         * modules/y0: New file.
37087         * modules/y1: New file.
37088         * modules/yn: New file.
37089         * doc/posix-functions/acos.texi: Mention the 'acos' module.
37090         * doc/posix-functions/asin.texi: Mention the 'asin' module.
37091         * doc/posix-functions/atan.texi: Mention the 'atan' module.
37092         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
37093         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
37094         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
37095         * doc/posix-functions/cos.texi: Mention the 'cos' module.
37096         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
37097         * doc/posix-functions/erf.texi: Mention the 'erf' module.
37098         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
37099         * doc/posix-functions/exp.texi: Mention the 'exp' module.
37100         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
37101         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
37102         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
37103         * doc/posix-functions/j0.texi: Mention the 'j0' module.
37104         * doc/posix-functions/j1.texi: Mention the 'j1' module.
37105         * doc/posix-functions/jn.texi: Mention the 'jn' module.
37106         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
37107         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
37108         * doc/posix-functions/log.texi: Mention the 'log' module.
37109         * doc/posix-functions/log10.texi: Mention the 'log10' module.
37110         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
37111         * doc/posix-functions/logb.texi: Mention the 'logb' module.
37112         * doc/posix-functions/modf.texi: Mention the 'modf' module.
37113         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
37114         * doc/posix-functions/pow.texi: Mention the 'pow' module.
37115         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
37116         * doc/posix-functions/rint.texi: Mention the 'rint' module.
37117         * doc/posix-functions/sin.texi: Mention the 'sin' module.
37118         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
37119         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
37120         * doc/posix-functions/tan.texi: Mention the 'tan' module.
37121         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
37122         * doc/posix-functions/y0.texi: Mention the 'y0' module.
37123         * doc/posix-functions/y1.texi: Mention the 'y1' module.
37124         * doc/posix-functions/yn.texi: Mention the 'yn' module.
37125
37126 2010-01-18  Jim Meyering  <meyering@redhat.com>
37127
37128         ignore-value: relax license to LGPLv2+
37129         * modules/ignore-value (License): Relax to LGPLv2+.
37130
37131         getdate: don't leak when TZ contains two or more '"'s
37132         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
37133         double quote in TZ after the first one.
37134
37135         readtokens: do not leak internal token_lengths buffer
37136         * lib/readtokens.c (readtokens): Free the local, lengths,
37137         when the supplied "token_lengths" parameter is NULL.
37138
37139 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37140
37141         Fix a couple of missing LIBTHREAD link failures on AIX.
37142         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
37143         $(LIBTHREAD).
37144         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
37145
37146         Link test-poll against INET_PTON_LIB.
37147         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
37148         for inet_pton on Solaris 10.
37149
37150 2010-01-17  Bruno Haible  <bruno@clisp.org>
37151
37152         unistdio/*-sprintf: Fix typo in module description.
37153         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
37154         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
37155         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
37156         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
37157         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
37158         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
37159         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
37160         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37161
37162 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37163
37164         gnulib-tool: fix filelist for AIX, HP-UX ksh.
37165         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
37166         variables in shell case patterns, for AIX and HP-UX ksh.
37167
37168         Split large sed scripts, for HP-UX sed.
37169         * modules/stdio: Split sed scripts around 50 sed commands,
37170         to avoid HP-UX limit of 99 commands, in the near future.
37171         * modules/string: Likewise.
37172         * modules/unistd: Likewise.
37173
37174         gnulib-tool: avoid writing in the current directory.
37175         * gnulib-tool (func_emit_lib_Makefile_am)
37176         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
37177         not in the current directory, so concurrent gnulib-tool
37178         instances do not interfere.
37179
37180 2010-01-16  Jim Meyering  <meyering@redhat.com>
37181
37182         doc: update users.txt
37183         * users.txt: Add grep.
37184         (diffutils, gzip): Update URLs.
37185
37186 2010-01-12  Bruno Haible  <bruno@clisp.org>
37187
37188         posix_spawn: Avoid test failure on Cygwin.
37189         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
37190         characters.
37191         Reported by Simon Josefsson.
37192
37193 2010-01-12  Bruno Haible  <bruno@clisp.org>
37194
37195         * tests/test-cond.c (main): When skipping the test, show the reason.
37196
37197 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37198
37199         * lib/striconv.c (str_cd_iconv): Avoid if before free.
37200
37201 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37202
37203         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
37204         VC_LIST_ALWAYS_EXCLUDE_REGEX.
37205
37206 2010-01-12  Eric Blake  <ebb9@byu.net>
37207
37208         build: guarantee AS_VAR_IF
37209         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
37210         (gl_AS_VAR_IF): Move...
37211         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
37212         Reported by Simon Josefsson.
37213
37214 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37215
37216         * lib/stdio.in.h: Fix typo.
37217
37218 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37219
37220         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
37221         libgpg-error.
37222
37223 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37224
37225         * tests/test-xalloc-die.sh: Use $EXEEXT.
37226
37227 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37228             Bruno Haible  <bruno@clisp.org>
37229
37230         getlogin, getlogin_r: Avoid test failure.
37231         * tests/test-getlogin.c: Include <stdio.h>.
37232         (main): Skip the test when the function fails because stdin is not a
37233         tty.
37234         * tests/test-getlogin_r.c: Include <stdio.h>.
37235         (main): Skip the test when the function fails because stdin is not a
37236         tty.
37237
37238 2010-01-11  Eric Blake  <ebb9@byu.net>
37239
37240         tests: avoid more large file warnings
37241         * tests/test-fflush.c: Avoid warning about ftell use.
37242         * tests/test-fseek.c: Avoid warning about fseek use.
37243
37244 2010-01-10  Bruno Haible  <bruno@clisp.org>
37245
37246         nproc: Work better on Linux when /proc and /sys are not mounted.
37247         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
37248         as lower bound when, on glibc/Linux systems,
37249         sysconf (_SC_NPROCESSORS_CONF) returns 1.
37250         Suggested by Pádraig Brady <P@draigbrady.com>.
37251         Reported by Dmitry V. Levin <ldv@altlinux.org>.
37252
37253         nproc: Refactor.
37254         * lib/nproc.c (num_processors_via_affinity_mask): New function,
37255         extracted from num_processors.
37256         (num_processors): Call it.
37257
37258 2010-01-11  Jim Meyering  <meyering@redhat.com>
37259
37260         utimecmp: avoid new warning from upcoming gcc-4.5.0
37261         * lib/utimecmp.c (BILLION): Define using #define rather than an
37262         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
37263
37264 2010-01-11  Eric Blake  <ebb9@byu.net>
37265
37266         math: add portability warnings for classification macros
37267         * modules/math (Depends-on): Add warn-on-use.
37268         (Makefile.am): Provide new substitutions.
37269         * m4/math_h.m4 (gl_MATH_H): Require inline.
37270         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
37271         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
37272         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
37273         implement warnings.
37274
37275         unistd: warn on use of environ without module
37276         * modules/unistd (Depends-on): Add warn-on-use.
37277         (Makefile.am): Provide new substitutions.
37278         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
37279         * lib/unistd.in.h (environ): Wrap with a warning helper function.
37280
37281         stdio: warn on suspicious uses
37282         * modules/stdio (Depends-on): Add warn-on-use.
37283         (Makefile.am): Provide new substitutions.
37284         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
37285         fseeko.
37286         * lib/stdio.in.h (gets): Always warn on use.
37287         (fseek, ftell): Adjust when warnings are issued, and honor
37288         _GL_NO_LARGE_FILES as a way to silence the warning.
37289         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
37290         any warning about large file offsets.
37291         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
37292         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
37293         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
37294         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
37295         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
37296         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
37297         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
37298         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
37299
37300         warn-on-use: new module
37301         * modules/warn-on-use: New file.
37302         * build-aux/warn-on-use.h: Likewise.
37303         * m4/warn-on-use.m4: Likewise.
37304         * MODULES.html.sh (Support for building): Mention it.
37305
37306 2010-01-10  Bruno Haible  <bruno@clisp.org>
37307
37308         Tests for module 'unistr/u32-strdup'.
37309         * modules/unistr/u32-strdup-tests: New file.
37310         * tests/unistr/test-u32-strdup.c: New file.
37311
37312         Tests for module 'unistr/u16-strdup'.
37313         * modules/unistr/u16-strdup-tests: New file.
37314         * tests/unistr/test-u16-strdup.c: New file.
37315
37316         Tests for module 'unistr/u8-strdup'.
37317         * modules/unistr/u8-strdup-tests: New file.
37318         * tests/unistr/test-u8-strdup.c: New file.
37319         * tests/unistr/test-strdup.h: New file.
37320
37321         Tests for module 'unistr/u32-strncmp'.
37322         * modules/unistr/u32-strncmp-tests: New file.
37323         * tests/unistr/test-u32-strncmp.c: New file.
37324
37325         Tests for module 'unistr/u16-strncmp'.
37326         * modules/unistr/u16-strncmp-tests: New file.
37327         * tests/unistr/test-u16-strncmp.c: New file.
37328
37329         Tests for module 'unistr/u8-strncmp'.
37330         * modules/unistr/u8-strncmp-tests: New file.
37331         * tests/unistr/test-u8-strncmp.c: New file.
37332         * tests/unistr/test-strncmp.h: New file.
37333
37334         Tests for module 'unistr/u32-strcoll'.
37335         * modules/unistr/u32-strcoll-tests: New file.
37336         * tests/unistr/test-u32-strcoll.c: New file.
37337
37338         Tests for module 'unistr/u16-strcoll'.
37339         * modules/unistr/u16-strcoll-tests: New file.
37340         * tests/unistr/test-u16-strcoll.c: New file.
37341
37342         Tests for module 'unistr/u8-strcoll'.
37343         * modules/unistr/u8-strcoll-tests: New file.
37344         * tests/unistr/test-u8-strcoll.c: New file.
37345
37346         Tests for module 'unistr/u32-strcmp'.
37347         * modules/unistr/u32-strcmp-tests: New file.
37348         * tests/unistr/test-u32-strcmp.c: New file.
37349         * tests/unistr/test-u32-strcmp.h: New file.
37350
37351         Tests for module 'unistr/u16-strcmp'.
37352         * modules/unistr/u16-strcmp-tests: New file.
37353         * tests/unistr/test-u16-strcmp.c: New file.
37354         * tests/unistr/test-u16-strcmp.h: New file.
37355
37356         Tests for module 'unistr/u8-strcmp'.
37357         * modules/unistr/u8-strcmp-tests: New file.
37358         * tests/unistr/test-u8-strcmp.c: New file.
37359         * tests/unistr/test-u8-strcmp.h: New file.
37360         * tests/unistr/test-strcmp.h: New file.
37361
37362         Tests for module 'unistr/u32-strncat'.
37363         * modules/unistr/u32-strncat-tests: New file.
37364         * tests/unistr/test-u32-strncat.c: New file.
37365
37366         Tests for module 'unistr/u16-strncat'.
37367         * modules/unistr/u16-strncat-tests: New file.
37368         * tests/unistr/test-u16-strncat.c: New file.
37369
37370         Tests for module 'unistr/u8-strncat'.
37371         * modules/unistr/u8-strncat-tests: New file.
37372         * tests/unistr/test-u8-strncat.c: New file.
37373         * tests/unistr/test-strncat.h: New file.
37374
37375         Tests for module 'unistr/u32-strcat'.
37376         * modules/unistr/u32-strcat-tests: New file.
37377         * tests/unistr/test-u32-strcat.c: New file.
37378
37379         Tests for module 'unistr/u16-strcat'.
37380         * modules/unistr/u16-strcat-tests: New file.
37381         * tests/unistr/test-u16-strcat.c: New file.
37382
37383         Tests for module 'unistr/u8-strcat'.
37384         * modules/unistr/u8-strcat-tests: New file.
37385         * tests/unistr/test-u8-strcat.c: New file.
37386         * tests/unistr/test-strcat.h: New file.
37387
37388         Tests for module 'unistr/u32-stpncpy'.
37389         * modules/unistr/u32-stpncpy-tests: New file.
37390         * tests/unistr/test-u32-stpncpy.c: New file.
37391
37392         Tests for module 'unistr/u16-stpncpy'.
37393         * modules/unistr/u16-stpncpy-tests: New file.
37394         * tests/unistr/test-u16-stpncpy.c: New file.
37395
37396         Tests for module 'unistr/u8-stpncpy'.
37397         * modules/unistr/u8-stpncpy-tests: New file.
37398         * tests/unistr/test-u8-stpncpy.c: New file.
37399         * tests/unistr/test-stpncpy.h: New file.
37400
37401         Tests for module 'unistr/u32-strncpy'.
37402         * modules/unistr/u32-strncpy-tests: New file.
37403         * tests/unistr/test-u32-strncpy.c: New file.
37404
37405         Tests for module 'unistr/u16-strncpy'.
37406         * modules/unistr/u16-strncpy-tests: New file.
37407         * tests/unistr/test-u16-strncpy.c: New file.
37408
37409         Tests for module 'unistr/u8-strncpy'.
37410         * modules/unistr/u8-strncpy-tests: New file.
37411         * tests/unistr/test-u8-strncpy.c: New file.
37412         * tests/unistr/test-strncpy.h: New file.
37413
37414         Tests for module 'unistr/u32-stpcpy'.
37415         * modules/unistr/u32-stpcpy-tests: New file.
37416         * tests/unistr/test-u32-stpcpy.c: New file.
37417
37418         Tests for module 'unistr/u16-stpcpy'.
37419         * modules/unistr/u16-stpcpy-tests: New file.
37420         * tests/unistr/test-u16-stpcpy.c: New file.
37421
37422         Tests for module 'unistr/u8-stpcpy'.
37423         * modules/unistr/u8-stpcpy-tests: New file.
37424         * tests/unistr/test-u8-stpcpy.c: New file.
37425         * tests/unistr/test-stpcpy.h: New file.
37426
37427         Tests for module 'unistr/u32-strcpy'.
37428         * modules/unistr/u32-strcpy-tests: New file.
37429         * tests/unistr/test-u32-strcpy.c: New file.
37430
37431         Tests for module 'unistr/u16-strcpy'.
37432         * modules/unistr/u16-strcpy-tests: New file.
37433         * tests/unistr/test-u16-strcpy.c: New file.
37434
37435         Tests for module 'unistr/u8-strcpy'.
37436         * modules/unistr/u8-strcpy-tests: New file.
37437         * tests/unistr/test-u8-strcpy.c: New file.
37438         * tests/unistr/test-strcpy.h: New file.
37439
37440         Tests for module 'unistr/u32-strnlen'.
37441         * modules/unistr/u32-strnlen-tests: New file.
37442         * tests/unistr/test-u32-strnlen.c: New file.
37443
37444         Tests for module 'unistr/u16-strnlen'.
37445         * modules/unistr/u16-strnlen-tests: New file.
37446         * tests/unistr/test-u16-strnlen.c: New file.
37447
37448         Tests for module 'unistr/u8-strnlen'.
37449         * modules/unistr/u8-strnlen-tests: New file.
37450         * tests/unistr/test-u8-strnlen.c: New file.
37451         * tests/unistr/test-strnlen.h: New file.
37452
37453         Tests for module 'unistr/u32-strlen'.
37454         * modules/unistr/u32-strlen-tests: New file.
37455         * tests/unistr/test-u32-strlen.c: New file.
37456
37457         Tests for module 'unistr/u16-strlen'.
37458         * modules/unistr/u16-strlen-tests: New file.
37459         * tests/unistr/test-u16-strlen.c: New file.
37460
37461         Tests for module 'unistr/u8-strlen'.
37462         * modules/unistr/u8-strlen-tests: New file.
37463         * tests/unistr/test-u8-strlen.c: New file.
37464
37465         Tests for module 'unistr/u32-prev'.
37466         * modules/unistr/u32-prev-tests: New file.
37467         * tests/unistr/test-u32-prev.c: New file.
37468
37469         Tests for module 'unistr/u16-prev'.
37470         * modules/unistr/u16-prev-tests: New file.
37471         * tests/unistr/test-u16-prev.c: New file.
37472
37473         Tests for module 'unistr/u8-prev'.
37474         * modules/unistr/u8-prev-tests: New file.
37475         * tests/unistr/test-u8-prev.c: New file.
37476
37477         Tests for module 'unistr/u32-next'.
37478         * modules/unistr/u32-next-tests: New file.
37479         * tests/unistr/test-u32-next.c: New file.
37480
37481         Tests for module 'unistr/u16-next'.
37482         * modules/unistr/u16-next-tests: New file.
37483         * tests/unistr/test-u16-next.c: New file.
37484
37485         Tests for module 'unistr/u8-next'.
37486         * modules/unistr/u8-next-tests: New file.
37487         * tests/unistr/test-u8-next.c: New file.
37488
37489         Tests for module 'unistr/u32-strmbtouc'.
37490         * modules/unistr/u32-strmbtouc-tests: New file.
37491         * tests/unistr/test-u32-strmbtouc.c: New file.
37492
37493         Tests for module 'unistr/u16-strmbtouc'.
37494         * modules/unistr/u16-strmbtouc-tests: New file.
37495         * tests/unistr/test-u16-strmbtouc.c: New file.
37496
37497         Tests for module 'unistr/u8-strmbtouc'.
37498         * modules/unistr/u8-strmbtouc-tests: New file.
37499         * tests/unistr/test-u8-strmbtouc.c: New file.
37500
37501         Tests for module 'unistr/u32-strmblen'.
37502         * modules/unistr/u32-strmblen-tests: New file.
37503         * tests/unistr/test-u32-strmblen.c: New file.
37504
37505         Tests for module 'unistr/u16-strmblen'.
37506         * modules/unistr/u16-strmblen-tests: New file.
37507         * tests/unistr/test-u16-strmblen.c: New file.
37508
37509         Tests for module 'unistr/u8-strmblen'.
37510         * modules/unistr/u8-strmblen-tests: New file.
37511         * tests/unistr/test-u8-strmblen.c: New file.
37512
37513         Tests for module 'unistr/u32-cpy-alloc'.
37514         * modules/unistr/u32-cpy-alloc-tests: New file.
37515         * tests/unistr/test-u32-cpy-alloc.c: New file.
37516
37517         Tests for module 'unistr/u16-cpy-alloc'.
37518         * modules/unistr/u16-cpy-alloc-tests: New file.
37519         * tests/unistr/test-u16-cpy-alloc.c: New file.
37520
37521         Tests for module 'unistr/u8-cpy-alloc'.
37522         * modules/unistr/u8-cpy-alloc-tests: New file.
37523         * tests/unistr/test-u8-cpy-alloc.c: New file.
37524         * tests/unistr/test-cpy-alloc.h: New file.
37525
37526         Tests for module 'unistr/u32-mbsnlen'.
37527         * modules/unistr/u32-mbsnlen-tests: New file.
37528         * tests/unistr/test-u32-mbsnlen.c: New file.
37529
37530         Tests for module 'unistr/u16-mbsnlen'.
37531         * modules/unistr/u16-mbsnlen-tests: New file.
37532         * tests/unistr/test-u16-mbsnlen.c: New file.
37533
37534         Tests for module 'unistr/u8-mbsnlen'.
37535         * modules/unistr/u8-mbsnlen-tests: New file.
37536         * tests/unistr/test-u8-mbsnlen.c: New file.
37537
37538         Tests for module 'unistr/u32-chr'.
37539         * modules/unistr/u32-chr-tests: New file.
37540         * tests/unistr/test-u32-chr.c: New file.
37541
37542         Tests for module 'unistr/u16-chr'.
37543         * modules/unistr/u16-chr-tests: New file.
37544         * tests/unistr/test-u16-chr.c: New file.
37545
37546         Tests for module 'unistr/u8-chr'.
37547         * modules/unistr/u8-chr-tests: New file.
37548         * tests/unistr/test-u8-chr.c: New file.
37549         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
37550
37551         Tests for module 'unistr/u32-cmp2'.
37552         * modules/unistr/u32-cmp2-tests: New file.
37553         * tests/unistr/test-u32-cmp2.c: New file.
37554
37555         Tests for module 'unistr/u16-cmp2'.
37556         * modules/unistr/u16-cmp2-tests: New file.
37557         * tests/unistr/test-u16-cmp2.c: New file.
37558
37559         Tests for module 'unistr/u8-cmp2'.
37560         * modules/unistr/u8-cmp2-tests: New file.
37561         * tests/unistr/test-u8-cmp2.c: New file.
37562         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
37563
37564         Tests for module 'unistr/u32-cmp'.
37565         * modules/unistr/u32-cmp-tests: New file.
37566         * tests/unistr/test-u32-cmp.c: New file.
37567
37568         Tests for module 'unistr/u16-cmp'.
37569         * modules/unistr/u16-cmp-tests: New file.
37570         * tests/unistr/test-u16-cmp.c: New file.
37571
37572         Tests for module 'unistr/u8-cmp'.
37573         * modules/unistr/u8-cmp-tests: New file.
37574         * tests/unistr/test-u8-cmp.c: New file.
37575         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
37576
37577         Tests for module 'unistr/u32-set'.
37578         * modules/unistr/u32-set-tests: New file.
37579         * tests/unistr/test-u32-set.c: New file.
37580
37581         Tests for module 'unistr/u16-set'.
37582         * modules/unistr/u16-set-tests: New file.
37583         * tests/unistr/test-u16-set.c: New file.
37584
37585         Tests for module 'unistr/u8-set'.
37586         * modules/unistr/u8-set-tests: New file.
37587         * tests/unistr/test-u8-set.c: New file.
37588         * tests/unistr/test-set.h: New file.
37589
37590         Tests for module 'unistr/u32-move'.
37591         * modules/unistr/u32-move-tests: New file.
37592         * tests/unistr/test-u32-move.c: New file.
37593
37594         Tests for module 'unistr/u16-move'.
37595         * modules/unistr/u16-move-tests: New file.
37596         * tests/unistr/test-u16-move.c: New file.
37597
37598         Tests for module 'unistr/u8-move'.
37599         * modules/unistr/u8-move-tests: New file.
37600         * tests/unistr/test-u8-move.c: New file.
37601         * tests/unistr/test-move.h: New file.
37602
37603         Tests for module 'unistr/u32-cpy'.
37604         * modules/unistr/u32-cpy-tests: New file.
37605         * tests/unistr/test-u32-cpy.c: New file.
37606
37607         Tests for module 'unistr/u16-cpy'.
37608         * modules/unistr/u16-cpy-tests: New file.
37609         * tests/unistr/test-u16-cpy.c: New file.
37610
37611         Tests for module 'unistr/u8-cpy'.
37612         * modules/unistr/u8-cpy-tests: New file.
37613         * tests/unistr/test-u8-cpy.c: New file.
37614         * tests/unistr/test-cpy.h: New file.
37615
37616 2010-01-09  Bruno Haible  <bruno@clisp.org>
37617
37618         Tests for module 'unistr/u32-uctomb'.
37619         * modules/unistr/u32-uctomb-tests: New file.
37620         * tests/unistr/test-u32-uctomb.c: New file.
37621
37622         Tests for module 'unistr/u16-uctomb'.
37623         * modules/unistr/u16-uctomb-tests: New file.
37624         * tests/unistr/test-u16-uctomb.c: New file.
37625
37626         Tests for module 'unistr/u8-uctomb'.
37627         * modules/unistr/u8-uctomb-tests: New file.
37628         * tests/unistr/test-u8-uctomb.c: New file.
37629
37630         Tests for module 'unistr/u32-mbtoucr'.
37631         * modules/unistr/u32-mbtoucr-tests: New file.
37632         * tests/unistr/test-u32-mbtoucr.c: New file.
37633
37634         Tests for module 'unistr/u16-mbtoucr'.
37635         * modules/unistr/u16-mbtoucr-tests: New file.
37636         * tests/unistr/test-u16-mbtoucr.c: New file.
37637
37638         Tests for module 'unistr/u8-mbtoucr'.
37639         * modules/unistr/u8-mbtoucr-tests: New file.
37640         * tests/unistr/test-u8-mbtoucr.c: New file.
37641
37642         Tests for module 'unistr/u32-mbtouc'.
37643         * modules/unistr/u32-mbtouc-tests: New file.
37644         * tests/unistr/test-u32-mbtouc.c: New file.
37645
37646         Tests for module 'unistr/u16-mbtouc'.
37647         * modules/unistr/u16-mbtouc-tests: New file.
37648         * tests/unistr/test-u16-mbtouc.c: New file.
37649
37650         Tests for module 'unistr/u8-mbtouc'.
37651         * modules/unistr/u8-mbtouc-tests: New file.
37652         * tests/unistr/test-u8-mbtouc.c: New file.
37653
37654         Tests for module 'unistr/u32-mbtouc-unsafe'.
37655         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
37656         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
37657         * tests/unistr/test-u32-mbtouc.h: New file.
37658
37659         Tests for module 'unistr/u16-mbtouc-unsafe'.
37660         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
37661         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
37662         * tests/unistr/test-u16-mbtouc.h: New file.
37663
37664         Tests for module 'unistr/u8-mbtouc-unsafe'.
37665         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
37666         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
37667         * tests/unistr/test-u8-mbtouc.h: New file.
37668
37669         Tests for module 'unistr/u32-mblen'.
37670         * modules/unistr/u32-mblen-tests: New file.
37671         * tests/unistr/test-u32-mblen.c: New file.
37672
37673         Tests for module 'unistr/u16-mblen'.
37674         * modules/unistr/u16-mblen-tests: New file.
37675         * tests/unistr/test-u16-mblen.c: New file.
37676
37677         Tests for module 'unistr/u8-mblen'.
37678         * modules/unistr/u8-mblen-tests: New file.
37679         * tests/unistr/test-u8-mblen.c: New file.
37680
37681         Tests for module 'unistr/u32-to-u16'.
37682         * modules/unistr/u32-to-u16-tests: New file.
37683         * tests/unistr/test-u32-to-u16.c: New file.
37684
37685         Tests for module 'unistr/u32-to-u8'.
37686         * modules/unistr/u32-to-u8-tests: New file.
37687         * tests/unistr/test-u32-to-u8.c: New file.
37688
37689         Tests for module 'unistr/u16-to-u32'.
37690         * modules/unistr/u16-to-u32-tests: New file.
37691         * tests/unistr/test-u16-to-u32.c: New file.
37692
37693         Tests for module 'unistr/u16-to-u8'.
37694         * modules/unistr/u16-to-u8-tests: New file.
37695         * tests/unistr/test-u16-to-u8.c: New file.
37696
37697         Tests for module 'unistr/u8-to-u32'.
37698         * modules/unistr/u8-to-u32-tests: New file.
37699         * tests/unistr/test-u8-to-u32.c: New file.
37700
37701         Tests for module 'unistr/u8-to-u16'.
37702         * modules/unistr/u8-to-u16-tests: New file.
37703         * tests/unistr/test-u8-to-u16.c: New file.
37704
37705         Tests for module 'unistr/u32-check'.
37706         * modules/unistr/u32-check-tests: New file.
37707         * tests/unistr/test-u32-check.c: New file.
37708
37709         Tests for module 'unistr/u16-check'.
37710         * modules/unistr/u16-check-tests: New file.
37711         * tests/unistr/test-u16-check.c: New file.
37712
37713         Tests for module 'unistr/u8-check'.
37714         * modules/unistr/u8-check-tests: New file.
37715         * tests/unistr/test-u8-check.c: New file.
37716
37717         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
37718         (category_equals): New function.
37719         (main): Add more tests.
37720         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
37721
37722         * tests/unictype/test-bidi_byname.c (main): Add more tests.
37723
37724 2010-01-10  Bruno Haible  <bruno@clisp.org>
37725
37726         unistr/u*-strcoll: Try harder to distinguish different strings.
37727         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
37728         compare s1 and s2 to see if they are different.
37729
37730 2010-01-10  Bruno Haible  <bruno@clisp.org>
37731
37732         unistr/u*-stpncpy: Fix the return value.
37733         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
37734         description of the return value consistent with stpncpy in glibc.
37735         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
37736         written non-NUL unit.
37737
37738 2010-01-10  Bruno Haible  <bruno@clisp.org>
37739
37740         unistr/u*-next: Add missing dependencies.
37741         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
37742         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
37743         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
37744
37745 2010-01-10  Bruno Haible  <bruno@clisp.org>
37746
37747         unistr/u8-mbsnlen: Fix return value for incomplete character.
37748         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
37749         u8_mblen.
37750         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
37751         Remove unistr/u8-mblen.
37752         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
37753         u16_mblen.
37754         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
37755         Remove unistr/u16-mblen.
37756
37757 2010-01-10  Bruno Haible  <bruno@clisp.org>
37758
37759         wchar: Fix compilation error when <wchar.h> is used from coreutils.
37760         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
37761         Reported by Brian Gough <bjg@gnu.org> and
37762         Chris Clayton <chris2553@googlemail.com> via
37763         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
37764
37765 2010-01-09  Bruno Haible  <bruno@clisp.org>
37766
37767         unistr/u16-to-u32: Reject invalid input.
37768         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
37769         u16_mbtouc.
37770         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
37771         Remove unistr/u16-mbtouc.
37772
37773         unistr/u16-to-u8: Reject invalid input.
37774         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
37775         u16_mbtouc.
37776         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
37777         Remove unistr/u16-mbtouc.
37778
37779         unistr/u8-to-u32: Reject invalid input.
37780         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
37781         u8_mbtouc.
37782         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
37783         Remove unistr/u8-mbtouc.
37784
37785         unistr/u8-to-u16: Reject invalid input.
37786         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
37787         u8_mbtouc.
37788         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
37789         Remove unistr/u8-mbtouc.
37790
37791 2010-01-09  Bruno Haible  <bruno@clisp.org>
37792
37793         Tests for module 'getlogin'.
37794         * modules/getlogin-tests: New file.
37795         * tests/test-getlogin.c: New file.
37796
37797         New module 'getlogin'.
37798         * lib/unistd.in.h (getlogin): New declaration.
37799         * lib/getlogin.c: New file.
37800         * m4/getlogin.m4: New file.
37801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
37802         HAVE_GETLOGIN.
37803         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
37804         HAVE_GETLOGIN.
37805         * modules/getlogin: New file.
37806         * doc/posix-functions/getlogin.texi: Mention the new module.
37807         Reported by John W. Eaton <jwe@gnu.org>.
37808
37809 2010-01-09  Bruno Haible  <bruno@clisp.org>
37810
37811         getlogin_r: Support for native Windows.
37812         * lib/getlogin_r.c: Include <windows.h>
37813         (getlogin_r): Implement for native Windows.
37814         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
37815         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
37816         via John W. Eaton <jwe@gnu.org>.
37817
37818 2010-01-09  Bruno Haible  <bruno@clisp.org>
37819
37820         getlogin_r: Small fixes.
37821         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
37822         succeeds.
37823         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
37824         before testing whether getlogin_r is declared. No need to set
37825         HAVE_DECL_GETLOGIN_R to 1.
37826         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
37827
37828 2010-01-09  Bruno Haible  <bruno@clisp.org>
37829
37830         * lib/unistd.in.h (getlogin_r): Add comment.
37831
37832 2010-01-09  Bruno Haible  <bruno@clisp.org>
37833
37834         Tests for module 'getlogin_r'.
37835         * modules/getlogin_r-tests: New file.
37836         * tests/test-getlogin_r.c: New file.
37837
37838 2010-01-09  Jim Meyering  <meyering@redhat.com>
37839
37840         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
37841         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
37842         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
37843
37844 2010-01-08  Simon Josefsson  <simon@josefsson.org>
37845
37846         * lib/dup2.c (rpl_dup2): Improve comment.
37847
37848 2010-01-08  Eric Blake  <ebb9@byu.net>
37849
37850         maint.mk: allow packages to add makefile @@ exceptions
37851         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
37852         (sc_makefile_check): Rename...
37853         (sc_makefile_at_at_check): ...to this, and use hook.
37854
37855         dup2: work around mingw bug
37856         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
37857         Reported by Simon Josefsson.
37858
37859 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
37860
37861         glob: Fix C++ compilation.
37862         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
37863         C++.
37864
37865 2010-01-07  Bruno Haible  <bruno@clisp.org>
37866
37867         Fix indentation of wctype.in.h, broken since 2007-01-06.
37868         * lib/wctype.in.h: Fix indentation of preprocessor directives.
37869
37870 2010-01-07  Bruno Haible  <bruno@clisp.org>
37871
37872         mbslen: Avoid collision with system function.
37873         * lib/string.in.h [MirBSD]: Include <wchar.h>.
37874         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
37875         * m4/mbslen.m4: New file.
37876         * modules/mbslen (Files): Add it.
37877         (configure.ac): Invoke gl_MBSLEN.
37878         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
37879         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
37880         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
37881         via Ian Beckwith <ianb@erislabs.net>.
37882
37883 2010-01-07  Bruno Haible  <bruno@clisp.org>
37884
37885         dirent: Document the last fix.
37886         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
37887
37888 2010-01-07  Bruno Haible  <bruno@clisp.org>
37889
37890         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
37891         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
37892         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
37893         va_list are defined.
37894         * doc/posix-headers/stdio.texi: Document the bug of missing types.
37895         Reported by Eric Blake.
37896
37897 2010-01-07  Bruno Haible  <bruno@clisp.org>
37898
37899         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
37900         * modules/xlist (Depends-on): Add 'list',
37901         * modules/xoset (Depends-on): Add 'oset'.
37902         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37903
37904 2010-01-07  Bruno Haible  <bruno@clisp.org>
37905
37906         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
37907         * doc/posix-functions/strncasecmp.texi: Likewise.
37908
37909 2010-01-07  Bruno Haible  <bruno@clisp.org>
37910
37911         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
37912
37913 2010-01-07  John W. Eaton  <jwe@octave.org>
37914
37915         wctype: allow C++ use
37916         * lib/wctype.in.h: Add extern "C" block for C++.
37917
37918 2010-01-06  Eric Blake  <ebb9@byu.net>
37919
37920         maint.mk: detect incorrect GFDL usage
37921         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
37922
37923 2010-01-06  Jim Meyering  <meyering@redhat.com>
37924         and Eric Blake  <ebb9@byu.net>
37925
37926         maint.mk: ignore multi-line copyright in NEWS
37927         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
37928
37929 2010-01-06  Eric Blake  <ebb9@byu.net>
37930
37931         select: add missing dependency
37932         * modules/select-tests (Depends-on): Move sockets dependency...
37933         * modules/select (Depends-on): ...here.
37934         Reported by Ian Beckwith.
37935
37936         doc: regenerate INSTALL
37937         * doc/INSTALL: Reflect recent autoconf update.
37938         * doc/INSTALL.ISO: Likewise.
37939         * doc/INSTALL.UTF-8: Likewise.
37940
37941         pread: fix compilation on glibc
37942         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
37943         Reported by Ralf Wildenhues.
37944
37945         dirent: fix test failure
37946         * lib/dirent.in.h (includes): Guarantee ino_t.
37947         Reported by Ralf Wildenhues.
37948
37949 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
37950
37951         linkat, renameat: avoid bad free
37952         * lib/at-func2.c (at_func2): Fix typo.
37953         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
37954
37955 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37956
37957         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
37958         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
37959         to avoid failure of symlink test later.
37960
37961 2010-01-06  Eric Blake  <ebb9@byu.net>
37962
37963         stdio, unistd: guarantee ssize_t
37964         * lib/unistd.in.h (includes): Ensure that types required by POSIX
37965         2008 are exposed when needed.
37966         * lib/stdio.in.h (includes): Likewise.
37967         Reported by Ralf Wildenhues.
37968
37969 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
37970
37971         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
37972         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
37973         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
37974
37975 2010-01-06  Jim Meyering  <meyering@redhat.com>
37976
37977         readtokens: this module *does* require xalloc.h
37978         It uses only functions that were omitted by the old syntax-check rule.
37979         * lib/readtokens.c: Include "xalloc.h" once again.
37980         * modules/readtokens (Depends-on): Add xalloc.
37981         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
37982
37983 2010-01-05  Eric Blake  <ebb9@byu.net>
37984
37985         maint: support 'make announcement' from a VPATH build
37986         * top/maint.mk (announcement): Look for correct NEWS file.
37987
37988 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
37989
37990         utimens (fdutimens): ignore a negative FD, per contract
37991         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
37992         when we have a valid file descriptor.  Otherwise, using a brand
37993         new glibc (with just-patched futimens that now fails with EBADF)
37994         would cause this function to fail with ENOSYS.
37995         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
37996         See also http://bugzilla.redhat.com/552320.
37997
37998 2010-01-05  Eric Blake  <ebb9@byu.net>
37999
38000         strcase: document what it provides
38001         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
38002         gnulib module.
38003         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
38004         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
38005
38006 2010-01-05  Jim Meyering  <meyering@redhat.com>
38007
38008         maint: remove useless inclusions of "xalloc.h"
38009         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
38010         * lib/readtokens.c: Likewise.
38011         * lib/same.c: Likewise.
38012         * modules/getloadavg (Depends-on): Remove xalloc.
38013         * modules/readtokens: Likewise.
38014         * modules/same: Likewise.
38015
38016         maint.mk: include 4 more function names in alloca.h-checking regexp
38017         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
38018         regexp.  Before, we would give a false-positive (saying alloca.h
38019         is included unnecessarily) when the only uses involved omitted symbols.
38020
38021         xalloc.h: use consistent formatting
38022         * lib/xalloc.h: Move declarations to start in the first column.
38023
38024 2010-01-05  Eric Blake  <ebb9@byu.net>
38025
38026         mkdir: avoid xalloc
38027         * lib/mkdir.c (includes): Drop unused header.
38028         Reported by John W. Eaton.
38029
38030 2010-01-04  Jim Meyering  <meyering@redhat.com>
38031
38032         nl_langinfo: avoid configure-time syntax error
38033         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
38034         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
38035         the empty string.  Don't let that provoke a shell syntax error.
38036
38037         regcomp, regexec, fnmatch: avoid array bounds read error
38038         * lib/regcomp.c (build_equiv_class): From glibc:
38039         Use only the low 24 bits of a findidx return value as an index
38040         into the weights array.  Patch by Ulrich Drepper:
38041         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
38042         * lib/regexec.c (check_node_accept_bytes): Likewise.
38043         * lib/fnmatch_loop.c (FCT): Likewise.
38044
38045         regcomp: skip collseq lookup when there are no rules
38046         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
38047         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
38048
38049         regcomp: recognize ill-formed { } expressions
38050         * lib/regcomp.c (parse_dup_op): From glibc:
38051         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
38052
38053         regcomp: fix typo in comment
38054         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
38055         s/satisfy/satisfies/.
38056
38057         regcomp: sync from glibc: remove dead store
38058         * lib/regcomp.c (duplicate_node_closure): Remove useless
38059         search_duplicated_node call and dead store.
38060
38061         regcomp: sync from glibc; always use nl_langinfo
38062         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
38063         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
38064         * modules/regex (Depends-on): Add nl_langinfo.
38065
38066 2010-01-04  Eric Blake  <ebb9@byu.net>
38067
38068         fdopendir: fix configure test
38069         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
38070
38071 2010-01-01  Bruno Haible  <bruno@clisp.org>
38072
38073         wchar: Remove unused configure check.
38074         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
38075
38076 2010-01-01  Eric Blake  <ebb9@byu.net>
38077
38078         headers: make check of system header explicit
38079         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
38080         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
38081         ourselves.
38082         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38083         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38084         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38085         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
38086         internals.
38087         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
38088         missing.
38089         Suggested by Bruno Haible.
38090
38091 2010-01-01  Jim Meyering  <meyering@redhat.com>
38092
38093         ChangeLog: tweak to eliminate unnecessary copyright line
38094         * ChangeLog: Remove a copyright line that was mistakenly updated
38095         by today's update-copyright run.  Reported by Eric Blake.
38096
38097         test-update-copyright: don't let envvar setting cause test failure
38098         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38099
38100 2010-01-01  Bruno Haible  <bruno@clisp.org>
38101
38102         localename: Avoid gcc warning.
38103         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
38104         function if it is not used.
38105
38106 2010-01-01  Jim Meyering  <meyering@redhat.com>
38107
38108         update nearly all FSF copyright year lists to include 2010
38109         Use the same procedure as for 2009, outlined in
38110         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
38111
38112         version-etc: set COPYRIGHT_YEAR to 2010
38113         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
38114
38115 2009-12-31  Eric Blake  <ebb9@byu.net>
38116
38117         doc: correct availability of cygwin 1.5.x getopt
38118         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
38119         variables.
38120         * doc/posix-functions/opterr.texi (opterr): Likewise.
38121         * doc/posix-functions/optind.texi (optind): Likewise.
38122         * doc/posix-functions/optopt.texi (optopt): Likewise.
38123         * doc/posix-functions/tzname.texi (tzname): Likewise.
38124
38125         openat: update maintainer
38126         * modules/openat (Maintainer): Add myself.
38127
38128         utimens: avoid shadowing warning
38129         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
38130         buffers into one, to avoid shadowing, as well as avoiding a
38131         redundant stat.
38132         Reported by Jim Meyering.
38133
38134         test-dup2: avoid compiler warning
38135         * tests/test-dup2.c (is_inheritable): Only define if used.
38136
38137 2010-01-01  Bruno Haible  <bruno@clisp.org>
38138
38139         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
38140         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
38141         defined, use wctomb instead of wcrtomb.
38142
38143 2010-01-01  Bruno Haible  <bruno@clisp.org>
38144
38145         iconv: Reject native Solaris iconv.
38146         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
38147         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
38148
38149 2009-12-31  Bruno Haible  <bruno@clisp.org>
38150
38151         * tests/test-signal.c (main): Remove test of 'SIG'.
38152
38153 2009-12-31  Bruno Haible  <bruno@clisp.org>
38154
38155         spawn: Fix incomplete fix.
38156         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38157         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38158         warnings for GNULIB_POSIXCHECK again.
38159         Reported by Eric Blake.
38160
38161 2009-12-31  Bruno Haible  <bruno@clisp.org>
38162
38163         Avoid namespace pollution on glibc systems.
38164         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
38165         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
38166         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
38167         glibc systems.
38168
38169 2009-12-31  Bruno Haible  <bruno@clisp.org>
38170
38171         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
38172         (gl_REPLACE_WCHAR_H): Turn into a no-op.
38173         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
38174         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
38175         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
38176         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
38177         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
38178
38179 2009-12-31  Bruno Haible  <bruno@clisp.org>
38180
38181         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
38182         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
38183         afterwards.
38184
38185 2009-12-31  Bruno Haible  <bruno@clisp.org>
38186
38187         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
38188         SYS_UTSNAME_H.
38189
38190 2009-12-31  Bruno Haible  <bruno@clisp.org>
38191
38192         spawn: Fix misapplied patch.
38193         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38194         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38195         warnings for GNULIB_POSIXCHECK.
38196
38197 2009-12-31  Bruno Haible  <bruno@clisp.org>
38198
38199         times: Update after sys_times changed.
38200         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
38201         * modules/times (Files): Add it.
38202         (configure.ac): Invoke gl_FUNC_TIMES.
38203
38204 2009-12-31  Bruno Haible  <bruno@clisp.org>
38205
38206         Use AC_C_INLINE where necessary.
38207         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
38208         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38209         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
38210         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38211         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38212         * m4/mbiter.m4 (gl_MBITER): Likewise.
38213         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38214         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38215         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
38216         * modules/u64 (configure.ac): Likewise.
38217
38218 2009-12-31  Bruno Haible  <bruno@clisp.org>
38219
38220         Use AC_C_INLINE instead of module 'inline' where possible.
38221         * modules/inline (Description): Clarify purpose.
38222         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
38223         * modules/count-one-bits (Depends-on): Remove inline.
38224         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
38225         * modules/openat (Depends-on): Remove inline.
38226         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
38227         instead of depending on module 'inline'.
38228         * modules/filevercmp (Depends-on, configure.ac): Likewise.
38229         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
38230         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
38231         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
38232         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
38233         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
38234         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
38235         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
38236         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
38237         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
38238         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
38239         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
38240         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
38241         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
38242         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
38243         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
38244         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
38245         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
38246         Likewise.
38247         * modules/unictype/property-ascii-hex-digit (Depends-on,
38248         configure.ac): Likewise.
38249         * modules/unictype/property-bidi-arabic-digit (Depends-on,
38250         configure.ac): Likewise.
38251         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
38252         configure.ac): Likewise.
38253         * modules/unictype/property-bidi-block-separator (Depends-on,
38254         configure.ac): Likewise.
38255         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
38256         configure.ac): Likewise.
38257         * modules/unictype/property-bidi-common-separator (Depends-on,
38258         configure.ac): Likewise.
38259         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
38260         Likewise.
38261         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
38262         configure.ac): Likewise.
38263         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
38264         configure.ac): Likewise.
38265         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
38266         configure.ac): Likewise.
38267         * modules/unictype/property-bidi-european-digit (Depends-on,
38268         configure.ac): Likewise.
38269         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
38270         configure.ac): Likewise.
38271         * modules/unictype/property-bidi-left-to-right (Depends-on,
38272         configure.ac): Likewise.
38273         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
38274         configure.ac): Likewise.
38275         * modules/unictype/property-bidi-other-neutral (Depends-on,
38276         configure.ac): Likewise.
38277         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
38278         Likewise.
38279         * modules/unictype/property-bidi-segment-separator (Depends-on,
38280         configure.ac): Likewise.
38281         * modules/unictype/property-bidi-whitespace (Depends-on,
38282         configure.ac): Likewise.
38283         * modules/unictype/property-combining (Depends-on, configure.ac):
38284         Likewise.
38285         * modules/unictype/property-composite (Depends-on, configure.ac):
38286         Likewise.
38287         * modules/unictype/property-currency-symbol (Depends-on,
38288         configure.ac): Likewise.
38289         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
38290         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
38291         Likewise.
38292         * modules/unictype/property-default-ignorable-code-point (Depends-on,
38293         configure.ac): Likewise.
38294         * modules/unictype/property-deprecated (Depends-on, configure.ac):
38295         Likewise.
38296         * modules/unictype/property-diacritic (Depends-on, configure.ac):
38297         Likewise.
38298         * modules/unictype/property-extender (Depends-on, configure.ac):
38299         Likewise.
38300         * modules/unictype/property-format-control (Depends-on, configure.ac):
38301         Likewise.
38302         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
38303         Likewise.
38304         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
38305         Likewise.
38306         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
38307         Likewise.
38308         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
38309         Likewise.
38310         * modules/unictype/property-hyphen (Depends-on, configure.ac):
38311         Likewise.
38312         * modules/unictype/property-id-continue (Depends-on, configure.ac):
38313         Likewise.
38314         * modules/unictype/property-id-start (Depends-on, configure.ac):
38315         Likewise.
38316         * modules/unictype/property-ideographic (Depends-on, configure.ac):
38317         Likewise.
38318         * modules/unictype/property-ids-binary-operator (Depends-on,
38319         configure.ac): Likewise.
38320         * modules/unictype/property-ids-trinary-operator (Depends-on,
38321         configure.ac): Likewise.
38322         * modules/unictype/property-ignorable-control (Depends-on,
38323         configure.ac): Likewise.
38324         * modules/unictype/property-iso-control (Depends-on, configure.ac):
38325         Likewise.
38326         * modules/unictype/property-join-control (Depends-on, configure.ac):
38327         Likewise.
38328         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
38329         Likewise.
38330         * modules/unictype/property-line-separator (Depends-on, configure.ac):
38331         Likewise.
38332         * modules/unictype/property-logical-order-exception (Depends-on,
38333         configure.ac): Likewise.
38334         * modules/unictype/property-lowercase (Depends-on, configure.ac):
38335         Likewise.
38336         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
38337         * modules/unictype/property-non-break (Depends-on, configure.ac):
38338         Likewise.
38339         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
38340         Likewise.
38341         * modules/unictype/property-numeric (Depends-on, configure.ac):
38342         Likewise.
38343         * modules/unictype/property-other-alphabetic (Depends-on,
38344         configure.ac): Likewise.
38345         * modules/unictype/property-other-default-ignorable-code-point
38346         (Depends-on, configure.ac): Likewise.
38347         * modules/unictype/property-other-grapheme-extend (Depends-on,
38348         configure.ac): Likewise.
38349         * modules/unictype/property-other-id-continue (Depends-on,
38350         configure.ac): Likewise.
38351         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
38352         Likewise.
38353         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
38354         Likewise.
38355         * modules/unictype/property-other-math (Depends-on, configure.ac):
38356         Likewise.
38357         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
38358         Likewise.
38359         * modules/unictype/property-paired-punctuation (Depends-on,
38360         configure.ac): Likewise.
38361         * modules/unictype/property-paragraph-separator (Depends-on,
38362         configure.ac): Likewise.
38363         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
38364         Likewise.
38365         * modules/unictype/property-pattern-white-space (Depends-on,
38366         configure.ac): Likewise.
38367         * modules/unictype/property-private-use (Depends-on, configure.ac):
38368         Likewise.
38369         * modules/unictype/property-punctuation (Depends-on, configure.ac):
38370         Likewise.
38371         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
38372         Likewise.
38373         * modules/unictype/property-radical (Depends-on, configure.ac):
38374         Likewise.
38375         * modules/unictype/property-sentence-terminal (Depends-on,
38376         configure.ac): Likewise.
38377         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
38378         Likewise.
38379         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
38380         * modules/unictype/property-terminal-punctuation (Depends-on,
38381         configure.ac): Likewise.
38382         * modules/unictype/property-titlecase (Depends-on, configure.ac):
38383         Likewise.
38384         * modules/unictype/property-unassigned-code-value (Depends-on,
38385         configure.ac): Likewise.
38386         * modules/unictype/property-unified-ideograph (Depends-on,
38387         configure.ac): Likewise.
38388         * modules/unictype/property-uppercase (Depends-on, configure.ac):
38389         Likewise.
38390         * modules/unictype/property-variation-selector (Depends-on,
38391         configure.ac): Likewise.
38392         * modules/unictype/property-white-space (Depends-on, configure.ac):
38393         Likewise.
38394         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
38395         Likewise.
38396         * modules/unictype/property-xid-start (Depends-on, configure.ac):
38397         Likewise.
38398         * modules/unictype/property-zero-width (Depends-on, configure.ac):
38399         Likewise.
38400         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
38401         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
38402         Likewise.
38403
38404 2009-12-31  Bruno Haible  <bruno@clisp.org>
38405
38406         Remove unnecessary AC_C_INLINE invocation.
38407         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
38408         since 2009-08-21.
38409
38410 2009-12-31  Jim Meyering  <meyering@redhat.com>
38411
38412         maint.mk: don't require explicit gpg_key_ID in cfg.mk
38413         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
38414         With this change, we can all remove the gpg_key_ID = ... definition
38415         from our respective cfg.mk files.
38416
38417         maint.mk: create announcement template in ~/, not in /tmp
38418         * top/maint.mk (emit_upload_commands): Adjust.
38419         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
38420         Remove temporary file, .ci-msg.
38421
38422 2009-12-31  Eric Blake  <ebb9@byu.net>
38423
38424         link-warning: always build headers with link warnings
38425         * modules/arpa_inet (Makefile.am): Always build replacement
38426         header.
38427         * modules/ctype (Makefile.am): Likewise.
38428         * modules/dirent (Makefile.am): Likewise.
38429         * modules/inttypes (Makefile.am): Likewise.
38430         * modules/langinfo (Makefile.am): Likewise.
38431         * modules/locale (Makefile.am): Likewise.
38432         * modules/spawn (Makefile.am): Likewise.
38433         * modules/sys_file (Makefile.am): Likewise.
38434         * modules/sys_ioctl (Makefile.am): Likewise.
38435         * modules/sys_select (Makefile.am): Likewise.
38436         * modules/sys_socket (Makefile.am): Likewise.
38437         * modules/sys_times (Makefile.am): Likewise.
38438         * modules/sys_utsname (Makefile.am): Likewise.
38439         * modules/sys_wait (Makefile.am): Likewise.
38440         * modules/wchar (Makefile.am): Likewise.
38441         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
38442         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
38443         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
38444         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
38445         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
38446         Likewise.
38447         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38448         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38449         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
38450         Likewise.
38451         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
38452         Likewise.
38453         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
38454         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
38455         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
38456         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38457         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38458         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38459         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38460         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
38461         (gl_WCHAR_H_DEFAULTS): Likewise.
38462
38463 2009-12-31  Eric Blake  <ebb9@byu.net>
38464
38465         signal, spawn: use link warnings
38466         * lib/signal.in.h (sigset_t): Make unconditional.
38467         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
38468         (sigpending, sigprocmask, sigaction): Add link warnings.
38469         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
38470         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
38471         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
38472         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
38473         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
38474         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
38475         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
38476         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
38477         (posix_spawn_file_actions_destroy)
38478         (posix_spawn_file_actions_addopen)
38479         (posix_spawn_file_actions_addclose)
38480         (posix_spawn_file_actions_adddup2): Likewise.
38481         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
38482         * tests/test-signal.c (main): Enhance test.
38483
38484         spawn: improve wrapper support
38485         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
38486         (gl_SPAWN_H_DEFAULTS): New defaults.
38487         * modules/spawn (Makefile.am): Substitute them.
38488         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
38489         Only declare if missing or broken.
38490
38491         sys_times, sys_utsname: use include_next
38492         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
38493         header.
38494         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
38495         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38496         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38497         * modules/sys_times (Depends-on): Add include_next.
38498         (Makefile.am): Substitute additional values.
38499         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38500         * lib/sys_times.in.h (includes): Include native header, if
38501         available.
38502         * lib/sys_utsname.in.h (includes): Likewise.
38503         * tests/test-sys_times.c (main): Enhance test.
38504
38505         fdutimensat: revert prior patch
38506         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
38507         utimens.h.
38508         Reported by Bruno Haible.
38509
38510 2009-12-30  Eric Blake  <ebb9@byu.net>
38511
38512         sys_wait: drop link-warning dependency
38513         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
38514         link-warning efforts.
38515         * lib/sys_wait.in.h: Likewise.
38516
38517         fdutimensat: remove bogus dependency
38518         * modules/fdutimensat (Depends-on): Drop inline.
38519
38520         unistd: fix typo
38521         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
38522
38523 2009-12-30  Bruno Haible  <bruno@clisp.org>
38524
38525         Fix compilation error with Solaris cc.
38526         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
38527         * lib/unicase/u16-is-invariant.c: Likewise.
38528         * lib/unicase/u32-is-invariant.c: Likewise.
38529         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38530
38531 2009-12-30  Bruno Haible  <bruno@clisp.org>
38532
38533         Fix test crash.
38534         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
38535         locales.
38536         Reported by Simon Josefsson <simon@josefsson.org>.
38537
38538 2009-12-30  Bruno Haible  <bruno@clisp.org>
38539
38540         Fix compilation error on most platforms.
38541         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
38542         Reported by Simon Josefsson <simon@josefsson.org>
38543         and Nelson H. F. Beebe <beebe@math.utah.edu>.
38544
38545 2009-12-30  Eric Blake  <ebb9@byu.net>
38546
38547         futimens, utimensat: work around ntfs-3g bug
38548         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
38549         a ctime bug is present, and expand workaround to cover ntfs-3g.
38550         * lib/utimens.c (fdutimens, lutimens): Likewise.
38551         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
38552         (validate_timespec): Adjust return value.
38553         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
38554         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38555         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
38556
38557 2009-12-29  Eric Blake  <ebb9@byu.net>
38558
38559         link-warning: make usage consistent
38560         * modules/ctype (Depends-on): Add link-warning.
38561         (Makefile.am): Update rules accordingly.
38562         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38563         * modules/locale (Depends-on, Makefile.am): Likewise.
38564         * modules/sys_file (Makefile.am): Likewise.
38565         * modules/getopt-posix (Makefile.am): Delete unused link warning
38566         efforts.
38567         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
38568         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
38569         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
38570         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
38571
38572         stdio: remove unused variables
38573         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
38574         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
38575         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
38576
38577         tests: test more substitute headers
38578         * modules/ctype-tests: New file.
38579         * modules/dirent-tests: Likewise.
38580         * modules/spawn-tests: Likewise.
38581         * modules/sys_file-tests: Likewise.
38582         * modules/sys_ioctl-tests: Likewise.
38583         * modules/sys_wait-tests: Likewise.
38584         * tests/test-ctype.c: Likewise.
38585         * tests/test-dirent.c: Likewise.
38586         * tests/test-spawn.c: Likewise.
38587         * tests/test-sys_file.c: Likewise.
38588         * tests/test-sys_ioctl.c: Likewise.
38589         * tests/test-sys_wait.c: Likewise.
38590         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
38591         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
38592         whether or not flock is in use.
38593
38594         tests: remove License section from module
38595         * modules/arpa_inet-tests: Remove unneeded section.
38596         * modules/byteswap-tests: Likewise.
38597         * modules/ceilf-tests: Likewise.
38598         * modules/ceill-tests: Likewise.
38599         * modules/crypto/des-tests: Likewise.
38600         * modules/crypto/gc-arcfour-tests: Likewise.
38601         * modules/crypto/gc-arctwo-tests: Likewise.
38602         * modules/crypto/gc-des-tests: Likewise.
38603         * modules/crypto/gc-hmac-md5-tests: Likewise.
38604         * modules/crypto/gc-hmac-sha1-tests: Likewise.
38605         * modules/crypto/gc-md2-tests: Likewise.
38606         * modules/crypto/gc-md4-tests: Likewise.
38607         * modules/crypto/gc-md5-tests: Likewise.
38608         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
38609         * modules/crypto/gc-rijndael-tests: Likewise.
38610         * modules/crypto/gc-sha1-tests: Likewise.
38611         * modules/crypto/gc-tests: Likewise.
38612         * modules/crypto/md2-tests: Likewise.
38613         * modules/crypto/md4-tests: Likewise.
38614         * modules/fcntl-h-tests: Likewise.
38615         * modules/floorf-tests: Likewise.
38616         * modules/floorl-tests: Likewise.
38617         * modules/frexp-nolibm-tests: Likewise.
38618         * modules/frexp-tests: Likewise.
38619         * modules/frexpl-nolibm-tests: Likewise.
38620         * modules/frexpl-tests: Likewise.
38621         * modules/getaddrinfo-tests: Likewise.
38622         * modules/inttypes-tests: Likewise.
38623         * modules/isfinite-tests: Likewise.
38624         * modules/isinf-tests: Likewise.
38625         * modules/ldexpl-tests: Likewise.
38626         * modules/locale-tests: Likewise.
38627         * modules/math-tests: Likewise.
38628         * modules/netdb-tests: Likewise.
38629         * modules/netinet_in-tests: Likewise.
38630         * modules/printf-frexp-tests: Likewise.
38631         * modules/printf-frexpl-tests: Likewise.
38632         * modules/priv-set-tests: Likewise.
38633         * modules/random_r-tests: Likewise.
38634         * modules/round-tests: Likewise.
38635         * modules/roundf-tests: Likewise.
38636         * modules/roundl-tests: Likewise.
38637         * modules/search-tests: Likewise.
38638         * modules/select-tests: Likewise.
38639         * modules/signal-tests: Likewise.
38640         * modules/stdbool-tests: Likewise.
38641         * modules/stddef-tests: Likewise.
38642         * modules/stdint-tests: Likewise.
38643         * modules/stdio-tests: Likewise.
38644         * modules/stdlib-tests: Likewise.
38645         * modules/string-tests: Likewise.
38646         * modules/strings-tests: Likewise.
38647         * modules/sys_select-tests: Likewise.
38648         * modules/sys_socket-tests: Likewise.
38649         * modules/sys_stat-tests: Likewise.
38650         * modules/sys_time-tests: Likewise.
38651         * modules/sys_utsname-tests: Likewise.
38652         * modules/sysexits-tests: Likewise.
38653         * modules/time-tests: Likewise.
38654         * modules/trunc-tests: Likewise.
38655         * modules/truncf-tests: Likewise.
38656         * modules/truncl-tests: Likewise.
38657         * modules/tsearch-tests: Likewise.
38658         * modules/unistd-tests: Likewise.
38659         * modules/wchar-tests: Likewise.
38660         * modules/wctype-tests: Likewise.
38661
38662         tests: fix license on several tests
38663         * tests/test-des.c: Update to GPLv3+.
38664         * tests/test-flock.c: Likewise.
38665         * tests/test-fsync.c: Likewise.
38666         * tests/test-futimens.h: Likewise.
38667         * tests/test-gc-arcfour.c: Likewise.
38668         * tests/test-gc-arctwo.c: Likewise.
38669         * tests/test-gc-des.c: Likewise.
38670         * tests/test-gc-hmac-md5.c: Likewise.
38671         * tests/test-gc-hmac-sha1.c: Likewise.
38672         * tests/test-gc-md2.c: Likewise.
38673         * tests/test-gc-md4.c: Likewise.
38674         * tests/test-gc-md5.c: Likewise.
38675         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38676         * tests/test-gc-rijndael.c: Likewise.
38677         * tests/test-gc-sha1.c: Likewise.
38678         * tests/test-gc.c: Likewise.
38679         * tests/test-getcwd.c: Likewise.
38680         * tests/test-link.c: Likewise.
38681         * tests/test-link.h: Likewise.
38682         * tests/test-lutimens.h: Likewise.
38683         * tests/test-md2.c: Likewise.
38684         * tests/test-md4.c: Likewise.
38685         * tests/test-mkdir.h: Likewise.
38686         * tests/test-rename.c: Likewise.
38687         * tests/test-rename.h: Likewise.
38688         * tests/test-safe-alloc.c: Likewise.
38689         * tests/test-utimens-common.h: Likewise.
38690         * tests/test-utimens.h: Likewise.
38691
38692         maint: sync license texts
38693         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
38694         * doc/gpl-3.0.texi: Revert copyright year update.
38695         * doc/lgpl-3.0.texi: Likewise.
38696
38697 2009-12-29  Jim Meyering  <meyering@redhat.com>
38698
38699         update nearly all FSF copyright year lists to include 2009
38700         The files named by the following are exempted:
38701             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
38702               test -f "$dst" && { echo "$dst"; continue; }
38703               test -d "$dst" || continue
38704               echo "$dst"/$(basename "$src")
38705             done > exempt
38706             git ls-files tests/unictype >> exempt
38707         In the remaining files, convert to all-interval notation if
38708         - there is already at least one year interval like 2000-2003
38709         - the file is maintained by me
38710         - the file is in lib/uni*/, where that style already prevails
38711         Otherwise, use update-copyright's default.
38712
38713 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38714         and Eric Blake  <ebb9@byu.net>
38715
38716         tests: don't require debug system() to pass
38717         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
38718         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38719         * tests/test-unlink.h (test_unlink_func): Likewise.
38720         * tests/test-fstatat.c (main): ...into callers.
38721         * tests/test-lstat.c (main): Likewise.
38722         * tests/test-rmdir.c (main): Likewise.
38723         * tests/test-unlink.c (main): Likewise.
38724         * tests/test-unlinkat.c (main): Likewise.
38725         * tests/test-areadlink-with-size.c (main): Don't require a
38726         debug-only system call to pass, aiding cross-testing to mingw.
38727         * tests/test-areadlink.c (main): Likewise.
38728         * tests/test-areadlinkat-with-size.c (main): Likewise.
38729         * tests/test-areadlinkat.c (main): Likewise.
38730         * tests/test-canonicalize-lgpl.c (main): Likewise.
38731         * tests/test-canonicalize.c (main): Likewise.
38732         * tests/test-chown.c (main): Likewise.
38733         * tests/test-fchownat.c (main): Likewise.
38734         * tests/test-lchown.c (main): Likewise.
38735         * tests/test-fdutimensat.c (main): Likewise.
38736         * tests/test-futimens.c (main): Likewise.
38737         * tests/test-link.c (main): Likewise.
38738         * tests/test-linkat.c (main): Likewise.
38739         * tests/test-mkdir.c (main): Likewise.
38740         * tests/test-mkdirat.c (main): Likewise.
38741         * tests/test-mkfifo.c (main): Likewise.
38742         * tests/test-mkfifoat.c (main): Likewise.
38743         * tests/test-mknod.c (main): Likewise.
38744         * tests/test-readlink.c (main): Likewise.
38745         * tests/test-remove.c (main): Likewise.
38746         * tests/test-rename.c (main): Likewise.
38747         * tests/test-renameat.c (main): Likewise.
38748         * tests/test-symlink.c (main): Likewise.
38749         * tests/test-symlinkat.c (main): Likewise.
38750         * tests/test-utimens.c (main): Likewise.
38751         * tests/test-utimensat.c (main): Likewise.
38752
38753 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38754
38755         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
38756         on $(UNUSED_PARAMETER_H) to avoid build failure.
38757
38758 2009-12-28  Jim Meyering  <meyering@redhat.com>
38759
38760         update-copyright: you may specify a max. line length other than 72
38761         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38762
38763         maint: use consistent FSF copyright line syntax
38764         * lib/posixtm.c: Add missing comma in FSF copyright line.
38765         * lib/posixtm.h: Likewise.
38766         * lib/getugroups.c: Add missing ", Inc.".
38767
38768         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
38769         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
38770         FSF copyright line.  Remove trailing blanks.
38771
38772 2009-12-28  Eric Blake  <ebb9@byu.net>
38773
38774         test-dup2: reduce dependencies
38775         * modules/cloexec (Configure.ac): Set witness.
38776         * modules/dup2-tests (Depends-on): Drop cloexec.
38777         * tests/test-dup2.c (main): Skip portion of test if cloexec module
38778         not present.
38779         Suggested by Bruno Haible.
38780
38781 2009-12-26  Bruno Haible  <bruno@clisp.org>
38782
38783         Remove an unneeded dependency.
38784         * modules/fseterr (Depends-on): Remove dup2.
38785
38786 2009-12-26  Eric Blake  <ebb9@byu.net>
38787
38788         tests: use macros.h in more places
38789         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
38790         (ASSERT_STREAM): Provide default of stderr.
38791         * tests/test-dirent-safer.c: Include macros.h, using alternate
38792         stream for assertions.
38793         * tests/test-dup-safer.c: Likewise.
38794         * tests/test-freopen-safer.c: Likewise.
38795         * tests/test-getopt.c: Likewise.
38796         * tests/test-openat-safer.c: Likewise.
38797         * tests/test-pipe.c: Likewise.
38798         * tests/test-popen-safer.c: Likewise.
38799         * modules/dirent-safer-tests (Files): Include macros.h.
38800         * modules/unistd-safer-tests (Files): Likewise.
38801         * modules/freopen-safer-tests (Files): Likewise.
38802         * modules/getopt-posix-tests (Files): Likewise.
38803         * modules/openat-safer-tests (Files): Likewise.
38804         * modules/pipe-tests (Files): Likewise.
38805
38806 2009-12-26  Bruno Haible  <bruno@clisp.org>
38807
38808         javacomp: Portability fix.
38809         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
38810         that it also works on Solaris.
38811
38812 2009-12-26  Bruno Haible  <bruno@clisp.org>
38813
38814         localename: Fix storage allocation of gl_locale_name_thread's result.
38815         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
38816         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
38817         all platforms that have 'uselocale'.
38818         (gl_locale_name_thread_unsafe): New function, extracted from
38819         gl_locale_name_thread.
38820         (gl_locale_name_thread): Call struniq on all platforms that have
38821         'uselocale'.
38822         * tests/test-localename.c (test_locale_name_thread): Check that the
38823         resulting strings are permanently allocated.
38824         * modules/localename-tests (Depends-on): Add strdup.
38825
38826 2009-12-26  Bruno Haible  <bruno@clisp.org>
38827
38828         * tests/test-localename.c (categories): Fill in the strings.
38829
38830 2009-12-26  Jim Meyering  <meyering@redhat.com>
38831
38832         isdir: complete the removal of m4/isdir.m4
38833         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
38834
38835         isdir: clean up, since at least grep still uses it
38836         * lib/isdir.c: Include "isdir.h".
38837         (S_ISDIR): Remove now-unneeded definition.
38838         * modules/isdir (Files): Add lib/isdir.h.
38839         * lib/isdir.h: New file, with declaration.
38840         * m4/isdir.m4: Remove file -- unneeded.
38841
38842 2009-12-25  Bruno Haible  <bruno@clisp.org>
38843
38844         selinux-h: Make generated .h files standalone.
38845         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
38846         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
38847         * lib/se-selinux.in.h: Likewise.
38848         * modules/selinux-h (Depends-on): Add unused-parameter.
38849         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
38850         selinux/selinux.h and selinux/context.h.
38851         Suggested by Eric Blake.
38852
38853 2009-12-25  Bruno Haible  <bruno@clisp.org>
38854
38855         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
38856         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
38857         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
38858         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
38859         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
38860
38861 2009-12-24  Bruno Haible  <bruno@clisp.org>
38862
38863         openat: Fix warning.
38864         * lib/openat-proc.c: Include <unistd.h>.
38865
38866 2009-12-24  Bruno Haible  <bruno@clisp.org>
38867
38868         New module 'unused-parameter'.
38869         * build-aux/unused-parameter.h: New file, extracted from earlier
38870         gnulib-common.m4.
38871         * modules/unused-parameter: New file.
38872         * lib/unistr.h: Include unused-parameter.h.
38873         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
38874         _GL_UNUSED.
38875         * modules/unistr/base (Depends-on): Add unused-parameter.
38876
38877 2009-12-24  Bruno Haible  <bruno@clisp.org>
38878
38879         Add missing dependencies to 'extensions' module.
38880         * m4/extensions.m4: Add comment.
38881         * modules/accept4 (Depends-on): Add extensions.
38882         * modules/dup3 (Depends-on): Likewise.
38883         * modules/fcntl (Depends-on): Likewise.
38884         * modules/futimens (Depends-on): Likewise.
38885         * modules/mknod (Depends-on): Likewise.
38886         * modules/pipe2 (Depends-on): Likewise.
38887         * modules/stat-time (Depends-on): Likewise.
38888         * modules/strcasestr-simple (Depends-on): Likewise.
38889         * modules/strsignal (Depends-on): Likewise.
38890         * modules/utimensat (Depends-on): Likewise.
38891         * modules/localcharset (Depends-on): Likewise. Needed because of
38892         gl_FCNTL_O_FLAGS.
38893         * modules/wcrtomb (Depends-on): Likewise. Needed because of
38894         AC_TYPE_MBSTATE_T.
38895         * modules/wcsnrtombs (Depends-on): Likewise.
38896         * modules/wcsrtombs (Depends-on): Likewise.
38897
38898 2009-12-24  Bruno Haible  <bruno@clisp.org>
38899
38900         binary-io: Avoid gcc warning due to SET_BINARY.
38901         * lib/binary-io.h (SET_BINARY): Cast the result to void.
38902         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
38903
38904 2009-12-24  Bruno Haible  <bruno@clisp.org>
38905
38906         Avoid future namespace pollution on glibc systems.
38907         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
38908         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
38909         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
38910         glibc systems.
38911
38912 2009-12-24  Bruno Haible  <bruno@clisp.org>
38913
38914         Refactor common macros used in tests.
38915         * tests/macros.h: New file.
38916         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
38917         and/or <stdlib.h>, if appropriate.
38918         (ASSERT, SIZEOF): Remove macros.
38919         * tests/test-areadlink-with-size.c: Likewise.
38920         * tests/test-areadlinkat.c: Likewise.
38921         * tests/test-areadlinkat-with-size.c: Likewise.
38922         * tests/test-argmatch.c: Likewise.
38923         * tests/test-argv-iter.c: Likewise.
38924         * tests/test-array-mergesort.c: Likewise.
38925         * tests/test-array_list.c: Likewise.
38926         * tests/test-array_oset.c: Likewise.
38927         * tests/test-avltree_list.c: Likewise.
38928         * tests/test-avltree_oset.c: Likewise.
38929         * tests/test-avltreehash_list.c: Likewise.
38930         * tests/test-base64.c: Likewise.
38931         * tests/test-binary-io.c: Likewise.
38932         * tests/test-bitrotate.c: Likewise.
38933         * tests/test-btowc.c: Likewise.
38934         * tests/test-byteswap.c: Likewise.
38935         * tests/test-c-ctype.c: Likewise.
38936         * tests/test-c-stack.c: Likewise.
38937         * tests/test-c-strcasecmp.c: Likewise.
38938         * tests/test-c-strcasestr.c: Likewise.
38939         * tests/test-c-strncasecmp.c: Likewise.
38940         * tests/test-c-strstr.c: Likewise.
38941         * tests/test-canonicalize-lgpl.c: Likewise.
38942         * tests/test-canonicalize.c: Likewise.
38943         * tests/test-carray_list.c: Likewise.
38944         * tests/test-ceilf1.c: Likewise.
38945         * tests/test-ceilf2.c: Likewise.
38946         * tests/test-ceill.c: Likewise.
38947         * tests/test-chown.c: Likewise.
38948         * tests/test-cloexec.c: Likewise.
38949         * tests/test-copy-acl.c: Likewise.
38950         * tests/test-copy-file.c: Likewise.
38951         * tests/test-count-one-bits.c: Likewise.
38952         * tests/test-dprintf-posix.c: Likewise.
38953         * tests/test-dup2.c: Likewise.
38954         * tests/test-dup3.c: Likewise.
38955         * tests/test-duplocale.c: Likewise.
38956         * tests/test-fbufmode.c: Likewise.
38957         * tests/test-fchdir.c: Likewise.
38958         * tests/test-fchownat.c: Likewise.
38959         * tests/test-fcntl-safer.c: Likewise.
38960         * tests/test-fcntl.c: Likewise.
38961         * tests/test-fdopendir.c: Likewise.
38962         * tests/test-fdutimensat.c: Likewise.
38963         * tests/test-fflush2.c: Likewise.
38964         * tests/test-file-has-acl.c: Likewise.
38965         * tests/test-filevercmp.c: Likewise.
38966         * tests/test-flock.c: Likewise.
38967         * tests/test-floorf1.c: Likewise.
38968         * tests/test-floorf2.c: Likewise.
38969         * tests/test-floorl.c: Likewise.
38970         * tests/test-fnmatch.c: Likewise.
38971         * tests/test-fopen.h: Likewise.
38972         * tests/test-fpending.c: Likewise.
38973         * tests/test-fprintf-posix.c: Likewise.
38974         * tests/test-fpurge.c: Likewise.
38975         * tests/test-freadable.c: Likewise.
38976         * tests/test-freadahead.c: Likewise.
38977         * tests/test-freading.c: Likewise.
38978         * tests/test-freadptr.c: Likewise.
38979         * tests/test-freadptr2.c: Likewise.
38980         * tests/test-freadseek.c: Likewise.
38981         * tests/test-freopen.c: Likewise.
38982         * tests/test-frexp.c: Likewise.
38983         * tests/test-frexpl.c: Likewise.
38984         * tests/test-fseek.c: Likewise.
38985         * tests/test-fseeko.c: Likewise.
38986         * tests/test-fstatat.c: Likewise.
38987         * tests/test-fstrcmp.c: Likewise.
38988         * tests/test-fsync.c: Likewise.
38989         * tests/test-ftell.c: Likewise.
38990         * tests/test-ftello.c: Likewise.
38991         * tests/test-func.c: Likewise.
38992         * tests/test-futimens.c: Likewise.
38993         * tests/test-fwritable.c: Likewise.
38994         * tests/test-fwriting.c: Likewise.
38995         * tests/test-getcwd.c: Likewise.
38996         * tests/test-getdate.c: Likewise.
38997         * tests/test-getdelim.c: Likewise.
38998         * tests/test-getdtablesize.c: Likewise.
38999         * tests/test-getgroups.c: Likewise.
39000         * tests/test-getline.c: Likewise.
39001         * tests/test-getndelim2.c: Likewise.
39002         * tests/test-glob.c: Likewise.
39003         * tests/test-hash.c: Likewise.
39004         * tests/test-i-ring.c: Likewise.
39005         * tests/test-iconv-utf.c: Likewise.
39006         * tests/test-iconv.c: Likewise.
39007         * tests/test-idpriv-drop.c: Likewise.
39008         * tests/test-idpriv-droptemp.c: Likewise.
39009         * tests/test-inet_ntop.c: Likewise.
39010         * tests/test-inet_pton.c: Likewise.
39011         * tests/test-isblank.c: Likewise.
39012         * tests/test-isfinite.c: Likewise.
39013         * tests/test-isinf.c: Likewise.
39014         * tests/test-isnan.c: Likewise.
39015         * tests/test-isnand.h: Likewise.
39016         * tests/test-isnanf.h: Likewise.
39017         * tests/test-isnanl.h: Likewise.
39018         * tests/test-lchown.c: Likewise.
39019         * tests/test-ldexpl.c: Likewise.
39020         * tests/test-link.c: Likewise.
39021         * tests/test-linkat.c: Likewise.
39022         * tests/test-linked_list.c: Likewise.
39023         * tests/test-linkedhash_list.c: Likewise.
39024         * tests/test-localename.c: Likewise.
39025         * tests/test-lseek.c: Likewise.
39026         * tests/test-lstat.c: Likewise.
39027         * tests/test-mbmemcasecmp.c: Likewise.
39028         * tests/test-mbmemcasecoll.c: Likewise.
39029         * tests/test-mbrtowc.c: Likewise.
39030         * tests/test-mbscasecmp.c: Likewise.
39031         * tests/test-mbscasestr1.c: Likewise.
39032         * tests/test-mbscasestr2.c: Likewise.
39033         * tests/test-mbscasestr3.c: Likewise.
39034         * tests/test-mbscasestr4.c: Likewise.
39035         * tests/test-mbschr.c: Likewise.
39036         * tests/test-mbscspn.c: Likewise.
39037         * tests/test-mbsinit.c: Likewise.
39038         * tests/test-mbsncasecmp.c: Likewise.
39039         * tests/test-mbsnrtowcs.c: Likewise.
39040         * tests/test-mbspbrk.c: Likewise.
39041         * tests/test-mbspcasecmp.c: Likewise.
39042         * tests/test-mbsrchr.c: Likewise.
39043         * tests/test-mbsrtowcs.c: Likewise.
39044         * tests/test-mbsspn.c: Likewise.
39045         * tests/test-mbsstr1.c: Likewise.
39046         * tests/test-mbsstr2.c: Likewise.
39047         * tests/test-mbsstr3.c: Likewise.
39048         * tests/test-memchr.c: Likewise.
39049         * tests/test-memchr2.c: Likewise.
39050         * tests/test-memcmp.c: Likewise.
39051         * tests/test-memmem.c: Likewise.
39052         * tests/test-memrchr.c: Likewise.
39053         * tests/test-mkdir.c: Likewise.
39054         * tests/test-mkdirat.c: Likewise.
39055         * tests/test-mkfifo.c: Likewise.
39056         * tests/test-mkfifoat.c: Likewise.
39057         * tests/test-mknod.c: Likewise.
39058         * tests/test-nanosleep.c: Likewise.
39059         * tests/test-nl_langinfo.c: Likewise.
39060         * tests/test-obstack-printf.c: Likewise.
39061         * tests/test-open.c: Likewise.
39062         * tests/test-openat.c: Likewise.
39063         * tests/test-pipe-filter-gi1.c: Likewise.
39064         * tests/test-pipe-filter-gi2-main.c: Likewise.
39065         * tests/test-pipe-filter-ii1.c: Likewise.
39066         * tests/test-pipe-filter-ii2-main.c: Likewise.
39067         * tests/test-pipe2.c: Likewise.
39068         * tests/test-popen.h: Likewise.
39069         * tests/test-posixtm.c: Likewise.
39070         * tests/test-pread.c: Likewise.
39071         * tests/test-printf-frexp.c: Likewise.
39072         * tests/test-printf-frexpl.c: Likewise.
39073         * tests/test-printf-posix.c: Likewise.
39074         * tests/test-priv-set.c: Likewise.
39075         * tests/test-quotearg.c: Likewise.
39076         * tests/test-random_r.c: Likewise.
39077         * tests/test-rawmemchr.c: Likewise.
39078         * tests/test-rbtree_list.c: Likewise.
39079         * tests/test-rbtree_oset.c: Likewise.
39080         * tests/test-rbtreehash_list.c: Likewise.
39081         * tests/test-readlink.c: Likewise.
39082         * tests/test-remove.c: Likewise.
39083         * tests/test-rename.c: Likewise.
39084         * tests/test-renameat.c: Likewise.
39085         * tests/test-rmdir.c: Likewise.
39086         * tests/test-round1.c: Likewise.
39087         * tests/test-roundf1.c: Likewise.
39088         * tests/test-roundl.c: Likewise.
39089         * tests/test-safe-alloc.c: Likewise.
39090         * tests/test-sameacls.c: Likewise.
39091         * tests/test-set-mode-acl.c: Likewise.
39092         * tests/test-setenv.c: Likewise.
39093         * tests/test-sigaction.c: Likewise.
39094         * tests/test-signbit.c: Likewise.
39095         * tests/test-sleep.c: Likewise.
39096         * tests/test-snprintf-posix.c: Likewise.
39097         * tests/test-snprintf.c: Likewise.
39098         * tests/test-sprintf-posix.c: Likewise.
39099         * tests/test-stat-time.c: Likewise.
39100         * tests/test-stat.c: Likewise.
39101         * tests/test-strcasestr.c: Likewise.
39102         * tests/test-strchrnul.c: Likewise.
39103         * tests/test-strerror.c: Likewise.
39104         * tests/test-striconv.c: Likewise.
39105         * tests/test-striconveh.c: Likewise.
39106         * tests/test-striconveha.c: Likewise.
39107         * tests/test-strsignal.c: Likewise.
39108         * tests/test-strstr.c: Likewise.
39109         * tests/test-strtod.c: Likewise.
39110         * tests/test-strverscmp.c: Likewise.
39111         * tests/test-symlink.c: Likewise.
39112         * tests/test-symlinkat.c: Likewise.
39113         * tests/test-trunc1.c: Likewise.
39114         * tests/test-trunc2.c: Likewise.
39115         * tests/test-truncf1.c: Likewise.
39116         * tests/test-truncf2.c: Likewise.
39117         * tests/test-truncl.c: Likewise.
39118         * tests/test-uname.c: Likewise.
39119         * tests/test-unlink.c: Likewise.
39120         * tests/test-unlinkat.c: Likewise.
39121         * tests/test-unsetenv.c: Likewise.
39122         * tests/test-usleep.c: Likewise.
39123         * tests/test-utimens.c: Likewise.
39124         * tests/test-utimensat.c: Likewise.
39125         * tests/test-vasnprintf-posix.c: Likewise.
39126         * tests/test-vasnprintf-posix2.c: Likewise.
39127         * tests/test-vasnprintf.c: Likewise.
39128         * tests/test-vasprintf-posix.c: Likewise.
39129         * tests/test-vasprintf.c: Likewise.
39130         * tests/test-vdprintf-posix.c: Likewise.
39131         * tests/test-vfprintf-posix.c: Likewise.
39132         * tests/test-vprintf-posix.c: Likewise.
39133         * tests/test-vsnprintf-posix.c: Likewise.
39134         * tests/test-vsnprintf.c: Likewise.
39135         * tests/test-vsprintf-posix.c: Likewise.
39136         * tests/test-wcrtomb.c: Likewise.
39137         * tests/test-wcsnrtombs.c: Likewise.
39138         * tests/test-wcsrtombs.c: Likewise.
39139         * tests/test-wctype.c: Likewise.
39140         * tests/test-wcwidth.c: Likewise.
39141         * tests/test-xfprintf-posix.c: Likewise.
39142         * tests/test-xmemdup0.c: Likewise.
39143         * tests/test-xprintf-posix.c: Likewise.
39144         * tests/test-xvasprintf.c: Likewise.
39145         * tests/unicase/test-locale-language.c: Likewise.
39146         * tests/unicase/test-mapping-part1.h: Likewise.
39147         * tests/unicase/test-predicate-part1.h: Likewise.
39148         * tests/unicase/test-u8-casecmp.c: Likewise.
39149         * tests/unicase/test-u8-casecoll.c: Likewise.
39150         * tests/unicase/test-u8-casefold.c: Likewise.
39151         * tests/unicase/test-u8-is-cased.c: Likewise.
39152         * tests/unicase/test-u8-is-casefolded.c: Likewise.
39153         * tests/unicase/test-u8-is-lowercase.c: Likewise.
39154         * tests/unicase/test-u8-is-titlecase.c: Likewise.
39155         * tests/unicase/test-u8-is-uppercase.c: Likewise.
39156         * tests/unicase/test-u8-tolower.c: Likewise.
39157         * tests/unicase/test-u8-totitle.c: Likewise.
39158         * tests/unicase/test-u8-toupper.c: Likewise.
39159         * tests/unicase/test-u16-casecmp.c: Likewise.
39160         * tests/unicase/test-u16-casecoll.c: Likewise.
39161         * tests/unicase/test-u16-casefold.c: Likewise.
39162         * tests/unicase/test-u16-is-cased.c: Likewise.
39163         * tests/unicase/test-u16-is-casefolded.c: Likewise.
39164         * tests/unicase/test-u16-is-lowercase.c: Likewise.
39165         * tests/unicase/test-u16-is-titlecase.c: Likewise.
39166         * tests/unicase/test-u16-is-uppercase.c: Likewise.
39167         * tests/unicase/test-u16-tolower.c: Likewise.
39168         * tests/unicase/test-u16-totitle.c: Likewise.
39169         * tests/unicase/test-u16-toupper.c: Likewise.
39170         * tests/unicase/test-u32-casecmp.c: Likewise.
39171         * tests/unicase/test-u32-casecoll.c: Likewise.
39172         * tests/unicase/test-u32-casefold.c: Likewise.
39173         * tests/unicase/test-u32-is-cased.c: Likewise.
39174         * tests/unicase/test-u32-is-casefolded.c: Likewise.
39175         * tests/unicase/test-u32-is-lowercase.c: Likewise.
39176         * tests/unicase/test-u32-is-titlecase.c: Likewise.
39177         * tests/unicase/test-u32-is-uppercase.c: Likewise.
39178         * tests/unicase/test-u32-tolower.c: Likewise.
39179         * tests/unicase/test-u32-totitle.c: Likewise.
39180         * tests/unicase/test-u32-toupper.c: Likewise.
39181         * tests/unicase/test-ulc-casecmp.c: Likewise.
39182         * tests/unicase/test-ulc-casecoll.c: Likewise.
39183         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39184         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
39185         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39186         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39187         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
39188         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
39189         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39190         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39191         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39192         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
39193         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39194         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39195         * tests/unictype/test-bidi_byname.c: Likewise.
39196         * tests/unictype/test-bidi_name.c: Likewise.
39197         * tests/unictype/test-bidi_of.c: Likewise.
39198         * tests/unictype/test-bidi_test.c: Likewise.
39199         * tests/unictype/test-block_list.c: Likewise.
39200         * tests/unictype/test-block_of.c: Likewise.
39201         * tests/unictype/test-block_test.c: Likewise.
39202         * tests/unictype/test-categ_and.c: Likewise.
39203         * tests/unictype/test-categ_and_not.c: Likewise.
39204         * tests/unictype/test-categ_byname.c: Likewise.
39205         * tests/unictype/test-categ_name.c: Likewise.
39206         * tests/unictype/test-categ_none.c: Likewise.
39207         * tests/unictype/test-categ_of.c: Likewise.
39208         * tests/unictype/test-categ_or.c: Likewise.
39209         * tests/unictype/test-categ_test_withtable.c: Likewise.
39210         * tests/unictype/test-combining.c: Likewise.
39211         * tests/unictype/test-decdigit.c: Likewise.
39212         * tests/unictype/test-digit.c: Likewise.
39213         * tests/unictype/test-mirror.c: Likewise.
39214         * tests/unictype/test-numeric.c: Likewise.
39215         * tests/unictype/test-pr_byname.c: Likewise.
39216         * tests/unictype/test-pr_test.c: Likewise.
39217         * tests/unictype/test-predicate-part1.h: Likewise.
39218         * tests/unictype/test-scripts.c: Likewise.
39219         * tests/unictype/test-sy_c_ident.c: Likewise.
39220         * tests/unictype/test-sy_java_ident.c: Likewise.
39221         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
39222         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
39223         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
39224         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
39225         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
39226         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
39227         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
39228         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
39229         * tests/uninorm/test-canonical-decomposition.c: Likewise.
39230         * tests/uninorm/test-compat-decomposition.c: Likewise.
39231         * tests/uninorm/test-composition.c: Likewise.
39232         * tests/uninorm/test-decomposing-form.c: Likewise.
39233         * tests/uninorm/test-decomposition.c: Likewise.
39234         * tests/uninorm/test-u8-nfc.c: Likewise.
39235         * tests/uninorm/test-u8-nfd.c: Likewise.
39236         * tests/uninorm/test-u8-nfkc.c: Likewise.
39237         * tests/uninorm/test-u8-nfkd.c: Likewise.
39238         * tests/uninorm/test-u8-normcmp.c: Likewise.
39239         * tests/uninorm/test-u8-normcoll.c: Likewise.
39240         * tests/uninorm/test-u16-nfc.c: Likewise.
39241         * tests/uninorm/test-u16-nfd.c: Likewise.
39242         * tests/uninorm/test-u16-nfkc.c: Likewise.
39243         * tests/uninorm/test-u16-nfkd.c: Likewise.
39244         * tests/uninorm/test-u16-normcmp.c: Likewise.
39245         * tests/uninorm/test-u16-normcoll.c: Likewise.
39246         * tests/uninorm/test-u32-nfc.c: Likewise.
39247         * tests/uninorm/test-u32-nfd.c: Likewise.
39248         * tests/uninorm/test-u32-nfkc.c: Likewise.
39249         * tests/uninorm/test-u32-nfkd.c: Likewise.
39250         * tests/uninorm/test-u32-normalize-big.c: Likewise.
39251         * tests/uninorm/test-u32-normcmp.c: Likewise.
39252         * tests/uninorm/test-u32-normcoll.c: Likewise.
39253         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
39254         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
39255         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
39256         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
39257         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
39258         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
39259         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
39260         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
39261         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
39262         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
39263         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
39264         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
39265         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
39266         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
39267         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
39268         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
39269         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
39270         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
39271         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
39272         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
39273         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
39274         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
39275         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
39276         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
39277         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
39278         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
39279         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
39280         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
39281         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
39282         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
39283         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
39284         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
39285         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
39286         * tests/uniwidth/test-u8-strwidth.c: Likewise.
39287         * tests/uniwidth/test-u8-width.c: Likewise.
39288         * tests/uniwidth/test-u16-strwidth.c: Likewise.
39289         * tests/uniwidth/test-u16-width.c: Likewise.
39290         * tests/uniwidth/test-u32-strwidth.c: Likewise.
39291         * tests/uniwidth/test-u32-width.c: Likewise.
39292         * tests/uniwidth/test-uc_width.c: Likewise.
39293         * tests/uniwidth/test-uc_width2.c: Likewise.
39294         * modules/acl-tests (Files): Add tests/macros.h.
39295         * modules/areadlink-tests (Files): Likewise.
39296         * modules/areadlink-with-size-tests (Files): Likewise.
39297         * modules/areadlinkat-tests (Files): Likewise.
39298         * modules/areadlinkat-with-size-tests (Files): Likewise.
39299         * modules/argmatch-tests (Files): Likewise.
39300         * modules/argv-iter-tests (Files): Likewise.
39301         * modules/array-list-tests (Files): Likewise.
39302         * modules/array-mergesort-tests (Files): Likewise.
39303         * modules/array-oset-tests (Files): Likewise.
39304         * modules/avltree-list-tests (Files): Likewise.
39305         * modules/avltree-oset-tests (Files): Likewise.
39306         * modules/avltreehash-list-tests (Files): Likewise.
39307         * modules/base64-tests (Files): Likewise.
39308         * modules/binary-io-tests (Files): Likewise.
39309         * modules/bitrotate-tests (Files): Likewise.
39310         * modules/btowc-tests (Files): Likewise.
39311         * modules/byteswap-tests (Files): Likewise.
39312         * modules/c-ctype-tests (Files): Likewise.
39313         * modules/c-stack-tests (Files): Likewise.
39314         * modules/c-strcase-tests (Files): Likewise.
39315         * modules/c-strcasestr-tests (Files): Likewise.
39316         * modules/c-strstr-tests (Files): Likewise.
39317         * modules/canonicalize-lgpl-tests (Files): Likewise.
39318         * modules/canonicalize-tests (Files): Likewise.
39319         * modules/carray-list-tests (Files): Likewise.
39320         * modules/ceilf-tests (Files): Likewise.
39321         * modules/ceill-tests (Files): Likewise.
39322         * modules/chown-tests (Files): Likewise.
39323         * modules/cloexec-tests (Files): Likewise.
39324         * modules/copy-file-tests (Files): Likewise.
39325         * modules/count-one-bits-tests (Files): Likewise.
39326         * modules/dprintf-posix-tests (Files): Likewise.
39327         * modules/dup2-tests (Files): Likewise.
39328         * modules/dup3-tests (Files): Likewise.
39329         * modules/duplocale-tests (Files): Likewise.
39330         * modules/fbufmode-tests (Files): Likewise.
39331         * modules/fchdir-tests (Files): Likewise.
39332         * modules/fcntl-safer-tests (Files): Likewise.
39333         * modules/fcntl-tests (Files): Likewise.
39334         * modules/fdopendir-tests (Files): Likewise.
39335         * modules/fdutimensat-tests (Files): Likewise.
39336         * modules/fflush-tests (Files): Likewise.
39337         * modules/filevercmp-tests (Files): Likewise.
39338         * modules/flock-tests (Files): Likewise.
39339         * modules/floorf-tests (Files): Likewise.
39340         * modules/floorl-tests (Files): Likewise.
39341         * modules/fnmatch-tests (Files): Likewise.
39342         * modules/fopen-safer-tests (Files): Likewise.
39343         * modules/fopen-tests (Files): Likewise.
39344         * modules/fpending-tests (Files): Likewise.
39345         * modules/fprintf-posix-tests (Files): Likewise.
39346         * modules/fpurge-tests (Files): Likewise.
39347         * modules/freadable-tests (Files): Likewise.
39348         * modules/freadahead-tests (Files): Likewise.
39349         * modules/freading-tests (Files): Likewise.
39350         * modules/freadptr-tests (Files): Likewise.
39351         * modules/freadseek-tests (Files): Likewise.
39352         * modules/freopen-tests (Files): Likewise.
39353         * modules/frexp-nolibm-tests (Files): Likewise.
39354         * modules/frexp-tests (Files): Likewise.
39355         * modules/frexpl-nolibm-tests (Files): Likewise.
39356         * modules/frexpl-tests (Files): Likewise.
39357         * modules/fseek-tests (Files): Likewise.
39358         * modules/fseeko-tests (Files): Likewise.
39359         * modules/fstrcmp-tests (Files): Likewise.
39360         * modules/fsync-tests (Files): Likewise.
39361         * modules/ftell-tests (Files): Likewise.
39362         * modules/ftello-tests (Files): Likewise.
39363         * modules/func-tests (Files): Likewise.
39364         * modules/futimens-tests (Files): Likewise.
39365         * modules/fwritable-tests (Files): Likewise.
39366         * modules/fwriting-tests (Files): Likewise.
39367         * modules/getcwd-tests (Files): Likewise.
39368         * modules/getdate-tests (Files): Likewise.
39369         * modules/getdelim-tests (Files): Likewise.
39370         * modules/getdtablesize-tests (Files): Likewise.
39371         * modules/getgroups-tests (Files): Likewise.
39372         * modules/getline-tests (Files): Likewise.
39373         * modules/getndelim2-tests (Files): Likewise.
39374         * modules/glob-tests (Files): Likewise.
39375         * modules/hash-tests (Files): Likewise.
39376         * modules/i-ring-tests (Files): Likewise.
39377         * modules/iconv-tests (Files): Likewise.
39378         * modules/iconv_open-utf-tests (Files): Likewise.
39379         * modules/idpriv-drop-tests (Files): Likewise.
39380         * modules/idpriv-droptemp-tests (Files): Likewise.
39381         * modules/inet_ntop-tests (Files): Likewise.
39382         * modules/inet_pton-tests (Files): Likewise.
39383         * modules/isblank-tests (Files): Likewise.
39384         * modules/isfinite-tests (Files): Likewise.
39385         * modules/isinf-tests (Files): Likewise.
39386         * modules/isnan-tests (Files): Likewise.
39387         * modules/isnand-nolibm-tests (Files): Likewise.
39388         * modules/isnand-tests (Files): Likewise.
39389         * modules/isnanf-nolibm-tests (Files): Likewise.
39390         * modules/isnanf-tests (Files): Likewise.
39391         * modules/isnanl-nolibm-tests (Files): Likewise.
39392         * modules/isnanl-tests (Files): Likewise.
39393         * modules/lchown-tests (Files): Likewise.
39394         * modules/ldexpl-tests (Files): Likewise.
39395         * modules/link-tests (Files): Likewise.
39396         * modules/linkat-tests (Files): Likewise.
39397         * modules/linked-list-tests (Files): Likewise.
39398         * modules/linkedhash-list-tests (Files): Likewise.
39399         * modules/localename-tests (Files): Likewise.
39400         * modules/lseek-tests (Files): Likewise.
39401         * modules/lstat-tests (Files): Likewise.
39402         * modules/mbmemcasecmp-tests (Files): Likewise.
39403         * modules/mbmemcasecoll-tests (Files): Likewise.
39404         * modules/mbrtowc-tests (Files): Likewise.
39405         * modules/mbscasecmp-tests (Files): Likewise.
39406         * modules/mbscasestr-tests (Files): Likewise.
39407         * modules/mbschr-tests (Files): Likewise.
39408         * modules/mbscspn-tests (Files): Likewise.
39409         * modules/mbsinit-tests (Files): Likewise.
39410         * modules/mbsncasecmp-tests (Files): Likewise.
39411         * modules/mbsnrtowcs-tests (Files): Likewise.
39412         * modules/mbspbrk-tests (Files): Likewise.
39413         * modules/mbspcasecmp-tests (Files): Likewise.
39414         * modules/mbsrchr-tests (Files): Likewise.
39415         * modules/mbsrtowcs-tests (Files): Likewise.
39416         * modules/mbsspn-tests (Files): Likewise.
39417         * modules/mbsstr-tests (Files): Likewise.
39418         * modules/memchr-tests (Files): Likewise.
39419         * modules/memchr2-tests (Files): Likewise.
39420         * modules/memcmp-tests (Files): Likewise.
39421         * modules/memmem-tests (Files): Likewise.
39422         * modules/memrchr-tests (Files): Likewise.
39423         * modules/mkdir-tests (Files): Likewise.
39424         * modules/mkfifo-tests (Files): Likewise.
39425         * modules/mkfifoat-tests (Files): Likewise.
39426         * modules/mknod-tests (Files): Likewise.
39427         * modules/nanosleep-tests (Files): Likewise.
39428         * modules/nl_langinfo-tests (Files): Likewise.
39429         * modules/obstack-printf-tests (Files): Likewise.
39430         * modules/open-tests (Files): Likewise.
39431         * modules/openat-tests (Files): Likewise.
39432         * modules/pipe-filter-gi-tests (Files): Likewise.
39433         * modules/pipe-filter-ii-tests (Files): Likewise.
39434         * modules/pipe2-tests (Files): Likewise.
39435         * modules/popen-safer-tests (Files): Likewise.
39436         * modules/popen-tests (Files): Likewise.
39437         * modules/posixtm-tests (Files): Likewise.
39438         * modules/pread-tests (Files): Likewise.
39439         * modules/printf-frexp-tests (Files): Likewise.
39440         * modules/printf-frexpl-tests (Files): Likewise.
39441         * modules/printf-posix-tests (Files): Likewise.
39442         * modules/priv-set-tests (Files): Likewise.
39443         * modules/quotearg-tests (Files): Likewise.
39444         * modules/random_r-tests (Files): Likewise.
39445         * modules/rawmemchr-tests (Files): Likewise.
39446         * modules/rbtree-list-tests (Files): Likewise.
39447         * modules/rbtree-oset-tests (Files): Likewise.
39448         * modules/rbtreehash-list-tests (Files): Likewise.
39449         * modules/readlink-tests (Files): Likewise.
39450         * modules/remove-tests (Files): Likewise.
39451         * modules/rename-tests (Files): Likewise.
39452         * modules/renameat-tests (Files): Likewise.
39453         * modules/rmdir-tests (Files): Likewise.
39454         * modules/round-tests (Files): Likewise.
39455         * modules/roundf-tests (Files): Likewise.
39456         * modules/roundl-tests (Files): Likewise.
39457         * modules/safe-alloc-tests (Files): Likewise.
39458         * modules/setenv-tests (Files): Likewise.
39459         * modules/sigaction-tests (Files): Likewise.
39460         * modules/signbit-tests (Files): Likewise.
39461         * modules/sleep-tests (Files): Likewise.
39462         * modules/snprintf-posix-tests (Files): Likewise.
39463         * modules/snprintf-tests (Files): Likewise.
39464         * modules/sprintf-posix-tests (Files): Likewise.
39465         * modules/stat-tests (Files): Likewise.
39466         * modules/stat-time-tests (Files): Likewise.
39467         * modules/strcasestr-tests (Files): Likewise.
39468         * modules/strchrnul-tests (Files): Likewise.
39469         * modules/strerror-tests (Files): Likewise.
39470         * modules/striconv-tests (Files): Likewise.
39471         * modules/striconveh-tests (Files): Likewise.
39472         * modules/striconveha-tests (Files): Likewise.
39473         * modules/strsignal-tests (Files): Likewise.
39474         * modules/strstr-tests (Files): Likewise.
39475         * modules/strtod-tests (Files): Likewise.
39476         * modules/strverscmp-tests (Files): Likewise.
39477         * modules/symlink-tests (Files): Likewise.
39478         * modules/symlinkat-tests (Files): Likewise.
39479         * modules/trunc-tests (Files): Likewise.
39480         * modules/truncf-tests (Files): Likewise.
39481         * modules/truncl-tests (Files): Likewise.
39482         * modules/uname-tests (Files): Likewise.
39483         * modules/unicase/cased-tests (Files): Likewise.
39484         * modules/unicase/ignorable-tests (Files): Likewise.
39485         * modules/unicase/locale-language-tests (Files): Likewise.
39486         * modules/unicase/tolower-tests (Files): Likewise.
39487         * modules/unicase/totitle-tests (Files): Likewise.
39488         * modules/unicase/toupper-tests (Files): Likewise.
39489         * modules/unicase/u8-casecmp-tests (Files): Likewise.
39490         * modules/unicase/u8-casecoll-tests (Files): Likewise.
39491         * modules/unicase/u8-casefold-tests (Files): Likewise.
39492         * modules/unicase/u8-is-cased-tests (Files): Likewise.
39493         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
39494         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
39495         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
39496         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
39497         * modules/unicase/u8-tolower-tests (Files): Likewise.
39498         * modules/unicase/u8-totitle-tests (Files): Likewise.
39499         * modules/unicase/u8-toupper-tests (Files): Likewise.
39500         * modules/unicase/u16-casecmp-tests (Files): Likewise.
39501         * modules/unicase/u16-casecoll-tests (Files): Likewise.
39502         * modules/unicase/u16-casefold-tests (Files): Likewise.
39503         * modules/unicase/u16-is-cased-tests (Files): Likewise.
39504         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
39505         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
39506         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
39507         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
39508         * modules/unicase/u16-tolower-tests (Files): Likewise.
39509         * modules/unicase/u16-totitle-tests (Files): Likewise.
39510         * modules/unicase/u16-toupper-tests (Files): Likewise.
39511         * modules/unicase/u32-casecmp-tests (Files): Likewise.
39512         * modules/unicase/u32-casecoll-tests (Files): Likewise.
39513         * modules/unicase/u32-casefold-tests (Files): Likewise.
39514         * modules/unicase/u32-is-cased-tests (Files): Likewise.
39515         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
39516         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
39517         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
39518         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
39519         * modules/unicase/u32-tolower-tests (Files): Likewise.
39520         * modules/unicase/u32-totitle-tests (Files): Likewise.
39521         * modules/unicase/u32-toupper-tests (Files): Likewise.
39522         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
39523         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
39524         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
39525         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
39526         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
39527         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
39528         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
39529         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
39530         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
39531         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
39532         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
39533         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
39534         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
39535         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
39536         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
39537         * modules/unictype/bidicategory-name-tests (Files): Likewise.
39538         * modules/unictype/bidicategory-of-tests (Files): Likewise.
39539         * modules/unictype/bidicategory-test-tests (Files): Likewise.
39540         * modules/unictype/block-list-tests (Files): Likewise.
39541         * modules/unictype/block-of-tests (Files): Likewise.
39542         * modules/unictype/block-test-tests (Files): Likewise.
39543         * modules/unictype/category-C-tests (Files): Likewise.
39544         * modules/unictype/category-Cc-tests (Files): Likewise.
39545         * modules/unictype/category-Cf-tests (Files): Likewise.
39546         * modules/unictype/category-Cn-tests (Files): Likewise.
39547         * modules/unictype/category-Co-tests (Files): Likewise.
39548         * modules/unictype/category-Cs-tests (Files): Likewise.
39549         * modules/unictype/category-L-tests (Files): Likewise.
39550         * modules/unictype/category-Ll-tests (Files): Likewise.
39551         * modules/unictype/category-Lm-tests (Files): Likewise.
39552         * modules/unictype/category-Lo-tests (Files): Likewise.
39553         * modules/unictype/category-Lt-tests (Files): Likewise.
39554         * modules/unictype/category-Lu-tests (Files): Likewise.
39555         * modules/unictype/category-M-tests (Files): Likewise.
39556         * modules/unictype/category-Mc-tests (Files): Likewise.
39557         * modules/unictype/category-Me-tests (Files): Likewise.
39558         * modules/unictype/category-Mn-tests (Files): Likewise.
39559         * modules/unictype/category-N-tests (Files): Likewise.
39560         * modules/unictype/category-Nd-tests (Files): Likewise.
39561         * modules/unictype/category-Nl-tests (Files): Likewise.
39562         * modules/unictype/category-No-tests (Files): Likewise.
39563         * modules/unictype/category-P-tests (Files): Likewise.
39564         * modules/unictype/category-Pc-tests (Files): Likewise.
39565         * modules/unictype/category-Pd-tests (Files): Likewise.
39566         * modules/unictype/category-Pe-tests (Files): Likewise.
39567         * modules/unictype/category-Pf-tests (Files): Likewise.
39568         * modules/unictype/category-Pi-tests (Files): Likewise.
39569         * modules/unictype/category-Po-tests (Files): Likewise.
39570         * modules/unictype/category-Ps-tests (Files): Likewise.
39571         * modules/unictype/category-S-tests (Files): Likewise.
39572         * modules/unictype/category-Sc-tests (Files): Likewise.
39573         * modules/unictype/category-Sk-tests (Files): Likewise.
39574         * modules/unictype/category-Sm-tests (Files): Likewise.
39575         * modules/unictype/category-So-tests (Files): Likewise.
39576         * modules/unictype/category-Z-tests (Files): Likewise.
39577         * modules/unictype/category-Zl-tests (Files): Likewise.
39578         * modules/unictype/category-Zp-tests (Files): Likewise.
39579         * modules/unictype/category-Zs-tests (Files): Likewise.
39580         * modules/unictype/category-and-not-tests (Files): Likewise.
39581         * modules/unictype/category-and-tests (Files): Likewise.
39582         * modules/unictype/category-byname-tests (Files): Likewise.
39583         * modules/unictype/category-name-tests (Files): Likewise.
39584         * modules/unictype/category-none-tests (Files): Likewise.
39585         * modules/unictype/category-of-tests (Files): Likewise.
39586         * modules/unictype/category-or-tests (Files): Likewise.
39587         * modules/unictype/category-test-withtable-tests (Files): Likewise.
39588         * modules/unictype/combining-class-tests (Files): Likewise.
39589         * modules/unictype/ctype-alnum-tests (Files): Likewise.
39590         * modules/unictype/ctype-alpha-tests (Files): Likewise.
39591         * modules/unictype/ctype-blank-tests (Files): Likewise.
39592         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
39593         * modules/unictype/ctype-digit-tests (Files): Likewise.
39594         * modules/unictype/ctype-graph-tests (Files): Likewise.
39595         * modules/unictype/ctype-lower-tests (Files): Likewise.
39596         * modules/unictype/ctype-print-tests (Files): Likewise.
39597         * modules/unictype/ctype-punct-tests (Files): Likewise.
39598         * modules/unictype/ctype-space-tests (Files): Likewise.
39599         * modules/unictype/ctype-upper-tests (Files): Likewise.
39600         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
39601         * modules/unictype/decimal-digit-tests (Files): Likewise.
39602         * modules/unictype/digit-tests (Files): Likewise.
39603         * modules/unictype/mirror-tests (Files): Likewise.
39604         * modules/unictype/numeric-tests (Files): Likewise.
39605         * modules/unictype/property-alphabetic-tests (Files): Likewise.
39606         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
39607         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
39608         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
39609         Likewise.
39610         * modules/unictype/property-bidi-block-separator-tests (Files):
39611         Likewise.
39612         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
39613         Likewise.
39614         * modules/unictype/property-bidi-common-separator-tests (Files):
39615         Likewise.
39616         * modules/unictype/property-bidi-control-tests (Files): Likewise.
39617         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
39618         Likewise.
39619         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
39620         Likewise.
39621         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
39622         Likewise.
39623         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
39624         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
39625         Likewise.
39626         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
39627         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
39628         Likewise.
39629         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
39630         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
39631         * modules/unictype/property-bidi-segment-separator-tests (Files):
39632         Likewise.
39633         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
39634         * modules/unictype/property-byname-tests (Files): Likewise.
39635         * modules/unictype/property-combining-tests (Files): Likewise.
39636         * modules/unictype/property-composite-tests (Files): Likewise.
39637         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
39638         * modules/unictype/property-dash-tests (Files): Likewise.
39639         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
39640         * modules/unictype/property-default-ignorable-code-point-tests (Files):
39641         Likewise.
39642         * modules/unictype/property-deprecated-tests (Files): Likewise.
39643         * modules/unictype/property-diacritic-tests (Files): Likewise.
39644         * modules/unictype/property-extender-tests (Files): Likewise.
39645         * modules/unictype/property-format-control-tests (Files): Likewise.
39646         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
39647         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
39648         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
39649         * modules/unictype/property-hex-digit-tests (Files): Likewise.
39650         * modules/unictype/property-hyphen-tests (Files): Likewise.
39651         * modules/unictype/property-id-continue-tests (Files): Likewise.
39652         * modules/unictype/property-id-start-tests (Files): Likewise.
39653         * modules/unictype/property-ideographic-tests (Files): Likewise.
39654         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
39655         * modules/unictype/property-ids-trinary-operator-tests (Files):
39656         Likewise.
39657         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
39658         * modules/unictype/property-iso-control-tests (Files): Likewise.
39659         * modules/unictype/property-join-control-tests (Files): Likewise.
39660         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
39661         * modules/unictype/property-line-separator-tests (Files): Likewise.
39662         * modules/unictype/property-logical-order-exception-tests (Files):
39663         Likewise.
39664         * modules/unictype/property-lowercase-tests (Files): Likewise.
39665         * modules/unictype/property-math-tests (Files): Likewise.
39666         * modules/unictype/property-non-break-tests (Files): Likewise.
39667         * modules/unictype/property-not-a-character-tests (Files): Likewise.
39668         * modules/unictype/property-numeric-tests (Files): Likewise.
39669         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
39670         * modules/unictype/property-other-default-ignorable-code-point-tests
39671         (Files): Likewise.
39672         * modules/unictype/property-other-grapheme-extend-tests (Files):
39673         Likewise.
39674         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
39675         * modules/unictype/property-other-id-start-tests (Files): Likewise.
39676         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
39677         * modules/unictype/property-other-math-tests (Files): Likewise.
39678         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
39679         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
39680         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
39681         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
39682         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
39683         * modules/unictype/property-private-use-tests (Files): Likewise.
39684         * modules/unictype/property-punctuation-tests (Files): Likewise.
39685         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
39686         * modules/unictype/property-radical-tests (Files): Likewise.
39687         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
39688         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
39689         * modules/unictype/property-space-tests (Files): Likewise.
39690         * modules/unictype/property-terminal-punctuation-tests (Files):
39691         Likewise.
39692         * modules/unictype/property-test-tests (Files): Likewise.
39693         * modules/unictype/property-titlecase-tests (Files): Likewise.
39694         * modules/unictype/property-unassigned-code-value-tests (Files):
39695         Likewise.
39696         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
39697         * modules/unictype/property-uppercase-tests (Files): Likewise.
39698         * modules/unictype/property-variation-selector-tests (Files): Likewise.
39699         * modules/unictype/property-white-space-tests (Files): Likewise.
39700         * modules/unictype/property-xid-continue-tests (Files): Likewise.
39701         * modules/unictype/property-xid-start-tests (Files): Likewise.
39702         * modules/unictype/property-zero-width-tests (Files): Likewise.
39703         * modules/unictype/scripts-tests (Files): Likewise.
39704         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
39705         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
39706         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
39707         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
39708         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
39709         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
39710         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
39711         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
39712         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
39713         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
39714         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
39715         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
39716         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
39717         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
39718         * modules/uninorm/composition-tests (Files): Likewise.
39719         * modules/uninorm/decomposing-form-tests (Files): Likewise.
39720         * modules/uninorm/decomposition-tests (Files): Likewise.
39721         * modules/uninorm/filter-tests (Files): Likewise.
39722         * modules/uninorm/nfc-tests (Files): Likewise.
39723         * modules/uninorm/nfd-tests (Files): Likewise.
39724         * modules/uninorm/nfkc-tests (Files): Likewise.
39725         * modules/uninorm/nfkd-tests (Files): Likewise.
39726         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
39727         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
39728         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
39729         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
39730         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
39731         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
39732         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
39733         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39734         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
39735         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
39736         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
39737         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
39738         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39739         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
39740         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
39741         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
39742         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
39743         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39744         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
39745         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
39746         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
39747         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
39748         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39749         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
39750         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
39751         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
39752         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
39753         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
39754         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
39755         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
39756         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
39757         * modules/uniwidth/u8-width-tests (Files): Likewise.
39758         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
39759         * modules/uniwidth/u16-width-tests (Files): Likewise.
39760         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
39761         * modules/uniwidth/u32-width-tests (Files): Likewise.
39762         * modules/uniwidth/width-tests (Files): Likewise.
39763         * modules/unlink-tests (Files): Likewise.
39764         * modules/unsetenv-tests (Files): Likewise.
39765         * modules/usleep-tests (Files): Likewise.
39766         * modules/utimens-tests (Files): Likewise.
39767         * modules/utimensat-tests (Files): Likewise.
39768         * modules/vasnprintf-posix-tests (Files): Likewise.
39769         * modules/vasnprintf-tests (Files): Likewise.
39770         * modules/vasprintf-posix-tests (Files): Likewise.
39771         * modules/vasprintf-tests (Files): Likewise.
39772         * modules/vdprintf-posix-tests (Files): Likewise.
39773         * modules/vfprintf-posix-tests (Files): Likewise.
39774         * modules/vprintf-posix-tests (Files): Likewise.
39775         * modules/vsnprintf-posix-tests (Files): Likewise.
39776         * modules/vsnprintf-tests (Files): Likewise.
39777         * modules/vsprintf-posix-tests (Files): Likewise.
39778         * modules/wcrtomb-tests (Files): Likewise.
39779         * modules/wcsnrtombs-tests (Files): Likewise.
39780         * modules/wcsrtombs-tests (Files): Likewise.
39781         * modules/wctype-tests (Files): Likewise.
39782         * modules/wcwidth-tests (Files): Likewise.
39783         * modules/xmemdup0-tests (Files): Likewise.
39784         * modules/xprintf-posix-tests (Files): Likewise.
39785         * modules/xvasprintf-tests (Files): Likewise.
39786
39787 2009-12-24  Eric Blake  <ebb9@byu.net>
39788
39789         test-nanosleep: fix typo
39790         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
39791         patch.
39792         Reported by Bruno Haible.
39793
39794 2009-12-24  Bruno Haible  <bruno@clisp.org>
39795
39796         Reduce namespace pollution on glibc systems.
39797         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
39798         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
39799         systems.
39800         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
39801         <getopt.h> on glibc systems.
39802         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
39803         systems.
39804         * lib/fcntl.c: Include <unistd.h> here instead.
39805
39806 2009-12-24  Bruno Haible  <bruno@clisp.org>
39807
39808         * lib/stdlib.in.h (includes): Fix typo in today's commit.
39809
39810 2009-12-24  Eric Blake  <ebb9@byu.net>
39811
39812         tests: add signature checks
39813         * tests/signature.h (SIGNATURE_CHECK): New file.
39814         * modules/atexit-tests (Files): Use it.
39815         * modules/btowc-tests (Files): Likewise.
39816         * modules/canonicalize-lgpl-tests (Files): Likewise.
39817         * modules/ceilf-tests (Files): Likewise.
39818         * modules/ceill-tests (Files): Likewise.
39819         * modules/chown-tests (Files): Likewise.
39820         * modules/dprintf-posix-tests (Files): Likewise.
39821         * modules/dup2-tests (Files): Likewise.
39822         * modules/dup3-tests (Files): Likewise.
39823         * modules/duplocale-tests (Files): Likewise.
39824         * modules/fchdir-tests (Files): Likewise.
39825         * modules/fcntl-tests (Files): Likewise.
39826         * modules/fdopendir-tests (Files): Likewise.
39827         * modules/fflush-tests (Files): Likewise.
39828         * modules/flock-tests (Files): Likewise.
39829         * modules/floorf-tests (Files): Likewise.
39830         * modules/floorl-tests (Files): Likewise.
39831         * modules/fnmatch-tests (Files): Likewise.
39832         * modules/fopen-tests (Files): Likewise.
39833         * modules/fprintf-posix-tests (Files): Likewise.
39834         * modules/freopen-tests (Files): Likewise.
39835         * modules/frexp-nolibm-tests (Files): Likewise.
39836         * modules/frexp-tests (Files): Likewise.
39837         * modules/frexpl-nolibm-tests (Files): Likewise.
39838         * modules/frexpl-tests (Files): Likewise.
39839         * modules/fseek-tests (Files): Likewise.
39840         * modules/fseeko-tests (Files): Likewise.
39841         * modules/fsync-tests (Files): Likewise.
39842         * modules/ftell-tests (Files): Likewise.
39843         * modules/ftello-tests (Files): Likewise.
39844         * modules/futimens-tests (Files): Likewise.
39845         * modules/getaddrinfo-tests (Files): Likewise.
39846         * modules/getcwd-tests (Files): Likewise.
39847         * modules/getdelim-tests (Files): Likewise.
39848         * modules/getdtablesize-tests (Files): Likewise.
39849         * modules/getgroups-tests (Files): Likewise.
39850         * modules/gethostname-tests (Files): Likewise.
39851         * modules/getline-tests (Files): Likewise.
39852         * modules/getopt-posix-tests (Files): Likewise.
39853         * modules/gettimeofday-tests (Files): Likewise.
39854         * modules/glob-tests (Files): Likewise.
39855         * modules/iconv-tests (Files): Likewise.
39856         * modules/inet_ntop-tests (Files): Likewise.
39857         * modules/inet_pton-tests (Files): Likewise.
39858         * modules/isblank-tests (Files): Likewise.
39859         * modules/lchown-tests (Files): Likewise.
39860         * modules/ldexpl-tests (Files): Likewise.
39861         * modules/link-tests (Files): Likewise.
39862         * modules/linkat-tests (Files): Likewise.
39863         * modules/lseek-tests (Files): Likewise.
39864         * modules/lstat-tests (Files): Likewise.
39865         * modules/mbrtowc-tests (Files): Likewise.
39866         * modules/mbsinit-tests (Files): Likewise.
39867         * modules/mbsnrtowcs-tests (Files): Likewise.
39868         * modules/mbsrtowcs-tests (Files): Likewise.
39869         * modules/memchr-tests (Files): Likewise.
39870         * modules/memcmp-tests (Files): Likewise.
39871         * modules/memmem-tests (Files): Likewise.
39872         * modules/memrchr-tests (Files): Likewise.
39873         * modules/mkdir-tests (Files): Likewise.
39874         * modules/mkfifo-tests (Files): Likewise.
39875         * modules/mkfifoat-tests (Files): Likewise.
39876         * modules/mknod-tests (Files): Likewise.
39877         * modules/nanosleep-tests (Files): Likewise.
39878         * modules/nl_langinfo-tests (Files): Likewise.
39879         * modules/obstack-printf-tests (Files): Likewise.
39880         * modules/open-tests (Files): Likewise.
39881         * modules/openat-tests (Files): Likewise.
39882         * modules/perror-tests (Files): Likewise.
39883         * modules/pipe2-tests (Files): Likewise.
39884         * modules/poll-tests (Files): Likewise.
39885         * modules/popen-tests (Files): Likewise.
39886         * modules/posix_spawn-tests (Files): Likewise.
39887         * modules/posix_spawnp-tests (Files): Likewise.
39888         * modules/pread-tests (Files): Likewise.
39889         * modules/printf-posix-tests (Files): Likewise.
39890         * modules/pty-tests (Files): Likewise.
39891         * modules/random_r-tests (Files): Likewise.
39892         * modules/rawmemchr-tests (Files): Likewise.
39893         * modules/readlink-tests (Files): Likewise.
39894         * modules/remove-tests (Files): Likewise.
39895         * modules/rename-tests (Files): Likewise.
39896         * modules/renameat-tests (Files): Likewise.
39897         * modules/rmdir-tests (Files): Likewise.
39898         * modules/round-tests (Files): Likewise.
39899         * modules/roundf-tests (Files): Likewise.
39900         * modules/roundl-tests (Files): Likewise.
39901         * modules/select-tests (Files): Likewise.
39902         * modules/setenv-tests (Files): Likewise.
39903         * modules/sigaction-tests (Files): Likewise.
39904         * modules/sleep-tests (Files): Likewise.
39905         * modules/snprintf-posix-tests (Files): Likewise.
39906         * modules/snprintf-tests (Files): Likewise.
39907         * modules/sprintf-posix-tests (Files): Likewise.
39908         * modules/stat-tests (Files): Likewise.
39909         * modules/strcasestr-tests (Files): Likewise.
39910         * modules/strchrnul-tests (Files): Likewise.
39911         * modules/strerror-tests (Files): Likewise.
39912         * modules/strsignal-tests (Files): Likewise.
39913         * modules/strstr-tests (Files): Likewise.
39914         * modules/strtod-tests (Files): Likewise.
39915         * modules/strverscmp-tests (Files): Likewise.
39916         * modules/symlink-tests (Files): Likewise.
39917         * modules/symlinkat-tests (Files): Likewise.
39918         * modules/times-tests (Files): Likewise.
39919         * modules/trunc-tests (Files): Likewise.
39920         * modules/truncf-tests (Files): Likewise.
39921         * modules/truncl-tests (Files): Likewise.
39922         * modules/tsearch-tests (Files): Likewise.
39923         * modules/uname-tests (Files): Likewise.
39924         * modules/unlink-tests (Files): Likewise.
39925         * modules/unsetenv-tests (Files): Likewise.
39926         * modules/usleep-tests (Files): Likewise.
39927         * modules/utimensat-tests (Files): Likewise.
39928         * modules/vasprintf-tests (Files): Likewise.
39929         * modules/vdprintf-posix-tests (Files): Likewise.
39930         * modules/vfprintf-posix-tests (Files): Likewise.
39931         * modules/vprintf-posix-tests (Files): Likewise.
39932         * modules/vsnprintf-posix-tests (Files): Likewise.
39933         * modules/vsnprintf-tests (Files): Likewise.
39934         * modules/vsprintf-posix-tests (Files): Likewise.
39935         * modules/wcrtomb-tests (Files): Likewise.
39936         * modules/wcsnrtombs-tests (Files): Likewise.
39937         * modules/wcsrtombs-tests (Files): Likewise.
39938         * modules/wcwidth-tests (Files): Likewise.
39939         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
39940         * tests/test-isinf.c (isinf): Likewise.
39941         * tests/test-isnan.c (isnan): Likewise.
39942         * tests/test-signbit.c (signbit): Likewise.
39943         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
39944         declaration, either as macro or with correct signature.
39945         (select): Ensure function under test is declared with correct
39946         signature in correct header.
39947         * tests/test-atexit.c (atexit): Likewise.
39948         * tests/test-btowc.c (btowc): Likewise.
39949         * tests/test-canonicalize-lgpl.c (realpath)
39950         (canonicalize_file_name): Likewise.
39951         * tests/test-ceilf1.c (ceilf): Likewise.
39952         * tests/test-ceill.c (ceill): Likewise.
39953         * tests/test-chown.c (chown): Likewise.
39954         * tests/test-dprintf-posix.c (dprintf): Likewise.
39955         * tests/test-dup2.c (dup2): Likewise.
39956         * tests/test-dup3.c (dup3): Likewise.
39957         * tests/test-duplocale.c (duplocale): Likewise.
39958         * tests/test-fchdir.c (fchdir): Likewise.
39959         * tests/test-fchownat.c (fchownat): Likewise.
39960         * tests/test-fcntl.c (fcntl): Likewise.
39961         * tests/test-fdopendir.c (fdopendir): Likewise.
39962         * tests/test-fflush.c (fflush): Likewise.
39963         * tests/test-flock.c (flock): Likewise.
39964         * tests/test-floorf1.c (floorf): Likewise.
39965         * tests/test-floorl.c (floorl): Likewise.
39966         * tests/test-fnmatch.c (fnmatch): Likewise.
39967         * tests/test-fopen.c (fopen): Likewise.
39968         * tests/test-fprintf-posix.c (fprintf): Likewise.
39969         * tests/test-freopen.c (freopen): Likewise.
39970         * tests/test-frexp.c (frexp): Likewise.
39971         * tests/test-frexpl.c (frexpl): Likewise.
39972         * tests/test-fseek.c (fseek): Likewise.
39973         * tests/test-fseeko.c (fseeko): Likewise.
39974         * tests/test-fstatat.c (fstatat): Likewise.
39975         * tests/test-fsync.c (fsync): Likewise.
39976         * tests/test-ftell.c (ftell): Likewise.
39977         * tests/test-ftello.c (ftello): Likewise.
39978         * tests/test-futimens.c (futimens): Likewise.
39979         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
39980         (gai_strerror): Likewise.
39981         * tests/test-getcwd.c (getcwd): Likewise.
39982         * tests/test-getdelim.c (getdelim): Likewise.
39983         * tests/test-getdtablesize.c (getdtablesize): Likewise.
39984         * tests/test-getgroups.c (getgroups): Likewise.
39985         * tests/test-gethostname.c (gethostname): Likewise.
39986         * tests/test-getline.c (getline): Likewise.
39987         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
39988         Likewise.
39989         * tests/test-gettimeofday.c (gettimeofday): Likewise.
39990         * tests/test-glob.c (glob, globfree): Likewise.
39991         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
39992         * tests/test-inet_ntop.c (inet_ntop): Likewise.
39993         * tests/test-inet_pton.c (inet_pton): Likewise.
39994         * tests/test-isblank.c (isblank): Likewise.
39995         * tests/test-lchown.c (lchown): Likewise.
39996         * tests/test-ldexpl.c (ldexpl): Likewise.
39997         * tests/test-link.c (link): Likewise.
39998         * tests/test-linkat.c (linkat): Likewise.
39999         * tests/test-lseek.c (lseek): Likewise.
40000         * tests/test-lstat.c (lstat): Likewise.
40001         * tests/test-mbrtowc.c (mbrtowc): Likewise.
40002         * tests/test-mbsinit.c (mbsinit): Likewise.
40003         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
40004         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
40005         * tests/test-memchr.c (memchr): Likewise.
40006         * tests/test-memcmp.c (memcmp): Likewise.
40007         * tests/test-memmem.c (memmem): Likewise.
40008         * tests/test-memrchr.c (memrchr): Likewise.
40009         * tests/test-mkdir.c (mkdir): Likewise.
40010         * tests/test-mkdirat.c (mkdirat): Likewise.
40011         * tests/test-mkfifo.c (mkfifo): Likewise.
40012         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
40013         * tests/test-mknod.c (mknod): Likewise.
40014         * tests/test-nanosleep.c (nanosleep): Likewise.
40015         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
40016         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
40017         Likewise.
40018         * tests/test-open.c (open): Likewise.
40019         * tests/test-openat.c (openat): Likewise.
40020         * tests/test-perror.c (perror): Likewise.
40021         * tests/test-pipe2.c (pipe2): Likewise.
40022         * tests/test-poll.c (poll): Likewise.
40023         * tests/test-popen.c (popen, pclose): Likewise.
40024         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
40025         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
40026         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
40027         (posix_spawn_file_actions_destroy)
40028         (posix_spawn_file_actions_addclose)
40029         (posix_spawn_file_actions_addopen)
40030         (posix_spawn_file_actions_adddup2): Likewise.
40031         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
40032         * tests/test-pread.c (pread): Likewise.
40033         * tests/test-printf-posix.c (printf): Likewise.
40034         * tests/test-pty.c (openpty, forkpty): Likewise.
40035         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
40036         (random_r): Likewise.
40037         * tests/test-rawmemchr.c (rawmemchr): Likewise.
40038         * tests/test-readlink.c (readlink): Likewise.
40039         * tests/test-remove.c (remove): Likewise.
40040         * tests/test-rename.c (rename): Likewise.
40041         * tests/test-renameat.c (renameat): Likewise.
40042         * tests/test-rmdir.c (rmdir): Likewise.
40043         * tests/test-round1.c (round): Likewise.
40044         * tests/test-roundf1.c (roundf): Likewise.
40045         * tests/test-roundl.c (roundl): Likewise.
40046         * tests/test-setenv.c (setenv): Likewise.
40047         * tests/test-sigaction.c (sigaction): Likewise.
40048         * tests/test-sleep.c (sleep): Likewise.
40049         * tests/test-snprintf.c (snprintf): Likewise.
40050         * tests/test-sprintf-posix.c (sprintf): Likewise.
40051         * tests/test-stat.c (stat): Likewise.
40052         * tests/test-stpncpy.c (stpncpy): Likewise.
40053         * tests/test-strcasestr.c (strcasestr): Likewise.
40054         * tests/test-strchrnul.c (strchrnul): Likewise.
40055         * tests/test-strerror.c (strerror): Likewise.
40056         * tests/test-strsignal.c (strsignal): Likewise.
40057         * tests/test-strstr.c (strstr): Likewise.
40058         * tests/test-strtod.c (strtod): Likewise.
40059         * tests/test-strverscmp.c (strverscmp): Likewise.
40060         * tests/test-symlink.c (symlink): Likewise.
40061         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
40062         * tests/test-times.c (times): Likewise.
40063         * tests/test-trunc1.c (trunc): Likewise.
40064         * tests/test-truncf1.c (truncf): Likewise.
40065         * tests/test-truncl.c (truncl): Likewise.
40066         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
40067         Likewise.
40068         * tests/test-uname.c (uname): Likewise.
40069         * tests/test-unlink.c (unlink): Likewise.
40070         * tests/test-unlinkat.c (unlinkat): Likewise.
40071         * tests/test-unsetenv.c (unsetenv): Likewise.
40072         * tests/test-usleep.c (usleep): Likewise.
40073         * tests/test-utimensat.c (utimensat): Likewise.
40074         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
40075         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
40076         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
40077         * tests/test-vprintf-posix.c (vprintf): Likewise.
40078         * tests/test-vsnprintf.c (vsnprintf): Likewise.
40079         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
40080         * tests/test-wcrtomb.c (wcrtomb): Likewise.
40081         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
40082         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
40083         * tests/test-wcwidth.c (wcwidth): Likewise.
40084
40085         build: pull in conditional headers during GNULIB_POSIXCHECK
40086         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
40087         definitions from any conditionally-included headers.
40088         * lib/stdlib.in.h (includes): Likewise.
40089         * lib/unistd.in.h (includes): Likewise.
40090
40091 2009-12-24  Bruno Haible  <bruno@clisp.org>
40092
40093         * tests/test-argv-iter.c: Include header file being tested immediately
40094         after config.h.
40095         * tests/test-base64.c: Likewise.
40096         * tests/test-flock.c: Likewise.
40097         * tests/test-fsync.c: Likewise.
40098         * tests/test-getdate.c: Likewise.
40099         * tests/test-getndelim2.c: Likewise.
40100         * tests/test-isfinite.c: Likewise.
40101         * tests/test-isinf.c: Likewise.
40102         * tests/test-strerror.c: Likewise.
40103         * tests/test-strsignal.c: Likewise.
40104
40105 2009-12-23  Eric Blake  <ebb9@byu.net>
40106
40107         unistd: work around cygwin bug
40108         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
40109         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
40110         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40111
40112 2009-12-23  Bruno Haible  <bruno@clisp.org>
40113
40114         localename: More tests.
40115         * tests/test-localename.c (SIZEOF): New macro.
40116         (categories): New variable.
40117         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
40118         test_locale_name_default): Add test w.r.t. thread locale.
40119         (test_locale_name_thread): New function.
40120         (main): Invoke it.
40121
40122         localename: Make aware of thread locale.
40123         * lib/localename.h (gl_locale_name_thread): New declaration.
40124         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
40125         behaviour with respect to thread locale.
40126         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
40127         <langinfo.h>, glthread/lock.h.
40128         (SIZE_BITS): New macro.
40129         (string_hash): New function.
40130         (struct hash_node): New type.
40131         (HASH_TABLE_SIZE): New macro.
40132         (struniq_hash_table, struniq_lock): New variables.
40133         (struniq): New function.
40134         (gl_locale_name_thread): New function.
40135         (gl_locale_name): Invoke it.
40136         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
40137         * modules/localename (Depends-on): Add lock.
40138         Reported by Mike Gran <spk121@yahoo.com>.
40139
40140 2009-12-23  Eric Blake  <ebb9@byu.net>
40141
40142         va-args: new module
40143         * modules/va-args: New file.
40144         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
40145         * MODULES.html.sh (Core language properties): Mention it.
40146
40147         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
40148         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
40149         named alias for __attribute__((__unused__)).
40150         * lib/chown.c: Update client.
40151         * lib/fchmodat.c: Likewise.
40152         * lib/fts.c: Likewise.
40153         * lib/getdate.y: Likewise.
40154         * lib/getgroups.c: Likewise.
40155         * lib/getopt.c: Likewise.
40156         * lib/getugroups.c: Likewise.
40157         * lib/mkdir.c: Likewise.
40158         * lib/mkfifo.c: Likewise.
40159         * lib/mkfifoat.c: Likewise.
40160         * lib/mknod.c: Likewise.
40161         * lib/mknodat.c: Likewise.
40162         * lib/readlink.c: Likewise.
40163         * lib/se-context.in.h: Likewise.
40164         * lib/se-selinux.in.h: Likewise.
40165         * lib/sockets.c: Likewise.
40166         * lib/symlink.c: Likewise.
40167         * lib/symlinkat.c: Likewise.
40168         * lib/unicodeio.c: Likewise.
40169         * lib/unistr.h: Likewise.
40170         * tests/test-areadlink.c: Likewise.
40171         * tests/test-areadlinkat.c: Likewise.
40172         * tests/test-filenamecat.c: Likewise.
40173         * tests/test-fseeko.c: Likewise.
40174         * tests/test-ftello.c: Likewise.
40175         * tests/test-getdate.c: Likewise.
40176         * tests/test-getgroups.c: Likewise.
40177         * tests/test-gethostname.c: Likewise.
40178         * tests/test-quotearg.c: Likewise.
40179         * tests/test-version-etc.c: Likewise.
40180         * tests/test-xalloc-die.c: Likewise.
40181         * tests/test-xfprintf-posix.c: Likewise.
40182         * tests/test-xprintf-posix.c: Likewise.
40183         * tests/test-xvasprintf.c: Likewise.
40184
40185         tests: avoid compiler warnings
40186         * tests/test-fcntl.c (main): Delete unused parameters.
40187         * tests/test-freopen-safer.c (main): Likewise.
40188         * tests/test-xalloc-die.c (main): Mark unused parameters.
40189         * tests/test-fseeko.c (main): Likewise.
40190         * tests/test-ftello.c (main): Likewise.
40191         * tests/test-nanosleep.c (main): Avoid declaration warning.
40192         * tests/test-sleep.c (main): Likewise.
40193         * tests/test-unsetenv.c (main): Silence warning about string
40194         literal.
40195         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
40196
40197 2009-12-23  Bruno Haible  <bruno@clisp.org>
40198
40199         * tests/test-localename.c (test_locale_name): New function, extracted
40200         from main. Also test mixed situations.
40201         (test_locale_name_posix, test_locale_name_environ,
40202         test_locale_name_default): New functions.
40203         (main): Invoke them all.
40204         * modules/localename-tests (configure.ac): Test for newlocale.
40205
40206 2009-12-23  Bruno Haible  <bruno@clisp.org>
40207
40208         unistd: Ensure getcwd gets declared before being overridden.
40209         * lib/unistd.in.h: Conditionally include <io.h>.
40210
40211 2009-12-22  Bruno Haible  <bruno@clisp.org>
40212
40213         wchar: Diagnose broken combination of glibc and gcc versions and flags.
40214         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
40215         (gl_WCHAR_H): Invoke it.
40216         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
40217         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
40218         Reported by Karl Berry <karl@freefriends.org>.
40219
40220 2009-12-22  Eric Blake  <ebb9@byu.net>
40221
40222         math, unistd: avoid redundant includes
40223         * lib/math.in.h (isnan): No need to re-include <math.h>.
40224         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
40225
40226         getsubopt: work around cygwin bug
40227         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
40228         avoid conflicting with system getsubopt.
40229         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
40230         bug.
40231
40232         getopt: synchronize from glibc
40233         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
40234         parameter order.  Adjust all callers.
40235         (_getopt_internal_r, main): Adjust quoting in error messages.
40236         Drop considerations for outdated POSIX 1003.2 error message.
40237         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
40238         callers.
40239         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
40240
40241         test-getopt: test stderr behavior
40242         * modules/getopt-posix-tests (Depends-on): Add dup2.
40243         * tests/test-getopt.c (ASSERT): Avoid stderr.
40244         (main): Move stderr to a temporary file.
40245         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
40246         Instead, add parameter to inform caller if output occurred.
40247         (test_getopt): Adjust all existing tests to expect silence, and
40248         add new tests of leading ":".
40249         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40250         glibc shortcomings with leading "-:" or "+:" in optstring.
40251         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40252         Likewise.
40253         * doc/posix-functions/getopt.texi (getopt): Likewise.
40254
40255         test-getopt: enhance test
40256         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
40257         supports optind=0.
40258         * tests/test-getopt.c (OPTIND_MIN): Move...
40259         * tests/test-getopt.h (OPTIND_MIN): ...here.
40260         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
40261         Require that optind=0 works, since modern BSD supports it in
40262         addition to optreset, and since coreutils expects it.
40263         (test_getopt_long_only): New test.
40264         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40265         glibc shortcomings with 'W;', and enforcement of optind=0.
40266         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40267         Likewise.
40268
40269 2009-12-21  Bruno Haible  <bruno@clisp.org>
40270
40271         localename: Improvements for MacOS X and Cygwin.
40272         * lib/localename.h (gl_locale_name_environ): New declaration.
40273         * lib/localename.c (gl_locale_name_environ): New function, extracted from
40274         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
40275         (gl_locale_name_posix): Invoke it.
40276         (gl_locale_name_default): Add comments. Use Windows native API also on
40277         Cygwin.
40278
40279 2009-12-21  Bruno Haible  <bruno@clisp.org>
40280
40281         Update list of Win32 locale ids.
40282         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
40283         (LANG_SAMI): Renamed from LANG_SAAMI.
40284         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
40285         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
40286         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
40287         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
40288         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
40289         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
40290         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
40291         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
40292         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
40293         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
40294         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
40295         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
40296         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
40297         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
40298         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
40299         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
40300         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
40301         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
40302         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
40303         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
40304         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
40305         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
40306         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
40307         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
40308         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
40309         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
40310         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
40311         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
40312         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
40313         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
40314         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
40315         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
40316         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
40317         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
40318         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
40319         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
40320         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
40321         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
40322         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
40323         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
40324         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
40325         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
40326         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
40327         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
40328         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
40329         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
40330         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
40331         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
40332         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
40333         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
40334         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
40335         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
40336         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
40337         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
40338         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
40339         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
40340         Add more languages and countries for Sami, Sorbian. Add more countries
40341         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
40342         for Pashto. Change country for Syriac, Tswana.
40343
40344 2009-12-21  Eric Blake  <ebb9@byu.net>
40345
40346         test-utimens: avoid spurious failure
40347         * tests/test-chown.h (nap): Factor...
40348         * tests/nap.h: ...into new file.
40349         * tests/test-lchown.h (nap): Avoid duplication.
40350         * tests/test-utimens-common.h (nap): Use shared implementation,
40351         necessary on file systems with 1-second resolution.
40352         * modules/chown-tests (Files): Include new file.
40353         * modules/fdutimensat-tests (Files): Likewise.
40354         * modules/futimens-tests (Files): Likewise.
40355         * modules/lchown-tests (Files): Likewise.
40356         * modules/openat-tests (Files): Likewise.
40357         * modules/utimens-tests (Files): Likewise.
40358         * modules/utimensat-tests (Files): Likewise.
40359
40360 2009-12-19  Eric Blake  <ebb9@byu.net>
40361
40362         futimens, utimensat: work around Linux bug
40363         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
40364         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40365         * lib/utimensat.c (rpl_utimensat): Work around it.
40366         * lib/futimens.c (rpl_futimens): Adjust comment.
40367
40368         utimens: work around Linux ctime bug
40369         * lib/utimens.c (detect_ctime_bug): New helper function.
40370         (update_timespec): Differentiate between workaround needed for
40371         this bug vs. what is needed for systems that lack utimensat.
40372         (fdutimens, lutimens): Work around bug.
40373
40374         utimens: check for ctime update
40375         * tests/test-utimens-common.h (check_ctime): Define.
40376         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
40377         * tests/test-futimens.h (test_futimens): Likewise.
40378         * tests/test-lutimens.h (test_lutimens): Likewise.
40379         * doc/posix-functions/futimens.texi (futimens): Document the bug.
40380         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40381
40382 2009-12-19  Bruno Haible  <bruno@clisp.org>
40383
40384         dprintf-posix: Check against memory leak fixed on 2009-12-15.
40385         * tests/test-dprintf-posix2.sh: New file.
40386         * tests/test-dprintf-posix2.c: New file.
40387         * modules/dprintf-posix-tests (Files): Add them.
40388         (configure.ac): Check for getrlimit and setrlimit.
40389         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40390
40391 2009-12-19  Bruno Haible  <bruno@clisp.org>
40392
40393         fprintf-posix: Check against memory leak fixed on 2009-12-15.
40394         * tests/test-fprintf-posix3.sh: New file.
40395         * tests/test-fprintf-posix3.c: New file.
40396         * modules/fprintf-posix-tests (Files): Add them.
40397         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40398
40399 2009-12-19  Eric Blake  <ebb9@byu.net>
40400
40401         dirfd: fix prototype
40402         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
40403         * lib/dirfd.c (dirfd): Likewise.
40404
40405         canonicalize: reduce memory usage
40406         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
40407         allocation to size.
40408         Reported by Solar Designer <solar@openwall.com>.
40409
40410 2009-12-19  Bruno Haible  <bruno@clisp.org>
40411
40412         New module attribute 'Applicability'.
40413         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
40414         * gnulib-tool: New option --extract-applicability.
40415         (func_usage): Document it.
40416         (sed_extract_prog): Recognize it.
40417         (func_get_applicability): New function.
40418         (func_import): Generalize handling of 'link-warning' module.
40419         * modules/link-warning (Applicability): New section.
40420         * modules/arg-nonnull (Applicability): New section.
40421         Repoted by Simon Josefsson <simon@josefsson.org>.
40422
40423 2009-12-19  Bruno Haible  <bruno@clisp.org>
40424
40425         fflush: tweak
40426         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
40427         * lib/fseeko.c (rpl_fseeko): Likewise.
40428
40429 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
40430
40431         * lib/gl_list.h: Fix typo in comment.
40432
40433 2009-12-16  Eric Blake  <ebb9@byu.net>
40434
40435         fcntl: use to simplify other modules
40436         * modules/cloexec (Depends-on): Add fcntl.
40437         * modules/fchdir (Depends-on): Likewise.
40438         * modules/fd-safer-flag (Depends-on): Likewise.
40439         * modules/unistd-safer (Depends-on): Likewise.
40440         * modules/dup3 (configure.ac): Set module indicator.
40441         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
40442         missing.
40443         * lib/fchdir.c (_gl_register_dup): Fix comment.
40444         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
40445         * lib/dup-safer.c (dup_safer): Likewise.
40446         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
40447         * lib/dup3.c (dup3): Likewise.
40448         * tests/test-fchdir.c (main): Enhance test.
40449         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
40450
40451         fcntl: port portions of fcntl to mingw
40452         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
40453         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
40454         replacement for mingw.
40455         * modules/fcntl (Description): Update.
40456         (Depends-on): Add dup2.
40457         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
40458         * modules/fcntl-h (Makefile.am): Substitute it.
40459         * lib/fcntl.in.h (fcntl): Update declaration.
40460         (F_DUPFD, F_GETFD): New macros, when needed.
40461         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40462         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
40463         * tests/test-fcntl.c (check_flags, main): Enhance test for items
40464         we now guarantee.
40465
40466         fcntl: work around cygwin bug in F_DUPFD
40467         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
40468         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
40469         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
40470         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
40471         * doc/posix-functions/fcntl.texi (fcntl): Document it.
40472
40473         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
40474         * modules/fcntl (Files): List new files.
40475         (configure.ac): Run a test.
40476         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
40477         * lib/fcntl.c (rpl_fcntl): Likewise.
40478         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
40479         (gl_FCNTL_H): Always replace fcntl.h.
40480         * modules/fcntl-h (Makefile.am): Substitute witnesses.
40481         * lib/fcntl.in.h (fcntl): Declare replacement.
40482         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
40483         needed, plus a witness.
40484         * doc/posix-functions/fcntl.texi (fcntl): Document this.
40485         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40486         * tests/test-fcntl.c: New file.
40487         * modules/fcntl-tests: Likewise.
40488
40489         binary-io: avoid potential compilation warning
40490         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
40491         directives.
40492
40493         fflush: avoid compilation error on NetBSD
40494         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
40495         between off_t and fpos_t, since the latter is sometimes a struct.
40496         * lib/fseeko.c (rpl_fseeko): Likewise.
40497         Reported by Alexander Nasonov <alnsn@yandex.ru>.
40498
40499 2009-12-15  Eric Blake  <ebb9@byu.net>
40500
40501         fcntl-h, stdio, sys_ioctl: fix declarations
40502         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
40503         function must not take arguments.
40504         * lib/sys_ioctl.in.h (ioctl): Likewise.
40505         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
40506         (open): Add a link warning.
40507
40508 2009-12-15  Jim Meyering  <meyering@redhat.com>
40509
40510         areadlink, areadlink-with-size: relax license to LGPLv2+
40511         * modules/areadlink (License): Relax to LGPLv2+.
40512         * modules/areadlink-with-size (License): Likewise.
40513
40514 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
40515             Bruno Haible  <bruno@clisp.org>
40516
40517         *printf: Fix memory leak.
40518         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
40519         * lib/vfprintf.c (vfprintf): Likewise.
40520         * lib/dprintf.c (dprintf): Likewise.
40521         * lib/vdprintf.c (vdprintf): Likewise.
40522
40523 2009-12-14  Eric Blake  <ebb9@byu.net>
40524
40525         accept4: adjust module dependencies
40526         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
40527
40528         utimens: one more try at avoiding compiler warning
40529         * lib/utimens.c (lutimens): Lower scope of result.
40530
40531 2009-12-13  Bruno Haible  <bruno@clisp.org>
40532
40533         Move the malloc checking from module 'list' to new module 'xlist'.
40534         * modules/xlist: New file.
40535         * lib/gl_xlist.h: New file.
40536         * lib/gl_xlist.c: New file.
40537         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
40538         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
40539         gl_list_add_last, gl_list_add_before, gl_list_add_after,
40540         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
40541         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
40542         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
40543         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
40544         gl_sortedlist_nx_add): New declarations.
40545         (struct gl_list_implementation): Rename and change methods accordingly.
40546         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
40547         (gl_list_nx_create): Renamed from gl_list_create.
40548         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40549         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40550         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40551         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40552         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40553         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40554         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40555         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40556         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
40557         gl_list_create_empty.
40558         (gl_list_nx_create): Renamed from gl_list_create.
40559         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40560         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40561         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40562         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40563         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40564         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40565         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40566         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40567         * lib/gl_array_list.c: Don't include xalloc.h.
40568         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
40569         NULL upon out-of-memory.
40570         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
40571         out-of-memory.
40572         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
40573         Change return type to 'int'.
40574         (gl_array_nx_set_at): Renamed from gl_array_set_at.
40575         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40576         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
40577         upon out-of-memory.
40578         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
40579         upon out-of-memory.
40580         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
40581         upon out-of-memory.
40582         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
40583         upon out-of-memory.
40584         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
40585         out-of-memory.
40586         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
40587         Update.
40588         (gl_array_list_implementation): Update.
40589         * lib/gl_carray_list.c: Don't include xalloc.h.
40590         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
40591         Return NULL upon out-of-memory.
40592         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
40593         out-of-memory.
40594         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
40595         Change return type to 'int'.
40596         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
40597         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40598         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
40599         upon out-of-memory.
40600         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
40601         upon out-of-memory.
40602         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
40603         out-of-memory.
40604         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
40605         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
40606         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
40607         Update.
40608         (gl_carray_list_implementation): Update.
40609         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
40610         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
40611         gl_linked_create_empty. Return NULL upon out-of-memory.
40612         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
40613         out-of-memory.
40614         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
40615         Change return type to 'int'. Return -1 upon out-of-memory.
40616         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
40617         out-of-memory.
40618         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
40619         upon out-of-memory.
40620         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
40621         upon out-of-memory.
40622         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
40623         NULL upon out-of-memory.
40624         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
40625         upon out-of-memory.
40626         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
40627         out-of-memory.
40628         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
40629         Update.
40630         * lib/gl_linked_list.c: Don't include xalloc.h.
40631         (gl_linked_list_implementation): Update.
40632         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
40633         (add_to_bucket): Change return type to 'int'.
40634         (gl_linkedhash_list_implementation): Update.
40635         * lib/gl_anytree_list1.h (free_subtree): New function.
40636         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
40637         gl_tree_create_empty. Return NULL upon out-of-memory.
40638         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
40639         Change return type to 'int'. Return -1 upon out-of-memory.
40640         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
40641         out-of-memory.
40642         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
40643         (gl_tree_remove_node): New function, moved here from
40644         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
40645         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
40646         Update.
40647         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
40648         malloc, not xmalloc. Return NULL upon out-of-memory.
40649         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40650         out-of-memory.
40651         (gl_tree_remove_node_from_tree): New function, extracted from
40652         gl_tree_remove_node.
40653         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40654         upon out-of-memory.
40655         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40656         out-of-memory.
40657         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40658         upon out-of-memory.
40659         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40660         upon out-of-memory.
40661         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40662         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
40663         not xmalloc. Return NULL upon out-of-memory.
40664         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40665         out-of-memory.
40666         (gl_tree_remove_node_from_tree): New function, extracted from
40667         gl_tree_remove_node.
40668         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40669         upon out-of-memory.
40670         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40671         out-of-memory.
40672         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40673         upon out-of-memory.
40674         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40675         upon out-of-memory.
40676         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40677         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
40678         gl_anytree_list1.h before gl_anyavltree_list2.h.
40679         (gl_avltree_list_implementation): Update.
40680         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
40681         gl_anytree_list1.h before gl_anyavltree_list2.h.
40682         (gl_rbtree_list_implementation): Update.
40683         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
40684         Change return type to 'int'. Return -1 upon out-of-memory. Use
40685         __builtin_expect.
40686         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
40687         (gl_avltreehash_list_implementation): Update.
40688         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
40689         (gl_rbtreehash_list_implementation): Update.
40690         * modules/array-list (Depends-on): Remove xalloc.
40691         * modules/carray-list (Depends-on): Likewise.
40692         * modules/linked-list (Depends-on): Likewise.
40693         * modules/linkedhash-list (Depends-on): Likewise.
40694         * modules/avltree-list (Depends-on): Likewise.
40695         * modules/rbtree-list (Depends-on): Likewise.
40696         * modules/avltreehash-list (Depends-on): Likewise.
40697         * modules/rbtreehash-list (Depends-on): Likewise.
40698
40699         * modules/xsublist: New file.
40700         * lib/gl_xsublist.h: New file.
40701         * lib/gl_xsublist.c: New file.
40702         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
40703         (gl_sublist_nx_create): New declaration.
40704         * lib/gl_sublist.c: Don't include xalloc.h.
40705         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
40706         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
40707         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
40708         Change return type to 'int'. Return -1 upon out-of-memory.
40709         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
40710         upon out-of-memory.
40711         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
40712         NULL upon out-of-memory.
40713         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
40714         upon out-of-memory.
40715         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
40716         NULL upon out-of-memory.
40717         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
40718         NULL upon out-of-memory.
40719         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
40720         upon out-of-memory.
40721         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
40722         (gl_sublist_list_implementation): Update.
40723         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
40724         upon out-of-memory.
40725         * modules/sublist (Depends-on): Remove xalloc.
40726
40727         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
40728         * tests/test-carray_list.c: Likewise.
40729         * tests/test-linked_list.c: Likewise.
40730         * tests/test-linkedhash_list.c: Likewise.
40731         * tests/test-avltree_list.c: Likewise.
40732         * tests/test-rbtree_list.c: Likewise.
40733         * tests/test-avltreehash_list.c: Likewise.
40734         * tests/test-rbtreehash_list.c: Likewise.
40735         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
40736         * modules/carray-list-tests (Makefile.am): Likewise.
40737         * modules/linked-list-tests (Makefile.am): Likewise.
40738         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40739         * modules/avltree-list-tests (Makefile.am): Likewise.
40740         * modules/rbtree-list-tests (Makefile.am): Likewise.
40741         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40742         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40743
40744         * NEWS: Mention the changes.
40745
40746         * lib/clean-temp.c: Include gl_xlist.h.
40747         * modules/clean-temp (Depends-on): Add xlist.
40748
40749         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
40750         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
40751
40752         * tests/test-array_oset.c: Include gl_xlist.h.
40753         * modules/array-oset-tests (Depends-on): Add xlist.
40754
40755         Reported by José E. Marchesi <jemarch@gnu.org>.
40756
40757 2009-12-13  Bruno Haible  <bruno@clisp.org>
40758
40759         Move the malloc checking from module 'oset' to new module 'xoset'.
40760         * modules/xoset: New file.
40761         * lib/gl_xoset.h: New file.
40762         * lib/gl_xoset.c: New file.
40763         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
40764         declarations.
40765         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
40766         (struct gl_oset_implementation): Rename and change methods accordingly.
40767         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
40768         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40769         'int'. Mark as __warn_unused_result__.
40770         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
40771         gl_oset_create_empty.
40772         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40773         'int'.
40774         * lib/gl_array_oset.c: Don't include xalloc.h.
40775         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
40776         malloc, not xmalloc.
40777         (grow): Change return type to 'int'. Don't call xalloc_die.
40778         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
40779         to 'int'.
40780         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
40781         'int'.
40782         (gl_array_oset_implementation): Update.
40783         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
40784         gl_tree_create_empty.
40785         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
40786         'int'.
40787         * lib/gl_avltree_oset.c: Don't include xalloc.h.
40788         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40789         xmalloc.
40790         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40791         not xmalloc.
40792         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40793         xmalloc.
40794         (gl_avltree_oset_implementation): Update.
40795         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
40796         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40797         xmalloc.
40798         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40799         not xmalloc.
40800         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40801         xmalloc.
40802         (gl_rbtree_oset_implementation): Update.
40803         * modules/array-oset (Depends-on): Remove xalloc.
40804         * modules/avltree-oset (Depends-on): Likewise.
40805         * modules/rbtree-oset (Depends-on): Likewise.
40806         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
40807         * tests/test-avltree_oset.c: Likewise.
40808         * tests/test-rbtree_oset.c: Likewise.
40809         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40810         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
40811         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40812         * NEWS: Mention the change.
40813
40814 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
40815
40816         maint.mk: allow a project to override release-prep commands
40817         * top/maint.mk (alpha, beta, stable): Move release-preparatory
40818         commands into a new rule.
40819         (release-prep): New rule.
40820         (release-prep-hook): New overridable variable.
40821
40822 2009-12-13  Bruno Haible  <bruno@clisp.org>
40823
40824         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
40825
40826 2009-12-13  Jim Meyering  <meyering@redhat.com>
40827
40828         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
40829         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
40830
40831 2009-12-12  Bruno Haible  <bruno@clisp.org>
40832
40833         duplocale: Tweak.
40834         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
40835
40836 2009-12-12  Karl Berry  <karl@gnu.org>
40837
40838         * config/srclist.txt (strtoll.c): tab changes, no more sync.
40839
40840 2009-12-12  Bruno Haible  <bruno@clisp.org>
40841
40842         * m4/po.m4: Undo incorrect untabification.
40843
40844 2009-12-12  Bruno Haible  <bruno@clisp.org>
40845
40846         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
40847         * modules/c-strtod (Depends-on): Add locale.
40848         * modules/c-strtold (Depends-on): Likewise.
40849
40850 2009-12-12  Bruno Haible  <bruno@clisp.org>
40851
40852         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
40853
40854 2009-12-11  Eric Blake  <ebb9@byu.net>
40855
40856         setenv: relax requirement in light of POSIX ruling
40857         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
40858         not NULL.
40859         * tests/test-setenv.c (main): Relax test.
40860         * tests/test-unsetenv.c (main): Likewise.
40861         * doc/posix-functions/setenv.texi (setenv): Document this.
40862         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
40863
40864 2009-12-11  Bruno Haible  <bruno@clisp.org>
40865
40866         New module 'fd-safer-flag'.
40867         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
40868         * lib/dup-safer.c (dup_safer_flag): Remove function.
40869         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
40870         * lib/fd-safer.c (fd_safer_flag): Remove function.
40871         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
40872         * modules/cloexec (configure.ac): Drop indicator macro.
40873         * modules/fd-safer-flag: New file.
40874         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
40875         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
40876         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
40877
40878 2009-12-11  Bruno Haible  <bruno@clisp.org>
40879
40880         Tests for module 'nl_langinfo'.
40881         * modules/nl_langinfo-tests: New file.
40882         * tests/test-nl_langinfo.sh: New file.
40883         * tests/test-nl_langinfo.c: New file.
40884
40885         New module 'nl_langinfo'.
40886         * lib/nl_langinfo.c: New file.
40887         * m4/nl_langinfo.m4: New file.
40888         * modules/nl_langinfo: New file.
40889         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
40890
40891 2009-12-11  Bruno Haible  <bruno@clisp.org>
40892
40893         Tests for module 'langinfo'.
40894         * modules/langinfo-tests: New file.
40895         * tests/test-langinfo.c: New file.
40896
40897         New module 'langinfo'.
40898         * lib/langinfo.in.h: New file.
40899         * m4/langinfo_h.m4: New file.
40900         * modules/langinfo: New file.
40901         * doc/posix-headers/langinfo.texi: Mention the new module.
40902
40903 2009-12-11  Bruno Haible  <bruno@clisp.org>
40904
40905         * lib/config.charset: Untabify.
40906
40907 2009-12-11  Bruno Haible  <bruno@clisp.org>
40908
40909         * modules/unistd-safer (configure.ac): Drop indicator macro.
40910
40911 2009-12-11  Bruno Haible  <bruno@clisp.org>
40912
40913         Move pipe2-safer code to its own file.
40914         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
40915         * lib/pipe-safer.c (pipe2_safer): Remove function.
40916         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
40917         (Makefile.am): Add it to lib_SOURCES.
40918
40919 2009-12-10  Bruno Haible  <bruno@clisp.org>
40920
40921         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
40922
40923 2009-12-10  Bruno Haible  <bruno@clisp.org>
40924
40925         Declare which arguments expect non-NULL values, for GCC and clang.
40926         * build-aux/arg-nonnull.h: New file.
40927         * modules/arg-nonnull: New file.
40928         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
40929         (inet_ntop, inet_pton): Use it.
40930         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
40931         (closedir, dirfd, opendir, scandir, alphasort): Use it.
40932         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
40933         (open, openat): Use it.
40934         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
40935         (fnmatch): Use it.
40936         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
40937         (getopt, getopt_long, getopt_long_only): Use it.
40938         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
40939         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
40940         Use it.
40941         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
40942         (iconv_open): Use it.
40943         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
40944         (strtoimax, strtoumax): Use it.
40945         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
40946         (duplocale): Use it.
40947         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
40948         (frexp, frexpl): Use it.
40949         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
40950         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
40951         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
40952         (tsearch, tfind, tdelete, twalk): Use it.
40953         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
40954         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
40955         sigpending): Use it.
40956         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
40957         (posix_spawn, posix_spawnp, posix_spawnattr_init,
40958         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
40959         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
40960         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
40961         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
40962         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
40963         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
40964         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
40965         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
40966         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
40967         Use it.
40968         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
40969         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
40970         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
40971         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
40972         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
40973         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
40974         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
40975         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
40976         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
40977         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
40978         strtoull, unsetenv): Use it.
40979         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
40980         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
40981         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
40982         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
40983         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
40984         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
40985         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
40986         (strcasecmp, strncasecmp): Use it.
40987         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
40988         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
40989         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
40990         rpl_setsockopt): Use it.
40991         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
40992         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
40993         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
40994         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
40995         (gettimeofday): Use it.
40996         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
40997         (times): Use it.
40998         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
40999         (uname): Use it.
41000         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
41001         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
41002         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
41003         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
41004         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
41005         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
41006         unlinkat, write): Use it.
41007         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
41008         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
41009         * lib/argv-iter.h: Include arg-nonnull.h.
41010         (_ATTRIBUTE_NONNULL_): Remove macro.
41011         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
41012         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
41013         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
41014         optimization.
41015         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
41016         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
41017         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
41018         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
41019         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
41020         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
41021         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
41022         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
41023         * modules/arpa_inet (Depends-on): Add arg-nonnull.
41024         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
41025         * modules/dirent (Depends-on): Add arg-nonnull.
41026         (Makefile.am): Insert arg-nonnull.h into dirent.h.
41027         * modules/fcntl-h (Depends-on): Add arg-nonnull.
41028         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
41029         * modules/fnmatch (Depends-on): Add arg-nonnull.
41030         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
41031         * modules/getopt-posix (Depends-on): Add arg-nonnull.
41032         (Makefile.am): Insert arg-nonnull.h into getopt.h.
41033         * modules/glob (Depends-on): Add arg-nonnull.
41034         (Makefile.am): Insert arg-nonnull.h into glob.h.
41035         * modules/iconv_open (Depends-on): Add arg-nonnull.
41036         (Makefile.am): Insert arg-nonnull.h into iconv.h.
41037         * modules/inttypes (Depends-on): Add arg-nonnull.
41038         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
41039         * modules/locale (Depends-on): Add arg-nonnull.
41040         (Makefile.am): Insert arg-nonnull.h into locale.h.
41041         * modules/math (Depends-on): Add arg-nonnull.
41042         (Makefile.am): Insert arg-nonnull.h into math.h.
41043         * modules/netdb (Depends-on): Add arg-nonnull.
41044         (Makefile.am): Insert arg-nonnull.h into netdb.h.
41045         * modules/search (Depends-on): Add arg-nonnull.
41046         (Makefile.am): Insert arg-nonnull.h into search.h.
41047         * modules/signal (Depends-on): Add arg-nonnull.
41048         (Makefile.am): Insert arg-nonnull.h into signal.h.
41049         * modules/spawn (Depends-on): Add arg-nonnull.
41050         (Makefile.am): Insert arg-nonnull.h into spawn.h.
41051         * modules/stdio (Depends-on): Add arg-nonnull.
41052         (Makefile.am): Insert arg-nonnull.h into stdio.h.
41053         * modules/stdlib (Depends-on): Add arg-nonnull.
41054         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
41055         * modules/string (Depends-on): Add arg-nonnull.
41056         (Makefile.am): Insert arg-nonnull.h into string.h.
41057         * modules/strings (Depends-on): Add arg-nonnull.
41058         (Makefile.am): Insert arg-nonnull.h into strings.h.
41059         * modules/sys_socket (Depends-on): Add arg-nonnull.
41060         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
41061         * modules/sys_stat (Depends-on): Add arg-nonnull.
41062         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
41063         * modules/sys_time (Depends-on): Add arg-nonnull.
41064         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
41065         * modules/sys_times (Depends-on): Add arg-nonnull.
41066         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
41067         * modules/sys_utsname (Depends-on): Add arg-nonnull.
41068         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
41069         * modules/time (Depends-on): Add arg-nonnull.
41070         (Makefile.am): Insert arg-nonnull.h into time.h.
41071         * modules/unistd (Depends-on): Add arg-nonnull.
41072         (Makefile.am): Insert arg-nonnull.h into unistd.h.
41073         * modules/wchar (Depends-on): Add arg-nonnull.
41074         (Makefile.am): Insert arg-nonnull.h into wchar.h.
41075         * modules/argv-iter (Depends-on): Add arg-nonnull.
41076         * tests/test-canonicalize.c (null_ptr): New function.
41077         (main): Use it.
41078         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
41079         (main): Use it.
41080         * tests/test-memmem.c (null_ptr): New function.
41081         (main): Use it.
41082         Reported by Jim Meyering.
41083
41084 2009-12-10  Bruno Haible  <bruno@clisp.org>
41085
41086         Use spaces for indentation, not tabs.
41087         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
41088         * m4/*.m4: Untabify.
41089         * build-aux/*.h: Untabify.
41090         * tests/**/*.[hc]: Untabify.
41091         * README: New section "Indent with spaces, not TABs", based on
41092         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
41093         * NEWS: Mention the change.
41094
41095 2009-12-10  Bruno Haible  <bruno@clisp.org>
41096
41097         pty test: Fix link error.
41098         * modules/pty-tests (Makefile.am): Add the default LDADD value to
41099         test_pty_LDADD.
41100
41101 2009-12-07  Simon Josefsson  <simon@josefsson.org>
41102
41103         * modules/pty: New file.
41104         * modules/pty-tests: New file.
41105         * m4/pty.m4: New file.
41106         * tests/test-pty.c: New file.
41107         * doc/glibc-headers/pty.texi: Modified.
41108         * doc/glibc-functions/forkpty.texi: Modified.
41109         * doc/glibc-functions/openpty.texi: Modified.
41110
41111 2009-12-10  Bruno Haible  <bruno@clisp.org>
41112
41113         Avoid syntax error in C++ mode.
41114         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
41115
41116 2009-12-10  Bruno Haible  <bruno@clisp.org>
41117
41118         Use sed with option -e.
41119         * gnulib-tool (func_version, func_emit_copyright_notice,
41120         func_emit_initmacro_end, func_import, func_create_testdir): Pass
41121         option -e to sed.
41122         * modules/link-warning (Makefile.am): Likewise.
41123
41124 2009-12-10  Jim Meyering  <meyering@redhat.com>
41125
41126         mgetgroups: do not write bytes beyond end of malloc'd buffer
41127         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
41128         username, we call getgroups with a one-element-shorter buffer,
41129         but still told it the length was original, max_n_groups.
41130
41131 2009-12-09  Eric Blake  <ebb9@byu.net>
41132
41133         cloexec: relax license
41134         * modules/cloexec (Maintainer): Add myself.
41135         (License): Use LGPL, not GPL.
41136
41137         link-warning: optimize generation
41138         * modules/link-warning (Makefile.am): Reduce process usage.
41139
41140 2009-12-09  Bruno Haible  <bruno@clisp.org>
41141
41142         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
41143         workaround was added on 2009-11-17.
41144
41145 2009-12-09  Jim Meyering  <meyering@redhat.com>
41146             Bruno Haible  <bruno@clisp.org>
41147
41148         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
41149         * modules/link-warning (Makefile.am): Make the comment-removing sed
41150         command more robust in the face of bootstrap-prepended comment lines.
41151
41152 2009-12-09  Bruno Haible  <bruno@clisp.org>
41153
41154         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
41155         most one group.
41156
41157 2009-12-09  Simon Josefsson <simon@josefsson.org>
41158             Bruno Haible  <bruno@clisp.org>
41159
41160         * build-aux/link-warning.h: Add copyright notice.
41161         * modules/link-warning (Makefile.am): Generate link-warning.h from
41162         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
41163         * NEWS: Mention change in link-warning module.
41164         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
41165         * modules/dirent (Makefile.am): Add dependency to dirent.h.
41166         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
41167         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
41168         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
41169         * modules/math (Makefile.am): Add dependency to math.h.
41170         * modules/search (Makefile.am): Add dependency to search.h.
41171         * modules/signal (Makefile.am): Add dependency to signal.h.
41172         * modules/spawn (Makefile.am): Add dependency to spawn.h.
41173         * modules/stdio (Makefile.am): Add dependency to stdio.h.
41174         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
41175         * modules/string (Makefile.am): Add dependency to string.h.
41176         * modules/strings (Makefile.am): Add dependency to strings.h.
41177         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
41178         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
41179         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
41180         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
41181         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
41182         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
41183         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
41184         * modules/unistd (Makefile.am): Add dependency to unistd.h.
41185         * modules/wchar (Makefile.am): Add dependency to wchar.h.
41186
41187 2009-12-09  Bruno Haible  <bruno@clisp.org>
41188
41189         fchdir: Optimize away rpl_fstat when possible.
41190         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
41191         REPLACE_OPEN_DIRECTORY.
41192         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
41193
41194 2009-12-09  Bruno Haible  <bruno@clisp.org>
41195
41196         * lib/fchdir.c: Update comment.
41197
41198 2009-12-09  Bruno Haible  <bruno@clisp.org>
41199
41200         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
41201
41202 2009-12-08  Eric Blake  <ebb9@byu.net>
41203
41204         fchdir: avoid memory leak on re-registration.
41205         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
41206
41207 2009-12-08  Jim Meyering  <meyering@redhat.com>
41208
41209         init.sh: avoid Solaris 10 /bin/sh portability problem
41210         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
41211         sourced script:
41212           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
41213           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
41214           bar
41215         tests/init.sh relied on that, accepting a --set-path=DIR argument,
41216         and two tests used that idiom.
41217         * tests/init.sh: Update suggested usage comments.
41218         (path_prepend_): New function, to be used in place
41219         of the --src-path=DIR option.
41220         (setup_): Move PATH-prepending code into path_prepend_.
41221         * tests/test-pread.sh: Adapt to new usage.
41222         * tests/test-xalloc-die.sh: Likewise.
41223
41224 2009-12-08  Simon Josefsson  <simon@josefsson.org>
41225
41226         * doc/gnulib.texi (Glibc pty.h): Add.
41227         * doc/glibc-functions/forkpty.texi: Add.
41228         * doc/glibc-functions/openpty.texi: Add.
41229         Suggested by Bruno Haible.
41230
41231 2009-12-08  Eric Blake  <ebb9@byu.net>
41232
41233         fchdir: fix logic bugs
41234         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
41235         * tests/test-fchdir.c (main): Enhance test.
41236         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
41237         is in use.
41238
41239         dup2: fix logic bugs
41240         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
41241         REPLACE_DUP2 to decide when rpl_dup2 is needed.
41242         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
41243         exists.
41244         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
41245
41246 2009-12-07  Eric Blake  <ebb9@byu.net>
41247
41248         unlink: fix m4 detection
41249         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
41250
41251         unistd-safer: add unit test
41252         * modules/unistd-safer-tests: New file.
41253         * tests/test-dup-safer.c: Likewise.
41254         * tests/test-cloexec.c (setmode): Avoid compiler warning.
41255         * tests/test-dup2.c (setmode): Likewise.
41256         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
41257
41258         cloexec: preserve text vs. binary across dup_cloexec
41259         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
41260         mode.
41261         * modules/dup2-tests (Depends-on): Add binary-io.
41262         * modules/cloexec-tests (Depends-on): Likewise.
41263         * tests/test-dup2.c (setmode, is_mode): New helpers.
41264         (main): Add tests that translation mode is preserved.
41265         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
41266         Reported by Bruno Haible.
41267
41268         mgetgroups: reduce duplicate listings
41269         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
41270         resulting array.
41271         * tests/test-chown.h (test_chown): Simplify client.
41272         * tests/test-lchown.h (test_lchown): Likewise.
41273
41274 2009-12-06  Bruno Haible  <bruno@clisp.org>
41275
41276         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
41277         value.
41278
41279 2009-12-06  Bruno Haible  <bruno@clisp.org>
41280
41281         * lib/progname.c: Include stdio.h, stdlib.h.
41282         (set_program_name): Reject a NULL argument.
41283
41284 2009-12-05  Eric Blake  <ebb9@byu.net>
41285
41286         pipe2-safer: new module
41287         * modules/pipe2-safer: New file.
41288         * lib/unistd-safer.h (pipe2_safer): New prototype.
41289         * lib/unistd--.h (pipe2): New wrapper.
41290         * lib/pipe-safer.c (pipe2_safer): New function.
41291         * modules/pipe (Depends-on): Add pipe2-safer.
41292         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
41293
41294         stdlib-safer: preserve cloexec flag for mkostemp[s]
41295         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
41296         fd_safer_flag.
41297
41298         unistd-safer: allow preservation of cloexec status via flag
41299         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
41300         prototypes.
41301         * lib/dup-safer.c (dup_safer_flag): New function.
41302         * lib/fd-safer.c (fd_safer_flag): Likewise.
41303         * modules/cloexec (configure.ac): Set witness.
41304
41305         test-dup2: enhance test
41306         * modules/dup2-tests (Depends-on): Add cloexec.
41307         * tests/test-dup2.c (main): Enhance test.
41308
41309         cloexec: add dup_cloexec
41310         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
41311         header and comments.
41312         * lib/cloexec.c (set_cloexec_flag): Add comments.
41313         (dup_cloexec): New function, with mingw implementation borrowed
41314         from...
41315         * lib/w32spawn.h (dup_noinherit): ...here.
41316         * modules/execute (Depends-on): Add cloexec.
41317         * modules/pipe (Depends-on): Likewise.
41318         * modules/cloexec (Depends-on): Add dup2.
41319         * modules/cloexec-tests (Files): New file.
41320         * tests/test-cloexec.c: Likewise.
41321
41322         test-xalloc-die: fix test for mingw
41323         * modules/xalloc-die-tests (Files): Add tests/init.sh.
41324         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
41325         directory and .exe suffix off argv[0] output.
41326
41327         test-fseeko: fix test for mingw
41328         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
41329         than undefining fseek, so test will pass on mingw.
41330
41331 2009-12-05  Bruno Haible  <bruno@clisp.org>
41332
41333         * lib/progname.h (set_program_name): Clarify specification.
41334         * lib/progname.c (set_program_name): Likewise.
41335         Reported by Jim Meyering.
41336
41337 2009-12-05  Jim Meyering  <meyering@redhat.com>
41338
41339         maint.mk: backslash-escape parens in default regexp
41340         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
41341         backslash-escape the literal parentheses.
41342
41343         maint.mk: news-date-check: use grep -E
41344         * top/maint.mk (today): Define a Make variable, not a...
41345         (news-date-check): ...shell variable.
41346         (news-date-regexp): Use the Make variable.
41347         Use grep's -E option.  Change the failing diagnostic to mention
41348         the variable, $(news-date-regexp).
41349
41350 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
41351
41352         maintainer-makefile: allow customization of NEWS entry format
41353         * top/maint.mk (news-date-regexp): New overridable variable.
41354         (news-date-check): Use it.
41355
41356 2009-12-04  Eric Blake  <ebb9@byu.net>
41357
41358         mgetgroups: add xgetgroups, and avoid ENOSYS failures
41359         * lib/mgetgroups.h (xgetgroups): New prototype.
41360         * lib/mgetgroups.c (xgetgroups): New wrapper.
41361         (mgetgroups): Handle ENOSYS.
41362         * modules/mgetgroups (Depends-on): Add realloc.
41363         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
41364
41365         mgetgroups: avoid argument promotion issues with -1
41366         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
41367         for invalid gid_t.
41368         * tests/test-chown.h (getegid, test_chown): Likewise.
41369         * tests/test-lchown.h (getegid, test_lchown): Likewise.
41370
41371 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
41372
41373         exclude: Fix header file problems.
41374         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
41375
41376 2009-12-01  Jim Meyering  <meyering@redhat.com>
41377
41378         fts: fts_open: do not let an empty string cause immediate failure
41379         This is required in support of GNU rm, for which the command
41380         "rm A '' B" must process and remove both A and B, in spite of
41381         the empty string argument.
41382         * lib/fts.c (fts_open): Do not let the presence of an empty string
41383         cause fts_open to fail immediately.  Most fts-using tools must be
41384         able to process all arguments, in order, and can be expected to
41385         diagnose such arguments themselves.
41386
41387 2009-11-30  Eric Blake  <ebb9@byu.net>
41388
41389         utimens: fix compilation error
41390         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
41391         Declare variable at right scope.
41392
41393 2009-11-29  Jim Meyering  <meyering@redhat.com>
41394
41395         bootstrap: handle perl-5.11's changed --version output
41396         * build-aux/bootstrap (get_version): Handle perl separately,
41397         since perl-5.11's --version output is different.
41398
41399 2009-11-28  Jim Meyering  <meyering@redhat.com>
41400
41401         userspec: depend on the inttostr module, too
41402         * modules/userspec (Depends-on): Add inttostr.
41403
41404         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
41405         * lib/userspec.c (parse_with_separator): Do not accept a user ID
41406         number of MAXUID when it evaluates to (uid_t) -1.
41407         Likewise for group ID.  Reported by Matt McCutchen in
41408         <http://savannah.gnu.org/bugs/?28113>
41409
41410         userspec: reformat to use spaces, not TABs
41411         * lib/userspec.c: Expand TABs to spaces.
41412         Add Emacs' "indent-tabs-mode: nil" hint.
41413
41414 2009-11-27  Eric Blake  <ebb9@byu.net>
41415
41416         getopt-gnu: flush out another BSD bug
41417         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
41418         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
41419         flush out BSD bug.
41420         * tests/test-getopt.h (test_getopt): End lists with NULL.
41421         * tests/test-getopt_long.h (test_getopt_long): Likewise.
41422         (test_getopt_long_posix): Enhance test.
41423         * modules/getopt-posix-tests (Depends-on): Add stdbool.
41424         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
41425         getopt-gnu.
41426         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41427         Likewise.
41428
41429 2009-11-27  Simon Josefsson  <simon@josefsson.org>
41430
41431         * modules/idpriv-droptemp-tests (Notice): Fix text.
41432
41433 2009-11-27  Jim Meyering  <meyering@redhat.com>
41434
41435         test-xalloc-die: avoid spurious failure due to libtool argv difference
41436         In a libtool-enabled project, this test would fail due to a difference
41437         in the emitted program name, e.g.,
41438         -test-xalloc-die: memory exhausted
41439         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
41440         Use program to avoid that.
41441         * modules/xalloc-die-tests (Depends-on): Add progname.
41442         * tests/test-xalloc-die.c: Include progname.h".
41443         (program_name): Remove decl.
41444         (main): Call set_program_name.
41445         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
41446
41447 2009-11-26  Richard Jones  <rjones@redhat.com>
41448
41449         w32sock: leave win32 error in place.
41450         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
41451
41452 2009-11-26  Eric Blake  <ebb9@byu.net>
41453
41454         init.sh: suggest to use skip_ and fail_ functions in comments
41455         * tests/init.sh: Add a sentence.
41456
41457 2009-11-25  Bruno Haible  <bruno@clisp.org>
41458
41459         init.sh: add documentation in comments
41460         * tests/init.sh: Add some developer and user documentation.
41461
41462 2009-11-26  Jim Meyering  <meyering@redhat.com>
41463
41464         init.sh: accommodate even those who specify bogus srcdir manually
41465         * tests/init.sh: Normally, srcdir is guaranteed by automake and
41466         configure-time tests to be sanitized, so that there is no need to
41467         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
41468         (with no double quotes) suffices.  However, since tests may be
41469         invoked manually, and since you may explicitly set srcdir to the
41470         name of a directory containing spaces, do quote its uses here.
41471         * tests/test-pread.sh: Likewise.
41472         Suggested by Bruno Haible.
41473
41474         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
41475         * tests/test-pread.sh: Write no data into the pipe, because
41476         test-pread actually reads none.  This avoids a diagnostic,
41477         "bash: echo: write error: Broken pipe", that arises in the unusual
41478         event something is ignoring SIGPIPE, and might be interpreted
41479         as some sort of failure.  Reported by Bruno Haible.
41480
41481 2009-11-25  Jim Meyering  <meyering@redhat.com>
41482
41483         test-pread: cover failure with ESPIPE and EINVAL
41484         * tests/test-pread.c (main): Test for failure, too.
41485         * tests/test-pread.sh: Invoke with stdin on a pipe.
41486         Suggested by Eric Blake.
41487
41488         pread: improvement and fix
41489         * modules/pread (Depends-on): Depend on lseek, for portability to
41490         e.g., mingw.  Suggested by Eric Blake.
41491         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
41492
41493         unistd.in.h: correct declaration of pread
41494         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
41495         Reported by Richard W.M. Jones.
41496
41497         test-pread.sh: distribute the test script
41498         * modules/pread-tests (Files): Include test-pread.sh.
41499
41500         test-pread.sh: clean up
41501         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
41502         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
41503         That is unnecessary, since it's always ".".
41504         Suggestion from Eric Blake.
41505
41506         test-pread.sh: make executable
41507         * tests/test-pread.sh: Set executable bit.
41508         Reported by Eric Blake.
41509
41510         correct typo in test-pread.sh
41511         * tests/test-pread.sh: Add #! line.
41512
41513         test pread
41514         * tests/test-pread.c: New file.
41515         * tests/test-pread.sh: Likewise.
41516         * modules/pread-tests: Likewise.
41517
41518         pread: new module
41519         * modules/pread: New file.
41520         * lib/unistd.in.h (pread): Define/declare.
41521         * lib/pread.c (pread): New file.
41522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
41523         * modules/unistd (Makefile.am): Substitute witnesses.
41524         * doc/posix-functions/pread.texi (pread): Update.
41525         * MODULES.html.sh: Add pread.
41526
41527 2009-11-25  Jim Meyering  <meyering@redhat.com>
41528
41529         tests/init.sh: new file to be used via most *.sh tests
41530         * tests/init.sh: New file.
41531
41532 2009-11-25  Eric Blake  <ebb9@byu.net>
41533
41534         utimens: work around older Linux failure with symlinks
41535         * lib/utimens.c (lutimensat_works_really): New variable.
41536         (fdutimens, lutimens): Use it to manage kernels that support
41537         nanosecond times on files, but not on symlinks.
41538         Reported by OndÅ™ej Vašík.
41539
41540         utimes: fix configure grammar
41541         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
41542
41543 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
41544
41545         regex: Fix fastmap for multibyte character ranges.
41546         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
41547         characters when a multibyte character range is included.
41548
41549 2009-11-22  Andy Wingo  <wingo@pobox.com>
41550
41551         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
41552         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
41553
41554 2009-11-24  Bruno Haible  <bruno@clisp.org>
41555
41556         doc: Most *_l functions exist in MacOS X 10.5.
41557         * doc/posix-functions/duplocale.texi: Update platforms list.
41558         * doc/posix-functions/freelocale.texi: Likewise.
41559         * doc/posix-functions/newlocale.texi: Likewise.
41560         * doc/posix-functions/uselocale.texi: Likewise.
41561         * doc/posix-functions/isalnum_l.texi: Likewise.
41562         * doc/posix-functions/isalpha_l.texi: Likewise.
41563         * doc/posix-functions/isblank_l.texi: Likewise.
41564         * doc/posix-functions/iscntrl_l.texi: Likewise.
41565         * doc/posix-functions/isdigit_l.texi: Likewise.
41566         * doc/posix-functions/isgraph_l.texi: Likewise.
41567         * doc/posix-functions/islower_l.texi: Likewise.
41568         * doc/posix-functions/isprint_l.texi: Likewise.
41569         * doc/posix-functions/ispunct_l.texi: Likewise.
41570         * doc/posix-functions/isspace_l.texi: Likewise.
41571         * doc/posix-functions/isupper_l.texi: Likewise.
41572         * doc/posix-functions/iswalnum_l.texi: Likewise.
41573         * doc/posix-functions/iswalpha_l.texi: Likewise.
41574         * doc/posix-functions/iswblank_l.texi: Likewise.
41575         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41576         * doc/posix-functions/iswctype_l.texi: Likewise.
41577         * doc/posix-functions/iswdigit_l.texi: Likewise.
41578         * doc/posix-functions/iswgraph_l.texi: Likewise.
41579         * doc/posix-functions/iswlower_l.texi: Likewise.
41580         * doc/posix-functions/iswprint_l.texi: Likewise.
41581         * doc/posix-functions/iswpunct_l.texi: Likewise.
41582         * doc/posix-functions/iswspace_l.texi: Likewise.
41583         * doc/posix-functions/iswupper_l.texi: Likewise.
41584         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41585         * doc/posix-functions/isxdigit_l.texi: Likewise.
41586         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
41587         * doc/posix-functions/strcasecmp_l.texi: Likewise.
41588         * doc/posix-functions/strcoll_l.texi: Likewise.
41589         * doc/posix-functions/strfmon_l.texi: Likewise.
41590         * doc/posix-functions/strftime_l.texi: Likewise.
41591         * doc/posix-functions/strncasecmp_l.texi: Likewise.
41592         * doc/posix-functions/strxfrm_l.texi: Likewise.
41593         * doc/posix-functions/tolower_l.texi: Likewise.
41594         * doc/posix-functions/toupper_l.texi: Likewise.
41595         * doc/posix-functions/towctrans_l.texi: Likewise.
41596         * doc/posix-functions/towlower_l.texi: Likewise.
41597         * doc/posix-functions/towupper_l.texi: Likewise.
41598         * doc/posix-functions/wcscoll_l.texi: Likewise.
41599         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41600         * doc/posix-functions/wctrans_l.texi: Likewise.
41601         * doc/posix-functions/wctype_l.texi: Likewise.
41602         * doc/glibc-functions/strptime_l.texi: Likewise.
41603         * doc/glibc-functions/strtod_l.texi: Likewise.
41604         * doc/glibc-functions/strtof_l.texi: Likewise.
41605         * doc/glibc-functions/strtol_l.texi: Likewise.
41606         * doc/glibc-functions/strtold_l.texi: Likewise.
41607         * doc/glibc-functions/strtoll_l.texi: Likewise.
41608         * doc/glibc-functions/strtoul_l.texi: Likewise.
41609         * doc/glibc-functions/strtoull_l.texi: Likewise.
41610         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41611         * doc/glibc-functions/wcstod_l.texi: Likewise.
41612         * doc/glibc-functions/wcstof_l.texi: Likewise.
41613         * doc/glibc-functions/wcstol_l.texi: Likewise.
41614         * doc/glibc-functions/wcstold_l.texi: Likewise.
41615         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41616         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41617         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41618
41619 2009-11-24  Bruno Haible  <bruno@clisp.org>
41620
41621         duplocale: Fix logic bug.
41622         * lib/duplocale.c: Don't include <langinfo.h>.
41623         (_NL_LOCALE_NAME): Remove macro.
41624         (rpl_duplocale): Use setlocale instead of nl_langinfo.
41625         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
41626
41627 2009-11-23  Jim Meyering  <meyering@redhat.com>
41628
41629         test-update-copyright: don't hard-code /usr/bin/perl
41630         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
41631         perl to print the current year.  Gilles Espinasse reported that
41632         the replaced use of perl was hard-coded as /usr/bin/perl.
41633
41634 2009-11-23  Bruno Haible  <bruno@clisp.org>
41635
41636         duplocale: Add support for glibc 2.3.x.
41637         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
41638
41639 2009-11-22  Bruno Haible  <bruno@clisp.org>
41640
41641         vasnprintf: Tiny optimization.
41642         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
41643         MacOS X.
41644
41645 2009-11-22  Bruno Haible  <bruno@clisp.org>
41646
41647         Tests for module 'duplocale'.
41648         * modules/duplocale-tests: New file.
41649         * tests/test-duplocale.c: New file.
41650
41651         New module 'duplocale'.
41652         * m4/duplocale.m4: New file.
41653         * lib/locale.in.h (duplocale): New declaration.
41654         * lib/duplocale.c: New file.
41655         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
41656         gl_LOCALE_H_DEFAULTS): New macros.
41657         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
41658         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
41659         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
41660         REPLACE_DUPLOCALE.
41661         * modules/duplocale: New file.
41662         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
41663
41664 2009-11-22  Bruno Haible  <bruno@clisp.org>
41665
41666         * modules/locale-tests (configure.ac): Test for newlocale function.
41667         * tests/test-locale.c: When the system has extended locale functions,
41668         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
41669
41670         locale: Make locale_t available when possible.
41671         * lib/locale.in.h: Include <xlocale.h> when it exists.
41672         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
41673         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
41674         * modules/locale (Depends-on): Add extensions.
41675         (Makefile.am): Also substitute HAVE_XLOCALE_H.
41676         * doc/posix-headers/locale.texi: Document the problem with locale_t.
41677
41678 2009-11-22  Bruno Haible  <bruno@clisp.org>
41679
41680         Add comments.
41681         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
41682         invocation.
41683         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
41684         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
41685         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41686
41687 2009-11-22  Bruno Haible  <bruno@clisp.org>
41688
41689         error: account for the possibility of freopen (stdout).
41690         * lib/error.c: Include <unistd.h>.
41691         (flush_stdout): New function, extracted from error and error_at_line.
41692         Determine stdout's fd dynamically.
41693         (error, error_at_line): Invoke flush_stdout.
41694         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
41695         * modules/error (Depends-on): Add unistd.
41696
41697 2009-11-22  Bruno Haible  <bruno@clisp.org>
41698
41699         diffseq: Add comment.
41700         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
41701
41702 2009-11-22  Jim Meyering  <meyering@redhat.com>
41703
41704         c-stack: avoid defining an unused static function
41705         * lib/c-stack.c (find_stack_direction): Do not define this function
41706         when it will not be used.
41707
41708         diffseq: avoid spurious gcc warnings
41709         * lib/diffseq.h (IF_LINT2): Define.
41710         (compareseq): Use it to initialize two members of "part".
41711         This avoids two used-uninitialized warnings.
41712
41713 2009-11-21  Jim Meyering  <meyering@redhat.com>
41714
41715         c-stack: avoid "ignoring return value of `write'" warning
41716         * lib/c-stack.c: Include "ignore-value.h".
41717         (die): Explicitly ignore each write return value.
41718         * modules/c-stack (Depends-on): Add ignore-value.
41719
41720 2009-11-21  Bruno Haible  <bruno@clisp.org>
41721
41722         diffseq: reduce scope of variable 'best'.
41723         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
41724         variable, earlier used for two different purposes.
41725
41726 2009-11-21  Jim Meyering  <meyering@redhat.com>
41727
41728         diffseq: remove useless assignment to "best"
41729         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
41730         assignment.  At that point "best" is already guaranteed to be zero.
41731
41732 2009-11-20  Eric Blake  <ebb9@byu.net>
41733
41734         build: mention ftp redirector in release announcements
41735         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
41736         values that used to come from cfg.mk; mention FTP redirect URL.
41737         * build-aux/announce-gen: Mention the mirror list.
41738         Suggested by Karl Berry.
41739
41740         nanosleep: improve port to mingw
41741         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
41742         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
41743         LIB_NANOSLEEP, but only when needed.
41744         * modules/select (Link): Document LIBSOCKET.
41745         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
41746         enough.
41747
41748         nanosleep: work around cygwin bug
41749         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
41750         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
41751         bug.
41752         (getnow): Delete, not needed.
41753         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
41754         LIB_CLOCK_GETTIME.
41755         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
41756         clock-time, gettime.
41757         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
41758         bug.
41759         * modules/nanosleep-tests: New test.
41760         * tests/test-nanosleep.c: New file.
41761
41762         sleep: work around cygwin bug
41763         * lib/sleep.c (rpl_sleep): Work around the bug.
41764         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
41765         (gl_PREREQ_SLEEP): Delete unused macro.
41766         * modules/sleep (Depends-on): Add verify.
41767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41768         * modules/unistd (Makefile.am): Substitute witness.
41769         * lib/unistd.in.h (sleep): Update prototype.
41770         * doc/posix-functions/sleep.texi (sleep): Document the bug.
41771         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
41772         * modules/sleep-tests (Depends-on): Check for alarm.
41773
41774 2009-11-20  Jim Meyering  <meyering@redhat.com>
41775
41776         maint.mk: improve sc_prohibit_magic_number_exit
41777         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
41778         so it does not match uses like System.exit(1).
41779         Add comments showing how to correct all offenders.
41780
41781 2009-11-19  Eric Blake  <ebb9@byu.net>
41782
41783         xalloc-die-tests: add missing library
41784         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
41785
41786         test-xvasprintf: silence compiler warnings
41787         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
41788         empty string from gcc.
41789
41790 2009-11-19  Jim Meyering  <meyering@redhat.com>
41791
41792         xfreopen: new module, from coreutils
41793         * modules/xfreopen: New module.
41794         * lib/xfreopen.c: New file.
41795         * lib/xfreopen.h: New file.
41796         * MODULES.html.sh (File stream based Input/Output"): Add it.
41797
41798 2009-11-19  Eric Blake  <ebb9@byu.net>
41799
41800         manywarnings: depend on warnings
41801         * modules/manywarnings (Depends-on): Add warnings.
41802
41803         build: avoid compiler warnings
41804         * lib/select.c (rpl_select): Delete unused variable.
41805         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
41806
41807 2009-11-18  Eric Blake  <ebb9@byu.net>
41808
41809         tests: avoid false negative with --with-packager
41810         * tests/test-version-etc.sh: Discard packager information.
41811         * tests/test-argp-version-etc-1.sh: Likewise.
41812         Reported by Mike Frysinger.
41813
41814         utimens: fix regression on Solaris
41815         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
41816         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
41817         can only change fd timestamps via futimesat.  Instead, use an
41818         additional witness macro to avoid BSD bug.
41819         Reported by Jim Meyering.
41820
41821 2009-11-17  Eric Blake  <ebb9@byu.net>
41822
41823         usleep: use it to simplify tests
41824         * modules/stat-time-tests (Depends-on): Add usleep.
41825         (configure.ac): Drop usleep check.
41826         * modules/chown-tests (Depends-on, configure.ac): Likewise.
41827         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
41828         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
41829         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
41830         * modules/openat-tests (Depends-on, configure.ac): Likewise.
41831         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
41832         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
41833         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
41834         Likewise.
41835         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
41836         * tests/test-lchown.h (nap): Likewise.
41837         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
41838         * tests/test-stat-time.c (nap): Likewise.
41839         * tests/test-utimens-common.h (nap): Update comments.
41840
41841         usleep: new module
41842         * modules/usleep: New file.
41843         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
41844         * lib/usleep.c (usleep): Likewise.
41845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41846         * modules/unistd (Makefile.am): Substitute witnesses.
41847         * lib/unistd.in.h (usleep): Add declaration.
41848         * doc/pastposix-functions/usleep.texi (usleep): Document this.
41849         * MODULES.html.sh (Date and time): Likewise.
41850         * modules/usleep-tests (Depends-on): New test.
41851         * tests/test-usleep.c: New file.
41852
41853         chown: work around OpenBSD bug
41854         * lib/chown.c (rpl_chown): Work around the bug.
41855         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
41856         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
41857         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
41858         * modules/chown (Depends-on): Add stdbool.
41859         * modules/lchown (Depends-on): Likewise.
41860         * doc/posix-functions/chown.texi (chown): Document the bug.
41861         * doc/posix-functions/lchown.texi (lchown): Likewise.
41862         * tests/test-lchown.h (test_chown): Relax test.
41863
41864         mkstemp: avoid conflict with C++ keyword template
41865         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
41866         * lib/mkostemp.c (mkostemp): Likewise.
41867         * lib/mkostemps.c (mkostemps): Likewise.
41868         * lib/mkstemp.c (mkstemp): Likewise.
41869         * lib/mkstemps.c (mkstemps): Likewise.
41870
41871         xalloc-die-tests: optimize
41872         * tests/test-xalloc-die.sh: Reduce number of processes.
41873
41874 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41875
41876         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
41877         patch from ludo@gnu.org (Ludovic Courtès).
41878
41879 2009-11-17  Jim Meyering  <meyering@redhat.com>
41880
41881         version-etc: use proper license string
41882         * modules/version-etc (License): Use LGPL, not LGPLv3+.
41883         * modules/version-etc-fsf: Likewise.
41884
41885 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41886
41887         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
41888         printed to stdout.  Deal with EOL differences.
41889
41890 2009-11-17  Eric Blake  <ebb9@byu.net>
41891
41892         unsetenv: work around Solaris bug
41893         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
41894         * lib/unsetenv.c (rpl_unsetenv): Work around it.
41895         Reported by Jim Meyering.
41896
41897         vasnprintf: avoid compiler warnings
41898         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
41899         variables.
41900         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
41901
41902 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41903
41904         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
41905         settings since xalloc-die is no longer the self test,
41906         xalloc-die.sh is.
41907
41908 2009-11-17  Jim Meyering  <meyering@redhat.com>
41909
41910         test-xalloc-die.sh: make the code agree with the commit log
41911         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
41912         at the end, just in case you happen to have a test-xalloc-die
41913         program in some other PATH directory.
41914
41915         test-xalloc-die.sh: fix a portability bug
41916         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
41917         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
41918         Otherwise, argv[0] (as often seen in diagnostics) would be too
41919         system-dependent, sometimes with, and sometimes without the leading "./".
41920
41921         version-etc-fsf: relax license to LGPLv3+
41922         * modules/version-etc-fsf (License): Relax license.
41923
41924 2009-11-16  Eric Blake  <ebb9@byu.net>
41925
41926         xalloc-die-tests: avoid printing null pointer
41927         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
41928         shell script.
41929         * tests/test-xalloc-die.c (program_name): Declare.
41930         * tests/test-xalloc-die.sh (tmpfiles): New file.
41931
41932         setenv, unsetenv: work around various bugs
41933         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
41934         (setenv) [HAVE_SETENV]: Work around bugs.
41935         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
41936         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
41937         for bugs.
41938         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
41939         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
41940         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
41941         * modules/stdlib (Makefile.am): Update substitutions.
41942         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
41943         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
41944         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41945         * modules/setenv-tests: New test.
41946         * modules/unsetenv-tests: Likewise.
41947         * tests/test-setenv.c: New file.
41948         * tests/test-unsetenv.c: Likewise.
41949
41950 2009-11-16  Jim Meyering  <meyering@redhat.com>
41951
41952         version-etc: relax license to LGPLv3+
41953         * modules/version-etc (License): Relax license.
41954
41955         better AC_REQUIRE expanded-before-required-warning avoidance
41956         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
41957         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
41958         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
41959         which is no longer needed.
41960
41961 2009-11-16  Eric Blake  <ebb9@byu.net>
41962
41963         test-freading: clean up temporary file
41964         * tests/test-freading.c (main): Remove file on success, and use
41965         ASSERT more liberally.
41966         Reported by Jim Meyering.
41967
41968 2009-11-16  Jim Meyering  <meyering@redhat.com>
41969
41970         avoid new AC_REQUIRE expanded-before-required warnings
41971         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
41972         merely using it.
41973         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
41974         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
41975
41976 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41977
41978         * tests/test-xalloc-die.c: New file.
41979         * modules/xalloc-die-tests: New file.
41980         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
41981         XFAIL_TESTS so it can be appended by modules.
41982
41983 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41984
41985         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
41986         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
41987
41988 2009-11-14  Eric Blake  <ebb9@byu.net>
41989
41990         fnmatch: avoid compiler warning
41991         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
41992         to silence compiler warning about mismatch signedness in ?:.
41993         Reported by Robert Millan.
41994
41995         intprops: add double-inclusion guard
41996         * lib/intprops.h: Allow idempotent includes.
41997         Suggested by Bruce Korb.
41998
41999         openat: detect Solaris fchownat bug
42000         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
42001         penalizing glibc chownat when only lchownat is broken.
42002         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
42003         trailing slash bugs.
42004         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
42005         * modules/openat-tests (Files): Include more files.
42006         (Depends-on): Add mgetgroups, sleep, stat-time.
42007         (configure.ac): Add additional checks.
42008         (Makefile.am): Build new test.
42009         * tests/test-fchownat.c: New file.
42010
42011         lchown: detect Solaris and FreeBSD bug
42012         * lib/lchown.c (rpl_lchown): Work around bug.
42013         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
42014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42015         * modules/unistd (Makefile.am): Populate it.
42016         * lib/unistd.in.h (lchown): Update declaration.
42017         * doc/posix-functions/lchown.texi (lchown): Document the bug.
42018         * modules/lchown-tests: New file.
42019         * tests/test-lchown.h (test_lchown): Likewise.
42020         * tests/test-lchown.c (main): Likewise.
42021
42022         chown: detect Solaris and FreeBSD bug
42023         * lib/chown.c (rpl_chown): Work around bug.
42024         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
42025         (gl_PREREQ_CHOWN): Delete.
42026         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42027         * modules/unistd (Makefile.am): Populate it.
42028         * lib/unistd.in.h (chown): Update declaration.
42029         * lib/lchown.c (chown): Update client.
42030         * modules/lchown (Depends-on): Add lstat.
42031         * doc/posix-functions/chown.texi (chown): Document the bug.
42032         * doc/posix-functions/getgroups.texi (getgroups): Document
42033         getgroups pitfall.
42034         * modules/chown-tests: New file.
42035         * tests/test-chown.h (test_chown): Likewise.
42036         * tests/test-chown.c (main): Likewise.
42037
42038 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
42039
42040         gnulib-tool: correctly detect absence of m4 directories
42041         * gnulib-tool: Avoid extra newline on data passed to wc -l.
42042
42043 2009-11-14  Jim Meyering  <meyering@redhat.com>
42044
42045         maint.mk: Prohibit inclusion of "xalloc.h" without use.
42046         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42047
42048 2009-11-14  John W. Eaton  <jwe@gnu.org>
42049
42050         strftime.h: wrap function declaration in extern "C" block
42051         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
42052
42053 2009-11-13  Eric Blake  <ebb9@byu.net>
42054
42055         getgroups: avoid compiler warning
42056         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
42057
42058         getgroups: work around FreeBSD bug
42059         * lib/getgroups.c (rpl_getgroups): Work around the bug.
42060         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
42061         * doc/posix-functions/getgroups.texi (getgroups): Document it.
42062         * tests/test-getgroups.c (main): Fix buffer overrun.
42063
42064         getgroups: avoid compilation failure
42065         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
42066         * modules/getgroups (Depends-on): Add stdint.
42067
42068 2009-11-13  Jim Meyering  <meyering@redhat.com>
42069
42070         test-getgroups: avoid compilation failure
42071         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
42072
42073 2009-11-13  Eric Blake  <ebb9@byu.net>
42074
42075         mgetgroups: new module, taken from coreutils
42076         * modules/mgetgroups: New file.
42077         * lib/mgetgroups.h: Likewise.
42078         * lib/mgetgroups.c (mgetgroups): Likewise.
42079         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
42080         * MODULES.html.sh (Users and groups): Mention it.
42081
42082         getgroups: don't expose GETGROUPS_T to user
42083         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
42084         an element at a time if GETGROUPS_T is wrong size.
42085         * lib/getugroups.h (getugroups): Change signature.
42086         * lib/unistd.in.h (getgroups): Likewise.
42087         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
42088         signature needs fixing.
42089         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
42090         AC_TYPE_GETGROUPS.
42091         * modules/group-member (Depends-on): Add getgroups.
42092         * lib/group-member.c (group_info, get_group_info): Use gid_t.
42093         (group_member): Rely on getgroups replacement.
42094         * lib/getugroups.c (getugroups): Use gid_t.
42095         * tests/test-getgroups.c (main): Likewise.
42096         * NEWS: Mention the signature change.
42097         * doc/posix-functions/getgroups.texi (getgroups): Mention the
42098         problem with signature.
42099         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
42100         GETGROUPS_T is still useful for setgroups.
42101
42102         getgroups, getugroups: provide stubs for mingw
42103         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
42104         * lib/getugroups.c (getugroups): Likewise.
42105         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
42106         function.  Modernize replacement scheme.
42107         (gl_PREREQ_GETGROUPS): Delete.
42108         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
42109         * modules/getgroups (configure.ac): Declare witness.
42110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42111         * modules/unistd (Depends-on): Substitute witness.
42112         * lib/unistd.in.h (getgroups): Declare replacement.
42113
42114         getgroups: avoid calling exit
42115         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
42116         drop xalloc.
42117         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
42118         dependencies.
42119         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
42120         exiting, in the rare case of malloc failure.
42121
42122         getgroups: fix logic error
42123         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
42124         has more than 20 groups.
42125         * modules/getgroups-tests: New test.
42126         * tests/test-getgroups.c: New file.
42127
42128 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42129
42130         * tests/test-base64.c: Improve.
42131
42132 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42133
42134         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
42135         Blake <ebb9@byu.net>.
42136
42137 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42138
42139         * tests/test-xvasprintf.c: Add %s%s related checks.
42140
42141 2009-11-12  Eric Blake  <ebb9@byu.net>
42142
42143         version-etc: match standards.texi style
42144         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
42145         and use <> only for URLs.
42146
42147 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
42148
42149         fts: do not fail on a submount during traversal
42150         * lib/fts.c (fts_build): Read the stat info again after opening
42151         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
42152         Original report at http://bugzilla.redhat.com/501848.
42153
42154 2009-11-12  Jim Meyering  <meyering@redhat.com>
42155
42156         bootstrap: sync from coreutils
42157         * build-aux/bootstrap (bootstrap_epilogue): New function.
42158         Use git_modules_config in one more place.  This make bootstrap's
42159         --gnulib-srcdir option more useful for testing.
42160
42161         bootstrap: generalize autoheader check
42162         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
42163         AC_CONFIG_HEADERS.
42164
42165 2009-11-11  Eric Blake  <ebb9@byu.net>
42166
42167         mkfifoat: use new modules for Solaris and BSD bugs
42168         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
42169         * lib/mkfifoat.c (mknodat): Split...
42170         * lib/mknodat.c (mknodat): ...into new file.
42171         * modules/mkfifoat (Files): Ship new file.
42172         (Depends-on): Add mkfifo, mknod.
42173         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
42174         (Depends-on): Add symlink.
42175         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
42176         redundant with test_mkfifo.h.
42177         (do_mkfifoat, do_mknodat): New helpers.
42178
42179         mknod: new module
42180         * modules/mknod: New file.
42181         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
42182         * lib/mknod.c (mknod): Likewise.
42183         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42184         defaults.
42185         * modules/sys_stat (Makefile.am): Substitute them.
42186         * lib/sys_stat.in.h (mknod): Declare replacement.
42187         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42188         Document it.
42189         * doc/posix-functions/mknod.texi (mknod): Likewise.
42190         * modules/mknod-tests: New test.
42191         * tests/test-mknod.c: Likewise.
42192
42193         mkfifo: new module
42194         * modules/mkfifo: New file.
42195         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
42196         * lib/mkfifo.c (mkfifo): Likewise.
42197         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42198         defaults.
42199         * modules/sys_stat (Makefile.am): Substitute them.
42200         * lib/sys_stat.in.h (mkfifo): Declare replacement.
42201         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42202         Document it.
42203         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
42204         * modules/mkfifo-tests: New test.
42205         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
42206         from test-mkfifoat.c.
42207         * tests/test-mkfifo.c: New file.
42208
42209         readlink: detect FreeBSD bug
42210         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
42211         slash on symlink.
42212         * doc/posix-functions/readlink.texi (readlink): Document the bug.
42213         * tests/test-readlink.h (test_readlink): Enhance test.
42214
42215         symlink: detect FreeBSD bug
42216         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
42217         slash on symlink.
42218         * doc/posix-functions/symlink.texi (symlink): Document the bug.
42219         * tests/test-symlink.h (test_symlink): Enhance test.
42220
42221 2009-11-10  Eric Blake  <ebb9@byu.net>
42222
42223         link: detect FreeBSD bug
42224         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
42225         symlink.
42226         * doc/posix-functions/link.texi (link): Document the bug.
42227         * tests/test-link.h (test_link): Enhance test.
42228         * tests/test-linkat.c (main): Update caller.
42229
42230         unlink, remove: detect FreeBSD bug
42231         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
42232         slash on symlink.
42233         * doc/posix-functions/unlink.texi (unlink): Document the bug.
42234         * doc/posix-functions/remove.texi (remove): Likewise.
42235         * tests/test-unlink.h (test_unlink): Enhance test.
42236         * tests/test-remove.c (main): Likewise.
42237
42238 2009-11-09  Eric Blake  <ebb9@byu.net>
42239
42240         rename: detect FreeBSD bug
42241         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
42242         slash on symlink.
42243         * modules/renameat-tests (Depends-on): Add filenamecat.
42244         * tests/test-rename.h (test_rename): Allow one more errno.
42245         * tests/test-renameat.c (main): Likewise.
42246         * doc/posix-functions/rename.texi (rename): Document the bug.
42247
42248         open: detect FreeBSD bug
42249         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
42250         symlink.
42251         * doc/posix-functions/open.texi (open): Document the bug.
42252         * doc/posix-functions/utimes.texi (utimes): Likewise.
42253         * tests/test-open.h (test_open): Add parameters, and test symlink
42254         handling.
42255         * tests/test-open.c (main): Adjust caller.
42256         * tests/test-fcntl-safer.c (main): Likewise.
42257         * modules/open-tests (Depends-on): Add stdbool, symlink.
42258         * modules/fcntl-safer-tests (Depends-on): Likewise.
42259         * tests/test-openat.c (main): Add test-open tests.
42260
42261         stat: detect FreeBSD bug
42262         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
42263         symlink.
42264         * doc/posix-functions/stat.texi (stat): Document the bug.
42265         * tests/test-stat.h (test_stat_func): Add argument.
42266         * tests/test-stat.c (main): Adjust caller.
42267         * tests/test-fstatat.c (main): Likewise.
42268         * modules/stat-tests (Depends-on): Add stdbool, symlink.
42269         Reported by Jim Meyering.
42270
42271 2009-11-09  James Youngman  <jay@gnu.org>
42272
42273         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
42274         * lib/strftime.c: Correct placement of #include "ignore-value.h".
42275
42276 2009-11-08  Jim Meyering  <meyering@redhat.com>
42277
42278         utimens: remove invalid futimesat call
42279         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
42280         It used the file descriptor of the target file as the DIR_FD
42281         parameter and NULL as the file name.  That caused failure with
42282         errno == EFAULT on FreeBSD-8.0-rc2
42283
42284 2009-11-07  Eric Blake  <ebb9@byu.net>
42285
42286         fflush, freadseek: use fseeko, not fseek
42287         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
42288         (clear_ungetc_buffer): Avoid potential problems on large files.
42289         * lib/freadseek.c (freadseek): Likewise.
42290         * modules/freadseek (Depends-on): Add fseeko.
42291         * modules/fseek (configure.ac): Set a witness.
42292         * tests/test-fflush.c (main): Use fseeko.
42293         * tests/test-fpurge.c (fseek): Disable link warning.
42294         * tests/test-freadable.c (fseek): Likewise.
42295         * tests/test-freading.c (fseek): Likewise.
42296         * tests/test-fseeko.c (fseek): Likewise.
42297         * tests/test-ftell.c (fseek): Likewise.
42298         * tests/test-ftello.c (fseek): Likewise.
42299         * tests/test-fwritable.c (fseek): Likewise.
42300         * tests/test-fwriting.c (fseek): Likewise.
42301
42302 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42303
42304         * modules/memchr (Depends-on): Drop getpagesize dependency.
42305
42306 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42307
42308         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
42309         Reported by Ludovic Courtès.
42310         * build-aux/pmccabe2html: Improve example usage.
42311         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
42312
42313 2009-11-06  Jim Meyering  <meyering@redhat.com>
42314
42315         do-release-commit-and-tag: New module.
42316         Automate the release-commit and tag process.
42317         * build-aux/do-release-commit-and-tag: New script, from coreutils.
42318         * modules/do-release-commit-and-tag: New file.
42319         * MODULES.html.sh (Support for maintaining and releasing): Add it.
42320
42321 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42322
42323         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
42324         because test-select.c uses inet_pton.
42325
42326 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42327
42328         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
42329         GETADDRINFO_LIB.  Bump serial number.
42330         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
42331         Suggested by Eric Blake <ebb9@byu.net>.
42332
42333 2009-11-05  Eric Blake  <ebb9@byu.net>
42334
42335         strtod: detect darwin bug
42336         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
42337         Reported by Leo Davis.
42338
42339         freopen-safer: new module
42340         * modules/freopen-safer: New module.
42341         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
42342         * lib/freopen-safer.c (freopen_safer): New file.
42343         * lib/stdio-safer.h (freopen_safer): New declaration.
42344         * lib/stdio--.h (freopen): New override.
42345         * MODULES.html.sh (File stream based Input/Output): Mention it.
42346         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
42347         freopen-safer module.
42348         * doc/posix-functions/stderr.texi (stderr): Likewise.
42349         * doc/posix-functions/stdin.texi (stdin): Likewise.
42350         * doc/posix-functions/stdout.texi (stdout): Likewise.
42351         * modules/freopen-safer-tests: New test.
42352         * tests/test-reopen-safer.c: New file.
42353
42354 2009-11-05  Jim Meyering  <meyering@redhat.com>
42355
42356         maint.mk: Prohibit inclusion of "close-stream.h" without use.
42357         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42358
42359 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42360
42361         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
42362
42363 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42364
42365         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
42366
42367 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42368
42369         Fix link error.
42370         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42371         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42372
42373 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42374
42375         * tests/test-func.c: Also test value of __func__.
42376
42377 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42378
42379         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
42380         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
42381
42382 2009-11-05  Bruno Haible  <bruno@clisp.org>
42383
42384         Fix link error.
42385         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42386         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42387         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
42388
42389 2009-11-05  Bruno Haible  <bruno@clisp.org>
42390
42391         Tests for module 'inet_pton'.
42392         * modules/inet_pton-tests: New file.
42393         * tests/test-inet_pton.c: New file.
42394
42395 2009-11-05  Bruno Haible  <bruno@clisp.org>
42396
42397         Tests for module 'inet_ntop'.
42398         * modules/inet_ntop-tests: New file.
42399         * tests/test-inet_ntop.c: New file.
42400
42401 2009-11-04  Eric Blake  <ebb9@byu.net>
42402
42403         stdlib-safer: wrap all mkstemp variants
42404         * modules/mkostemp (configure.ac): Set witness.
42405         * modules/mkostemps (configure.ac): Likewise.
42406         * modules/mkstemps (configure.ac): Likewise.
42407         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
42408         (mkstemps_safer): Wrap more functions.
42409         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
42410         wrapping.
42411         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
42412         (mkstemps_safer): Implement the wrappers.
42413
42414         mkstemps, mkostemps: new modules
42415         * modules/mkostemps: New module.
42416         * modules/mkstemps: Likewise.
42417         * lib/mkostemps.c (mkostemps): New file.
42418         * lib/mkstemps.c (mkstemps): Likewise.
42419         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
42420         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
42421         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
42422         * modules/stdlib (Makefile.am): Substitute them.
42423         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
42424         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
42425         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
42426         * doc/gnulib.texi (Glibc stdlib.h): Include them.
42427         * MODULES.html.sh (File system functions): Mention them.
42428
42429         tempname: resync from glibc
42430         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
42431         same values for __GT_FILE as glibc.  Abort even when assertions
42432         are disabled.
42433         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
42434         match its value otherwise.  Allow idempotent inclusion.
42435         * lib/mkdtemp.c (mkdtemp): Adjust caller.
42436         * lib/mkostemp.c (mkostemp): Likewise.
42437         * lib/mkstemp.c (mkstemp): Likewise.
42438         * lib/tmpfile.c (tmpfile): Likewise.
42439         * NEWS: Document this.
42440
42441         utimens: fix use of futimens on older Linux
42442         * lib/utimens.c (fdutimens): Use updated, rather than original,
42443         timespec to avoid bug in older Linux kernel.
42444         Reported by Simon Josefsson.
42445
42446 2009-11-04  Bruno Haible  <bruno@clisp.org>
42447
42448         Make num_processors more flexible and consistent.
42449         * lib/nproc.h (enum nproc_query): New type.
42450         (num_processors): Add a 'query' argument.
42451         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
42452         (num_processors): Add a 'query' argument. Test the value of the
42453         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
42454         mingw, count the number of CPUs available for the current process.
42455         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
42456         Check for sched_getaffinity and sched_getaffinity_np.
42457         * modules/nproc (Depends-on): Add c-ctype, extensions.
42458         * NEWS: Mention the change.
42459
42460 2009-11-03  Bruno Haible  <bruno@clisp.org>
42461
42462         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
42463
42464 2009-11-03  Jim Meyering  <meyering@redhat.com>
42465
42466         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
42467         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
42468         if it is defined.
42469
42470 2009-11-02  Eric Blake  <ebb9@byu.net>
42471
42472         mktime, timegm: share common declaration
42473         * lib/mktime-internal.h: New file.
42474         * lib/mktime.c: Use it rather than open-coding a declaration.
42475         * lib/timegm.c: Likewise.
42476         * modules/mktime (Files): Ship it.
42477         * modules/timegm (Files): Likewise.
42478         Suggested by Bruno Haible.
42479
42480         test-update-copyright: update test to match script changes
42481         * tests/test-update-copyright.sh: Avoid hard-coding perl
42482         location.  Don't update *.bak created by earlier runs.
42483
42484 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
42485             Simon Josefsson  <simon@josefsson.org>
42486             Bruno Haible  <bruno@clisp.org>
42487
42488         Fix link error on Solaris 8.
42489         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
42490         also in libnsl. Define also INET_PTON_LIB.
42491         * modules/inet_pton (Link): New section.
42492
42493 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42494             Bruno Haible  <bruno@clisp.org>
42495
42496         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
42497         * modules/inet_ntop (Link): New section.
42498         Reported by Boyan Kasarov <bkasarov@gmail.com>.
42499
42500 2009-11-02  Eric Blake  <ebb9@byu.net>
42501
42502         maint: avoid compiler warnings in m4 macros
42503         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
42504         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
42505
42506 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42507
42508         * m4/pmccabe2html.m4: Remove file.
42509         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
42510         function.  Change maintainer.
42511         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
42512         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
42513         Courtès).
42514
42515 2009-10-31  Eric Blake  <ebb9@byu.net>
42516
42517         fseeko: fix m4 regression
42518         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
42519         regression from 2009-10-27.
42520         Reported by Ralf Wildenhues.
42521
42522 2009-10-31  Jim Meyering  <meyering@redhat.com>
42523
42524         inttostr: aesthetics and improved (compile-time) safety
42525         Define inttype_is_signed rather than inttype_is_unsigned,
42526         since the sole use is via "#if inttype_is_signed".
42527         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
42528         inttype_is_unsigned.
42529         * lib/offtostr.c (inttype_is_signed): Likewise.
42530         * lib/uinttostr.c (inttype_is_signed): Likewise.
42531         * lib/umaxtostr.c (inttype_is_signed): Likewise.
42532         * lib/inttostr.c (inttostr): Use verify to cross-check the
42533         inttype_is_signed value and the signedness of the actual type.
42534         * modules/inttostr (Depends-on): Add verify.
42535
42536 2009-10-30  Eric Blake  <ebb9@byu.net>
42537
42538         build: avoid compiler warnings
42539         * lib/fchmodat.c (lchmod): Mark unused variables.
42540         * lib/getopt.c (_getopt_initialize): Likewise.
42541         * lib/mktime.c (__mktime_internal): Provide prototype.
42542         * lib/inttostr.c (inttostr): Avoid compiler warning even with
42543         older gcc that do not understand #pragma GCC diagnostic.
42544         * lib/uinttostr.c (inttype_is_unsigned): Define.
42545         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
42546
42547 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
42548
42549         stat: fix compilation on AIX
42550         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
42551         only see struct stat64.
42552
42553 2009-10-30  Eric Blake  <ebb9@byu.net>
42554
42555         exclude: make more robust
42556         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
42557         rather than masking a coding bug.
42558         Suggested by Bruno Haible.
42559
42560 2009-10-30  Jim Meyering  <meyering@redhat.com>
42561
42562         perl scripts: remove #!/usr/bin/perl in favor of more portable...
42563         Rather than putting #!/usr/bin/perl on the first line,
42564         start with a variant of what's recommended by "man perlrun" that
42565         invokes the first "perl" program from your shell's search path.
42566         * build-aux/gitlog-to-changelog: Replace #!... as above.
42567         Add a "Local Variables" perl mode setting.
42568         Prompted by a patch from Ludovic Courtès.
42569         Improved by Eric Blake.
42570         * build-aux/useless-if-before-free: Likewise.
42571         * build-aux/announce-gen: Likewise.
42572         * build-aux/update-copyright: Likewise.
42573
42574 2009-10-29  Eric Blake  <ebb9@byu.net>
42575
42576         filenamecat-lgpl: adjust clients
42577         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
42578         filenamecat.
42579         * modules/renameat (Depends-on): Likewise.
42580
42581         filenamecat: split into filenamecat-lgpl
42582         * modules/filenamecat-lgpl: New module.
42583         * modules/filenamecat (Files): Move library-safe files into
42584         filenamecat-lgpl.
42585         (Depends-on): Add filenamecat-lgpl.
42586         (configure.ac): Declare witness.
42587         * lib/filenamecat.h (file_name_concat): Only declare when using
42588         GPL module.
42589         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
42590         Move...
42591         * lib/filenamecat-lgpl.c: ...into new file.
42592         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
42593         (gl_FILE_NAME_CONCAT): Use it.
42594         * MODULES.html.sh (File system functions): Mention new module.
42595
42596         argp: avoid memory leak
42597         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
42598         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
42599         base_name, since the latter malloc()s and can call exit().
42600         Leak introduced 2006-07-03.
42601
42602         dirname-lgpl: adjust clients that don't need full dirname
42603         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
42604         * modules/filenamecat (Depends-on): Likewise.
42605         * modules/linkat (Depends-on): Likewise.
42606         * modules/mkancesdirs (Depends-on): Likewise.
42607         * modules/mkdir (Depends-on): Likewise.
42608         * modules/openat (Depends-on): Likewise.
42609         * modules/savewd (Depends-on): Likewise.
42610         * modules/rename (Depends-on): Likewise.
42611         (License): Relax license.
42612         * modules/mkdir-tests (Depends-on): Drop progname.
42613         (Makefile.am): Delete unneeded LDADD.
42614         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
42615
42616         dirname: split into dirname-lgpl
42617         * modules/dirname-lgpl: New module.
42618         * modules/dirname (Files): Move library-safe files into
42619         dirname-lgpl.
42620         (Depends-on): Add dirname-lgpl.
42621         (configure.ac): Declare witness.
42622         * modules/double-slash-root (License): Relax license.
42623         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
42624         module.
42625         * lib/dirname.c (dir_len, mdir_name): Move...
42626         * lib/dirname-lgpl.c: ...into new file.
42627         * lib/basename.c (last_component, base_len): Move...
42628         * lib/basename-lgpl.c: ...into new file.
42629         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
42630         (gl_DIRNAME): Use it.
42631         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
42632         Mention new module.
42633         * modules/dirname-tests (Depends-on): Add progname.
42634         * tests/test-dirname.c (program_name): Delete.
42635
42636         mkdir: make safe for libraries
42637         * modules/mkdir (Depends-on): Drop xalloc.
42638         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
42639         exit.
42640
42641         tests: avoid some compiler warnings
42642         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
42643         literals.
42644         * tests/test-memchr.c (main): Avoid type mismatch.
42645         * tests/test-arpa_inet.c (main): Avoid unused parameters.
42646         * tests/test-base64.c (main): Likewise.
42647         * tests/test-getdelim.c (main): Likewise.
42648         * tests/test-gethostname.c (main): Likewise.
42649         * tests/test-getline.c (main): Likewise.
42650         * tests/test-netinet_in.c (main): Likewise.
42651         * tests/test-select.c (open_server_socket, main): Likewise.
42652         * tests/test-select-stdin.c (main): Likewise.
42653         * tests/test-sockets.c (main): Likewise.
42654         * tests/test-strsignal.c (main): Likewise.
42655         * tests/test-sys_select.c (main): Likewise.
42656         * tests/test-sys_socket.c (main): Likewise.
42657         * tests/test-u64.c (main): Likewise.
42658         * tests/test-xfprintf-posix.c (main): Likewise.
42659         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
42660
42661         sockets: avoid compiler warning
42662         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
42663
42664         maint: detect usage(1) and other suspicious exits
42665         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
42666
42667 2009-10-29  Jim Meyering  <meyering@redhat.com>
42668
42669         timespec: long-to-int truncation could make timespec_cmp malfunction
42670         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
42671         a multiple of 2^32 nanoseconds as no difference.
42672
42673 2009-10-28  Jim Meyering  <meyering@redhat.com>
42674
42675         fprintftime: wrap macro code argument in "do {...} while(0)"
42676         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
42677         cpy macro must be a statement that can be followed by a semicolon.
42678         Now that the else clause contains a comment and is hence longer
42679         than one line, I require curly braces.  That in turn requires
42680         that we wrap this code block in the standard do...while(0).
42681
42682         fprintftime: remove stray semicolon from previous change
42683         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
42684
42685         fprintftime: avoid a warning about ignored fwrite return value
42686         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
42687         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
42688         that is unsafe.
42689         * modules/fprintftime (Depends-on): Add ignore-value.
42690
42691         exclude: avoid an unwarranted warning
42692         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
42693
42694 2009-10-27  Eric Blake  <ebb9@byu.net>
42695
42696         fseek: avoid compilation failure when fflush is replaced
42697         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
42698         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
42699         module is in use.
42700         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
42701         module is not in use; since REPLACE_FSEEK worked otherwise.
42702         (GNULIB_FTELLO): Likewise for ftell.
42703         Reported by Ian Beckwith and others.
42704
42705 2009-10-27  Bruno Haible  <bruno@clisp.org>
42706
42707         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
42708         Reported by Jim Meyering.
42709
42710 2009-10-27  Jim Meyering  <jim@meyering.net>
42711             Bruno Haible  <bruno@clisp.org>
42712
42713         Avoid warning despite dropping the return value of fwrite.
42714         * lib/unicodeio.c: Include ignore-value.h.
42715         (fwrite_success_callback): Explicitly ignore fwrite's return value.
42716         * modules/unicodeio (Depends-on): Add ignore-value.
42717
42718 2009-10-26  Eric Blake  <ebb9@byu.net>
42719
42720         areadlinkat: fix fallback path
42721         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
42722         pointer and zero.
42723
42724 2009-10-22  Pádraig Brady  <P@draigBrady.com>
42725
42726         Use a better IO block size for modern systems
42727         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
42728         * lib/md2.c: Likewise.
42729         * lib/md4.c: Likewise.
42730         * lib/md5.c: Likewise.
42731         * lib/sha1.c: Likewise.
42732         * lib/sha256.c: Likewise.
42733         * lib/sha512.c: Likewise.
42734
42735 2009-10-22  Eric Blake  <ebb9@byu.net>
42736
42737         tests: avoid several compiler warnings
42738         * tests/test-getcwd.c (main): Avoid buffer underflow.
42739         * tests/test-getdate.c (main): String literals are not safe with
42740         putenv, so use setenv.  Declare unused argument.
42741         * modules/getdate-tests (Depends-on): Add setenv.
42742         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
42743         problems with string literals in char *.
42744         * tests/test-hash.c (main): Avoid shadowing declaration.
42745         (insert_new): Treat string literals as char const *.
42746         * tests/test-getopt.h (test_getopt): Likewise.
42747         (getopt_loop): Alter types to minimize casting elsewhere.
42748         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
42749         (test_getopt_long_posix): Likewise.
42750         (do_getopt_long): Add wrapper to minimize casting.
42751         * tests/test-atexit.c (clear_temp_file): Use void.
42752         * tests/test-areadlink-with-size.c (main): Declare unused
42753         arguments.
42754         * tests/test-areadlink.c (main): Likewise.
42755         * tests/test-areadlinkat-with-size.c (main): Likewise.
42756         * tests/test-areadlinkat.c (main): Likewise.
42757         * tests/test-canonicalize-lgpl.c (main): Likewise.
42758         * tests/test-canonicalize.c (main): Likewise.
42759         * tests/test-dirent-safer.c (main): Likewise.
42760         * tests/test-dirname.c (main): Likewise.
42761         * tests/test-dup2.c (main): Likewise.
42762         * tests/test-fchdir.c (main): Likewise.
42763         * tests/test-fcntl-h.c (main): Likewise.
42764         * tests/test-fcntl-safer.c (main): Likewise.
42765         * tests/test-fdopendir.c (main): Likewise.
42766         * tests/test-fdutimensat.c (main): Likewise.
42767         * tests/test-fflush.c (main): Likewise.
42768         * tests/test-filenamecat.c (main): Likewise.
42769         * tests/test-filevercmp.c (main): Likewise.
42770         * tests/test-fopen-safer.c (main): Likewise.
42771         * tests/test-fopen.c (main): Likewise.
42772         * tests/test-fpending.c (main): Likewise.
42773         * tests/test-fpurge.c (main): Likewise.
42774         * tests/test-freading.c (main): Likewise.
42775         * tests/test-fstatat.c (main): Likewise.
42776         * tests/test-fsync.c (main): Likewise.
42777         * tests/test-futimens.c (main): Likewise.
42778         * tests/test-getndelim2.c (main): Likewise.
42779         * tests/test-gettimeofday.c (main): Likewise.
42780         * tests/test-getopt.c (main): Likewise.
42781         * tests/test-i-ring.c (main): Likewise.
42782         * tests/test-inttypes.c (main): Likewise.
42783         * tests/test-link.c (main): Likewise.
42784         * tests/test-lstat.c (main): Likewise.
42785         * tests/test-math.c (main): Likewise.
42786         * tests/test-md5.c (main): Likewise.
42787         * tests/test-memchr2.c (main): Likewise.
42788         * tests/test-memrchr.c (main): Likewise.
42789         * tests/test-mkdir.c (main): Likewise.
42790         * tests/test-mkdirat.c (main): Likewise.
42791         * tests/test-mkfifoat.c (main): Likewise.
42792         * tests/test-open.c (main): Likewise.
42793         * tests/test-openat-safer.c (main): Likewise.
42794         * tests/test-openat.c (main): Likewise.
42795         * tests/test-quotearg.c (main): Likewise.
42796         * tests/test-rawmemchr.c (main): Likewise.
42797         * tests/test-readlink.c (main): Likewise.
42798         * tests/test-remove.c (main): Likewise.
42799         * tests/test-rename.c (main): Likewise.
42800         * tests/test-renameat.c (main): Likewise.
42801         * tests/test-rmdir.c (main): Likewise.
42802         * tests/test-sha1.c (main): Likewise.
42803         * tests/test-signal.c (main): Likewise.
42804         * tests/test-sigaction.c (main): Likewise.
42805         * tests/test-stat.c (main): Likewise.
42806         * tests/test-stat-time.c (main): Likewise.
42807         * tests/test-stddef.c (main): Likewise.
42808         * tests/test-stdint.c (main): Likewise.
42809         * tests/test-stdio.c (main): Likewise.
42810         * tests/test-stdlib.c (main): Likewise.
42811         * tests/test-strchrnul.c (main): Likewise.
42812         * tests/test-strerror.c (main): Likewise.
42813         * tests/test-string.c (main): Likewise.
42814         * tests/test-strtod.c (main): Likewise.
42815         * tests/test-strverscmp.c (main): Likewise.
42816         * tests/test-symlink.c (main): Likewise.
42817         * tests/test-symlinkat.c (main): Likewise.
42818         * tests/test-sys_stat.c (main): Likewise.
42819         * tests/test-sys_time.c (main): Likewise.
42820         * tests/test-time.c (main): Likewise.
42821         * tests/test-unistd.c (main): Likewise.
42822         * tests/test-unlink.c (main): Likewise.
42823         * tests/test-unlinkat.c (main): Likewise.
42824         * tests/test-utimens.c (main): Likewise.
42825         * tests/test-utimensat.c (main): Likewise.
42826         * tests/test-version-etc.c (main): Likewise.
42827         * tests/test-wchar.c (main): Likewise.
42828         * tests/test-wctype.c (main): Likewise.
42829         * tests/test-xprintf-posix.c (main): Likewise.
42830         * tests/test-posixtm.c (main): Likewise.
42831         (STREQ): Delete unused macro.
42832         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
42833         shadowed variables.
42834         * tests/test-memchr.c (main): Likewise.
42835
42836 2009-10-21  Eric Blake  <ebb9@byu.net>
42837
42838         areadlinkat: avoid failure on older glibc
42839         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
42840         rather than mis-comparing 0 against FUNC_RESULT of char*.
42841
42842 2009-10-21  Bruno Haible  <bruno@clisp.org>
42843
42844         * modules/stpncpy (License): Relicense under LGPLv2+.
42845         Reported by David Lutterkort <lutter@redhat.com>.
42846
42847 2009-10-20  Eric Blake  <ebb9@byu.net>
42848
42849         utimensat: work around Solaris 9 bug
42850         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
42851         has trailing slash bugs.
42852         * tests/test-lutimens.h (test_lutimens): Enhance test.
42853         * tests/test-utimens.h (test_utimens): Likewise.
42854         * doc/posix-functions/utime.texi (utime): Enhance documentation.
42855         * doc/posix-functions/utimes.texi (utimes): Likewise.
42856         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42857         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
42858         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
42859         * doc/posix-functions/futimens.texi (futimens): Likewise.
42860
42861         fdutimensat: new module
42862         * modules/fdutimensat: New file.
42863         * lib/fdutimensat.c (fdutimensat): Likewise.
42864         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
42865         * MODULES.html.sh (File system functions): Mention module.
42866         * modules/fdutimensat-tests: New test.
42867         * tests/test-fdutimensat.c: Likewise.
42868
42869         doc: regenerate INSTALL
42870         * doc/INSTALL: Reflect recent autoconf update.
42871         * doc/INSTALL.ISO: Likewise.
42872         * doc/INSTALL.UTF-8: Likewise.
42873
42874 2009-10-20  Pádraig Brady  <P@draigBrady.com>
42875
42876         acl: warn if ACL support is not detected
42877         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
42878
42879 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
42880
42881         * lib/nproc.h: Add extern "C" block for C++.
42882
42883 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
42884             Bruno Haible  <bruno@clisp.org>
42885
42886         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
42887         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
42888         * doc/posix-functions/isalpha.texi: Likewise.
42889         * doc/posix-functions/isblank.texi: Likewise.
42890         * doc/posix-functions/iscntrl.texi: Likewise.
42891         * doc/posix-functions/isdigit.texi: Likewise.
42892         * doc/posix-functions/isgraph.texi: Likewise.
42893         * doc/posix-functions/islower.texi: Likewise.
42894         * doc/posix-functions/isprint.texi: Likewise.
42895         * doc/posix-functions/ispunct.texi: Likewise.
42896         * doc/posix-functions/isspace.texi: Likewise.
42897         * doc/posix-functions/isupper.texi: Likewise.
42898         * doc/posix-functions/isxdigit.texi: Likewise.
42899
42900 2009-10-18  Bruno Haible  <bruno@clisp.org>
42901
42902         Tests for module 'isblank'.
42903         * modules/isblank-tests: New file.
42904         * tests/test-isblank.c: New file.
42905
42906         New module 'isblank'.
42907         * lib/isblank.c: New file.
42908         * m4/isblank.m4: New file.
42909         * modules/isblank: New file.
42910         * doc/posix-functions/isblank.texi: Mention the new module.
42911
42912 2009-10-18  Bruno Haible  <bruno@clisp.org>
42913
42914         New module 'ctype'.
42915         * lib/ctype.in.h: New file.
42916         * m4/ctype.m4: New file.
42917         * modules/ctype: New file.
42918         * doc/posix-headers/ctype.texi: Mention the new module.
42919
42920 2009-10-18  Jim Meyering  <meyering@redhat.com>
42921
42922         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
42923         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
42924         right after its initialization, rather than farther down.
42925         Keeping these in close proximity makes it easier to ensure
42926         that each such variable is initialized.  E.g.,
42927
42928             LIB_CLOCK_GETTIME=
42929             AC_SUBST([LIB_CLOCK_GETTIME])
42930
42931         This change also increments these serial numbers.
42932         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
42933         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42934         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42935
42936 2009-10-18  Bruno Haible  <bruno@clisp.org>
42937
42938         Don't let environment variables perturb build.
42939         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
42940         (gl_PREREQ_GETHRXTIME): ... not here.
42941
42942 2009-10-18  Bruno Haible  <bruno@clisp.org>
42943
42944         Avoid symlink attack in localcharset module.
42945         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
42946         (O_NOFOLLOW): Define fallback.
42947         (get_charset_aliases): Don't open the file if it is a symbolic link.
42948         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
42949         gl_FCNTL_H.
42950         (gl_FCNTL_H): Require it.
42951         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
42952         * modules/localcharset (Files): Add m4/fcntl_h.m4.
42953         Reported by Fergal Glynn <fglynn@veracode.com>.
42954
42955 2009-10-18  Bruno Haible  <bruno@clisp.org>
42956
42957         Implement nproc for mingw.
42958         * lib/nproc.c: Include <windows.h>
42959         (num_processors): On native Windows platforms, try GetSystemInfo.
42960
42961 2009-10-18  Bruno Haible  <bruno@clisp.org>
42962
42963         Implement nproc for IRIX.
42964         * lib/nproc.c: Include <sys/sysmp.h>.
42965         (num_processors): On IRIX systems, try sysmp.
42966         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
42967
42968 2009-10-18  Bruno Haible  <bruno@clisp.org>
42969
42970         Implement nproc for HP-UX.
42971         * lib/nproc.c: Include <sys/pstat.h>
42972         (num_processors): On HP-UX systems, try pstat_getdynamic.
42973         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
42974         pstat_getdynamic.
42975
42976 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
42977             Bruno Haible  <bruno@clisp.org>
42978
42979         Implement nproc for NetBSD, OpenBSD.
42980         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
42981         (ARRAY_SIZE): New macro.
42982         (num_processors): On BSD systems, try sysctl of HW_NCPU.
42983         * m4/nproc.m4: New file.
42984         * modules/nproc (Files): Add m4/nproc.m4.
42985         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
42986         (Makefile.am): Instead, augment lib_SOURCES.
42987
42988 2009-10-18  Bruno Haible  <bruno@clisp.org>
42989
42990         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
42991         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
42992         sys/param.h.
42993
42994 2009-10-16  Eric Blake  <ebb9@byu.net>
42995
42996         utimensat: new module
42997         * modules/utimensat: New file.
42998         * lib/utimensat.c (utimensat): Likewise.
42999         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
43000         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
43001         so we can work around Linux bugs.
43002         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43003         * modules/sys_stat (Makefile.am): Substitute them.
43004         * lib/sys_stat.in.h (utimensat): Declare it.
43005         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43006         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43007         * modules/utimensat-tests: New test.
43008         * tests/test-utimensat.c: Likewise.
43009
43010         utimens: let lutimens work on non-symlinks
43011         * lib/utimens.c (lutimens): Fall back to utimens rather than
43012         failing with ENOSYS, when file is not a symlink.
43013         (utimens): Reduce redirection.
43014         * tests/test-lutimens.h (test_lutimens): Update test to cover
43015         non-symlinks.
43016         * tests/test-utimens.h (test_utimens): Update test to cover
43017         symlinks.
43018         * tests/test-utimens.c (main): Update caller.
43019
43020         utimens: cache whether utimensat syscall works
43021         * lib/utimens.c (utimensat_works_really): New cache variable.
43022         (fdutimens, lutimens): Use it to avoid failing syscall.
43023
43024         test-stat-time, test-utimens: improve portability
43025         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
43026         ext4 on alpha, and for cygwin.
43027         * tests/test-utimens-common.h: New file.
43028         (nap): Factor delays into single function.
43029         * tests/test-lutimens.h (test_lutimens): Use new header.
43030         * tests/test-futimens.h (test_futimens): Likewise.
43031         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
43032         timestamps to occur from same machine, as was done previously for
43033         test_utimens.
43034         * modules/utimens-tests (Files): Ship new file.
43035         * modules/futimens-tests (Files): Likewise.
43036         Reported in part by Jim Meyering.
43037
43038         sys_stat: sort replacement declarations
43039         * lib/sys_stat.in.h: Sort declarations.
43040         * lib/futimens.c (futimens): Fix typo.
43041
43042 2009-10-15  Jim Meyering  <meyering@redhat.com>
43043
43044         don't let environment settings perturb build
43045         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
43046         could cause a configure-time and/or build-time malfunction.
43047         Typically, a configure-time function-in-library test is performed
43048         via code like this:
43049
43050           LIB_VAR=
43051           AC_SUBST([LIB_VAR])
43052           prefix_saved_LIBS=$LIBS
43053             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
43054                        [test "$ac_cv_search_FUNC" = "none required" ||
43055                         LIB_VAR=$ac_cv_search_FUNC])
43056           LIBS=$prefix_saved_LIBS
43057
43058         However, in each of the files affected by this change, the LIB_VAR=
43059         initialization was omitted.  Thus, when set in the environment, its
43060         value would propagate into generated Makefiles when FUNC is not found
43061         in LIB_NAME.
43062         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
43063         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43064         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43065
43066 2009-10-14  Eric Blake  <ebb9@byu.net>
43067
43068         fchdir: avoid infinite recursion in mingw
43069         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
43070         recursing.
43071
43072         test-stat-time: port to mingw
43073         * tests/test-stat-time.c (force_unlink): Return a value.
43074         (test_ctime) [W32]: Fix compilation error.
43075         (nap): Don't call usleep with too large an argument.  Use
43076         force_unlink.
43077         * doc/pastposix-functions/usleep.texi (usleep): Document the
43078         portability issue.
43079
43080 2009-10-13  Jim Meyering  <meyering@redhat.com>
43081
43082         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
43083         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
43084         * modules/pipe-filter-ii: Likewise.
43085         * modules/sys_socket-tests: Likewise.
43086         * modules/tsearch-tests: Likewise.
43087         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
43088         (check): Depend on it.
43089
43090 2009-10-12  Eric Blake  <ebb9@byu.net>
43091
43092         utimens-tests: port to NFS file systems
43093         * tests/test-utimens.h (test_utimens): Refactor utimecmp
43094         comparisons to avoid spurious failures from timestamp drift
43095         between NFS machines.
43096
43097 2009-10-12  Eric Blake  <ebb9@byu.net>
43098
43099         stat-time-tests: minor cleanups
43100         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
43101         * tests/test-stat-time.c (nap): Separate assignment from call.
43102         Suggested by Paolo Bonzini and Bruno Haible.
43103
43104         sys_stat: guarantee struct timespec
43105         * lib/sys_stat.in.h (includes): Always include <time.h>
43106         * modules/sys_stat (Depends-on): Add time.
43107         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
43108         mode_t permission values.
43109         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
43110         get at subsecond timestamps.
43111
43112 2009-10-10  Eric Blake  <ebb9@byu.net>
43113
43114         futimens: new module
43115         * modules/futimens: New file.
43116         * lib/futimens.c (futimens): Likewise.
43117         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
43118         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
43119         we can work around Linux bugs.
43120         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43121         * modules/sys_stat (Makefile.am): Substitute them.
43122         * lib/sys_stat.in.h (futimens): Declare it.
43123         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43124         * doc/posix-functions/futimens.texi (futimens): Likewise.
43125         * modules/futimens-tests: New test.
43126         * tests/test-futimens.c: Likewise.
43127
43128         utimens: introduce fdutimens
43129         * lib/utimens.h (fdutimens): New prototype.
43130         * lib/utimens.c (gl_futimens): Move guts...
43131         (fdutimens): ...to new interface.
43132         * tests/test-utimens.c (do_fdutimens): Use it.
43133
43134         utimens: add UTIME_NOW and UTIME_OMIT support
43135         * lib/utimens.c (validate_timespec, update_timespec): New helper
43136         functions.
43137         (gl_futimens, lutimens): Use them.
43138         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
43139         stdbool, sys_stat.
43140         (Link): Mention resulting library dependency.
43141         * modules/utimecmp (Link): Likewise.
43142         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
43143         (Makefile.am): Pick up library dependency.
43144         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
43145         definition.
43146         * tests/test-sys_stat.c: Test the definitions.
43147         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
43148         * NEWS: Document library dependency.
43149
43150         utimecmp: support symlink timestamps
43151         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
43152         hashing when possible.  Use pathconf when available.
43153         (SYSCALL_RESOLUTION): Recognize tighter resolution.
43154         * modules/utimecmp (Depends-on): Add lstat.
43155
43156         utimens: add lutimens interface
43157         * lib/utimens.c (lutimens): New function.
43158         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
43159         * lib/utimens.h (lutimens): Declare new interface.
43160         * tests/test-utimens.c (main): Enhance test.
43161         * tests/test-lutimens.h (test_lutimens): New file.
43162         * modules/utimens-tests (Files): Distribute it.
43163         (Depends-on): Add symlink.
43164         (configure.ac): Check for usleep.
43165
43166         utimens: validate futimens usage
43167         * lib/utimens.c (gl_futimens): Require valid fd up front, using
43168         fewer syscalls on failure later on.  Avoid compiler warning on
43169         mingw.
43170         * modules/utimens (Depends-on): Add dup2.
43171
43172         utimens: add test
43173         * modules/utimens-tests: New test.
43174         * tests/test-utimens.h: New file.
43175         * tests/test-futimens.h: Likewise.
43176         * tests/test-utimens.c: Likewise.
43177
43178         doc: mention timestamp portability issues
43179         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
43180         instead.
43181         * doc/posix-functions/utime.texi (utime): Likewise.
43182         * doc/posix-functions/utimes.texi (utimes): Likewise.
43183         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
43184         instead.
43185         * doc/posix-functions/futimens.texi (futimens): Mention utimens
43186         module.
43187         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43188         Mention weakness with symlink timestamps.
43189         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
43190         to utimensat/futimens instead.
43191         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
43192
43193         test-dup2: enhance test
43194         * tests/test-dup2.c (main): Also check AT_FDCWD.
43195
43196         test-stat-time: avoid more spurious failures
43197         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
43198         xfs; and avoid race if the two timestamps cross quantization edge.
43199
43200         relocatable: prefer 'file system' over 'filesystem'
43201         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
43202         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
43203         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
43204         * doc/relocatable.texi (Enabling Relocatability): Likewise.
43205         * lib/relocatable.c (compute_curr_prefix): Likewise.
43206
43207 2009-10-10  Jim Meyering  <meyering@redhat.com>
43208
43209         stat-time-tests: check for the usleep function
43210         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
43211
43212 2009-10-10  Bruno Haible  <bruno@clisp.org>
43213
43214         * modules/xnanosleep: Put the Link section after the Include section.
43215
43216 2009-10-09  Eric Blake  <ebb9@byu.net>
43217
43218         dup2: work around FreeBSD 6.1 bug
43219         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
43220         * doc/posix-functions/dup2.texi (dup2): Document it.
43221         Reported by Nelson H. F. Beebe and Jim Meyering.
43222
43223         test-stat-time: port to buggy NFS clients
43224         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
43225         (test_ctime): Also skip test if mtime and ctime are skewed.
43226
43227         maint: prefer 'file system' over 'filesystem'
43228         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43229         * doc/posix-functions/lstat.texi (lstat): Likewise.
43230         * lib/file-has-acl.c (file_has_acl): Likewise.
43231         * lib/fwriteerror.c [TEST]: Likewise.
43232         * tests/test-areadlink.h (test_areadlink): Likewise.
43233         * tests/test-areadlinkat-with-size.c (main): Likewise.
43234         * tests/test-areadlinkat.c (main): Likewise.
43235         * tests/test-canonicalize-lgpl.c (main): Likewise.
43236         * tests/test-canonicalize.c (main): Likewise.
43237         * tests/test-fstatat.c (main): Likewise.
43238         * tests/test-linkat.c (main): Likewise.
43239         * tests/test-lstat.h (test_lstat_func): Likewise.
43240         * tests/test-mkdir.h (test_mkdir): Likewise.
43241         * tests/test-readlink.h (test_readlink): Likewise.
43242         * tests/test-remove.c (main): Likewise.
43243         * tests/test-rename.h (test_rename): Likewise.
43244         * tests/test-renameat.c (main): Likewise.
43245         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43246         * tests/test-symlink.h (test_symlink): Likewise.
43247         * tests/test-symlinkat.c (main): Likewise.
43248         * tests/test-unlink.h (test_unlink_func): Likewise.
43249         * tests/test-unlinkat.c (main): Likewise.
43250
43251         maint: make realtime library usage explicit
43252         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
43253         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
43254         * modules/settime (Link): Likewise.
43255         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
43256
43257         test-stat-time: speed up execution
43258         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
43259         warning on mingw.
43260         (nap): New helper function.
43261         (prepare_test): Use it to reduce sleep time.
43262         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
43263         execution.
43264         * modules/stat-time-tests (configure.ac): Check for usleep.
43265
43266 2009-10-09  Jim Meyering  <meyering@redhat.com>
43267
43268         selinux-h: always use getfilecon wrappers
43269         * lib/getfilecon.c: New file.
43270         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
43271         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
43272         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
43273         (fgetfilecon): Provide a stub.
43274         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
43275         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
43276         file unconditionally.
43277         When <selinux/selinux.h> is found, arrange to use wrappers.
43278         * modules/selinux-h (Files): Add getfilecon.c.
43279         (Makefile.am): Substitute include-next-related bits
43280         into the now-always-generated selinux/selinux.h file.
43281         * doc/glibc-functions/lgetfilecon.texi: New file.
43282         * doc/glibc-functions/fgetfilecon.texi: New file.
43283         * doc/glibc-functions/getfilecon.texi: New file.
43284         * doc/glibc-functions/getfilecon-desc.texi: New file.
43285         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
43286         which to pull in the new files.
43287         * MODULES.html.sh (Misc): Add selinux-h.
43288
43289 2009-10-08  Jim Meyering  <meyering@redhat.com>
43290
43291         unistd: fix comment typo
43292         * lib/unistd.in.h (euidaccess): Fix a comment typo.
43293
43294 2009-10-08  Eric Blake  <ebb9@byu.net>
43295
43296         areadlink: use SIZE_MAX consistently
43297         * modules/areadlink (Depends-on): Add stdint.
43298         * modules/areadlink-with-size (Depends-on): Likewise.
43299         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
43300         gives NULL; drop sys/types, since unistd gives size_t; and add
43301         stdint for SIZE_MAX.
43302         (SIZE_MAX): Rely on headers.
43303         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
43304         and add stdint.
43305         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
43306         (SIZE_MAX): Likewise.
43307         (INITIAL_BUF_SIZE): Turn into enum.
43308         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
43309
43310 2009-10-08  Jim Meyering  <meyering@redhat.com>
43311
43312         areadlinkat: avoid compilation failure
43313         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
43314         Fix typo in comment.
43315
43316 2009-10-07  Eric Blake  <ebb9@byu.net>
43317
43318         areadlinkat-with-size: new module
43319         * modules/areadlinkat-with-size: New module.
43320         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
43321         * lib/areadlink.h (areadlinkat): Declare it.
43322         * MODULES.html.sh (File system functions): Mention it.
43323         * modules/areadlinkat-with-size-tests: New test.
43324         * tests/test-areadlinkat-with-size.c: New file.
43325
43326         xreadlinkat: new module
43327         * modules/xreadlinkat: New module.
43328         * lib/xreadlinkat.c (xreadlinkat): New file.
43329         * lib/xreadlink.h (xreadlinkat): Declare it.
43330         * MODULES.html.sh (File system functions): Mention it.
43331
43332         areadlinkat: new module
43333         * lib/at-func.c (FUNC_FAIL): New define.
43334         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
43335         * modules/areadlinkat: New module.
43336         * lib/linkat.c (areadlinkat): Move...
43337         * lib/areadlinkat.c (areadlinkat): ...to new file.
43338         * lib/areadlink.h (areadlinkat): Declare it.
43339         * modules/linkat (Depends-on): Add areadlinkat.
43340         * MODULES.html.sh (File system functions): Mention it.
43341         * modules/areadlinkat-tests: New test.
43342         * tests/test-areadlinkat.c: New file.
43343
43344         areadlink, areadlink-with-size: add tests
43345         * modules/areadlink-tests: New test.
43346         * modules/areadlink-with-size-tests: Likewise.
43347         * tests/test-areadlink.h: New file.
43348         * tests/test-areadlink.c: Likewise.
43349         * tests/test-areadlink-with-size.c: Likewise.
43350
43351         maint: minor cleanups
43352         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
43353         _UNUSED_PARAMETER_ instead.
43354         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
43355         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
43356         * modules/linkat-tests (Files): Distribute test-link.h.
43357
43358         openat, utimens: whitespace cleanup
43359         * lib/openat.c: Prefer space throughout, rather than mix of 8
43360         spaces vs. tabs.
43361         * lib/at-func.c: Likewise.
43362         * lib/utimens.c: Likewise.
43363
43364         openat: avoid using wrong fd
43365         * lib/openat.c (openat_permissive): Reject user's fd if saving the
43366         working directory chooses same fd.
43367         * lib/at-func.c (AT_FUNC_NAME): Likewise.
43368
43369         mkdir, mkdirat: fix cygwin 1.5.x bug
43370         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
43371         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
43372         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
43373         bug.
43374         (gl_PREREQ_MKDIR): Delete unused macro.
43375         * modules/mkdir (Files): Track file rename.
43376         (configure.ac): Update macro name.
43377         * modules/openat (Depends-on): Add mkdir.
43378         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
43379
43380         mkdir, mkdirat: add tests
43381         * modules/mkdir-tests: New test.
43382         * tests/test-mkdir.h: New file.
43383         * tests/test-mkdir.c: Likewise.
43384         * tests/test-mkdirat.c: Likewise.
43385         * modules/openat-tests (Files): Add new files.
43386         (Makefile.am): Run new test.
43387
43388 2009-10-06  Eric Blake  <ebb9@byu.net>
43389
43390         doc: tweak *at function documentation
43391         * doc/posix-functions/faccessat.texi (faccessat): Mention
43392         known issue with replacement.
43393         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
43394         * doc/posix-functions/linkat.texi (linkat): Likewise.
43395         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
43396         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
43397         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43398         * doc/posix-functions/renameat.texi (renameat): Likewise.
43399         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
43400
43401         openat: fix GNU/Hurd bug in unlinkat
43402         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
43403         broken.
43404         * doc/posix-functions/unlink.texi (unlink): Document this.
43405         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
43406
43407         fdopendir: fix GNU/Hurd bug
43408         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
43409         allowing non-directory fds.
43410         * lib/fdopendir.c (rpl_fdopendir): Work around it.
43411         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
43412         * modules/dirent (Makefile.am): Substitute it.
43413         * lib/dirent.in.h (fdopendir): Declare replacement.
43414         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
43415         * tests/test-fdopendir.c (main): Test something other than
43416         /dev/null, since on Hurd that behaves like a directory.
43417
43418         test-symlink: port to GNU/Hurd
43419         * tests/test-symlink.h (test_symlink): Relax expected errno.
43420
43421         doc: tweak more cygwin information
43422         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
43423         now compatible with glibc.
43424         * doc/posix-functions/getopt.texi (getopt): Likewise.
43425
43426         getopt-gnu: add another test
43427         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
43428         guarantee behavior relied on by m4.
43429         * tests/test-getopt.c (main): Use it.
43430         * modules/getopt-posix-tests (Depends-on): Add setenv.
43431         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
43432
43433         getopt: fix compilation on darwin
43434         * lib/getopt.in.h (includes): Leave breadcrumbs during system
43435         include.
43436         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
43437         Reported by Ludovic Courtès.
43438
43439 2009-10-06  Bruno Haible  <bruno@clisp.org>
43440
43441         * modules/size_max (Description): Discourage its use.
43442         Reported by Simon Josefsson.
43443
43444 2009-10-06  Jim Meyering  <meyering@redhat.com>
43445
43446         linkat: avoid compilation failure
43447         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
43448
43449 2009-10-05  Eric Blake  <ebb9@byu.net>
43450
43451         linkat: support Linux 2.6.17
43452         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
43453         linkat on Linux, but allow cache variable override.
43454         * lib/linkat.c (rpl_linkat): Define override.
43455         * modules/linkat (Depends-on): Add symlinkat.
43456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
43457         * modules/unistd (Makefile.am): Substitute it.
43458         * lib/unistd.in.h (linkat): Declare replacement.
43459         Reported by Pádraig Brady.
43460
43461         quotearg: port test to systems with C.UTF-8 locale
43462         * tests/test-quotearg.c (struct result_strings): Add another
43463         member, differentiating between C.ASCII and C.UTF-8 handling.
43464         (compare_strings): Add parameter.
43465         (main): Adjust all callers.
43466
43467         getopt: avoid clash with FreeBSD _getopt_internal
43468         * lib/getopt.in.h (_getopt_internal): Override the name.
43469         * lib/getopt_int.h (includes): Pick up any overrides.
43470         Reported by Reuben Thomas.
43471
43472         hash: allow C89 compilation
43473         * lib/hash.c (check_tuning): Move declaration before statement.
43474         Reported by Reuben Thomas.
43475
43476 2009-10-05  Karl Berry  <karl@gnu.org>
43477
43478         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
43479
43480 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
43481             Bruno Haible  <bruno@clisp.org>
43482
43483         * lib/uname.c (uname): Use a table-driven algorithm to compute
43484         Windows NT versions.
43485
43486 2009-10-04  Bruno Haible  <bruno@clisp.org>
43487
43488         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
43489         program_invocation_short_name.
43490         * modules/progname (configure.ac): Test for presence of
43491         program_invocation_short_name.
43492         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43493
43494 2009-10-04  Bruno Haible  <bruno@clisp.org>
43495
43496         * lib/progname.c (set_program_name): Fix comment.
43497         Reported by Jim Meyering.
43498
43499 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43500             Bruno Haible  <bruno@clisp.org>
43501
43502         * lib/uname.c: Include <string.h>.
43503         (uname): Do only one call to GetVersionEx in the common case.
43504
43505 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43506             Bruno Haible  <bruno@clisp.org>
43507
43508         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
43509         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
43510         (uname): Add support for Windows CE and various non-x86 CPU types.
43511
43512 2009-10-03  Bruno Haible  <bruno@clisp.org>
43513
43514         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
43515         invocation to tests/configure.ac.
43516         Reported by Ian Beckwith <ianb@erislabs.net>.
43517
43518 2009-10-02  Eric Blake  <ebb9@byu.net>
43519
43520         fchdir: avoid compiler warning
43521         * lib/fchdir.c (canonicalize_file_name)
43522         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
43523
43524         test-open: support mingw errno values
43525         * tests/test-open.h (test_open): Relax test.
43526         * tests/test-fopen.h (test_fopen): Likewise.
43527         * tests/test-openat-safer.c (main): Likewise.
43528
43529         open: fix opening directory on mingw
43530         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
43531
43532         test-open: on GNU/Hurd, /dev/null is a directory
43533         * tests/test-fopen.h (main): Rename...
43534         (test_fopen): ...to this.  Use a guaranteed non-directory when
43535         confirming open behavior on trailing slash.
43536         * tests/test-openat-safer.c (main): Likewise.
43537         * tests/test-open.h (main): Likewise....
43538         (test_open): ...to this.
43539         * tests/test-fopen.c (main): Adjust caller.
43540         * tests/test-fopen-safer.c (main): Likewise.
43541         * tests/test-open.c (main): Likewise.
43542         * tests/test-fcntl-safer.c (main): Likewise.
43543         Reported by Samuel Thibault.
43544
43545         rename, fchdir: don't ignore chdir failure
43546         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
43547         * lib/rename.c (rpl_rename) [W32]: Likewise.
43548         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
43549         an empty destination directory if source cannot be renamed,
43550         although there is still possibility for failure.
43551         * doc/posix-functions/rename.texi (rename): Document the race.
43552         Reported by Jim Meyering.
43553
43554         maint: cleanup whitespace in recent commits
43555         * lib/rename.c (rpl_rename): Remove tabs.
43556         * tests/test-link.h (test_link): Likewise.
43557         * lib/fchdir.c (get_name): Likewise.
43558         Reported by Jim Meyering.
43559
43560 2009-10-02  Ben Pfaff  <blp@gnu.org>
43561
43562         relocatable-prog-wrapper: Add missing dependency on
43563         double-slash-root.
43564         * modules/relocatable-prog-wrapper: Add dependency.
43565         Reported by Ian Beckwith <ianb@erislabs.net>.
43566
43567 2009-10-02  Eric Blake  <ebb9@byu.net>
43568
43569         renameat: fix Solaris bugs
43570         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
43571         needed fixing.
43572         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
43573         * modules/stdio (Makefile.am): Substitute it.
43574         * lib/stdio.in.h (renameat): Declare replacement.
43575         * lib/renameat.c (rpl_renameat): Implement fix.
43576
43577         renameat: new module
43578         * modules/renameat: New file.
43579         * lib/renameat.c (renameat): Likewise.
43580         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
43581         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43582         * modules/stdio (Makefile.am): Substitute them.
43583         * lib/stdio.in.h (renameat): Declare it.
43584         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43585         * doc/posix-functions/renameat.texi (renameat): Likewise.
43586         * modules/renameat-tests: New test.
43587         * tests/test-renameat.c: Likewise.
43588
43589         rename: fix mingw bugs
43590         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
43591         directory overwrite bugs.
43592
43593         rename: fix another cygwin 1.5 bug
43594         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
43595         checks.
43596         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
43597         unnecessary cygwin workarounds.  Also work around bug with moving
43598         full directory onto an empty one.
43599         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
43600
43601         rename-dest-slash: merge into rename module
43602         * modules/rename-dest-slash (Status): Mark obsolete.
43603         (Depends-on): Add rename.
43604         (Files): Let rename do it all.
43605         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
43606         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
43607         * m4/rename-dest-slash.m4: ...so this file can be deleted.
43608         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
43609         * lib/rename.c (rpl_rename): Update comments.
43610
43611         rename: fix cygwin 1.5.x bugs
43612         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
43613         * lib/rename.c (rpl_rename): Work around them.
43614         * modules/rename (Depends-on): Add same-inode.
43615
43616         rename: fix Solaris 10 bug
43617         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43618         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
43619         was the only bug.
43620
43621         rename: fix Solaris 9 bug
43622         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
43623         on non-directory.  Avoid calling exit.
43624         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
43625         strdup.
43626         * modules/rename-tests (Depends-on): Drop lstat.
43627         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43628         (gl_PREREQ_RENAME): Delete unused macro.
43629
43630         rename-dest-slash: fix NetBSD bug
43631         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
43632         links.
43633         * modules/rename-dest-slash (Depends-on): Add same-inode.
43634
43635         rename-tests: new test, exposes several platform bugs
43636         * modules/rename-tests: New file.
43637         * tests/test-rename.h: Likewise.
43638         * tests/test-rename.c: Likewise.
43639         * doc/posix-functions/rename.texi (rename): Improve documentation,
43640         including bugs that will eventually be fixed in gnulib.
43641
43642 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
43643
43644         * lib/uname.c: Include <stdlib.h>
43645         (uname): Assume version info is available.
43646
43647 2009-10-02  Jim Meyering  <meyering@redhat.com>
43648
43649         gnu-web-doc-update: correct --help output
43650         * build-aux/gnu-web-doc-update: Make --help output relevant.
43651
43652         gnu-web-doc-update: add standard options
43653         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
43654
43655         gnu-web-doc-update: New module.
43656         Use this script to automatically update the on-line web documentation
43657         for your GNU project at http://www.gnu.org/software/$pkg/manual/
43658         * modules/gnu-web-doc-update: New file, from coreutils.
43659         * build-aux/gnu-web-doc-update: New script.
43660
43661 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
43662
43663         link: LoadLibrary is not needed.
43664         * lib/link.c: Use GetModuleHandle.
43665
43666 2009-10-01  Eric Blake  <ebb9@byu.net>
43667
43668         getopt: bump serial number
43669         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
43670         change.
43671
43672         tests: tighten link, rmdir, and remove tests
43673         * tests/test-link.h (includes): No need to use <config.h> here.
43674         Clean up if directory hard link was created, otherwise test for
43675         trailing '.'.
43676         * tests/test-linkat.c (main): Simplify.
43677         * tests/test-remove.c (main): Enhance test for trailing '.'.
43678         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43679
43680 2009-10-01  Jim Meyering  <meyering@redhat.com>
43681
43682         maint.mk: requiring "make major" was annoying, for a "minor" release.
43683         What is intended is "stable", to contrast with alpha and beta,
43684         so require "make stable", not "make major".
43685         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
43686         (get_tool_versions): Likewise.
43687         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
43688
43689 2009-09-30  Ben Pfaff  <blp@gnu.org>
43690
43691         Fix broken build of replacement for Windows tmpfile().
43692         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
43693         flags argument added along with the 'mkostemp' module.
43694
43695 2009-09-28  Bruno Haible  <bruno@clisp.org>
43696
43697         Avoid identifier clash with POSIX function 'remove' defined as a macro.
43698         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
43699         to 'remove_elt'.
43700         (gl_list_remove): Update.
43701         * lib/gl_list.c (gl_list_remove): Update.
43702         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
43703         to 'remove_elt'.
43704         (gl_oset_remove): Update.
43705         * lib/gl_list.c (gl_oset_remove): Update.
43706         Reported by Eric Blake.
43707
43708 2009-09-28  Eric Blake  <ebb9@byu.net>
43709
43710         doc: mention yet more cygwin 1.7 status
43711         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
43712         cygwin.
43713         * doc/glibc-functions/execvpe.texi (execvpe): New file.
43714         * doc/gnulib.texi (Glibc unistd.h): Mention it.
43715
43716         argp: fix test failure
43717         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
43718         that are not upper-case.  Pass correct range to tolower.
43719
43720 2009-09-27  Jim Meyering  <meyering@redhat.com>
43721
43722         test-yesno: work around sparc-dash here-document infelicity
43723         Without this change, the literal \177 byte in a here document
43724         would make dash 0.5.5.1-3 access uninitialized memory.
43725         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
43726         Instead, use a marker, "@", and filter through tr to create the desired
43727         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
43728
43729 2009-09-27  Bruno Haible  <bruno@clisp.org>
43730
43731         Disable untested support for new flavours of ACLs on AIX.
43732         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
43733         progress.
43734         * lib/set-mode-acl.c (qset_acl): Likewise.
43735
43736 2008-12-07  Bruno Haible  <bruno@clisp.org>
43737
43738         Add support for new flavours of ACLs on AIX. (Untested.)
43739         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
43740         (file_has_acl): Add support for newer AIX.
43741         * lib/set-mode-acl.c (qset_acl): Likewise.
43742         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
43743         Rainer Tammer <tammer@tammer.net>.
43744
43745 2009-09-26  Eric Blake  <ebb9@byu.net>
43746
43747         argp: fix compilation of getopt
43748         * lib/getopt.in.h (includes): Use different guard than glibc.
43749         Reported by Sergey Poznyakoff.
43750
43751         doc: mention more cygwin 1.7 status
43752         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
43753         bug.
43754         * doc/posix-functions/execl.texi (execl): Likewise.
43755         * doc/posix-functions/execle.texi (execle): Likewise.
43756         * doc/posix-functions/execlp.texi (execlp): Likewise.
43757         * doc/posix-functions/execv.texi (execv): Likewise.
43758         * doc/posix-functions/execve.texi (execve): Likewise.
43759         * doc/posix-functions/execvp.texi (execvp): Likewise.
43760         * doc/glibc-functions/canonicalize_file_name.texi
43761         (canonicalize_file_name): Cygwin 1.7 now provides this.
43762         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
43763         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
43764         on AT_SYMLINK_NOFOLLOW.
43765
43766 2009-09-24  Eric Blake  <ebb9@byu.net>
43767
43768         test-linkat: make test more robust
43769         * tests/test-linkat.c (main): Avoid collision with EEXIST.
43770
43771         getopt: fix inclusion guards for cygwin
43772         * modules/getopt-posix (Depends-on): Add include-next.
43773         (Makefile.am): Substitute more items in replacement header.
43774         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
43775         <getopt.h>.
43776         * lib/getopt.in.h (includes): Use split inclusion guard, and
43777         prefer <getopt.h> over include <unistd.h> when one is present.
43778         (option): Also override name of 'struct option'.
43779
43780         same-inode: revert prior change; it is not yet ready
43781         * NEWS: Undo mention of this change.
43782         * lib/same-inode.h (same-inode.h): Undo tri-state change.
43783         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43784         * lib/cycle-check.c (cycle_check): Likewise.
43785         * lib/same.c (same_name): Likewise.
43786         * lib/at-func2.c (at_func2): Likewise.
43787
43788 2009-09-23  Eric Blake  <ebb9@byu.net>
43789
43790         linkat: new module
43791         * modules/linkat: New file.
43792         * lib/at-func2.c (at_func2): Likewise.
43793         * lib/linkat.c (linkat): Likewise.
43794         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
43795         * lib/openat-priv.h (at_func2): Add declaration.
43796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43797         * modules/unistd (Makefile.am): Substitute them.
43798         * lib/unistd.in.h (linkat): Declare it.
43799         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43800         * doc/posix-functions/linkat.texi (linkat): Likewise.
43801         * doc/posix-functions/link.texi (link): Tweak wording.
43802         * tests/test-link.c (main): Move guts...
43803         * tests/test-link.h (test_link): ...into new file.
43804         * modules/linkat-tests: New test.
43805         * tests/test-linkat.c: Likewise.
43806         * modules/link-tests (Files): Ship new file.
43807         (Depends-on): Add stdbool.
43808
43809         dirname: add library-safe mdir_name
43810         * lib/dirname.h (mdir_name): New prototype.
43811         * lib/dirname.c (dir_name): Move guts...
43812         (mdir_name): ...to new function that avoids xalloc_die.
43813
43814         fchdir: another mingw fix
43815         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
43816         * lib/fchdir.c (get_name): New helper method; skips canonicalize
43817         on mingw (where it has not yet been ported), and make it optional
43818         elsewhere.
43819         (_gl_register_fd): Use it.
43820
43821         same-inode: make SAME_INODE tri-state, to port to mingw
43822         * NEWS: Mention this change.
43823         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
43824         st_ino always being 0.
43825         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43826         * lib/cycle-check.c (cycle_check): Likewise.
43827         * lib/same.c (same_name): Likewise.
43828
43829         lstat: avoid mingw compilation error
43830         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
43831         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
43832         lstat ourselves.
43833         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
43834         was adequate.
43835         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
43836         the checks for lstat.
43837         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
43838
43839         link: fix test failure on Solaris 9
43840         * lib/link.c (rpl_link): Don't assume link will catch bogus
43841         trailing slash on source.
43842
43843         test-symlinkat: enhance test
43844         * tests/test-readlink.c (main): Move guts...
43845         * tests/test-readlink.h (test_readlink): ...into new file.
43846         * tests/test-symlink.c (main): Move guts...
43847         * tests/test-symlink.h (test_symlink): ...into new file.
43848         * tests/test-symlinkat.c (main): Use new files for further
43849         coverage.
43850         (do_symlink, do_readlink): New helper functions.
43851         * modules/symlink-tests (Files): Ship new file.
43852         (Depends-on): Add stdbool.
43853         * modules/readlink-tests (Files): Ship new file.
43854         (Depends-on): Add stdbool.
43855         * modules/symlinkat-tests (Files): Use new files.
43856
43857 2009-09-23  Eric Blake  <ebb9@byu.net>
43858
43859         readlink: document portability issue with symlink length
43860         * doc/posix-functions/lstat.texi (lstat): Mention that some file
43861         systems have bogus st_size on symlinks, and mention the
43862         areadlink-with-size module.
43863         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43864         * doc/posix-functions/readlink.texi (readlink): Mention the
43865         areadlink module, and ERANGE failure.
43866         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43867         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
43868
43869         readlink: fix Solaris 9 bug with trailing slash
43870         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
43871         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
43872         * doc/posix-functions/readlink.texi (readlink): Document this.
43873         * modules/readlink-tests: New test.
43874         * tests/test-readlink.c: Likewise.
43875
43876         readlink: fix cygwin 1.5.x bug with return type
43877         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
43878         * lib/unistd.in.h (readlink): Use ssize_t.
43879         * lib/readlink.c (readlink): Likewise.
43880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43881         * modules/unistd (Makefile.am): Substitute it.
43882         * lib/unistd.in.h (readlink): Declare replacement.
43883         * doc/posix-functions/readlink.texi (readlink): Document this.
43884
43885         symlink: use throughout gnulib
43886         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
43887         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
43888         symlink is not used.
43889         * modules/symlinkat (Depends-on): Add symlink.
43890         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43891         * modules/canonicalize-tests (Depends-on): Likewise.
43892         * modules/lstat-tests (Depends-on): Likewise.
43893         * modules/openat-tests (Depends-on): Likewise.
43894         * modules/remove-tests (Depends-on): Likewise.
43895         * modules/rmdir-tests (Depends-on): Likewise.
43896         * modules/unlink-tests (Depends-on): Likewise.
43897         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
43898         * tests/test-canonicalize.c (symlink): Likewise.
43899         * tests/test-fstatat.c (symlink): Likewise.
43900         * tests/test-lstat.c (symlink): Likewise.
43901         * tests/test-remove.c (symlink): Likewise.
43902         * tests/test-rmdir.c (symlink): Likewise.
43903         * tests/test-unlink.c (symlink): Likewise.
43904         * tests/test-unlinkat.c (symlink): Likewise.
43905
43906         symlink: new module, for Solaris 9 bug
43907         * modules/symlink: New file.
43908         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
43909         * lib/symlink.c: Likewise.
43910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43911         * modules/unistd (Makefile.am): Substitute them.
43912         * lib/unistd.in.h (symlink): Declare replacement.
43913         * MODULES.html.sh (File system functions): Mention it.
43914         * doc/posix-functions/symlink.texi (symlink): Likewise.
43915         * modules/symlink-tests: New test.
43916         * tests/test-symlink.c: Likewise.
43917
43918 2009-09-23  Bruno Haible  <bruno@clisp.org>
43919
43920         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
43921         when needed.
43922         Test case: gnulib-tool --import --with-tests atexit inttypes.
43923         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
43924
43925 2009-09-23  Bruno Haible  <bruno@clisp.org>
43926
43927         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
43928         subcommand, not in a subshell.
43929
43930 2009-09-22  Eric Blake  <ebb9@byu.net>
43931
43932         unistd: sort replacement declarations
43933         * lib/unistd.in.h: Sort declarations.
43934
43935         open, openat: minor optimization
43936         * lib/open.c (open): If open succeeded, len is non-zero.
43937         * lib/openat.c (rpl_openat): Likewise.
43938
43939         link-follow: ensure correct result
43940         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
43941         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
43942         distinguish between possible failures.
43943
43944 2009-09-21  Eric Blake  <ebb9@byu.net>
43945
43946         fts: avoid compiler warning
43947         * lib/fts.c (dirent_inode_sort_may_be_useful)
43948         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
43949
43950 2009-09-19  Bruno Haible  <bruno@clisp.org>
43951
43952         * lib/progreloc.c (canonicalize_file_name): New declaration.
43953
43954 2009-09-19  Eric Blake  <ebb9@byu.net>
43955
43956         link: fix quoting
43957         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
43958
43959         openat: fix openat bugs on Solaris 9
43960         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
43961         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
43962         * modules/openat (Depends-on): Add open.
43963         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
43964         * modules/fcntl-h (Makefile.am): Substitute it.
43965         * lib/fcntl.in.h (openat): Declare replacement.
43966         * doc/posix-functions/openat.texi (openat): Document this.
43967
43968         openat: move fstatat and unlinkat into correct files
43969         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
43970         compiled.
43971         * lib/openat.c (fstatat, unlinkat): Move...
43972         * lib/fstatat.c (fstatat): ...into correct files.
43973         * lib/unlinkat.c (unlinkat): Likewise.
43974
43975         openat: fix unlinkat bugs on Solaris 9
43976         * lib/unlinkat.c (unlinkat): New file.
43977         * modules/openat (Depends-on): Add unlink.
43978         (Files): Distribute it.
43979         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
43980         trailing slash behavior is broken.
43981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43982         * modules/unistd (Makefile.am): Substitute it.
43983         * lib/unistd.in.h (unlinkat): Declare replacement.
43984         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
43985
43986         openat: fix fstatat bugs on Solaris 9
43987         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
43988         stat.
43989         * doc/posix-functions/fstatat.texi (fstatat): Document this.
43990
43991         test-unlinkat: enhance test, to expose Solaris 9 bug
43992         * tests/test-unlink.c (main): Factor guts...
43993         * tests/test-unlink.h (test_rmdir_func): ...into new file.
43994         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
43995         * tests/test-rmdir.c (main): Adjust caller.
43996         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
43997         (unlinker): New helper function.
43998         (rmdirat): Enhance check.
43999         * modules/rmdir-tests (Depends-on): Add stdbool.
44000         * modules/unlink-tests (Depends-on): Likewise.
44001         (Files): Add test-unlink.h.
44002         * modules/openat-tests (Files): Likewise.
44003         (Depends-on): Add unlinkdir.
44004
44005         test-fstatat: new test, to expose Solaris 9 bugs
44006         * tests/test-stat.c (main): Factor guts...
44007         * tests/test-stat.h (test_stat_func): ...into new file.
44008         * tests/test-lstat.c (main): Factor guts...
44009         * tests/test-lstat.h (test_lstat_func): ...into new file.
44010         * tests/test-fstatat.c: New file.
44011         * modules/stat-tests (Files): Add test-stat.h.
44012         * modules/lstat-tests (Files): Add test-lstat.h.
44013         (Depends-on): Add stdbool.
44014         * modules/openat-tests (Depends-on): Add pathmax.
44015         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
44016         (Makefile.am): Run new test.
44017
44018         remove: new module, for mingw and Solaris 9 bugs
44019         * modules/remove: New file.
44020         * lib/remove.c: Likewise.
44021         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
44022         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44023         * modules/stdio (Makefile.am): Use them.
44024         * lib/stdio.in.h (remove): Declare replacement.
44025         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44026         * doc/posix-functions/remove.texi (remove): Likewise.
44027         * modules/remove-tests: New test.
44028         * tests/test-remove.c: Likewise.
44029
44030         unlink: new module, for Solaris 9 bug
44031         * modules/unlink: New file.
44032         * lib/unlink.c: Likewise.
44033         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
44034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44035         * modules/unistd (Makefile.am): Use them.
44036         * lib/unistd.in.h (stat): Declare replacement.
44037         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44038         * doc/posix-functions/unlink.texi (unlink): Likewise.
44039         * modules/unlink-tests: New test.
44040         * tests/test-unlink.c: Likewise.
44041
44042         lstat: fix Solaris 9 bug
44043         * lib/lstat.c (lstat): Also check for trailing slash on
44044         non-symlink, non-directories.  Use stat module to simplify logic.
44045         * doc/posix-functions/lstat.texi (lstat): Document it.
44046         * modules/lstat-tests (Depends-on): Add errno, same-inode.
44047         (configure.ac): Check for symlink.
44048         * tests/test-lstat.c (main): Add more tests.
44049
44050         stat: add as dependency to other modules
44051         * modules/chown (Depends-on): Add stat.
44052         * modules/euidaccess (Depends-on): Likewise.
44053         * modules/fchdir (Depends-on): Likewise.
44054         * modules/isdir (Depends-on): Likewise.
44055         * modules/link (Depends-on): Likewise.
44056         * modules/lstat (Depends-on): Likewise.
44057         * modules/mkdir-p (Depends-on): Likewise.
44058         * modules/modechange (Depends-on): Likewise.
44059         * modules/open (Depends-on): Likewise.
44060         * modules/readlink (Depends-on): Likewise.
44061         * modules/same (Depends-on): Likewise.
44062
44063         stat: fix Solaris 9 bug
44064         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
44065         slash.
44066         * lib/stat.c (rpl_stat): Work around it.
44067         * doc/posix-functions/stat.texi (stat): Update documentation.
44068
44069         stat: new module, for mingw bug
44070         * modules/stat: New file.
44071         * lib/stat.c: Likewise.
44072         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
44073         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44074         * modules/sys_stat (Makefile.am): Use them.
44075         * lib/sys_stat.in.h (stat): Declare replacement.
44076         * lib/openat.c (fstatat): Deal with lstat and stat being function
44077         macros.
44078         * modules/openat (Depends-on): Add inline.
44079         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44080         * doc/posix-functions/stat.texi (stat): Likewise.
44081         * modules/stat-tests: New test.
44082         * tests/test-stat.c: Likewise.
44083
44084 2009-09-19  Jim Meyering  <meyering@redhat.com>
44085
44086         syntax-check: detect unnecessary inclusion of canonicalize.h
44087         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
44088
44089 2009-09-19  Eric Blake  <ebb9@byu.net>
44090
44091         canonicalize-lgpl: adjust clients to use correct header
44092         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44093         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
44094         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
44095         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
44096         * lib/progreloc.c (includes): Likewise.
44097
44098 2009-09-19  Jim Meyering  <meyering@redhat.com>
44099
44100         test-posixtm.c: correct a comment
44101         * tests/test-posixtm.c: Correct first-line comment.
44102         Spotted by Eric Blake.
44103
44104 2009-09-16  Jim Meyering  <meyering@redhat.com>
44105
44106         posixtm-tests: make T const-correct; add a test case
44107         * tests/test-posixtm.c (T): Declare const.
44108         Add a test for -(2^31+1).
44109         Remove useless can-succeed-only-in-2002 test.
44110
44111         posixtm-tests: adjust the sole failing test
44112         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
44113         expected output matches what mktime now produces.  Cross-checked via
44114         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
44115
44116         posixtm: move #ifdef'd tests into a new module
44117         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
44118         * tests/test-posixtm.c: ... this new file.
44119         * modules/posixtm-tests: New module.
44120
44121 2009-09-19  Eric Blake  <ebb9@byu.net>
44122
44123         openat: simplify use of at-func.c
44124         * lib/at-func.c (includes): Include prerequisites here, to
44125         simplify requirements on client files.
44126         * lib/openat-priv.h: Add double-inclusion guard.
44127         * lib/faccessat.c (includes): Simplify.
44128         * lib/fchmodat.c (includes): Likewise.
44129         * lib/fchownat.c (includes): Likewise.
44130         * lib/mkdirat.c (includes): Likewise.
44131         * lib/mkfifoat.c (includes): Likewise.
44132         * lib/symlinkat.c (includes): Likewise.
44133
44134         openat: allow return of fd 0
44135         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
44136         * modules/save-cwd (Depends-on): Replace fcntl-safer with
44137         unistd-safer.
44138         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
44139         <fcntl.h>; this module does not leak fds.
44140         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
44141         must be allowed to return 0, leaving openat_safer to add the
44142         safety.
44143         (openat_permissive): Avoid writing to just-opened fd 2 if
44144         restoring the current directory fails.
44145         * lib/openat-die.c (openat_restore_fail): Add comment.
44146         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
44147         (save_cwd): Guarantee safe fd, but without use of open_safer.
44148         * tests/test-openat.c: New test.
44149         * modules/openat-tests (Files, Makefile.am): Distribute and build
44150         new file.
44151
44152         relocatable-prog-wrapper: fix build
44153         * modules/relocatable-prog-wrapper (Files): Update name of
44154         canonicalize m4 file, broken on 2009-09-17.
44155         Reported by emad hajjar <aleppos@hotmail.com>.
44156
44157 2009-09-19  Bruno Haible  <bruno@clisp.org>
44158
44159         * lib/safe-alloc.h: Use the standard header with GPL copyright.
44160         * lib/safe-alloc.c: Likewise.
44161         Reported by Ian Beckwith <ianb@erislabs.net>.
44162
44163 2009-09-18  Bruno Haible  <bruno@clisp.org>
44164
44165         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
44166         Reported by <erobles@sensacd.com.mx>.
44167
44168 2009-09-17  Eric Blake  <ebb9@byu.net>
44169
44170         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
44171         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
44172         slashes when checking if last component is missing.
44173         * tests/test-canonicalize.c (main): Test this.
44174
44175         canonicalize, canonicalize-lgpl: honor // if distinct from /
44176         * modules/canonicalize (Files): Add double-slash-root.m4.
44177         * modules/canonicalize-lgpl (Files): Likewise.
44178         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44179         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
44180         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
44181         fallback definition.
44182         (canonicalize_filename_mode): Use it to protect //.
44183         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
44184         (__realpath): Likewise.
44185         * tests/test-canonicalize.c (main): Test this.
44186         * tests/test-canonicalize-lgpl.c (main): Likewise.
44187         * modules/canonicalize-tests (Depends-on): Add same-inode.
44188         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44189
44190         canonicalize-lgpl: fix glibc bug with trailing slash
44191         * m4/canonicalize-lgpl.m4: Move contents...
44192         * m4/canonicalize.m4: ...here.
44193         (gl_CANONICALIZE_LGPL): Factor realpath check...
44194         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
44195         glibc 2.3.5 bug, fixed 2005-04-27.
44196         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
44197         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
44198         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
44199         * modules/canonicalize-lgpl (Files): Manage file rename.
44200         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44201         * modules/stdlib (Makefile.am): Substitute witness.
44202         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
44203         is needed.
44204         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
44205         replacement is required.
44206         * lib/canonicalize.c (canonicalize_file_name): Likewise.
44207         * doc/glibc-functions/canonicalize_file_name.texi
44208         (canonicalize_file_name): Document this.
44209         * doc/posix-functions/realpath.texi (realpath): Likewise.
44210
44211         canonicalize-lgpl: reject non-directory with trailing slash
44212         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
44213         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
44214         catches failures in glibc 2.3.5.
44215         * tests/test-canonicalize.c (main): Likewise.
44216
44217         canonicalize-lgpl: use native realpath if it works
44218         * lib/canonicalize-lgpl.c (realpath): Guard with
44219         FUNC_REALPATH_WORKS.
44220         * lib/stdlib.in.h (realpath): Make declaration optional based on
44221         HAVE_REALPATH.
44222         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
44223         native realpath works.
44224         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44225         * modules/stdlib (Makefile.am): Substitute witness.
44226
44227         canonicalize, canonicalize-lgpl: use <stdlib.h>
44228         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
44229         (Include): Mention <stdlib.h>.
44230         (configure.ac): Mention functions we provide.
44231         * modules/canonicalize (configure.ac): Likewise.
44232         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
44233         realpath if canonicalize_file_name is missing.
44234         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
44235         * modules/stdlib (Makefile.am): Substitute witnesses.
44236         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
44237         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
44238         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
44239         * NEWS: Document this.
44240         * doc/glibc-functions/canonicalize_file_name.texi
44241         (canonicalize_file_name): Likewise.
44242         * doc/posix-functions/realpath.texi (realpath): Likewise.
44243         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
44244
44245         test-canonicalize: consolidate into single C program
44246         * tests/test-canonicalize.sh: Delete; move setup into...
44247         * tests/test-canonicalize.c (main): ...the program, making it
44248         easier to run in debugger.  Add some tests.
44249         * modules/canonicalize-tests (Files): Remove unused file.
44250         (Depends-on): Add progname.
44251         (configure.ac, Makefile.am): Simplify.
44252
44253         test-canonicalize-lgpl: consolidate into single C program
44254         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
44255         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
44256         easier to run in debugger.  Add some tests.
44257         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
44258         (configure.ac, Makefile.am): Simplify.
44259
44260         canonicalize: avoid resolvepath
44261         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
44262         unnecessary checks.
44263         * lib/canonicalize.c (includes): Simplify.
44264         (canonicalize_file_name): Drop resolvepath implementation.
44265         * modules/canonicalize (Depends-on): Drop filenamecat.
44266
44267         canonicalize: don't lose errno
44268         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
44269         over calls to free.
44270
44271         canonicalize: simplify errno handling
44272         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
44273         assignment.
44274
44275         canonicalize, canonicalize-lgpl: update module dependencies
44276         * modules/canonicalize (Depends-on): Add extensions, lstat,
44277         pathmax, stdlib.
44278         (Files): Drop pathmax.h.
44279         (configure.ac): Adjust macro name.
44280         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
44281         lstat, stdlib, sys_stat.
44282         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
44283         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
44284         extensions.
44285         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
44286         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
44287         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
44288         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
44289         declaration, if available.
44290         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
44291         we can rely on the readlink module.
44292         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
44293         (includes): Use <unistd.h> unconditionally.
44294
44295 2009-09-17  Eric Blake  <ebb9@byu.net>
44296
44297         maint: make Include sections of modules consistent
44298         * modules/alloca: Use only header name; no need to list #include.
44299         * modules/alloca-opt: Likewise.
44300         * modules/arpa_inet: Likewise.
44301         * modules/canon-host: Likewise.
44302         * modules/configmake: Likewise.
44303         * modules/dirent: Likewise.
44304         * modules/eealloc: Likewise.
44305         * modules/environ: Likewise.
44306         * modules/fchdir: Likewise.
44307         * modules/fcntl: Likewise.
44308         * modules/fcntl-h: Likewise.
44309         * modules/gethrxtime: Likewise.
44310         * modules/gettime: Likewise.
44311         * modules/ignore-value: Likewise.
44312         * modules/inet_ntop: Likewise.
44313         * modules/inet_pton: Likewise.
44314         * modules/inttypes: Likewise.
44315         * modules/isnand-nolibm: Likewise.
44316         * modules/isnanf-nolibm: Likewise.
44317         * modules/mbchar: Likewise.
44318         * modules/mbfile: Likewise.
44319         * modules/mbiter: Likewise.
44320         * modules/mbuiter: Likewise.
44321         * modules/netdb: Likewise.
44322         * modules/netinet_in: Likewise.
44323         * modules/nproc: Likewise.
44324         * modules/pagealign_alloc: Likewise.
44325         * modules/poll: Likewise.
44326         * modules/printf-frexp: Likewise.
44327         * modules/pthread: Likewise.
44328         * modules/putenv: Likewise.
44329         * modules/random_r: Likewise.
44330         * modules/relocatable-prog: Likewise.
44331         * modules/search: Likewise.
44332         * modules/select: Likewise.
44333         * modules/selinux-h: Likewise.
44334         * modules/settime: Likewise.
44335         * modules/signal: Likewise.
44336         * modules/size_max: Likewise.
44337         * modules/socklen: Likewise.
44338         * modules/ssize_t: Likewise.
44339         * modules/stdarg: Likewise.
44340         * modules/stdbool: Likewise.
44341         * modules/stddef: Likewise.
44342         * modules/stdint: Likewise.
44343         * modules/stdio: Likewise.
44344         * modules/stdlib: Likewise.
44345         * modules/string: Likewise.
44346         * modules/strings: Likewise.
44347         * modules/sys_file: Likewise.
44348         * modules/sys_ioctl: Likewise.
44349         * modules/sys_select: Likewise.
44350         * modules/sys_socket: Likewise.
44351         * modules/sys_stat: Likewise.
44352         * modules/sys_time: Likewise.
44353         * modules/sys_times: Likewise.
44354         * modules/sys_utsname: Likewise.
44355         * modules/sys_wait: Likewise.
44356         * modules/sysexits: Likewise.
44357         * modules/time: Likewise.
44358         * modules/times: Likewise.
44359         * modules/tmpfile: Likewise.
44360         * modules/trim: Likewise.
44361         * modules/unistd: Likewise.
44362         * modules/wchar: Likewise.
44363         * modules/wctype: Likewise.
44364
44365 2009-09-17  Bruno Haible  <bruno@clisp.org>
44366
44367         Make getdate.y compile on QNX and NetBSD 5 / i386.
44368         * m4/getdate.m4 (gl_GETDATE): Conditionally define
44369         TIME_T_FITS_IN_LONG_INT.
44370         * lib/getdate.y (long_time_t): New type.
44371         (relative_time): Change type of 'seconds' field to long_time_t.
44372         (get_date): Update types of local variables. Check against overflow
44373         during conversion from long_time_t to time_t.
44374         Reported by Matt Kraai <kraai@ftbfs.org>
44375         and Hasso Tepper <hasso@netbsd.org>.
44376
44377 2009-09-17  Bruno Haible  <bruno@clisp.org>
44378
44379         * modules/COPYING: Update copyright years.
44380         * modules/README: Likeiwse.
44381         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
44382         Reported by Ian Beckwith <ianb@erislabs.net>.
44383
44384 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44385
44386         * users.txt: Update references for gnuit package.
44387
44388 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44389
44390         * m4/getdelim.m4: Fix typo in copyright line.
44391
44392 2009-09-17  Bruno Haible  <bruno@clisp.org>
44393
44394         * lib/atoll.c: Use the standard header with GPL copyright.
44395         * lib/argz.in.h: Likewise.
44396         * lib/glob.c: Likewise.
44397         * lib/glob-libc.h: Likewise.
44398         * lib/random_r.c: Likewise.
44399         * lib/siglist.h: Likewise.
44400         * lib/strsignal.c: Likewise.
44401         Reported by Ian Beckwith <ianb@erislabs.net>.
44402
44403 2009-09-17  Eric Blake  <ebb9@byu.net>
44404
44405         rmdir: ensure correct dependency order
44406         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
44407
44408 2009-09-17  Bruno Haible  <bruno@clisp.org>
44409
44410         Disable assertion that fails on NetBSD 5 / i386.
44411         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
44412         Reported by Sam Steingold <sds@gnu.org>
44413         and Hasso Tepper <hasso@netbsd.org>.
44414
44415 2009-09-16  Eric Blake  <ebb9@byu.net>
44416
44417         unlinkdir: port to mingw
44418         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
44419         on which no one can unlink a directory.
44420
44421         stdlib: sort witness names
44422         * modules/stdlib (Makefile.am): Sort replacements.
44423         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
44424         * lib/stdlib.in.h: Likewise.
44425
44426         parse-duration-tests: avoid link failure
44427         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
44428         LIBINTL.
44429         Reported by Tom G. Christensen.
44430
44431         openat-tests: ensure unlinkat behaves like rmdir
44432         * tests/test-rmdir.c (main): Factor guts...
44433         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
44434         * modules/rmdir-tests (Files): Ship new file.
44435         * modules/openat-tests: New test.
44436         * tests/test-unlinkat.c: Likewise.
44437
44438         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
44439         * modules/rmdir-errno (Status, Notice): Now obsolete.
44440
44441         rmdir: work around cygwin 1.5.x and mingw bugs
44442         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
44443         * lib/rmdir.c (rmdir): Work around it.
44444         * modules/rmdir (Status, Notice): No longer obsolete.
44445         (Files): Add dos.m4.
44446         (Depends-on): Add unistd.
44447         (configure.ac): Set witnesses.
44448         (License): Relax to LGPLv2+.
44449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
44450         * modules/unistd (Makefile.am): Substitute witnesses.
44451         * lib/unistd.in.h (rmdir): Declare replacement.
44452         * doc/posix-functions/rmdir.texi (rmdir): Document this.
44453         * modules/rmdir-tests: New tests.
44454         * tests/test-rmdir.c: Likewise.
44455
44456 2009-09-15  Eric Blake  <ebb9@byu.net>
44457
44458         fchdir: improve use of replacement functions
44459         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
44460         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
44461         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
44462         REPLACE_CLOSEDIR.
44463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
44464         * modules/sys_stat (Makefile.am): Substitute correct witness.
44465         * modules/dirent (Makefile.am): Likewise.
44466         * modules/unistd (Makefile.am): Likewise.
44467         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
44468         * lib/unistd.in.h (dup): Likewise.
44469         * lib/sys_stat.in.h (fstat): Likewise.
44470
44471         maint: ignore gnulib-tool temp files
44472         * .gitignore: Ignore files created during gnulib-tool --test.
44473
44474 2009-09-13  Jim Meyering  <meyering@redhat.com>
44475
44476         posixtm: don't reject a time that specify "60" as the number of seconds
44477         * lib/posixtm.c (posixtime): The code to reject invalid dates
44478         would also reject a time specified with the .60 suffix.
44479         But POSIX allows that, in order to accommodate leap seconds.
44480         So don't reject it.
44481         (main): Adjust tests accordingly.
44482         * modules/posixtm (Depends-on): Add stpcpy.
44483
44484 2009-09-11  Jim Meyering  <meyering@redhat.com>
44485
44486         announce-gen: include [$release_type] in emitted Subject:
44487         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
44488         e.g., [stable] in the emitted Subject: line.
44489
44490 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44491
44492         Remove obsolete macros from several modules.
44493         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
44494         obsolete Autoconf macros with their modern counterparts.
44495         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
44496         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
44497         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
44498         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
44499         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
44500         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44501         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44502         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44503         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
44504         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
44505         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
44506         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
44507         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
44508         * m4/sockets.m4 (gl_SOCKETS): Likewise.
44509         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
44510         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
44511         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
44512         * m4/time_r.m4 (gl_TIME_R): Likewise.
44513         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
44514         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
44515         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
44516
44517         Fix copyright header in build-aux scripts.
44518         * build-aux/git-version-gen: Fix copyright header to match GPLv3
44519         recommendation.
44520         * build-aux/ncftpput-ftp: Likewise.
44521         * build-aux/update-copyright: Likewise.
44522
44523 2009-09-09  Eric Blake  <ebb9@byu.net>
44524
44525         test-link: allow Linux choice of errno
44526         * tests/test-link.c (main): Relax test for alternate error.
44527
44528         strndup: fix improper m4 caching
44529         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
44530         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
44531         (gl_PREREQ_STRNDUP): Delete.
44532         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
44533         * modules/string (Makefile.am): Substitute it.
44534         * lib/string.in.h (strndup): Modernize prototype.
44535
44536         getcwd: port to mingw
44537         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
44538         different from the POSIX assumptions made throughout the getcwd
44539         module; fortunately, the mingw getcwd does not need replacement.
44540         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
44541         * modules/getcwd-tests: New test.
44542         * tests/test-getcwd.c: Likewise.
44543
44544         link: fix platform bugs
44545         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
44546         * lib/link.c (link): Work around them.  Fix related mingw bug.
44547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
44548         * modules/unistd (Makefile.am): Substitute it.
44549         * lib/unistd.in.h (link): Declare replacement.
44550         * doc/posix-functions/link.texi (link): Document this.
44551         * modules/link (Depends-on): Add strdup-posix, sys_stat.
44552
44553         test-link: consolidate into single C program, test more cases
44554         * tests/test-link.sh: Delete.
44555         * tests/test-link.c: Test more error conditions.  Exposes bugs on
44556         at least Cygwin and Solaris.
44557         * modules/link-tests (Files): Remove unused file.
44558         (Depends-on): Add errno, sys_stat.
44559         (Makefile.am): Simplify.
44560
44561 2009-09-08  Bruno Haible  <bruno@clisp.org>
44562
44563         Work around towlower, towupper bug on mingw.
44564         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
44565         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
44566         * doc/posix-functions/towlower.texi: Mention the mingw bug.
44567         * doc/posix-functions/towupper.texi: Likewise.
44568         Reported by Eric Blake.
44569
44570 2009-09-08  Jim Meyering  <meyering@redhat.com>
44571
44572         build: don't try to run autoheader if we don't use it
44573         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
44574         is not used in configure.ac.
44575
44576 2009-09-08  Eric Blake  <ebb9@byu.net>
44577
44578         euidaccess: fix compilation error
44579         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
44580
44581         rawmemchr: relax license
44582         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
44583         okay.
44584         Reported by Jim Meyering.
44585
44586         mkfifoat: new module
44587         * modules/mkfifoat: New file.
44588         * lib/mkfifoat.c: Likewise.
44589         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
44590         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44591         * modules/sys_stat (Makefile.am): Use them.
44592         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
44593         * MODULES.html.sh (File system functions): Mention module.
44594         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44595         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44596         * modules/mkfifoat-tests: New test.
44597         * tests/test-mkfifoat.c: Likewise.
44598
44599         strchrnul: relax license
44600         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
44601         okay.
44602         Reported by Jim Meyering.
44603
44604 2009-09-08  Eric Blake  <ebb9@byu.net>
44605
44606         fstatat: fix compilation on Solaris
44607         * lib/fstatat.c (includes): Add fcntl.h.
44608         Reported by Pádraig Brady.
44609
44610 2009-09-07  Eric Blake  <ebb9@byu.net>
44611
44612         rename: modernize replacement
44613         * modules/rename (Depends-on): Add stdio.
44614         (configure.ac): Declare witness.
44615         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
44616         stdio take care of replacement.
44617         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
44618         * modules/stdio (Makefile.am): Substitute them.
44619         * lib/stdio.in.h (rename): Declare replacement.
44620         * lib/rename.c (includes): Allow cross-compilation to non-windows
44621         machines.
44622         * doc/posix-functions/rename.texi (rename): Improve
44623         documentation.
44624
44625         stdio: sort witness names
44626         * modules/stdio (Makefile.am): Sort replacements.
44627         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44628         * lib/stdio.in.h: Likewise.
44629
44630         getcwd: minor cleanups
44631         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
44632         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
44633
44634         openat: provide more convenience names
44635         * modules/faccessat (configure.ac): Add C witness.
44636         * lib/unistd.in.h (readlinkat): Fix typo.
44637         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
44638         convenience wrappers.
44639         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
44640         wrappers in syntax checks.
44641
44642 2009-09-06  Eric Blake  <ebb9@byu.net>
44643
44644         doc: fix comments in recent patches
44645         * lib/faccessat.c: Mention correct function.
44646         * lib/fchmodat.c: Likewise.
44647         * lib/fchownat.c: Likewise.
44648         * lib/symlinkat.c: Likewise.
44649         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
44650         constants.
44651
44652         faccessat, symlinkat: continue cleanup of previous patch
44653         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
44654         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44655         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
44656         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
44657         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
44658         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
44659         set.
44660
44661 2009-09-06  Bruno Haible  <bruno@clisp.org>
44662
44663         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
44664         (fstatat): Declare if GNULIB_FSTATAT is set.
44665         (mkdirat): Declare if GNULIB_MKDIRAT is set.
44666         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
44667         (unlinkat): Declare if GNULIB_UNLINKAT is set.
44668         * modules/fcntl-h (Files): Remove m4/openat.m4.
44669         * modules/sys_stat (Files): Remove m4/openat.m4.
44670         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
44671         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
44672         * modules/unistd (Files): Remove m4/openat.m4.
44673         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
44674         GNULIB_OPENAT.
44675         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
44676         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
44677         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
44678         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
44679         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
44680         gl_OPENAT_DEFAULTS.
44681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
44682         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
44683         Don't require gl_OPENAT_DEFAULTS.
44684         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
44685         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
44686         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
44687         (gl_OPENAT_DEFAULTS): Remove macro.
44688
44689 2009-09-06  Bruno Haible  <bruno@clisp.org>
44690
44691         * modules/openat (configure.ac): Remove unneeded witness.
44692
44693 2009-09-06  Bruno Haible  <bruno@clisp.org>
44694
44695         Set errno to ENOSYS when a function is entirely unsupported.
44696         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
44697         EOPNOTSUPP.
44698         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44699         * modules/chown (Depends-on): Remove errno.
44700
44701 2009-09-06  Bruno Haible  <bruno@clisp.org>
44702
44703         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
44704
44705 2009-09-06  Bruno Haible  <bruno@clisp.org>
44706
44707         * lib/sys_stat.in.h: Fix preprocessor command indentation.
44708
44709 2009-09-06  Ben Pfaff  <blp@gnu.org>
44710             Bruno Haible  <bruno@clisp.org>
44711
44712         Work around a glibc bug in strtok_r.
44713         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
44714         Undefine if UNDEFINE_STRTOK_R is set.
44715         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
44716         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44717         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
44718         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
44719         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
44720         UNDEFINE_STRTOK_R.
44721         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
44722
44723 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
44724
44725         exclude: minor fix
44726         * lib/exclude.c: Include wctype.h
44727
44728 2009-09-06  Akim Demaille  <demaille@gostai.com>
44729
44730         bootstrap: improve error message
44731         * build-aux/bootstrap (find_tool): Upon failure, report the list
44732         of candidates.
44733         Honor the initial value of the envvar.
44734
44735 2009-09-05  Eric Blake  <ebb9@byu.net>
44736
44737         symlinkat: new module
44738         * modules/symlinkat: New file.
44739         * lib/symlinkat.c: Likewise.
44740         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
44741         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44742         * modules/unistd (Makefile.am): Use them.
44743         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
44744         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
44745         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
44746         * MODULES.html.sh (File system functions): Mention module.
44747         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44748         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44749         * modules/symlinkat-tests: New test.
44750         * tests/test-symlinkat.c: Likewise.
44751
44752         test-openat-safer: add more checks
44753         * tests/test-openat-safer.c (main): Check more code paths.
44754
44755 2009-09-05  Jim Meyering  <meyering@redhat.com>
44756
44757         syntax-check: detect unnecessary inclusion of openat.h
44758         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
44759
44760 2009-09-05  Bruno Haible  <bruno@clisp.org>
44761
44762         Support towlower, towupper.
44763         * doc/posix-functions/towlower.texi: Mention module wctype.
44764         * doc/posix-functions/towupper.texi: Likewise.
44765         * lib/wctype.in.h (towlower, towupper): New functions.
44766         * tests/test-wctype.c: Include stdio.h, stdlib.h.
44767         (ASSERT): New macro.
44768         (e): New variable.
44769         (main): Test also towlower, towupper. Test WEOF argument.
44770         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44771
44772 2009-09-05  Bruno Haible  <bruno@clisp.org>
44773
44774         Fix conversion behaviour when the input is invalid.
44775         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
44776         mark occurring in first pass of indirect conversion.
44777         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
44778         input.
44779         Found by clang's static analyzer.
44780
44781 2009-09-05  Bruno Haible  <bruno@clisp.org>
44782
44783         * tests/test-striconveh.c (main): Test indirect conversion on platforms
44784         where direct conversion is possible.
44785
44786 2009-09-04  Eric Blake  <ebb9@byu.net>
44787
44788         openat: fail with ENOENT on empty name
44789         * lib/openat-proc.c (openat_proc_name): Special-case the empty
44790         buffer.
44791
44792         link-follow: fix logic bug in prior patch
44793         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
44794         reversed sense of yes and no in prior patch.  Avoid confusing
44795         compilation failure with desired semantics.
44796
44797         link-follow: accommodate mingw and cross-compilation
44798         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
44799         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
44800         cross-compilation results to -1, to make linkat easier to
44801         implement when cross-compiling.  Trivially support mingw.
44802         * modules/link-follow (configure.ac): Call new name.
44803         * NEWS: Mention this.
44804
44805 2009-09-03  Eric Blake  <ebb9@byu.net>
44806
44807         faccessat: compile replacement
44808         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
44809         needed.
44810
44811         fts: fix compilation error
44812         * lib/fts.c (includes): Re-add "openat.h", for
44813         openat_needs_fchdir.
44814
44815         faccessat: new module
44816         * modules/faccessat: New file.
44817         * lib/faccessat.c: Likewise.
44818         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44820         * modules/unistd (Makefile.am): Use it.
44821         * lib/unistd.in.h (faccessat): Declare it.
44822         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
44823         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
44824         * MODULES.html.sh (File system functions): Mention it.
44825         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
44826         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
44827
44828         euidaccess: prefer POSIX over non-standard implementation
44829         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
44830         * lib/euidaccess.c (euidaccess): Use it if available.
44831
44832         openat: make template easier to use
44833         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
44834         AT_FUNC_F2 to be undefined.
44835         (VALIDATE_FLAG): New macro; use it to reject bad flags.
44836         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
44837         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
44838         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
44839         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
44840         Likewise.
44841         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
44842         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
44843         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
44844         Likewise.
44845
44846         openat: declare in POSIX headers
44847         * NEWS: Mention this.
44848         * modules/openat (configure.ac): Declare witnesses.
44849         (Depends-on): Add fcntl-h, sys_stat, unistd.
44850         (Include): Mention correct headers.
44851         * modules/fcntl-h (Depends-on): Add link-warning.
44852         (Files): Add openat.m4.
44853         (Makefile.am): Substitute witnesses.
44854         * modules/sys_stat (Files, Makefile.am): Likewise.
44855         * modules/unistd (Files, Makefile.am): Likewise.
44856         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
44857         (gl_OPENAT_DEFAULTS): New macro.
44858         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
44859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
44860         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
44861         (SYS_STAT_H): Remove unused variable.
44862         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
44863         * lib/fcntl--.h (includes): Remove unneeded header.
44864         * lib/openat-safer.c (includes): Likewise.
44865         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
44866         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
44867         appropriate headers.
44868         (__OPENAT_PREFIX): Delete.
44869         * lib/fcntl.in.h (openat): Provide declaration.
44870         (AT_FDCWD): Fix Solaris bug.
44871         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
44872         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
44873         * lib/fchmodat.c (includes):  Adjust to find declaration.
44874         * lib/fchownat.c (includes): Likewise.
44875         * lib/mkdirat.c (includes): Likewise.
44876         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
44877         still visible.
44878
44879 2009-09-02  Eric Blake  <ebb9@byu.net>
44880
44881         errno: use consistently
44882         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
44883         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
44884         * lib/canonicalize.c (ELOOP): Likewise.
44885         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
44886         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
44887         * lib/lchown.c (EOPNOTSUPP): Likewise.
44888         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
44889         * lib/savewd.c (ESTALE): Likewise.
44890         * lib/settime.c (ENOSYS): Likewise.
44891         * lib/utimens.c (ENOSYS): Likewise.
44892         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
44893         * lib/chdir-safer.c (ELOOP): Likewise.
44894         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
44895         * modules/c-stack (Depends-on): Add errno.
44896         * modules/canonicalize (Depends-on): Likewise.
44897         * modules/chdir-safer (Depends-on): Likewise.
44898         * modules/fdopendir (Depends-on): Likewise.
44899         * modules/inet_ntop (Depends-on): Likewise.
44900         * modules/inet_pton (Depends-on): Likewise.
44901         * modules/lchown (Depends-on): Likewise.
44902         * modules/openat (Depends-on): Likewise.
44903         * modules/savewd (Depends-on): Likewise.
44904         * modules/settime (Depends-on): Likewise.
44905         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
44906
44907         fts: avoid leaking fds
44908         * modules/fts (Depends-on): Add cloexec.
44909         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
44910         flag.
44911
44912         fts: make directory fds more robust
44913         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
44914         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
44915
44916         backupfile, chdir-long, fts, savedir: make safer
44917         * lib/backupfile.c (includes): Use "dirent--.h", since
44918         numbered_backup can write to stderr during readdir.
44919         * lib/savedir.c (includes): Likewise.
44920         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
44921         emulation can write to stderr on failure.
44922         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
44923         * lib/getcwd.c: Document why opendir_safer is unused.
44924         * lib/glob.c: Likewise.
44925         * lib/scandir.c: Likewise.
44926         * lib/openat-proc.c: Likewise, for open_safer.
44927         * modules/backupfile (Depends-on): Add dirent-safer.
44928         * modules/savedir (Depends-on): Likewise.
44929         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
44930         * modules/chdir-long (Depends-on): Add openat-safer.
44931
44932         openat-safer: new module
44933         * modules/openat-safer: New file.
44934         * lib/openat-safer.c: Likewise.
44935         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
44936         * lib/fcntl-safer.h (openat_safer): Declare.
44937         * lib/fcntl--.h (openat): Override.
44938         * MODULES.html.sh (File descriptor based I/O): Mention it.
44939         * lib/openat.h: Add double-inclusion guards.
44940         * lib/openat.c (includes): Only include "fcntl-safer.h", not
44941         "fcntl--.h", so we can implement openat.
44942         * modules/openat-safer-tests: New test.
44943         * tests/test-openat-safer.c: New file.
44944
44945         dirent-safer: new module
44946         * modules/dirent-safer: New file.
44947         * lib/dirent--.h: Likewise.
44948         * lib/dirent-safer.h: Likewise.
44949         * lib/opendir-safer.c: Likewise.
44950         * m4/dirent-safer.m4: Likewise.
44951         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
44952         * modules/dirent-safer-tests: New test.
44953         * tests/test-dirent-safer.c: New file.
44954         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
44955
44956         fdopendir: optimize on mingw
44957         * lib/unistd.in.h (_gl_directory_name): New prototype.
44958         * lib/fchdir.c (_gl_directory_name): Implement it.
44959         (fchdir): Use it to simplify implementation.
44960         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
44961         fchdir, when available, to avoid calling [f]chdir().
44962
44963         fdopendir: split into its own module
44964         * lib/openat.c (fdopendir): Move...
44965         * lib/fdopendir.c: ...into new file.
44966         * modules/fdopendir: New module.
44967         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
44968         * modules/openat (Depends-on): Add fdopendir.
44969         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
44970         fdopendir here.
44971         * modules/savedir (Depends-on): Only need fdopendir, not full
44972         openat.
44973         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
44974         * lib/openat.h (fdopendir): Drop prototype.
44975         * lib/dirent.in.h (fdopendir): Provide prototype.
44976         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
44977         * modules/dirent (Makefile.am): Substitute them.
44978         * MODULES.html.sh (File system functions): Mention it.
44979         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
44980         * modules/fdopendir-tests: New file.
44981         * tests/test-fdopendir.c: Likewise.
44982
44983         fchdir: use more consistent macro convention
44984         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
44985         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
44986         REPLACE_FCHDIR, rather than relying on config.h macros.
44987         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
44988         inside a single make-time REPLACE_FCHDIR block, rather than using
44989         the config.h FCHDIR_REPLACEMENT.
44990         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
44991         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
44992         Manage fstat replacement.
44993         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
44994         REPLACE_FCHDIR.
44995         * modules/sys_stat (Files): Add m4/unistd_h.m4.
44996         (Makefile.am): Substitute REPLACE_FCHDIR.
44997         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
44998         FCHDIR_REPLACEMENT.
44999         * lib/dup-safer.c (dup_safer): Likewise.
45000         * lib/dup2.c (rpl_dup2): Likewise.
45001         * lib/dup3.c (rpl_dup3): Likewise.
45002         * lib/open.c (rpl_open): Likewise.
45003
45004         fchdir: simplify error handling, and support dup3
45005         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
45006         stdbool, malloc-posix, realloc-posix.
45007         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
45008         (ensure_dirs_slot): Return false on allocation failure.
45009         (rpl_dup2): Delete.
45010         (_gl_register_dup): New function.
45011         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
45012         (_gl_register_fd): Close fd on allocation failure.
45013         * lib/fcntl.in.h (_gl_register_fd): Update signature.
45014         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
45015         prototype.
45016         (rpl_dup2_fchdir): Delete prototype.
45017         * lib/open.c (open): Update caller.
45018         * lib/dup2.c (dup2): Track fchdir metadata.
45019         * lib/dup3.c (dup3): Likewise.
45020         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
45021         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
45022
45023 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45024
45025         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
45026         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
45027         don't pass arguments to AC_OUTPUT.
45028
45029 2009-09-02  Bruno Haible  <bruno@clisp.org>
45030
45031         * modules/mkdtemp (License): Relicense under LGPLv2+.
45032         Reported by Paolo Bonzini.
45033
45034 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45035
45036         Replace uses of obsolete autoconf macros in Jim's modules.
45037         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
45038         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
45039         can evoke a warning from autoconf when run with -Wobsolete
45040         enabled.  They were declared obsolete for good reasons (see
45041         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
45042         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
45043         should not continue using the deprecated macros.
45044         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
45045         obsolete Autoconf macros with modern counterparts.
45046         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45047         * m4/dos.m4 (gl_AC_DOS): Likewise.
45048         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
45049         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
45050         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
45051         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
45052         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
45053         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
45054         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
45055         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
45056         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
45057         Likewise.
45058         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
45059         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45060         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
45061         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
45062         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
45063         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45064
45065 2009-09-01  Eric Blake  <ebb9@byu.net>
45066
45067         fchdir: fix off-by-one bug in previous patch
45068         * lib/fchdir.c (rpl_fstat): Use correct bounds.
45069         (_gl_unregister_fd): Delete useless if.
45070
45071 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
45072
45073         maint.mk: sort the list of syntax-check rules
45074         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
45075         easier to get a sense of progress when the rules are run sequentially
45076         and take a long time.
45077
45078 2009-09-01  Simon Josefsson  <simon@josefsson.org>
45079
45080         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
45081         * modules/netinet_in: Likewise.
45082         * modules/sys_file: Likewise.
45083         * modules/sys_ioctl: Likewise.
45084         * modules/sys_select: Likewise.
45085         * modules/sys_socket: Likewise.
45086         * modules/sys_stat: Likewise.
45087         * modules/sys_time: Likewise.
45088         * modules/sys_times: Likewise.
45089         * modules/sys_utsname: Likewise.
45090         * modules/sys_wait: Likewise.
45091
45092 2009-09-01  Jim Meyering  <meyering@redhat.com>
45093
45094         fts: help ensure that return values are not ignored
45095         * lib/fts_.h (__GNUC_PREREQ): Define.
45096         (__attribute_warn_unused_result__): Define.
45097         (fts_children, fts_close, fts_open, fts_read): Declare with
45098         __attribute_warn_unused_result__.
45099
45100         fts: fts_close now fails also when closing a dir file descriptor fails
45101         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
45102         and propagate to caller, along with errno.
45103
45104         announce-gen: correct formatting in --help output
45105         * build-aux/announce-gen (usage): Move the one-line description in
45106         --help output "up", to where it belongs, just after Usage:.
45107
45108 2009-08-31  Eric Blake  <ebb9@byu.net>
45109
45110         fchdir: port to mingw
45111         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
45112         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
45113         opened, then use a substitute.
45114         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
45115         replacement.
45116         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
45117         (_gl_register_fd): No need to check stat if open already filters
45118         all directories.
45119         (fchdir): Fix error condition to match POSIX.
45120         * modules/fchdir (Depends-on): Add sys_stat.
45121         * doc/posix-functions/open.texi (open): Document the limitation.
45122         * modules/fchdir-tests: New file.
45123         * tests/test-fchdir.c: Likewise.
45124
45125         canonicalize: allow cross-testing from cygwin to mingw
45126         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
45127         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
45128         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
45129         Likewise.
45130         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
45131         target does not support symlinks.
45132         * tests/test-canonicalize-lgpl.sh: Likewise.
45133
45134         chown: avoid compilation warning on mingw
45135         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
45136         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
45137         mingw.
45138         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45139         * modules/chown (Depends-on): Add errno.
45140
45141 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
45142
45143         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
45144         command.
45145
45146 2009-08-31  Jim Meyering  <meyering@redhat.com>
45147
45148         canonicalize: remove useless initialization
45149         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
45150         initialization of local, "end".
45151
45152 2009-08-30  Bruno Haible  <bruno@clisp.org>
45153
45154         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
45155         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
45156         ENOSYS.
45157
45158 2009-08-30  Bruno Haible  <bruno@clisp.org>
45159
45160         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
45161         /usr/xpg4/bin/tr when it exists.
45162         * tests/test-pipe-filter-gi1.sh: Likewise.
45163
45164 2009-08-30  Bruno Haible  <bruno@clisp.org>
45165
45166         Work around deficient /usr/bin/id program on Solaris.
45167         * tests/test-file-has-acl.sh (ID): New variable.
45168         * tests/test-set-mode-acl.sh (ID): Likewise.
45169         * tests/test-copy-acl.sh (ID): Likewise.
45170         * tests/test-copy-file.sh (ID): Likewise.
45171
45172 2009-08-30  Bruno Haible  <bruno@clisp.org>
45173
45174         New module 'xstriconveh'.
45175         * lib/xstriconveh.h: New file.
45176         * lib/xstriconveh.c: New file.
45177         * modules/xstriconveh: New file.
45178
45179 2009-08-30  Bruno Haible  <bruno@clisp.org>
45180
45181         Make it easier to use mem_cd_iconveh.
45182         * lib/striconveh.h (iconveh_t): New type.
45183         (iconveh_open, iconveh_close): New declarations.
45184         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45185         with a single 'const iconveh_t *' argument.
45186         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
45187         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45188         with a single 'const iconveh_t *' argument.
45189         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
45190         * tests/test-striconveh.c (main): Update.
45191         * NEWS: Mention the change.
45192
45193 2009-08-30  Bruno Haible  <bruno@clisp.org>
45194
45195         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
45196         problem.
45197
45198 2009-08-30  Bruno Haible  <bruno@clisp.org>
45199
45200         Work around iconv_open problem on Solaris.
45201         * lib/iconv_open-solaris.gperf: New file.
45202         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
45203         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
45204         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
45205         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
45206         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
45207         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
45208
45209 2009-08-29  Jim Meyering  <meyering@redhat.com>
45210
45211         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
45212         * top/maint.mk (cvs-check): Remove target; it was just an alias
45213         to the better-named vc-diff-check.
45214         (maintainer-distcheck): Remove rule.  It was used only from
45215         the (alpha/beta/major) target, and all of its commands but one
45216         were coreutils-specific.
45217         (vc-dist): Remove rule.
45218         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
45219         Run vc-diff-check, not vc-dist.
45220         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
45221
45222 2009-08-27  Bruno Haible  <bruno@clisp.org>
45223
45224         * tests/test-bitrotate.c (main): Remove test that uses a shift count
45225         of 0.
45226
45227 2009-08-27  Bruno Haible  <bruno@clisp.org>
45228
45229         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
45230         compilers.
45231         * doc/func.texi: Document the SunPRO C bug.
45232
45233 2009-08-27  Bruno Haible  <bruno@clisp.org>
45234
45235         Fix link error on Solaris.
45236         * tests/test-parse-duration.c (xstrdup): Remove function.
45237
45238 2009-08-26  Pádraig Brady  <P@draigbrady.com>
45239
45240         ignore-value: handle pointer types, too
45241         * lib/ignore-value.h (__attribute__): Remove definition.
45242         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
45243         of a more concise and more-often effective "(void) i" statement.
45244         (ignore_ptr): New function to suppress warnings from functions that
45245         return pointers, and to make it explicit that one function doesn't
45246         handle all cases.
45247
45248 2009-08-25  Bruno Haible  <bruno@clisp.org>
45249
45250         dup2: work around a Linux bug.
45251         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
45252         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
45253         * doc/posix-functions/dup2.texi: Mention the Linux bug.
45254         Reported by Simon Josefsson.
45255
45256 2009-08-25  Jim Meyering  <meyering@redhat.com>
45257
45258         libguestfs uses gnulib
45259         * users.txt: Add libguestfs.
45260
45261 2009-08-24  Eric Blake  <ebb9@byu.net>
45262
45263         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
45264         * lib/pipe2.c (includes): Add binary-io.h.
45265         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
45266
45267 2009-08-24  Bruno Haible  <bruno@clisp.org>
45268
45269         Tolerate declared but missing accept4 syscall.
45270         * lib/accept4.c (accept4): Invoke original accept4 function first, if
45271         available.
45272         * lib/sys_socket.in.h (accept4): If the function is already present,
45273         override it.
45274         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
45275         * modules/accept4 (Makefile.am): Compile accept4.c always.
45276         Reported by Paolo Bonzini and Eric Blake.
45277
45278 2009-08-23  Bruno Haible  <bruno@clisp.org>
45279
45280         New module 'accept4'.
45281         * lib/sys_socket.in.h (accept4): New declaration.
45282         * lib/accept4.c: New file.
45283         * m4/accept4.m4: New file.
45284         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45285         GNULIB_ACCEPT4, HAVE_ACCEPT4.
45286         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
45287         HAVE_ACCEPT4.
45288         * modules/accept4: New file.
45289         * doc/glibc-functions/accept4.texi: Mention the new module.
45290
45291 2009-08-24  Jim Meyering  <meyering@redhat.com>
45292
45293         progname: also set global program_invocation_name, when possible
45294         Before this change, a libtool-enabled program that calls glibc's
45295         error function would report the program name as
45296         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
45297         * modules/progname (configure.ac): Check for a declaration of
45298         program_invocation_name.
45299         * lib/progname.c:  Include <errno.h>.
45300         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
45301         Set program_invocation_name.
45302
45303 2009-08-23  Bruno Haible  <bruno@clisp.org>
45304
45305         * lib/dup3.c: Include <string.h>.
45306
45307 2009-08-23  Bruno Haible  <bruno@clisp.org>
45308
45309         * lib/dup3.c (dup3): Test only once whether the system actually exists.
45310         * lib/pipe2.c (pipe2): Likewise.
45311         Suggested by Eric Blake.
45312
45313 2009-08-23  Bruno Haible  <bruno@clisp.org>
45314
45315         Tolerate declared but missing dup3 syscall.
45316         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
45317         * lib/unistd.in.h (dup3): If the function is already present,
45318         override it.
45319         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
45320         * modules/dup3 (Makefile.am): Compile dup3.c always.
45321         Reported by Paolo Bonzini.
45322
45323 2009-08-23  Bruno Haible  <bruno@clisp.org>
45324
45325         Tolerate declared but missing pipe2 syscall.
45326         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
45327         available.
45328         * lib/unistd.in.h (pipe2): If the function is already present,
45329         override it.
45330         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
45331         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
45332         Reported by Paolo Bonzini.
45333
45334 2009-08-23  Bruno Haible  <bruno@clisp.org>
45335
45336         * lib/pipe2.c (pipe2): Move #ifs inside function.
45337
45338 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45339
45340         quotearg: document limitations of quote_these_too
45341         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
45342         those limitations are created.
45343         * lib/quotearg.h (set_char_quoting): Document that digits and
45344         letters that are special after backslash are not permitted.
45345         (quotearg_char): Cross-reference set_char_quoting documentation.
45346
45347 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
45348
45349         quotearg: implement custom_quoting_style
45350         * lib/quotearg.c: (struct quoting_options): Add left_quote and
45351         right_quote fields.
45352         (set_custom_quoting): New public function.
45353         (quotearg_buffer_restyled): Add left_quote and right_quote
45354         arguments, handle them very much like locale quoting, and update
45355         all uses.
45356         (quotearg_n_custom): New public function.
45357         (quotearg_n_custom_mem): New public function.
45358         (quotearg_custom): New public function.
45359         (quotearg_custom_mem): New public function.
45360         * lib/quotearg.h: Prototype and document new public functions.
45361         (enum quoting_style): For escape_quoting_style and
45362         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
45363         ignored even though they're otherwise like c_quoting_style.
45364         Add custom_quoting_style member and document with comparison to
45365         clocale_quoting_style.
45366         * tests/test-quotearg.c (custom_quotes): New array.
45367         (custom_results): New array.
45368         (main): Extend to test custom quoting.
45369
45370 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45371
45372         quotearg: fix right quote escaping when it's in quote_these_too
45373         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
45374         quote, be sure to prepend only one backslash.
45375         * tests/test-quotearg.c (use_quote_double_quotes): New function.
45376         (main): Test it.
45377
45378 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45379
45380         quotearg-tests: test escaping of embedded locale quotes
45381         * tests/test-quotearg.c (struct result_strings): Add member for
45382         new input.
45383         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
45384         (inputs): Add new input.
45385         (results_g): Add expected results.
45386         (flag_results): Likewise.
45387         (locale_results): Likewise.
45388         (compare_strings): Check those.
45389
45390 2009-08-23  Bruno Haible  <bruno@clisp.org>
45391
45392         Tests for module 'dup3'.
45393         * modules/dup3-tests: New file.
45394         * tests/test-dup3.c: New file.
45395
45396         New module 'dup3'.
45397         * lib/unistd.in.h (dup3): New declaration.
45398         * lib/dup3.c: New file.
45399         * m4/dup3.m4: New file.
45400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
45401         HAVE_DUP3.
45402         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
45403         * modules/dup3: New file.
45404         * doc/glibc-functions/dup3.texi: Mention the new module.
45405
45406 2009-08-23  Bruno Haible  <bruno@clisp.org>
45407
45408         Tweak the dup2 test.
45409         * tests/test-dup2.c (main): Create the test file empty. Verify that an
45410         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
45411         the test file is still empty. Fix argument order of lseek.
45412
45413 2009-08-23  Bruno Haible  <bruno@clisp.org>
45414
45415         Avoid test link errors when the modules getopt-gnu, gettext are used.
45416         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
45417         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45418
45419 2009-08-23  Bruno Haible  <bruno@clisp.org>
45420
45421         Fix getdtablesize() on mingw.
45422         * lib/getdtablesize.c (getdtablesize): Implement differently.
45423         * lib/unistd.in.h (getdtablesize): Improve comment.
45424
45425 2009-08-23  Bruno Haible  <bruno@clisp.org>
45426
45427         New module 'mkostemp'.
45428         Based on Ulrich Drepper's 2007-08-10 change in glibc.
45429         * lib/stdlib.in.h (mksotemp): New declaration.
45430         * lib/mkostemp.c: New file, from glibc with modifications.
45431         * lib/tempname.h (GT_FILE): Remove outdated comment.
45432         (gen_tempname): Add flags argument.
45433         * lib/tempname.c (__GT_BIGFILE): Remove macro.
45434         (__GT_FILE): Map to 1.
45435         (small_open, large_open): Remove macros.
45436         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
45437         * lib/mkstemp.c (mkstemp): Update.
45438         * lib/mkdtemp.c (mkdtemp): Likewise.
45439         * m4/mkostemp.m4: New file.
45440         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
45441         HAVE_MKOSTEMP.
45442         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
45443         HAVE_MKOSTEMP.
45444         * modules/mkostemp: New file, based on modules/mkstemp.
45445         * doc/glibc-functions/mkostemp.texi: Mention the new module.
45446         * NEWS: Mention the change.
45447
45448 2009-08-23  Bruno Haible  <bruno@clisp.org>
45449
45450         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
45451         Reported by Eric Blake.
45452
45453 2009-08-23  Bruno Haible  <bruno@clisp.org>
45454
45455         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
45456         Reported by Eric Blake.
45457
45458 2009-08-23  Bruno Haible  <bruno@clisp.org>
45459
45460         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
45461         * modules/pipe2 (Depends-on): Likewise.
45462
45463 2009-08-23  Eric Blake  <ebb9@byu.net>
45464
45465         fcntl-h: add O_TTY_INIT support
45466         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
45467         * tests/test-fcntl-h.c (o): Test it.
45468         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45469
45470         fcntl-h: rename from fcntl, in preparation for fcntl(2)
45471         * modules/fcntl: Move <fcntl.h> header replacement...
45472         * modules/fcntl-h: ...to new name, so as not to collide with
45473         like-named function.
45474         * tests/test-fcntl.c: Rename...
45475         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
45476         * modules/fcntl-tests: Rename...
45477         * modules/fcntl-h-tests: ...to this.  Update test file name.
45478         * modules/chdir-long (Depends-on): Update clients.
45479         * modules/chdir-safer (Depends-on): Likewise.
45480         * modules/fcntl-safer (Depends-on): Likewise.
45481         * modules/fts (Depends-on): Likewise.
45482         * modules/mkancesdirs (Depends-on): Likewise.
45483         * modules/mkdir-p (Depends-on): Likewise.
45484         * modules/open (Depends-on): Likewise.
45485         * modules/savewd (Depends-on): Likewise.
45486         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
45487         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45488
45489 2009-08-22  Bruno Haible  <bruno@clisp.org>
45490
45491         * modules/binary-io (License): Relicense under LGPL.
45492         * modules/pipe2 (License): Likewise.
45493
45494 2009-08-22  Bruno Haible  <bruno@clisp.org>
45495
45496         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
45497         return value.
45498         * lib/pipe-filter-gi.c (filter_init): Likewise.
45499         Reported by Eric Blake.
45500
45501 2009-08-22  Bruno Haible  <bruno@clisp.org>
45502
45503         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
45504         * modules/pipe (Depends-on): Add pipe2.
45505
45506 2009-08-22  Bruno Haible  <bruno@clisp.org>
45507
45508         Tests for module 'pipe2'.
45509         * modules/pipe2-tests: New file.
45510         * tests/test-pipe2.c: New file.
45511
45512         New module 'pipe2'.
45513         * lib/unistd.in.h (pipe2): New declaration.
45514         * lib/pipe2.c: New file.
45515         * m4/pipe2.m4: New file.
45516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
45517         HAVE_PIPE2.
45518         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
45519         * modules/pipe2: New file.
45520         * doc/glibc-functions/pipe2.texi: Mention the new module.
45521
45522 2009-08-22  Bruno Haible  <bruno@clisp.org>
45523
45524         Reference some new glibc functions.
45525         * doc/glibc-functions/accept4.texi: New file.
45526         * doc/glibc-functions/dup3.texi: New file.
45527         * doc/glibc-functions/mkostemp.texi: New file.
45528         * doc/glibc-functions/pipe2.texi: New file.
45529         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
45530         (Glibc sys/socket.h): Refer to accept4.
45531         (Glibc unistd.h): Refer to dup3, pipe2.
45532         Reported by Eric Blake.
45533
45534 2009-08-22  Jim Meyering  <meyering@redhat.com>
45535             Bruno Haible  <bruno@clisp.org>
45536
45537         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
45538         This makes it so packages using automake-1.11's silent-rules option
45539         can print e.g., a single "GEN    configmake.h" line, rather than
45540         the 30+ statements that perform the job.  If you want to see the
45541         actual commands, you can still run "make V=1".
45542         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
45543         so that make output is abbreviated when those variables are defined
45544         appropriately.
45545         * modules/argz: Likewise.
45546         * modules/arpa_inet: Likewise.
45547         * modules/byteswap: Likewise.
45548         * modules/configmake: Likewise.
45549         * modules/dirent: Likewise.
45550         * modules/errno: Likewise.
45551         * modules/fcntl: Likewise.
45552         * modules/float: Likewise.
45553         * modules/fnmatch: Likewise.
45554         * modules/getopt-posix: Likewise.
45555         * modules/glob: Likewise.
45556         * modules/iconv_open: Likewise.
45557         * modules/inttypes: Likewise.
45558         * modules/localcharset: Likewise.
45559         * modules/locale: Likewise.
45560         * modules/math: Likewise.
45561         * modules/netdb: Likewise.
45562         * modules/netinet_in: Likewise.
45563         * modules/poll: Likewise.
45564         * modules/posix_spawnp-tests: Likewise.
45565         * modules/sched: Likewise.
45566         * modules/search: Likewise.
45567         * modules/selinux-h: Likewise.
45568         * modules/signal: Likewise.
45569         * modules/spawn: Likewise.
45570         * modules/stdarg: Likewise.
45571         * modules/stdbool: Likewise.
45572         * modules/stddef: Likewise.
45573         * modules/stdint: Likewise.
45574         * modules/stdio: Likewise.
45575         * modules/stdlib: Likewise.
45576         * modules/string: Likewise.
45577         * modules/strings: Likewise.
45578         * modules/sys_file: Likewise.
45579         * modules/sys_ioctl: Likewise.
45580         * modules/sys_select: Likewise.
45581         * modules/sys_socket: Likewise.
45582         * modules/sys_stat: Likewise.
45583         * modules/sys_time: Likewise.
45584         * modules/sys_times: Likewise.
45585         * modules/sys_utsname: Likewise.
45586         * modules/sys_wait: Likewise.
45587         * modules/sysexits: Likewise.
45588         * modules/time: Likewise.
45589         * modules/unistd: Likewise.
45590         * modules/wchar: Likewise.
45591         * modules/wctype: Likewise.
45592
45593 2009-08-22  Jim Meyering  <meyering@redhat.com>
45594
45595         announce-gen: detect write failure
45596         * build-aux/announce-gen: Add Coda at end.
45597         Remove equivalent-but-more-verbose block at top.
45598
45599 2009-08-19  Akim Demaille  <demaille@gostai.com>
45600
45601         bootstrap: --help to stdout.
45602         * bootstrap (usage): Don't send --help to stderr.
45603         Use a here doc instead of a long string.
45604
45605 2009-08-21  Eric Blake  <ebb9@byu.net>
45606
45607         test-popen-safer: split from test-popen
45608         * tests/test-popen.c (main): Move...
45609         * tests/test-popen.h: ...into new file.
45610         * tests/test-popen-safer2.c: New file.
45611         * modules/popen-tests (Files): Add test-popen.h.
45612         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
45613         Suggested by Bruno Haible.
45614
45615         test-fcntl-safer: split from test-open
45616         * tests/test-open.c (main): Move...
45617         * tests/test-open.h: ...into new file.
45618         * tests/test-fcntl-safer.c: New file.
45619         * modules/open-tests (Files): Add test-open.h.
45620         * modules/fcntl-safer-tests: New file.
45621         Suggested by Bruno Haible.
45622
45623         test-fopen-safer: split from test-fopen
45624         * tests/test-fopen.c (main): Move...
45625         * tests/test-fopen.h: ...into new file.
45626         * tests/test-fopen-safer.c: New file.
45627         * modules/fopen-tests (Files): Add test-fopen.h.
45628         * modules/fopen-safer-tests: New file.
45629         Suggested by Bruno Haible.
45630
45631 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45632
45633         popen-safer: test O_CLOEXEC at run-time.
45634         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
45635
45636 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45637
45638         fcntl: move more flags to the header
45639         * lib/cloexec.c: Do not define FD_CLOEXEC here.
45640         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
45641         * lib/fcntl.in.h: Do both things here.
45642
45643 2009-08-21  Jim Meyering  <meyering@redhat.com>
45644
45645         consistently remove $@-t before redirecting to it
45646         * modules/argz: Remove $@-t and $@ before redirecting to the former.
45647         * modules/alloca-opt: Likewise.
45648         * modules/byteswap: Likewise.
45649         * modules/fnmatch: Likewise.
45650         * modules/getopt-posix: Likewise.
45651         * modules/glob: Likewise.
45652         * modules/poll: Likewise.
45653         * modules/posix_spawnp-tests: Likewise.
45654         * modules/sys_socket: Likewise.
45655         * modules/sysexits: Likewise.
45656
45657 2009-08-21  Eric Blake  <ebb9@byu.net>
45658
45659         popen: simplify access to original popen
45660         * lib/popen.c (rpl_popen): No need to worry about popen being a
45661         macro.
45662         Reported by Bruno Haible.
45663
45664 2009-08-20  Eric Blake  <ebb9@byu.net>
45665
45666         build: avoid some compiler warnings
45667         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
45668         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
45669         type.
45670         (new_exclude_segment, excluded_file_pattern_p)
45671         (excluded_file_name_p): Reduce scope.
45672         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
45673         old-style declaration.
45674
45675 2009-08-20  Simon Josefsson  <simon@josefsson.org>
45676
45677         * tests/test-exclude1.sh: Handle Windows EOL.
45678         * tests/test-exclude2.sh: Likewise.
45679         * tests/test-exclude3.sh: Likewise.
45680         * tests/test-exclude4.sh: Likewise.
45681         * tests/test-exclude5.sh: Likewise.
45682         * tests/test-exclude6.sh: Likewise.
45683         * tests/test-exclude7.sh: Likewise.
45684
45685 2009-08-19  Akim Demaille  <demaille@gostai.com>
45686
45687         bootstrap: find sha1sum when named gsha1sum.
45688         * bootstrap (find_tool): New.
45689         ($SHA1SUM): New.
45690         Use it.
45691
45692 2009-08-20  Jim Meyering  <meyering@redhat.com>
45693
45694         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
45695         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
45696         expression that converts "." in a file name to "\." in the resulting
45697         regexp.  Start with a dummy statement, so that prior shell variable
45698         definitions are expanded portably.  Reported by Simon Josefsson.
45699
45700 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
45701
45702         Fix polling for writeability of a screen buffer.
45703         * lib/poll.c: Distinguish input and screen buffers for the
45704         Win32 implementation.
45705         * lib/select.c: Likewise.
45706
45707 2009-08-19  Eric Blake  <ebb9@byu.net>
45708
45709         popen-safer: prevent popen from clobbering std descriptors
45710         * modules/popen-safer: New file.
45711         * lib/popen-safer.c: Likewise.
45712         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
45713         * lib/stdio--.h (popen): Provide override.
45714         * lib/stdio-safer.h (popen_safer): Provide declaration.
45715         * tests/test-popen.c (includes): Partially test this.
45716         * modules/popen-safer-tests: New file, for more tests.
45717         * tests/test-popen-safer.c: Likewise.
45718         * MODULES.html.sh (file stream based Input/Output): Mention it.
45719
45720         tests: test some of the *-safer modules
45721         * modules/fopen-safer (Depends-on): Add fopen.
45722         * modules/fcntl-safer (Depends-on): Add fcntl.
45723         * modules/stdlib-safer (Depends-on): Add stdlib.
45724         (configure.ac): Set indicator.
45725         * modules/unistd-safer (configure.ac): Likewise.
45726         * modules/tmpfile-safer (configure.ac): Likewise.
45727         (Depends-on): Add tmpfile.
45728         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
45729         active.
45730         * tests/test-fopen.c (includes): Test safer versions when they are
45731         in use.
45732         * tests/test-open.c (includes): Likewise.
45733
45734         popen: fix cygwin 1.5 bug when stdin closed
45735         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
45736         * modules/popen: New file.
45737         * modules/popen-tests: Likewise.
45738         * tests/test-popen.c: Likewise.
45739         * m4/popen.m4: Likewise.
45740         * lib/popen.c: Likewise.
45741         * lib/stdio.in.h (popen): New declaration.
45742         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
45743         * modules/stdio (Makefile.am): Likewise.
45744         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
45745
45746 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
45747
45748         maint.mk: give full control over update-copyright exclusions
45749         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
45750         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
45751         (update-copyright): Don't force inclusion of top-level
45752         ChangeLog.  Don't force exclusion of all COPYING files, but make
45753         them the default exclusion instead.
45754
45755 2009-08-16  Bruno Haible  <bruno@clisp.org>
45756
45757         Fix test failures on Solaris 10.
45758         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
45759         tests when Solaris iconv() is used.
45760         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
45761         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
45762         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
45763         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
45764         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
45765
45766 2009-08-16  Bruno Haible  <bruno@clisp.org>
45767
45768         Fix test failures on Solaris 10.
45769         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
45770         'tr' program and pass it as first argument.
45771         * tests/test-pipe-filter-gi1.sh: Likewise.
45772         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
45773         program as first argument.
45774         * tests/test-pipe-filter-gi1.c (main): Likewise.
45775
45776 2009-08-16  Eric Blake  <ebb9@byu.net>
45777
45778         fpurge: fix previous commits
45779         * modules/fpurge (Makefile.am): Make replacement conditional,
45780         partially reverting 2007-04-29 change; missed in previous
45781         attempt.
45782         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
45783         is missing.
45784
45785 2009-08-16  Bruno Haible  <bruno@clisp.org>
45786
45787         Clarify fpurge's effect on the file position.
45788         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
45789         * tests/test-fpurge.c (main): Make a second pass for checking the file
45790         position.
45791
45792 2009-08-16  Bruno Haible  <bruno@clisp.org>
45793
45794         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
45795         declaration of fpurge is missing.
45796         * tests/test-fpurge.c (main): Check that the file has not more contents
45797         than expected. Close the file before removing it.
45798
45799 2009-08-15  Eric Blake  <ebb9@byu.net>
45800
45801         fpurge: don't wrap working cygwin implementation
45802         * lib/fpurge.c (fpurge): Fix comment typo.
45803         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
45804         1.7 to avoid replacement.
45805         * tests/test-fpurge.c (main): Enhance test.
45806
45807 2009-08-15  Eric Blake  <ebb9@byu.net>
45808         and Jim Meyering  <meyering@redhat.com>
45809
45810         test-update-copyright: skip if perl is insufficient
45811         * tests/test-update-copyright.sh: Failure to run maintainer tool
45812         should not cause testsuite failure on cygwin 1.5.
45813
45814 2009-08-14  Eric Blake  <ebb9@byu.net>
45815
45816         doc: mention more functions added in cygwin 1.7.0
45817         * doc/posix-headers/limits.texi (limits.h): Update for recent
45818         cygwin additions.
45819         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
45820         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
45821         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
45822         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
45823         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
45824
45825 2009-08-14  Eric Blake  <ebb9@byu.net>
45826
45827         maint.mk: simplify update-copyright rule
45828         * top/maint.mk (update-copyright-local): Delete, and document how
45829         to do it in cfg.mk instead.
45830         (update-copyright-exclude-regexp): Delete, and document how to do
45831         it in .x-update-copyright instead.
45832         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
45833         exclude ChangeLog.
45834
45835 2009-08-14  Bruno Haible  <bruno@clisp.org>
45836
45837         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
45838
45839 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45840
45841         maint.mk: support update-copyright-env
45842         * top/maint.mk (update-copyright-env): Define place-holder.
45843         (update-copyright): Expand $(update-copyright-env) before
45844         invoking update-copyright.
45845
45846 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45847
45848         update-copyright: implement forced reformatting
45849         * build-aux/update-copyright: Implement and document
45850         UPDATE_COPYRIGHT_FORCE.
45851         * tests/test-update-copyright.sh: Test it.
45852
45853 2009-08-14  Eric Blake  <ebb9@byu.net>
45854         and Bruno Haible  <bruno@clisp.org>
45855
45856         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
45857         * tests/test-locale.c: Revert previous patch related to NULL.
45858         * tests/test-stdio.c: Likewise.
45859         * tests/test-stdlib.c: Likewise.
45860         * tests/test-string.c: Likewise.
45861         * tests/test-unistd.c: Likewise.
45862         * modules/time-tests (Depends-on): Add verify.
45863         * modules/wchar-tests (Depends-on): Likewise.
45864         * tests/test-time.c: Test for NULL compliance.
45865         * tests/test-wchar.c: Likewise.
45866         * modules/locale (Depends-on): Add stddef.
45867         * modules/stdio (Depends-on): Likewise.
45868         * modules/stdlib (Depends-on): Likewise.
45869         * modules/string (Depends-on): Likewise.
45870         * modules/time (Depends-on): Likewise.
45871         * modules/unistd (Depends-on): Likewise.
45872         * modules/wchar (Depends-on): Likewise.
45873         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
45874         * lib/stdlib.in.h (includes): Likewise.
45875         * lib/string.in.h (includes): Likewise.
45876         * lib/time.in.h (includes): Likewise.
45877         * lib/unistd.in.h (includes): Likewise.
45878         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
45879         replaced.
45880         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
45881         * m4/stddef_h.m4: New file.
45882         * modules/stddef: Likewise.
45883         * lib/stddef.in.h: Likewise.
45884         * modules/stddef-tests: Likewise.
45885         * tests/test-stddef.c: Likewise.
45886         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
45887         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
45888         * doc/posix-headers/locale.texi (locale.h): Likewise.
45889         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
45890         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
45891         * doc/posix-headers/string.texi (string.h): Likewise.
45892         * doc/posix-headers/time.texi (time.h): Likewise.
45893         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
45894         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
45895
45896 2009-08-14  Eric Blake  <ebb9@byu.net>
45897
45898         doc: improve git diff of texinfo files
45899         * .gitattributes: Add rule for *.texi files, with hint on how to
45900         use it.
45901         Copied from m4, and based on a report by Bruno Haible.
45902
45903 2009-08-14  Bruno Haible  <bruno@clisp.org>
45904
45905         Disable multithread support by default on Cygwin 1.5.x for real.
45906         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
45907
45908 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45909
45910         update-copyright: much ado about intervals
45911         * build-aux/update-copyright: Implement and document
45912         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
45913         of copyright year intervals.
45914         Also, document UPDATE_COPYRIGHT_YEAR.
45915         * tests/test-update-copyright.sh: Test it.
45916
45917         update-copyright: convert 2-digit to 4-digit years
45918         * build-aux/update-copyright: Implement and document.
45919         * tests/test-update-copyright.sh: Update.
45920
45921 2009-08-14  Jim Meyering  <meyering@redhat.com>
45922
45923         test-exclude: avoid coreutils "make check" failure
45924         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
45925         just as in test-argmatch.c.
45926
45927 2009-08-13  Eric Blake  <ebb9@byu.net>
45928
45929         test-dup2: fix bad assumption
45930         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
45931         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
45932
45933         test-version-etc: fix CRLF portability issue
45934         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
45935         recognize \r.
45936         * tests/test-argp-version-etc-1.sh: Likewise.
45937
45938         getopt: update client modules
45939         * modules/argp (Depends-on): Use getopt-gnu.
45940         * modules/git-merge-changelog (Depends-on): Likewise.
45941         * modules/long-options (Depends-on): Likewise.
45942         * modules/xstrtol (Depends-on): Likewise.
45943
45944 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45945
45946         * tests/test-version-etc.sh: Don't fail on different
45947         project/version.  Don't fail on CRLF differences.  Rewrite to use
45948         multiple -e instead of multiple sed forks, suggested by Eric Blake
45949         <ebb9@byu.net>.
45950         * tests/test-argp-version-etc-1.sh: Likewise.
45951
45952 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45953
45954         * tests/test-version-etc.sh: Don't fail on different
45955         project/version.
45956
45957 2009-08-12  Bruno Haible  <bruno@clisp.org>
45958
45959         Tests for modules 'getopt-posix', 'getopt-gnu'.
45960         * modules/getopt-posix-tests: New file.
45961         * tests/test-getopt.c: New file.
45962         * tests/test-getopt.h: New file.
45963         * tests/test-getopt_long.h: New file.
45964
45965         New modules 'getopt-posix', 'getopt-gnu'.
45966         * modules/getopt-gnu: New file, renamed from modules/getopt.
45967         * modules/getopt-posix: New file.
45968         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
45969         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
45970         (gl_GETOPT): Remove macro.
45971         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
45972         Disable the test against BSD systems that declare optreset. Test
45973         against mingw bug. Test against lack of support of optional arguments
45974         on many platforms.
45975         * doc/glibc-headers/getopt.texi: Update module name and list of
45976         relevant platforms.
45977         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
45978         'getopt-gnu' and more portability problems.
45979         * NEWS: Mention the changes.
45980
45981 2009-08-12  Bruno Haible  <bruno@clisp.org>
45982
45983         Ensure that optarg etc. get declared by <unistd.h>.
45984         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
45985         AC_USE_SYSTEM_EXTENSIONS.
45986         * modules/getopt (Depends-on): Add 'extensions'.
45987
45988 2009-08-12  Bruno Haible  <bruno@clisp.org>
45989
45990         Avoid test link errors.
45991         * modules/pipe-filter-ii-tests (Makefile.am): Define
45992         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
45993         * modules/pipe-filter-gi-tests (Makefile.am): Define
45994         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
45995         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45996
45997 2009-08-12  Bruno Haible  <bruno@clisp.org>
45998
45999         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
46000         gl_GETOPT_SUBSTITUTE before.
46001         (gl_GETOPT): Use it.
46002         * m4/argp.m4 (gl_ARGP): Update.
46003         Reported by Sergey Poznyakoff.
46004
46005         * m4/getopt.m4: Reorder macros.
46006         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
46007         (gl_GETOPT_SUBSTITUTE): Remove macro.
46008
46009 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46010
46011         Minor improvement in gitlog-to-changelog
46012
46013         * build-aux/gitlog-to-changelog: New option `--format' makes
46014         output format string configurable.
46015
46016 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46017
46018         Optimize exclude: use hash tables for non-wildcard patterns.
46019
46020         * lib/exclude.c: Include hash.h and mbuiter.h
46021         (struct exclude_pattern, exclude_segment): New data types.
46022         (struct exclude): Rewrite.
46023         (fnmatch_pattern_has_wildcards): New function.
46024         (new_exclude_segment, free_exclude_segment): New functions.
46025         (excluded_file_pattern_p, excluded_file_name_p): New functions.
46026         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
46027         * lib/exclude.h (is_fnmatch_pattern): New prototype.
46028         * modules/exclude: Depend on hash and mbuiter.
46029
46030         * modules/exclude-tests: New file.
46031         * tests/test-exclude.c: New file.
46032         * tests/test-exclude1.sh: New file.
46033         * tests/test-exclude2.sh: New file.
46034         * tests/test-exclude3.sh: New file.
46035         * tests/test-exclude4.sh: New file.
46036         * tests/test-exclude5.sh: New file.
46037         * tests/test-exclude6.sh: New file.
46038         * tests/test-exclude7.sh: New file.
46039
46040 2009-08-12  Bruno Haible  <bruno@clisp.org>
46041
46042         Ensure that getopt() gets declared by <unistd.h>.
46043         * lib/unistd.in.h: Conditionally include getopt.h.
46044         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
46045         Set GNULIB_UNISTD_H_GETOPT.
46046         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46047         GNULIB_UNISTD_H_GETOPT.
46048         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
46049
46050 2009-08-12  Bruno Haible  <bruno@clisp.org>
46051
46052         Clarify logic.
46053         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
46054         gl_replace_getopt instead of GETOPT_H.
46055
46056 2009-08-12  Bruno Haible  <bruno@clisp.org>
46057
46058         * m4/getopt.m4: Add comments.
46059
46060 2009-08-12  Bruno Haible  <bruno@clisp.org>
46061
46062         Disable multithread support by default on Cygwin 1.5.x.
46063         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
46064         set gl_use_threads=no if not specified otherwise.
46065
46066 2009-08-11  Bruno Haible  <bruno@clisp.org>
46067
46068         Avoid compilation error on NetBSD 5.0.
46069         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
46070         * tests/test-stdio.c: Likewise.
46071         * tests/test-stdlib.c: Likewise.
46072         * tests/test-string.c: Likewise.
46073         * tests/test-unistd.c: Likewise.
46074         Reported by Greg Troxel <gdt@ir.bbn.com>
46075         at <https://savannah.gnu.org/support/?106973>.
46076
46077 2009-08-11  Bruno Haible  <bruno@clisp.org>
46078
46079         * modules/dup2-tests (Depends-on): Remove close.
46080
46081         Undo 2009-07-19 commit.
46082         * modules/acl-tests (Depends-on): Remove close.
46083         * modules/binary-io-tests (Depends-on): Likewise.
46084         * modules/closein-tests (Depends-on): Likewise.
46085         * modules/flock-tests (Depends-on): Likewise.
46086         * modules/fsync-tests (Depends-on): Likewise.
46087         * modules/lseek-tests (Depends-on): Likewise.
46088         * modules/pipe-tests (Depends-on): Likewise.
46089         * modules/posix_spawn-tests (Depends-on): Likewise.
46090         * modules/posix_spawnp-tests (Depends-on): Likewise.
46091         * modules/stat-time-tests (Depends-on): Likewise.
46092         * modules/yesno-tests (Depends-on): Likewise.
46093
46094 2009-08-10  Bruno Haible  <bruno@clisp.org>
46095
46096         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
46097
46098 2009-08-10  Bruno Haible  <bruno@clisp.org>
46099
46100         Fix a gcc warning.
46101         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
46102
46103 2009-08-10  Bruno Haible  <bruno@clisp.org>
46104
46105         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
46106         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
46107         not only the first time.
46108         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
46109         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
46110         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
46111         is 1, not only the the first time.
46112
46113 2009-08-10  Bruno Haible  <bruno@clisp.org>
46114
46115         Make it possible to use module 'gethostname' without module 'close'.
46116         * lib/unistd.in.h (close): Evoke a link error only if
46117         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46119         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46120         * modules/unistd (Makefile.am): Substitute
46121         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46122         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
46123         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46124         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
46125         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46126         * modules/sys_ioctl (Makefile.am): Substitute
46127         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46128         * modules/socket (configure.ac): On native Windows, set
46129         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
46130         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46131         Reported by Sam Steingold <sds@gnu.org>.
46132
46133 2009-08-10  Bruno Haible  <bruno@clisp.org>
46134
46135         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
46136         * modules/ioctl (configure.ac): Likewise.
46137
46138 2009-08-10  Bruno Haible  <bruno@clisp.org>
46139
46140         Avoid collision between gnulib wrapper and libintl wrapper.
46141         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
46142         already defined in intl/printf.c.
46143         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
46144         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
46145
46146 2009-08-09  Bruno Haible  <bruno@clisp.org>
46147
46148         Make <sys/select.h> really self-contained, also on Solaris 10.
46149         * lib/sys_select.in.h: Include <string.h>.
46150         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
46151         Solaris 10 problem.
46152         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
46153         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
46154         Reported by Jim Meyering.
46155
46156 2009-08-09  Bruno Haible  <bruno@clisp.org>
46157
46158         Avoid warnings from 'aclocal' that are due to a use of macro name
46159         AM_XGETTEXT_OPTION that is not defined in automake.
46160         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
46161         automake.
46162         * modules/error (configure.ac): Likewise.
46163         * modules/propername (configure.ac): Likewise.
46164         * modules/vasprintf (configure.ac): Likewise.
46165         * modules/verror (configure.ac): Likewise.
46166         * modules/xprintf (configure.ac): Likewise.
46167         * modules/xvasprintf (configure.ac): Likewise.
46168
46169 2009-08-08  Bruno Haible  <bruno@clisp.org>
46170
46171         Avoid compilation error in C++ mode.
46172         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
46173         Reported by Sam Steingold <sds@gnu.org>.
46174
46175 2009-08-08  Bruno Haible  <bruno@clisp.org>
46176
46177         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
46178         for the various Unix platforms.
46179         * doc/posix-headers/limits.texi: Update platforms list regarding
46180         HOST_NAME_MAX.
46181         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46182
46183 2009-08-07  Jim Meyering  <meyering@redhat.com>
46184
46185         selinux-at: fix typo in a comment
46186         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
46187         Spotted by Paolo Bonzini.
46188
46189         selinux-at: remove redundant m4 code, add documentation
46190         * modules/selinux-at (configure.ac): Remove redundant code.
46191         LIB_SELINUX is already set via the dependent module, selinux-h.
46192         (Include): Add quotes around selinux-at.h.
46193         * lib/selinux-at.h: Add documentation.
46194         Reported by Bruno Haible in
46195         http://marc.info/?l=gnulib-bug&m=124958988300749
46196
46197 2009-08-07  Bruno Haible  <bruno@clisp.org>
46198
46199         Avoid link error on MacOS X 10.3 and 10.4.
46200         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
46201         on non-ELF systems.
46202         * lib/argp-pv.c (argp_program_version): Likewise.
46203         Reported by Simon Josefsson.
46204
46205 2009-08-07  Simon Josefsson  <simon@josefsson.org>
46206
46207         * tests/test-version-etc.sh: Use $EXEEXT.
46208
46209 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
46210
46211         update-copyright: update documentation to point to maint.mk
46212         * build-aux/update-copyright: Here.
46213
46214 2009-08-06  Jim Meyering  <meyering@redhat.com>
46215
46216         maint.mk: support update-copyright-local
46217         * top/maint.mk (update-copyright-local): Define place-holder.
46218         (update-copyright): Depend on $(update-copyright-local).
46219
46220 2009-08-06  Jim Meyering  <meyering@redhat.com>
46221
46222         selinux-at: new module
46223         Initially written for coreutils, this module will soon be
46224         used by findutils, too.
46225         * MODULES.html.sh [Misc]: Add selinux-at.
46226         * lib/selinux-at.h: New file, from coreutils.
46227         * lib/selinux-at.c: Likewise.
46228         * modules/selinux-at: Likewise.
46229         (License): Change from LGPL to GPL, since it depends
46230         on the GPL'd openat module.
46231
46232         doc: update README
46233         * README: Remove references to cogito.
46234         Remove cvs-repo-updating instructions from 2007.
46235         Don't imply that CVS is better if you have limited disk space.
46236
46237 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46238
46239         update-copyright: support C-style comments
46240         * build-aux/update-copyright: Implement and document.
46241         * tests/test-update-copyright.sh: Test.
46242
46243 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46244
46245         update-copyright: support omitted "(C)"
46246         * build-aux/update-copyright: Implement and document.  Also,
46247         allow variable whitespace before "(C)".
46248         * tests/test-update-copyright.sh: Test.
46249
46250 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46251
46252         update-copyright: don't trip on non-FSF copyright statements
46253         * build-aux/update-copyright: Fix so that the first correctly
46254         formatted FSF copyright statement is recognized no matter what
46255         appears before it.  Update documentation.
46256         * tests/test-update-copyright.sh: Test that.
46257
46258 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46259
46260         update-copyright: clean up code a little
46261         * build-aux/update-copyright: Append "_re" to the name of any
46262         variable holding a regular expression.
46263         Replace "old" and "new" with "stmt" in variable names.
46264         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
46265         handled correctly.
46266         Format code more consistently.
46267
46268 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46269
46270         update-copyright-tests: improve portability
46271         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
46272         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
46273
46274 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46275
46276         update-copyright: support @copyright{} and &copy;
46277         * build-aux/update-copyright: Implement and document.
46278         * tests/test-update-copyright.sh: Test.
46279
46280 2009-08-04  Jim Meyering  <meyering@redhat.com>
46281
46282         update-copyright-tests: correctly test EOL=\r\n handling
46283         * tests/test-update-copyright.sh: Put \r at the end of some lines
46284         for the dos-eol tests.  Based on a patch by Joel E. Denny.
46285
46286         maint.mk: make update-copyright exclusion list more configurable
46287         * top/maint.mk (update-copyright): Default to excluding COPYING,
46288         but allow an override, in case someone does want to update that file.
46289
46290         maint.mk: don't update copyright date in COPYING
46291         * top/maint.mk (update-copyright): Exclude COPYING.
46292
46293         maint.mk: add a copyright-updating rule
46294         * top/maint.mk (update-copyright): New rule.
46295         Derived from coreutils/Makefile.am.
46296
46297         update-copyright: rename some variables
46298         * build-aux/update-copyright: Rename a few variables for clarity.
46299         Tweak syntax.  List Joel E. Denny as coauthor.
46300
46301 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46302
46303         update-copyright: fix bug for 2-digit last year and add tests
46304         * build-aux/update-copyright: Fix bug.
46305         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
46306         specified.
46307         * modules/update-copyright-tests: New
46308         * tests/test-update-copyright.sh: New.
46309
46310 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46311
46312         update-copyright: handle leading tabs in line prefix
46313         * build-aux/update-copyright: Count leading tabs as 8 spaces
46314         when computing margin.  This helps with the formatting of
46315         ChangeLogs, for example.
46316         Fix documentation a little.
46317
46318 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46319
46320         update-copyright: support EOL=\r\n
46321         * build-aux/update-copyright: Implement that.
46322
46323 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46324
46325         update-copyright: automatically format copyright statements
46326         * build-aux/update-copyright: Implement that.
46327         Also, be a little more predictable and safer by always failing
46328         when the full copyright format is not perfectly recognized as an
46329         unbroken whole.  Discussed at
46330         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
46331         Rewrite documentation.
46332
46333 2009-08-03  Bruno Haible  <bruno@clisp.org>
46334
46335         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
46336
46337 2009-08-02  Bruno Haible  <bruno@clisp.org>
46338
46339         Tests for module 'uname'.
46340         * modules/uname-tests: New file.
46341         * tests/test-uname.c: New file.
46342
46343         New module 'uname'.
46344         * lib/uname.c: New file.
46345         * m4/uname.m4: New file.
46346         * modules/uname: New file.
46347         * doc/posix-functions/uname.texi: Mention the new module.
46348
46349 2009-08-02  Bruno Haible  <bruno@clisp.org>
46350
46351         Tests for module 'sys_utsname'.
46352         * modules/sys_utsname-tests: New file.
46353         * tests/test-sys_utsname.c: New file.
46354
46355         New module 'sys_utsname'.
46356         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
46357         * m4/sys_utsname_h.m4: New file.
46358         * modules/sys_utsname: New file.
46359         * doc/posix-headers/sys_utsname.texi: Mention the new module.
46360
46361 2009-08-02  Bruno Haible  <bruno@clisp.org>
46362
46363         Implicitly initialize the sockets library.
46364         * lib/gethostname.c: Include sockets.h.
46365         (rpl_gethostname): Invoke gl_sockets_startup.
46366         * lib/socket.c: Include sockets.h.
46367         (rpl_socket): Invoke gl_sockets_startup.
46368         * modules/gethostname (Depends-on): Add sockets.
46369         * modules/socket (Depends-on): Likewise.
46370         * tests/test-poll.c: Don't include sockets.h.
46371         (main): Don't invoke gl_sockets_startup.
46372         * tests/test-select.c: Don't include sockets.h.
46373         (main): Don't invoke gl_sockets_startup.
46374
46375 2009-08-02  Bruno Haible  <bruno@clisp.org>
46376
46377         Allow multiple calls to gl_sockets_startup.
46378         * lib/sockets.c (initialized_sockets_version): New variable.
46379         (gl_sockets_startup): Do nothing if already called for this or a higher
46380         version.
46381         (gl_sockets_cleanup): Reset initialized_sockets_version.
46382
46383 2009-08-03  Simon Josefsson  <simon@josefsson.org>
46384
46385         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
46386         different project/version.
46387
46388 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
46389             Bruno Haible  <bruno@clisp.org>
46390
46391         Tests for module 'pipe-filter-gi'.
46392         * modules/pipe-filter-gi-tests: New file.
46393         * tests/test-pipe-filter-gi1.sh: New file.
46394         * tests/test-pipe-filter-gi1.c: New file.
46395         * tests/test-pipe-filter-gi2.sh: New file.
46396         * tests/test-pipe-filter-gi2-main.c: New file.
46397         * tests/test-pipe-filter-gi2-child.c: New file.
46398
46399         New module 'pipe-filter-gi'.
46400         * lib/pipe-filter-gi.c: New file.
46401         * modules/pipe-filter-gi: New file.
46402
46403 2009-08-02  Bruno Haible  <bruno@clisp.org>
46404             Paolo Bonzini  <bonzini@gnu.org>
46405
46406         Tests for module 'pipe-filter-ii'.
46407         * modules/pipe-filter-ii-tests: New file.
46408         * tests/test-pipe-filter-ii1.sh: New file.
46409         * tests/test-pipe-filter-ii1.c: New file.
46410         * tests/test-pipe-filter-ii2.sh: New file.
46411         * tests/test-pipe-filter-ii2-main.c: New file.
46412         * tests/test-pipe-filter-ii2-child.c: New file.
46413
46414         New module 'pipe-filter-ii'.
46415         * lib/pipe-filter.h: New file.
46416         * lib/pipe-filter-ii.c: New file.
46417         * lib/pipe-filter-aux.h: New file.
46418         * modules/pipe-filter-ii: New file.
46419
46420 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46421
46422         * lib/gc-libgcrypt.c: Change copyright to FSF.
46423         * lib/gc-gnulib.c: Likewise.
46424
46425 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
46426
46427         * lib/gethostname.c: Include limits.h.
46428
46429 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46430             Bruno Haible  <bruno@clisp.org>
46431
46432         Ensure HOST_NAME_MAX as part of the gethostname module.
46433         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
46434         define also HOST_NAME_MAX.
46435         * tests/test-gethostname.c: Include <limits.h>.
46436         (main): Check also HOST_NAME_MAX.
46437         * doc/posix-headers/limits.texi: Document the mingw problem.
46438
46439 2009-08-02  Bruno Haible  <bruno@clisp.org>
46440
46441         * lib/gethostname.c (gethostname): Fix handling of large len argument.
46442         Add comments.
46443
46444 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46445
46446         * lib/gethostname.c: Add Windows wrapper.
46447         * m4/gethostname.m4: Look for gethostname in -lws2_32.
46448         * modules/gethostname: Depend on sys_socket & errno, for also
46449         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
46450         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
46451
46452 2009-07-31  Jim Meyering  <meyering@redhat.com>
46453
46454         getloadavg: fix symbol name in comment
46455         * lib/getloadavg.c: Correct a typo I introduced when adding
46456         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
46457         Matt Kraai spotted the problem.
46458
46459 2009-07-29  Matt Kraai  <mkraai@beckman.com>
46460
46461         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
46462         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
46463         code also if ! defined N_NAME_POINTER.
46464         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
46465         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
46466         but the n_name member is a 12-byte array.
46467
46468 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
46469
46470         update-copyright: generalize comment handling
46471         * build-aux/update-copyright: Handle copyright statements
46472         within more comment styles.
46473         Document usage.
46474         Report any file with an external copyright holder or parse failure.
46475
46476 2009-07-29  Jim Meyering  <meyering@redhat.com>
46477
46478         mktime: correct setting of REPLACE_MKTIME
46479         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
46480
46481         update-copyright: new module
46482         * modules/update-copyright: New file.
46483         * build-aux/update-copyright: New file.
46484         * MODULES.html.sh (maint+release support): Add update-copyright.
46485
46486 2009-07-27  Bruno Haible  <bruno@clisp.org>
46487
46488         Fix compilation error when <ctime> is used and mktime is replaced.
46489         * lib/time.in.h (mktime): New declaration.
46490         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
46491         REPLACE_MKTIME instead of defining mktime in config.h.
46492         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
46493         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
46494         Reported by Ross McFarland <rwmcfa1@neces.com>.
46495
46496 2009-07-27  Bruno Haible  <bruno@clisp.org>
46497
46498         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
46499         Reported by Matt Kraai <mkraai@beckman.com>.
46500
46501 2009-07-25  Jim Meyering  <meyering@redhat.com>
46502
46503         maint.mk: avoid warnings about missing files
46504         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
46505         diagnostic when .prev-version does not exist.
46506         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
46507         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
46508         nonexistent cfg.mk.
46509         Suggestions from Simon Josefsson.
46510
46511 2009-07-25  Bruno Haible  <bruno@clisp.org>
46512
46513         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
46514         defined as macros. Needed on QNX 6.4.1.
46515         Reported by Matt Kraai <mkraai@beckman.com>.
46516
46517 2009-07-23  Jim Meyering  <meyering@redhat.com>
46518
46519         maint.mk: invoke "make dist" with a working value of XZ_OPT
46520         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
46521
46522 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
46523
46524         Make fseeko.c compile on QNX.
46525         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
46526
46527 2009-07-22  Peter Simons  <simons@cryp.to>
46528
46529         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
46530         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
46531         * lib/md4.h: Likewise.
46532         * lib/md5.h: Likewise.
46533         * lib/sha1.h: Likewise.
46534         * lib/sha256.h: Likewise.
46535         * lib/sha512.h: Likewise.
46536
46537         tests-sha1: don't assign literal string to 'char *' variable
46538         * tests/test-sha1.c (main): Declare locals with "const" to match
46539         attributes of the right hand side.
46540
46541 2009-07-21  Eric Blake  <ebb9@byu.net>
46542
46543         dup2: fix more mingw problems
46544         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
46545         fd to itself.
46546         * doc/posix-functions/dup2.texi (dup2): Document the bug.
46547         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
46548         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
46549         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
46550         care of mingw bugs.
46551
46552 2009-07-21  Jim Meyering  <meyering@redhat.com>
46553
46554         vc-list-files: avoid failure when /bin/sh is dash
46555         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
46556         On some Debian based systems, /bin/sh is a symlink to dash, and running
46557         this command would omit the "/" following each 'tests' prefix:
46558           dash -x build-aux/vc-list-files -C . tests
46559         That is because bash and dash work differently:
46560           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
46561           bash ok
46562           dash odd
46563
46564 2009-07-21  Eric Blake  <ebb9@byu.net>
46565
46566         dup2-tests: test previous patch
46567         * modules/dup2-tests: New file.
46568         * tests/test-dup2.c: Likewise.
46569         * tests/test-open.c (main): Avoid unspecified behavior.
46570         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
46571         test.
46572
46573         dup2: work around mingw and cygwin 1.5 bug
46574         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
46575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46576         * modules/unistd (Makefile.am): Substitute it.
46577         * lib/unistd.in.h (dup2): Declare the replacement.
46578         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
46579         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
46580         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
46581         * modules/execute (Depends-on): Add dup2.
46582         * modules/fseterr (Depends-on): Likewise.
46583         * modules/pipe (Depends-on): Likewise.
46584         * modules/posix_spawn-internal (Depends-on): Likewise.
46585
46586 2009-07-21  Bruno Haible  <bruno@clisp.org>
46587
46588         * modules/.gitattributes: New file.
46589
46590 2009-07-20  Bruno Haible  <bruno@clisp.org>
46591
46592         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
46593         (main): Use it.
46594
46595 2009-07-20  Eric Blake  <ebb9@byu.net>
46596
46597         test-pipe: make a bit more robust.
46598         * tests/test-pipe.c (myerr): Allow error messages regardless of
46599         what we do to stderr.
46600         (test_pipe): Rearrange to avoid deadlock.
46601         (child_main): Try a larger read, to ensure we avoided deadlock.
46602         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
46603         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
46604         if misused.
46605
46606 2009-07-19  Jim Meyering  <meyering@redhat.com>
46607
46608         fts: avoid false-positive cycle-detection
46609         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
46610         for each new command line argument.
46611
46612 2009-07-19  Bruno Haible  <bruno@clisp.org>
46613
46614         Fix build error on mingw with the modules sys_select and unistd.
46615         * modules/acl-tests (Depends-on): Add close.
46616         * modules/binary-io-tests (Depends-on): Likewise.
46617         * modules/closein-tests (Depends-on): Likewise.
46618         * modules/flock-tests (Depends-on): Likewise.
46619         * modules/fsync-tests (Depends-on): Likewise.
46620         * modules/lseek-tests (Depends-on): Likewise.
46621         * modules/pipe-tests (Depends-on): Likewise.
46622         * modules/posix_spawn-tests (Depends-on): Likewise.
46623         * modules/posix_spawnp-tests (Depends-on): Likewise.
46624         * modules/stat-time-tests (Depends-on): Likewise.
46625         * modules/yesno-tests (Depends-on): Likewise.
46626
46627 2009-07-19  Bruno Haible  <bruno@clisp.org>
46628
46629         Unify conditionals.
46630         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
46631         macros, not at the compiler macros.
46632         * lib/pipe.c: Likewise.
46633         * lib/execute.c: Likewise.
46634         * lib/spawni.c: Likewise.
46635
46636 2009-07-19  Bruno Haible  <bruno@clisp.org>
46637
46638         Fix handling of closed stdin/stdout/stderr on mingw.
46639         * lib/w32spawn.h: Include unistd.h.
46640         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
46641         file descriptor with O_NOINHERIT flag.
46642         (fd_safer_noinherit): New function, based on fd-safer.c.
46643         (dup_safer_noinherit): New function, based on dup-safer.c.
46644         (undup_safer_noinherit): New function.
46645         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
46646         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
46647         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
46648         instead of fd_safer.
46649         * tests/test-pipe.c: Include <windows.h>.
46650         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
46651         result.
46652
46653         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
46654         from main.
46655         (test_pipe): Pass an extra argument for disambiguation.
46656         (main): Invoke parent_main or child_main.
46657
46658         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
46659         consistently.
46660
46661 2009-07-18  Eric Blake  <ebb9@byu.net>
46662
46663         test-pipe: fix mingw build
46664         * tests/test-pipe.c (main): Avoid fcntl on mingw.
46665
46666 2009-07-18  Bruno Haible  <bruno@clisp.org>
46667
46668         * modules/pipe-tests (Makefile.am): Fix typo.
46669
46670 2009-07-18  Eric Blake  <ebb9@byu.net>
46671
46672         error: fix mingw build
46673         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
46674         Reported by Bruno Haible.
46675
46676         error: avoid undefined use of stdout
46677         * lib/error.c (error, error_at_line): Check that fd 1 is open
46678         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
46679         is handling faults and the close_stdout module wants to report the
46680         detection of closed stdout as an error.
46681
46682 2009-07-17  Eric Blake  <ebb9@byu.net>
46683
46684         pipe: be robust in face of closed fds
46685         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
46686         should cause child to misbehave.
46687         * modules/pipe-tests: New module.
46688         * tests/test-pipe.c: New file.
46689         * tests/test-pipe.sh: New file.
46690         Reported by Akim Demaille.
46691
46692 2009-07-14  Bruno Haible  <bruno@clisp.org>
46693
46694         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
46695         Reported by anonymous kc.
46696
46697 2009-07-07  Jim Meyering  <meyering@redhat.com>
46698
46699         maint.mk: don't look for translatable strings in *.m4 or *.mk
46700         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
46701         when searching for translatable strings.
46702
46703 2009-07-05  Jim Meyering  <meyering@redhat.com>
46704
46705         remove superfluous parentheses in STREQ definition
46706         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
46707         * lib/getugroups.c (STREQ): Likewise.
46708         * lib/fnmatch.c (STREQ): Likewise.
46709         Spotted by Bruno Haible.
46710
46711 2009-07-04  Jim Meyering  <meyering@redhat.com>
46712
46713         argv-iter: new module
46714         * MODULES.html.sh: Add argv-iter.
46715         * lib/argv-iter.c, lib/argv-iter.h: New files.
46716         * modules/argv-iter: New file.
46717         * modules/argv-iter-tests: New file.
46718         * tests/test-argv-iter.c: Test it.
46719
46720 2009-07-04  Bruno Haible  <bruno@clisp.org>
46721
46722         Fix assertion.
46723         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
46724         contains more exact copies of a given entry than file2, leave the extra
46725         copies unpaired rather than aborting.
46726         Reported by Eric Blake.
46727
46728 2009-07-02  Bruno Haible  <bruno@clisp.org>
46729
46730         Speedup git-merge-changelog for git cherry-pick.
46731         * lib/git-merge-changelog.c (struct entries_mapping): New type.
46732         (entries_mapping_get): New function, extracted from compute_mapping.
46733         (entries_mapping_reverse_get): New function.
46734         (compute_mapping): Add a 'full' argument. Return the result in a
46735         'struct entries_mapping'.
46736         (main): Update. Access the mappings through entries_mapping_get.
46737         Reported by Eric Blake.
46738
46739 2009-07-02  Bruno Haible  <bruno@clisp.org>
46740
46741         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
46742         best_i.
46743
46744 2009-07-02  Bruno Haible  <bruno@clisp.org>
46745
46746         Speed up approximate search for matching ChangeLog entries.
46747         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
46748         argument. Call fstrcmp_bounded instead of fstrcmp.
46749         (compute_mapping, try_split_merged_entry, main): Update callers.
46750
46751 2009-07-02  Bruno Haible  <bruno@clisp.org>
46752
46753         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
46754
46755 2009-06-30  Bruno Haible  <bruno@clisp.org>
46756
46757         Reduce the number of uc_is_cased calls.
46758         * lib/unicase.h (casing_suffix_context_t): Add
46759         'first_char_except_ignorable' field.
46760         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
46761         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
46762         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
46763         Update initializer.
46764         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
46765         case-ignorable characters.
46766         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
46767         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
46768         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
46769         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
46770         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
46771
46772 2009-06-30  Bruno Haible  <bruno@clisp.org>
46773
46774         Tests for module 'unicase/ignorable'.
46775         * modules/unicase/ignorable-tests: New file.
46776         * tests/unicase/test-ignorable.c: New file, generated by
46777         gen-uni-tables.
46778
46779         Tests for module 'unicase/cased'.
46780         * modules/unicase/cased-tests: New file.
46781         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
46782         * tests/unicase/test-predicate-part1.h: New file, derived from
46783         tests/unictype/test-predicate-part1.h.
46784         * tests/unicase/test-predicate-part2.h: New file, same as
46785         tests/unictype/test-predicate-part2.h.
46786
46787         Fix evaluation of "Before C" condition of FINAL_SIGMA.
46788         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
46789         (output_casing_properties): New function.
46790         (main): Call it.
46791         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
46792         * lib/unicase/cased.c: Include unictype/bitmap.h.
46793         (uc_is_cased): Define through a bitmap lookup.
46794         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
46795         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
46796         (uc_is_case_ignorable): Define through a bitmap lookup.
46797         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
46798         lib/unictype/bitmap.h.
46799         (Depends-on): Add inline. Clean up.
46800         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
46801         lib/unictype/bitmap.h.
46802         (Depends-on): Add inline. Clean up.
46803         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
46804         recognition.
46805         * tests/unicase/test-u16-tolower.c (main): Likewise.
46806         * tests/unicase/test-u32-tolower.c (main): Likewise.
46807
46808 2009-06-30  Bruno Haible  <bruno@clisp.org>
46809
46810         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
46811         * lib/unicase/u16-casemap.c: Likewise.
46812         * lib/unicase/u32-casemap.c: Likewise.
46813
46814 2009-06-29  Bruno Haible  <bruno@clisp.org>
46815
46816         Define u32_casefold as a wrapper around u32_ct_casefold.
46817         * lib/unicase/u32-casefold.c: Update.
46818         * modules/unicase/u32-casefold (Depends-on): Add
46819         unicase/u32-ct-casefold, unicase/empty-prefix-context,
46820         unicase/empty-suffix-context. Clean up.
46821
46822         Define u16_casefold as a wrapper around u16_ct_casefold.
46823         * lib/unicase/u16-casefold.c: Update.
46824         * modules/unicase/u16-casefold (Depends-on): Add
46825         unicase/u16-ct-casefold, unicase/empty-prefix-context,
46826         unicase/empty-suffix-context. Clean up.
46827
46828         Define u8_casefold as a wrapper around u8_ct_casefold.
46829         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
46830         * lib/unicase/u8-casefold.c: Update.
46831         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
46832         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46833
46834         Define u32_totitle as a wrapper around u32_ct_totitle.
46835         * lib/unicase/u32-totitle.c: Update.
46836         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
46837         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46838
46839         Define u16_totitle as a wrapper around u16_ct_totitle.
46840         * lib/unicase/u16-totitle.c: Update.
46841         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
46842         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46843
46844         Define u8_totitle as a wrapper around u8_ct_totitle.
46845         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
46846         functions.
46847         (FUNC): Delegate to U_CT_TOTITLE.
46848         * lib/unicase/u8-totitle.c: Update.
46849         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
46850         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46851
46852         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
46853         invocation.
46854         * modules/unicase/u32-tolower (Depends-on): Add
46855         unicase/empty-prefix-context, unicase/empty-suffix-context.
46856
46857         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
46858         invocation.
46859         * modules/unicase/u16-tolower (Depends-on): Add
46860         unicase/empty-prefix-context, unicase/empty-suffix-context.
46861
46862         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
46863         * modules/unicase/u8-tolower (Depends-on): Add
46864         unicase/empty-prefix-context, unicase/empty-suffix-context.
46865
46866         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
46867         invocation.
46868         * modules/unicase/u32-toupper (Depends-on): Add
46869         unicase/empty-prefix-context, unicase/empty-suffix-context.
46870
46871         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
46872         invocation.
46873         * modules/unicase/u16-toupper (Depends-on): Add
46874         unicase/empty-prefix-context, unicase/empty-suffix-context.
46875
46876         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
46877         * modules/unicase/u8-toupper (Depends-on): Add
46878         unicase/empty-prefix-context, unicase/empty-suffix-context.
46879
46880         New module 'unicase/u32-ct-casefold'.
46881         * lib/unicase/u32-ct-casefold.c: New file.
46882         * modules/unicase/u32-ct-casefold: New file.
46883
46884         New module 'unicase/u16-ct-casefold'.
46885         * lib/unicase/u16-ct-casefold.c: New file.
46886         * modules/unicase/u16-ct-casefold: New file.
46887
46888         New module 'unicase/u8-ct-casefold'.
46889         * lib/unicase/u8-ct-casefold.c: New file.
46890         * lib/unicase/u-ct-casefold.h: New file, derived from
46891         lib/unicase/u-casefold.h.
46892         * modules/unicase/u8-ct-casefold: New file.
46893
46894         New module 'unicase/u32-ct-totitle'.
46895         * lib/unicase/u32-ct-totitle.c: New file.
46896         * modules/unicase/u32-ct-totitle: New file.
46897
46898         New module 'unicase/u16-ct-totitle'.
46899         * lib/unicase/u16-ct-totitle.c: New file.
46900         * modules/unicase/u16-ct-totitle: New file.
46901
46902         New module 'unicase/u8-ct-totitle'.
46903         * lib/unicase/u8-ct-totitle.c: New file.
46904         * lib/unicase/u-ct-totitle.h: New file, derived from
46905         lib/unicase/u-totitle.h.
46906         * modules/unicase/u8-ct-totitle: New file.
46907
46908         New module 'unicase/u32-ct-tolower'.
46909         * lib/unicase/u32-ct-tolower.c: New file.
46910         * modules/unicase/u32-ct-tolower: New file.
46911
46912         New module 'unicase/u16-ct-tolower'.
46913         * lib/unicase/u16-ct-tolower.c: New file.
46914         * modules/unicase/u16-ct-tolower: New file.
46915
46916         New module 'unicase/u8-ct-tolower'.
46917         * lib/unicase/u8-ct-tolower.c: New file.
46918         * modules/unicase/u8-ct-tolower: New file.
46919
46920         New module 'unicase/u32-ct-toupper'.
46921         * lib/unicase/u32-ct-toupper.c: New file.
46922         * modules/unicase/u32-ct-toupper: New file.
46923
46924         New module 'unicase/u16-ct-toupper'.
46925         * lib/unicase/u16-ct-toupper.c: New file.
46926         * modules/unicase/u16-ct-toupper: New file.
46927
46928         New module 'unicase/u8-ct-toupper'.
46929         * lib/unicase/u8-ct-toupper.c: New file.
46930         * modules/unicase/u8-ct-toupper: New file.
46931
46932         Add context arguments to u*_casemap functions.
46933         * lib/unicase/unicasemap.h: Include unicase.h.
46934         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
46935         suffix_context arguments.
46936         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
46937         functions.
46938         (FUNC): Add prefix_context and suffix_context arguments. Use
46939         uc_is_cased and uc_is_case_ignorable.
46940         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
46941         * lib/unicase/u16-casemap.c: Likewise.
46942         * lib/unicase/u32-casemap.c: Likewise.
46943         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
46944         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46945         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
46946         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46947         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
46948         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46949
46950         New module 'unicase/u32-suffix-context'.
46951         * lib/unicase/u32-suffix-context.c: New file.
46952         * modules/unicase/u32-suffix-context: New file.
46953
46954         New module 'unicase/u16-suffix-context'.
46955         * lib/unicase/u16-suffix-context.c: New file.
46956         * modules/unicase/u16-suffix-context: New file.
46957
46958         New module 'unicase/u8-suffix-context'.
46959         * lib/unicase/u8-suffix-context.c: New file.
46960         * lib/unicase/u-suffix-context.h: New file.
46961         * modules/unicase/u8-suffix-context: New file.
46962
46963         New module 'unicase/empty-suffix-context'.
46964         * lib/unicase/empty-suffix-context.c: New file.
46965         * modules/unicase/empty-suffix-context: New file.
46966
46967         New module 'unicase/u32-prefix-context'.
46968         * lib/unicase/u32-prefix-context.c: New file.
46969         * modules/unicase/u32-prefix-context: New file.
46970
46971         New module 'unicase/u16-prefix-context'.
46972         * lib/unicase/u16-prefix-context.c: New file.
46973         * modules/unicase/u16-prefix-context: New file.
46974
46975         New module 'unicase/u8-prefix-context'.
46976         * lib/unicase/u8-prefix-context.c: New file.
46977         * lib/unicase/u-prefix-context.h: New file.
46978         * lib/unicase/context.h: New file.
46979         * modules/unicase/u8-prefix-context: New file.
46980
46981         New module 'unicase/empty-prefix-context'.
46982         * lib/unicase/empty-prefix-context.c: New file.
46983         * modules/unicase/empty-prefix-context: New file.
46984
46985         New module 'unicase/ignorable'.
46986         * lib/unicase/ignorable.c: New file.
46987         * modules/unicase/ignorable: New file.
46988
46989         New module 'unicase/cased'.
46990         * lib/unicase/caseprop.h: New file.
46991         * lib/unicase/cased.c: New file.
46992         * modules/unicase/cased: New file.
46993
46994         New functions for case mapping of substrings.
46995         * lib/unicase.h (casing_prefix_context_t): New type.
46996         (unicase_empty_prefix_context): New variable.
46997         (u8_casing_prefix_context, u16_casing_prefix_context,
46998         u32_casing_prefix_context, u8_casing_prefixes_context,
46999         u16_casing_prefixes_context, u32_casing_prefixes_context): New
47000         declarations.
47001         (casing_suffix_context_t): New type.
47002         (unicase_empty_suffix_context): New variable.
47003         (u8_casing_suffix_context, u16_casing_suffix_context,
47004         u32_casing_suffix_context, u8_casing_suffixes_context,
47005         u16_casing_suffixes_context, u32_casing_suffixes_context,
47006         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
47007         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
47008         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
47009         declarations.
47010
47011 2009-06-28  Jim Meyering  <meyering@redhat.com>
47012
47013         boostrap: indent only with spaces
47014         * build-aux/bootstrap: Indent only with spaces, never TABs.
47015
47016         bootstrap: split long lines
47017         * build-aux/bootstrap: Keep line length < 80.
47018
47019         bootstrap: sync from coreutils
47020         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
47021         just as autoreconf does.  Verify a list of prerequisite
47022         package-name,version-number pairs if defined in bootstrap.conf.
47023         Refer to README-prereq, if prerequisites are not satisfied.
47024
47025 2009-06-27  Eric Blake  <ebb9@byu.net>
47026
47027         tests: add test for bogus NULL definition
47028         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
47029         * tests/test-stdlib.c: Likewise.
47030         * tests/test-string.c: Likewise.
47031         * tests/test-locale.c: Likewise.
47032         * tests/test-unistd.c: Likewise.
47033         * modules/stdio-tests (Depends-on): Add verify.
47034         * modules/stdlib-tests (Depends-on): Likewise.
47035         * modules/string-tests (Depends-on): Likewise.
47036         * modules/locale-tests (Depends-on): Likewise.
47037         * modules/unistd-tests (Depends-on): Likewise.
47038
47039 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
47040
47041         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
47042         self-explaining comment.
47043         * m4/selinux-selinux-h: Update serial.
47044         (gl_LIBSELINUX): New macro, adding a warning for missing development
47045         packages to code extracted from...
47046         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
47047         Add warning for missing development packages here, too.
47048
47049 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
47050
47051         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
47052
47053 2009-06-25  Eric Blake  <ebb9@byu.net>
47054
47055         version-etc: fix regression
47056         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
47057         gcc.
47058         (version_etc): Use it, to catch bugs with trailing NULL.
47059         * lib/version-etc.c (version_etc_arn): Delete unused argument.
47060         (version_etc_va): Fix logic bug.
47061         * modules/version-etc-tests: Add test.
47062         * tests/test-version-etc.c: New file.
47063         * tests/test-version-etc.sh: Likewise.
47064
47065 2009-06-25  Sam Steingold  <sds@gnu.org>
47066
47067         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
47068         mbtowc declaration.
47069
47070 2009-06-25  Eric Blake  <ebb9@byu.net>
47071
47072         fpurge: migrate into <stdio.h>
47073         * lib/fpurge.h: Delete...
47074         * lib/stdio.in.h (fpurge): ...and declare here, instead.
47075         * lib/fpurge.c (fpurge): Change declaring header.
47076         * modules/fpurge (Files): Drop deleted file.
47077         (Depends-on): Add stdio.
47078         (configure.ac): Set witness.
47079         * modules/stdio (Makefile.am): Support fpurge macros.
47080         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47081         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
47082         * lib/fflush.c: Update client.
47083         * tests/test-fpurge.c: Likewise.
47084         * NEWS: Mention the change.
47085
47086 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47087
47088         * lib/argp-version-etc.c (program_authors): Add const
47089         qualifier.
47090         * lib/version-etc.c: Fix typos in the comments.
47091         * modules/argp-version-etc: Depends on version-etc.
47092
47093 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47094
47095         argp-version-etc: new module.
47096
47097         * lib/argp-version-etc.c: New file.
47098         * lib/argp-version-etc.h: New file.
47099         * modules/argp-version-etc: New file.
47100         * modules/argp-version-etc-tests: New file.
47101         * tests/test-argp-version-etc.c: New test.
47102         * tests/test-argp-version-etc-1.sh: New test.
47103
47104 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47105
47106         Provide additional interfaces and documentation for version-etc
47107         module.
47108
47109         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
47110         interfaces.
47111         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
47112         prototypes.
47113
47114 2009-06-24  Bruno Haible  <bruno@clisp.org>
47115
47116         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
47117         HAVE_LIB${NAME} macro.
47118         Reported by Sam Steingold <sds@gnu.org>.
47119
47120 2009-06-23  Simon Josefsson  <simon@josefsson.org>
47121
47122         * modules/hash-tests (test_hash_LDADD): Link to libintl when
47123         needed.
47124
47125 2009-06-21  Bruno Haible  <bruno@clisp.org>
47126
47127         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
47128         work.
47129         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
47130         together with LIB${NAME}, LTLIB${NAME}.
47131         Reported by Sam Steingold <sds@gnu.org>.
47132
47133 2009-06-20  Jim Meyering  <meyering@redhat.com>
47134
47135         tests: make sc_require_test_exit_idiom more generic
47136         * top/maint.mk (Exit_witness_file): New overridable variable.
47137         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
47138         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
47139
47140 2009-06-19  Jim Meyering  <meyering@redhat.com>
47141
47142         hash: reverse order of src/dst parameters in an internal interface
47143         * lib/hash.c (transfer_entries): Reverse order of parameters to
47144         put DST before SRC.  Adjust callers.
47145
47146         tests: test-hash: avoid wholesale duplication
47147         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
47148         Instead, use a loop and add a single conditional.
47149
47150         tests: test-hash: allow seed selection via a command line argument
47151         * tests/test-hash.c (get_seed): New function.
47152         (main): Use it.
47153
47154 2009-06-19  Eric Blake  <ebb9@byu.net>
47155
47156         hash: avoid memory leak on allocation failure
47157         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
47158         failure.  Factor repeated algorithm...
47159         (transfer_entries): ...into new helper routine.
47160         (hash_delete): React to hash_rehash return value.
47161
47162         hash: reduce memory pressure in hash_rehash no-op case
47163         * lib/hash.c (next_prime): Avoid overflow.
47164         (hash_initialize): Factor bucket size computation...
47165         (compute_bucket_size): ...into new helper function.
47166         (hash_rehash): Use new function and open coding to reduce memory
47167         pressure, and avoid a memory leak in USE_OBSTACK code.
47168         Reported by Jim Meyering.
47169
47170 2009-06-18  Eric Blake  <ebb9@byu.net>
47171
47172         hash: make rotation more obvious
47173         * modules/hash (Depends-on): Add bitrotate and stdint.
47174         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
47175         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
47176         (SIZE_MAX): Rely on headers for definition.
47177         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
47178         (raw_hasher): Use rotr_sz.
47179         Suggested by Jim Meyering.
47180
47181         hash: fix memory leak in last patch
47182         * lib/hash.c (hash_rehash): Avoid memory leak.
47183
47184         hash: avoid no-op rehashing
47185         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
47186
47187         hash: provide default callback functions
47188         * lib/hash.c (raw_hasher, raw_comparator): New functions.
47189         (hash_initialize): Use them as defaults.
47190         * tests/test-hash.c (main): Test this.
47191
47192         hash: minor optimization
47193         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
47194         when possible.
47195         (hash_initialize): Document this promise.
47196         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
47197         * tests/test-hash.c (hash_compare_strings): Test this.
47198
47199 2009-06-18  Bruno Haible  <bruno@clisp.org>
47200
47201         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
47202         going to be replaced anyway.
47203
47204 2009-06-18  Bruno Haible  <bruno@clisp.org>
47205
47206         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
47207         in one place.
47208         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
47209         be replaced anyway.
47210
47211 2009-06-18  Eric Blake  <ebb9@byu.net>
47212
47213         hash: check for resize before insertion
47214         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
47215         threshold before insertion, so that a pathological hash_rehash
47216         that fills every bucket can still trigger another rehash.
47217
47218 2009-06-18  Jim Meyering  <meyering@redhat.com>
47219
47220         hash-tests: add a loop around the small tests
47221         * tests/test-hash.c (main): Repeat small tests with selected
47222         small initial table sizes.
47223
47224 2009-06-17  Eric Blake  <ebb9@byu.net>
47225
47226         hash: minor cleanups
47227         * lib/hash.h (hash_entry): Make opaque, by moving...
47228         * lib/hash.c (hash_entry): ...here.
47229         (hash_insert): Clarify restrictions on what can be inserted.
47230         (hash_get_next): Clarify when it is safe to remove an element
47231         during traversal.
47232         (check_tuning): Skip verification when tuning is known safe.
47233         (hash_initialize): Clarify restrictions on tuning.
47234
47235 2009-06-17  Jim Meyering  <jim@meyering.net>
47236         and Eric Blake  <ebb9@byu.net>
47237
47238         hash-tests: new module
47239         * modules/hash-tests: New file.
47240         * tests/test-hash.c: New file.
47241
47242 2009-06-17  Eric Blake  <ebb9@byu.net>
47243
47244         strstr-simple: document new module
47245         * MODULES.html.sh: Document new module.
47246
47247         strstr, strcasestr: replace on platforms with broken memchr
47248         * modules/strstr: Split into...
47249         * modules/strstr-simple: ...new module that does not care about
47250         performance, but does care about glibc bug.
47251         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
47252         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
47253         if platform memchr is broken, per Debian bug 521737.
47254         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
47255         memchr.
47256         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
47257         * doc/posix-functions/strstr.texi (strstr): Document the fix.
47258         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47259         * modules/mountlist (Depends-on): Add strstr-simple.
47260         * modules/gen-uni-tables (Depends-on): Likewise.
47261         * modules/argz (Depends-on): Add strstr.
47262
47263 2009-06-17  Bruno Haible  <bruno@clisp.org>
47264
47265         * modules/posix_spawn-internal (Depends-on): Add errno.
47266
47267 2009-06-17  Bruno Haible  <bruno@clisp.org>
47268
47269         Define missing ESTALE on Interix 3.5.
47270         * lib/errno.in.h (ESTALE): Assign a value if missing.
47271         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
47272         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
47273         missing.
47274         * doc/posix-headers/errno.texi: Mention the Interix bug.
47275         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
47276
47277 2009-06-15  Eric Blake  <ebb9@byu.net>
47278
47279         memchr, memchr2: add valgrind exception
47280         * lib/memchr.valgrind: New file.
47281         * lib/memchr2.valgrind: New file.
47282         * modules/memchr (Files): Distribute valgrind file.
47283         * modules/memchr2 (Files): Likewise.
47284
47285         docs: memchr is no longer obsolete
47286         * MODULES.html.sh: Move memchr from obsolete to string.h section.
47287         * lib/string.in.h (memchr): Simplify logic.
47288
47289 2009-06-14  Jim Meyering  <meyering@redhat.com>
47290
47291         link-follow: fix the "checking..." message to not mention trailing slash
47292         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
47293         never considered trailing slashes.
47294
47295 2009-06-14  Bruno Haible  <bruno@clisp.org>
47296
47297         * m4/memchr.m4: Mention also the bug on IA-64.
47298         * doc/posix-functions/memchr.texi: Likewise.
47299
47300 2009-06-12  Eric Blake  <ebb9@byu.net>
47301
47302         memchr: detect broken x86_64 and alpha implementations
47303         * modules/memchr-tests (Depends-on): Move mmap detection...
47304         * modules/memchr (Depends-on): ...here.
47305         (configure.ac): Set indicator.
47306         * lib/string.in.h (memchr): Declare replacement.
47307         * modules/string (Makefile.am): Trigger replacement.
47308         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
47309         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
47310         bugs.
47311         * doc/posix-functions/memchr.texi (memchr): Document the bug.
47312         * modules/getpagesize (License): Relax license.
47313
47314 2009-06-11  Bruno Haible  <bruno@clisp.org>
47315
47316         * lib/idpriv.h: Add more references.
47317
47318 2009-06-08  Bruno Haible  <bruno@clisp.org>
47319
47320         Tests for module 'idpriv-droptemp'.
47321         * modules/idpriv-droptemp-tests: New file.
47322         * tests/test-idpriv-droptemp.sh: New file.
47323         * tests/test-idpriv-droptemp.su.sh: New file.
47324         * tests/test-idpriv-droptemp.c: New file.
47325
47326         New module 'idpriv-droptemp'.
47327         * lib/idpriv-droptemp.c: New file.
47328         * modules/idpriv-droptemp: New file.
47329
47330 2009-06-08  Bruno Haible  <bruno@clisp.org>
47331
47332         Tests for module 'idpriv-drop'.
47333         * modules/idpriv-drop-tests: New file.
47334         * tests/test-idpriv-drop.sh: New file.
47335         * tests/test-idpriv-drop.su.sh: New file.
47336         * tests/test-idpriv-drop.c: New file.
47337
47338         New module 'idpriv-drop'.
47339         * lib/idpriv.h: New file.
47340         * lib-idpriv-drop.c: New file.
47341         * m4/idpriv.m4: New file.
47342         * modules/idpriv-drop: New file.
47343
47344 2009-06-08  Bruno Haible  <bruno@clisp.org>
47345
47346         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
47347         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47348         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47349         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47350         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47351         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47352         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47353
47354 2009-06-08  Eric Blake  <ebb9@byu.net>
47355
47356         test-strstr: use memory fence, when possible
47357         * tests/test-strstr.c (main): Use memory fence, in order to be
47358         more likely to trigger Debian bug 521737.
47359         * modules/strstr-tests (Files): Pull in additional files.
47360
47361         memchr: no longer obsolete, for wider field testing
47362         * modules/memchr (Status, Notice): Delete, this module is no
47363         longer obsolete.
47364         * modules/vasnprintf (Depends-on): Add memchr.
47365
47366 2009-06-07  Jim Meyering  <meyering@redhat.com>
47367
47368         hash: declare some functions with the warn_unused_result attribute
47369         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
47370
47371 2009-06-07  Bruno Haible  <bruno@clisp.org>
47372
47373         * tests/test-alignof.c: Don't test int64_t if it does not exist.
47374         Reported by Eric Blake.
47375
47376 2009-06-06  Eric Blake  <ebb9@byu.net>
47377
47378         test-alignof: fix typo with long double
47379         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
47380         compiler error.
47381
47382 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
47383
47384         Escape non-texinfo { and }s.
47385         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
47386         markup error.
47387
47388 2009-06-04  Jim Meyering  <meyering@redhat.com>
47389
47390         gitlog-to-changelog: don't infloop on an empty commit log
47391         * build-aux/gitlog-to-changelog: Warn about an empty log message.
47392         Reported by Boris Petersen <transacid@centerim.org>.
47393
47394 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
47395
47396         version-etc: extend for packagers
47397         Add three new configure options, intended for packagers:
47398           --with-packager="packager name"
47399           --with-packager-version="packager-specific version"
47400           --with-packager-bug-reports="packager bug reporting"
47401         An example with coreutils:
47402           $ ./configure \
47403             --with-packager=Gentoo \
47404             --with-packager-bug-report=http://bugs.gentoo.org/ \
47405             --with-packager-version="patchset 1.6"
47406           $ ./src/ls --version | head -n2
47407           ls (GNU coreutils) 7.1-dirty
47408           Packaged by Gentoo (patchset 1.6)
47409         Note that the bug reporting info via --help doesn't show up because
47410         coreutils uses its own custom emit_bug_reporting_address() implementation
47411         in src/system.h.  If it didn't, it'd look like:
47412           $ ./src/ls --help | tail -n4
47413           Report bugs to <bug-coreutils@gnu.org>.
47414           Report Gentoo bugs to <http://bugs.gentoo.org/>.
47415           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
47416           General help using GNU software: <http://www.gnu.org/gethelp/>.
47417         * lib/version-etc.c: Print new information, if provided.
47418         * m4/version-etc.m4: New file.
47419         * modules/version-etc (Files): Add m4/version-etc.m4.
47420         (configure.ac): Add gl_VERSION_ETC.
47421
47422 2009-05-31  Bruno Haible  <bruno@clisp.org>
47423
47424         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
47425         and 'int64_t'.
47426         * modules/alignof-tests (Dependencies): Add stdint.
47427         Reported by Eric Blake.
47428
47429 2009-05-31  Bruno Haible  <bruno@clisp.org>
47430
47431         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
47432         restriction due to compiler bugs.
47433         Reported by Eric Blake.
47434
47435 2009-05-31  Simon Josefsson  <simon@josefsson.org>
47436             Bruno Haible  <bruno@clisp.org>
47437
47438         Fix test-alignof failure.
47439         * lib/alignof.h (alignof_slot): New macro.
47440         (alignof_type): New macro, with the same semantics as the previous
47441         'alignof'.
47442         (alignof): Alias to alignof_slot.
47443         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
47444         check that the results are usable as constant expressions.
47445
47446 2009-05-31  Bruno Haible  <bruno@clisp.org>
47447
47448         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
47449         * tests/test-memchr.c (main): Check that memchr does not read past the
47450         first occurrence of the byte.
47451         * tests/test-strstr.c (main): Update comment.
47452         Suggested by Eric Blake.
47453
47454 2009-05-30  Bruno Haible  <bruno@clisp.org>
47455
47456         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
47457         detail how to use dumpbin.
47458         Reported by David Byron <dbyron@dbyron.com>.
47459
47460 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47461
47462         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
47463
47464 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47465
47466         * m4/manywarnings.m4: Add GCC 4.4 warnings.
47467
47468 2009-05-28  Bruno Haible  <bruno@clisp.org>
47469
47470         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
47471         build-aux/ files.
47472
47473 2009-05-28  Simon Josefsson  <simon@josefsson.org>
47474
47475         * gnulib-tool (func_import): Transform license on build-aux/ files too.
47476
47477 2009-05-27  Simon Josefsson  <simon@josefsson.org>
47478
47479         * gnulib-tool (sed_transform_main_lib_file)
47480         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
47481         regexps.
47482
47483 2009-05-26  Simon Josefsson  <simon@josefsson.org>
47484
47485         * tests/test-strstr.c: Add another self-test.
47486         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
47487         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
47488
47489 2009-05-23  Bruno Haible  <bruno@clisp.org>
47490
47491         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
47492         change.
47493
47494 2009-05-21  Bruno Haible  <bruno@clisp.org>
47495
47496         Simplify use of mode_t varargs.
47497         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
47498         uses 'mode_t' or 'int'.
47499         * lib/openat.c (openat): Likewise.
47500         * lib/open-safer.c (open_safer): Likewise.
47501         * m4/mode_t.m4: New file.
47502         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
47503         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
47504         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
47505         * modules/open (Files): Add m4/mode_t.m4.
47506         * modules/openat (Files): Likewise.
47507         * modules/fcntl-safer (Files): Likewise.
47508         Suggested by Eric Blake.
47509
47510 2009-05-21  Pádraig Brady  <P@draigbrady.com>
47511
47512         * doc/glibc-functions/fallocate.texi: New file.
47513         * doc/gnulib.texi: Include it.
47514
47515 2009-05-21  Eric Blake  <ebb9@byu.net>
47516             Bruno Haible  <bruno@clisp.org>
47517
47518         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
47519         invocations.
47520         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47521
47522 2009-05-21  Eric Blake  <ebb9@byu.net>
47523             Bruno Haible  <bruno@clisp.org>
47524
47525         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
47526         include_next. Fix of 2008-11-20 commit.
47527         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
47528         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
47529         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
47530         NEXT_MATH_H.
47531         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
47532         instead of NEXT_MATH_H.
47533
47534 2009-05-21  Bruno Haible  <bruno@clisp.org>
47535
47536         Avoid redefinition warnings for SIZE_MAX.
47537         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
47538         Reported by Simon Josefsson.
47539
47540 2009-05-21  Bruno Haible  <bruno@clisp.org>
47541
47542         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
47543         AC_CACHE_VAL.
47544
47545 2009-05-20  Bruno Haible  <bruno@clisp.org>
47546
47547         Make zeroptr.h work on mingw.
47548         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
47549         mprotect.
47550         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
47551         * modules/memchr2-tests (configure.ac): Likewise.
47552         * modules/memcmp-tests (configure.ac): Likewise.
47553         * modules/memmem-tests (configure.ac): Likewise.
47554         * modules/memrchr-tests (configure.ac): Likewise.
47555         Reported by Simon Josefsson.
47556
47557 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47558
47559         * tests/test-glob.c: Include string.h for strcmp prototype.
47560
47561 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47562
47563         * modules/getdelim (Depends-on): Add explicit stdint, although it
47564         was implicitly already pulled in via realloc-posix.
47565         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
47566
47567 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47568
47569         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
47570         G. Christensen" <tgc@jupiterrise.com>.
47571         * m4/sys_socket_h.m4: Check for sa_family_t.
47572         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
47573         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
47574         * tests/test-sys_socket.c: Check that sa_family_t works.
47575
47576 2009-05-18  Eric Blake  <ebb9@byu.net>
47577
47578         maint.mk: allow gnulib_dir in VPATH build
47579         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
47580
47581 2009-05-15  Jim Meyering  <meyering@redhat.com>
47582
47583         maint.mk: Give gnulib_dir a default definition.
47584         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
47585         Thus, most packages no longer need to specify this variable in cfg.mk
47586
47587 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
47588
47589         rename.m4: fix typos that would make non-mingw cross-configure fail
47590         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
47591
47592 2009-05-13  Eric Blake  <ebb9@byu.net>
47593
47594         mmap-anon: avoid out-of-order autoconf expansion
47595         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
47596         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
47597         * modules/memchr-tests (Depends-on): Add extensions.
47598         * modules/memchr2-tests (Depends-on): Add extensions.
47599         * modules/memcmp-tests (Depends-on): Add extensions.
47600         * modules/memmem-tests (Depends-on): Add extensions.
47601         * modules/memrchr-tests (Depends-on): Add extensions.
47602
47603 2009-05-13  Bruno Haible  <bruno@clisp.org>
47604
47605         Make some tests ISO C 99 compliant.
47606         * tests/zerosize-ptr.h: New file.
47607         * tests/test-memchr.c: Include zerosize-ptr.h.
47608         (main): Use a zero-size object pointer instead of NULL.
47609         * tests/test-memchr2.c: Include zerosize-ptr.h.
47610         (main): Use a zero-size object pointer instead of NULL.
47611         * tests/test-memcmp.c: Include zerosize-ptr.h.
47612         (main): Use a zero-size object pointer instead of NULL.
47613         * tests/test-memmem.c: Include zerosize-ptr.h.
47614         (main): Use a zero-size object pointer instead of NULL.
47615         * tests/test-memrchr.c: Include zerosize-ptr.h.
47616         (main): Use a zero-size object pointer instead of NULL.
47617         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
47618         m4/mmap-anon.m4.
47619         (Depends-on): Add getpagesize.
47620         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47621         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
47622         m4/mmap-anon.m4.
47623         (Depends-on): Add getpagesize.
47624         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47625         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
47626         m4/mmap-anon.m4.
47627         (Depends-on): Add getpagesize.
47628         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47629         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
47630         m4/mmap-anon.m4.
47631         (Depends-on): Add getpagesize.
47632         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47633         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
47634         m4/mmap-anon.m4.
47635         (Depends-on): Add getpagesize.
47636         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47637
47638 2009-05-12  Bruno Haible  <bruno@clisp.org>
47639
47640         Tests for module 'alignof'.
47641         * modules/alignof-tests: New file.
47642         * tests/test-alignof.c: New file.
47643
47644 2009-05-12  Bruno Haible  <bruno@clisp.org>
47645
47646         Fix alignof macro.
47647         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
47648         vendor compilers that are always correct.
47649
47650 2009-05-12  Bruno Haible  <bruno@clisp.org>
47651
47652         Make the MAP_ANONYMOUS detection work on HP-UX 11.
47653         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
47654         not whether its fully works.
47655
47656 2009-05-12  Bruno Haible  <bruno@clisp.org>
47657
47658         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
47659
47660 2009-05-12  Jim Meyering  <meyering@redhat.com>
47661
47662         * top/maint.mk: Adjust backslash alignment.
47663
47664 2009-05-11  Simon Josefsson  <simon@josefsson.org>
47665
47666         * top/maint.mk: Make $(srcdir)/build-aux configurable.
47667
47668 2009-05-11  Eric Blake  <ebb9@byu.net>
47669
47670         argp: avoid undefined behavior
47671         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
47672         macros.
47673
47674 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47675
47676         * tests/test-vc-list-files-git.sh: Do git config of user.email and
47677         user.name to prevent git commit from complaining.
47678
47679 2009-05-10  Bruno Haible  <bruno@clisp.org>
47680
47681         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
47682         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
47683         it rewrites every file name only once.
47684         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
47685
47686 2009-05-08  Bruno Haible  <bruno@clisp.org>
47687
47688         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
47689         instead of 'max'.
47690
47691 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47692
47693         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
47694         sockaddr_storage test.
47695
47696 2009-05-07  Simon Josefsson  <simon@josefsson.org>
47697
47698         * modules/sys_socket (Makefile.am): Substitute
47699         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
47700         * m4/sys_socket_h.m4: Check for sockaddr_storage.
47701         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
47702         * tests/test-sys_socket.c: Check sockaddr_storage.
47703
47704 2009-05-08  Bruno Haible  <bruno@clisp.org>
47705
47706         New module 'alignof'.
47707         * lib/alignof.h: New file.
47708         * modules/alignof: New file.
47709
47710 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47711             Bruno Haible  <bruno@clisp.org>
47712
47713         Fix test-file-has-acl on FreeBSD.
47714         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
47715         mask is implicitly added.
47716         * tests/test-file-has-acl.c: Include <signal.h>.
47717         (main): Terminate the test after 5 seconds.
47718         * modules/acl-tests (configure.ac): Check for alarm function.
47719
47720 2009-05-04  Bruno Haible  <bruno@clisp.org>
47721
47722         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
47723         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
47724         * modules/errno (configure.ac): Drop AC_REQUIRE.
47725         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
47726         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
47727
47728 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47729
47730         * modules/glob-tests: New module.
47731         * tests/test-glob.c: Add.
47732
47733 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47734
47735         * modules/fnmatch-tests: New module.
47736         * tests/test-fnmatch.c: Add.
47737
47738 2009-05-04  Eric Blake  <ebb9@byu.net>
47739
47740         maint: make the new no-submodule-changes rule VPATH-safe
47741         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
47742
47743 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47744             Bruno Haible  <bruno@clisp.org>
47745
47746         acl: Fix infinite loop on FreeBSD.
47747         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
47748         of return value from acl_get_entry.
47749         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
47750         Likewise.
47751
47752 2009-05-03  Bruno Haible  <bruno@clisp.org>
47753
47754         * lib/acl-internal.h (acl_entries): Clarify return value.
47755         * lib/acl_entries.c (acl_entries): Likewise.
47756
47757 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47758
47759         Bug fix in acl module.
47760         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
47761
47762 2009-05-03  Bruno Haible  <bruno@clisp.org>
47763
47764         Create gperf-generated file in the source dir, not in the build dir.
47765         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
47766         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
47767         * modules/unicase/locale-language (unicase/locale-languages.h):
47768         Likewise.
47769         * modules/unicase/special-casing (unicase/special-casing-table.h):
47770         Likewise.
47771         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
47772         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
47773         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
47774         Reported by Ralf Wildenhues.
47775
47776 2009-05-03  Bruno Haible  <bruno@clisp.org>
47777
47778         * modules/fnmatch (Description, configure.ac): Taken from
47779         fnmatch-posix.
47780         * modules/fnmatch-posix: Turn into a symbolic reference to the
47781         'fnmatch' module, and deprecate.
47782         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
47783
47784 2009-05-03  Bruno Haible  <bruno@clisp.org>
47785
47786         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
47787         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
47788         Reported by Ralf Wildenhues.
47789
47790 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47791
47792         * m4/fnmatch.m4: Fix fnmatch re-define.
47793
47794 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47795
47796         priv-set: new module and tests; adapt write-any-file
47797         * lib/priv-set.c: New file.
47798         * lib/priv-set.h: New file.
47799         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
47800         * lib/write-any-file.c: Simplify by using priv-set module.
47801         * m4/priv-set.m4: New file.
47802         * modules/priv-set: New file.
47803         * modules/unlinkdir: Add dependency on priv-set module.
47804         * modules/write-any-file: Likewise.
47805
47806         Tests for module 'priv-set'.
47807         * modules/priv-set-tests: New file.
47808         * tests/test-priv-set.c: New file.
47809
47810 2009-05-03  Jim Meyering  <meyering@redhat.com>
47811             Bruno Haible  <bruno@clisp.org>
47812
47813         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
47814         use the converted UTF-8 variant of the name instead.
47815
47816 2009-05-03  Jim Meyering  <meyering@redhat.com>
47817
47818         tests: tighten some getdate tests
47819         * tests/test-getdate.c (main): Tighten tests: require equality,
47820         not just greater than.  Set TZ envvar to UTC0.
47821
47822 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
47823
47824         getdate: correctly interpret "next monday" when run on a Monday
47825         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
47826         that e.g., "next tues" (when run on a tuesday) results in a date
47827         that is one week in the future, and not today's date.
47828         I.e., add a week when the wday is the same as the current one.
47829         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
47830         and earlier by Martin Bernreuther and Jan Minář.
47831         * tests/test-getdate.c (main): Check that "next DAY" is always in
47832         the future and that "last DAY" is always in the past.
47833
47834 2009-05-02  Jim Meyering  <meyering@redhat.com>
47835
47836         build: ensure that a release build fails when a submodule is unclean
47837         * top/maint.mk (no-submodule-changes): New rule.
47838         (alpha beta major): Depend on it.
47839
47840 2009-05-02  Bruno Haible  <bruno@clisp.org>
47841
47842         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
47843         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
47844         shell variable gl_fnmatch_required to detect which variant is
47845         requested.
47846         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
47847         gl_FUNC_FNMATCH_POSIX.
47848         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
47849         exclude fnmatch-posix.
47850
47851 2009-05-02  Bruno Haible  <bruno@clisp.org>
47852
47853         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
47854         * modules/mbsrtowcs (License): Change to LGPLv2+.
47855         * modules/strnlen1 (License): Likewise.
47856         Reported by Simon Josefsson.
47857
47858 2009-05-02  Bruno Haible  <bruno@clisp.org>
47859
47860         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
47861         "cross".
47862         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
47863         gnulib-tool was called with option --source-base=lib.
47864
47865 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47866
47867         Use automake *-local hooks without commands, for extensibility.
47868         * modules/localcharset (Makefile.am): Rename install-exec-local
47869         rule to install-exec-localcharset, and make it a prerequisite of
47870         install-exec-local.  Likewise, rename the uninstall-local rule to
47871         uninstall-localcharset, and make it a prerequisite of the former.
47872
47873 2009-05-01  Bruno Haible  <bruno@clisp.org>
47874
47875         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
47876         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47877         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
47878         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
47879         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
47880         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47881         m4/locale-zh.m4, m4/codeset.m4.
47882
47883         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47884         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
47885         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47886         m4/locale-zh.m4.
47887
47888         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
47889         REPLACE_WCRTOMB if mbstate_t must be replaced.
47890         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
47891         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
47892
47893 2009-05-01  Bruno Haible  <bruno@clisp.org>
47894
47895         Avoid compiler warnings when redefining macros defined by <libintl.h>.
47896         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
47897         dngettext, dcngettext, textdomain, bindtextdomain,
47898         bind_textdomain_codeset): Undefine before redefining.
47899
47900 2009-04-30  Bruno Haible  <bruno@clisp.org>
47901
47902         Fix bug introduced on 2009-04-25.
47903         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
47904         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
47905         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
47906         is defined.
47907         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
47908         is defined.
47909         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
47910         is defined.
47911         Reported by Elbert_Pol <elbert.pol@gmail.com>.
47912
47913 2009-04-28  Bruno Haible  <bruno@clisp.org>
47914
47915         Comment tweaks.
47916         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
47917         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
47918         * lib/unicase.h (u*_casexfrm): Likewise.
47919         Reported by Paolo Bonzini.
47920
47921 2009-04-28  Bruno Haible  <bruno@clisp.org>
47922
47923         Fix a compilation error.
47924         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
47925         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47926         Reported by Jim Meyering.
47927
47928 2009-04-27  Bruno Haible  <bruno@clisp.org>
47929
47930         New module 'libunistring'.
47931         * modules/libunistring: New file.
47932         * m4/libunistring.m4: New file.
47933         * MODULES.html.sh (Unicode string functions): Add it.
47934
47935 2009-04-27  Eric Blake  <ebb9@byu.net>
47936
47937         maint.mk: allow package-specific header to provide <config.h>
47938         * top/maint.mk (sc_require_config_h): New variable.
47939         (sc_require_config_h, sc_require_config_h_first): Use it.
47940
47941 2009-04-27  Simon Josefsson  <simon@josefsson.org>
47942
47943         * top/maint.mk (sc_avoid_if_before_free): Except
47944         useless-if-before-free script.
47945
47946 2009-04-27  Eric Blake  <ebb9@byu.net>
47947
47948         maintainer-makefile: depend on all required helper scripts
47949         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
47950         useless-if-before-free.
47951         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
47952         version, rather than assuming gnulib checkout is available.
47953         Reported by Simen Josefsson.
47954
47955 2009-04-26  Bruno Haible  <bruno@clisp.org>
47956
47957         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
47958         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
47959         "../" or "..".
47960
47961 2009-04-26  Bruno Haible  <bruno@clisp.org>
47962
47963         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
47964         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
47965         AC_LIB_HAVE_LINKFLAGS.
47966
47967 2009-04-26  Bruno Haible  <bruno@clisp.org>
47968
47969         Simplify calling convention of u*_conv_from_encoding.
47970         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
47971         u32_conv_from_encoding): Expect a resultbuf argument and return the
47972         result directly as a pointer.
47973         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
47974         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
47975         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
47976         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
47977         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
47978         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47979         Update.
47980         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
47981         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
47982         * lib/vasnprintf.c (VASNPRINTF): Update.
47983         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
47984         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
47985         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
47986         * NEWS: Mention the change.
47987
47988 2009-04-26  Bruno Haible  <bruno@clisp.org>
47989
47990         Simplify calling convention of u*_conv_to_encoding.
47991         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47992         u32_conv_to_encoding): Expect a resultbuf argument and return the
47993         result directly as a pointer.
47994         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47995         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
47996         freeing scaled_offsets if mem_iconveha failed.
47997         * lib/unicase/u-casexfrm.h (FUNC): Update.
47998         * lib/uninorm/u-normxfrm.h (FUNC): Update.
47999         * lib/vasnprintf.c (VASNPRINTF): Update.
48000         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
48001         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
48002         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
48003         * NEWS: Mention the change.
48004
48005 2009-04-26  Bruno Haible  <bruno@clisp.org>
48006
48007         Avoid test failures on AIX and OSF/1.
48008         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
48009         malloc(0).
48010         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48011         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48012         Likewise.
48013         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
48014         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
48015         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
48016         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
48017         * doc/posix-functions/malloc.texi: Document the portability problem
48018         related to malloc(0).
48019
48020 2009-04-26  Bruno Haible  <bruno@clisp.org>
48021
48022         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
48023         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
48024         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
48025
48026 2009-04-25  Bruno Haible  <bruno@clisp.org>
48027
48028         Avoid link error when creating a namespace clean library.
48029         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
48030         as macro with arguments if already defined as an alias.
48031         * lib/signbitf.c (gl_signbitf): Don't undefine.
48032         * lib/signbitd.c (gl_signbitd): Don't undefine.
48033         * lib/signbitl.c (gl_signbitl): Don't undefine.
48034
48035 2009-04-25  Jim Meyering  <meyering@redhat.com>
48036
48037         vc-list-files: fix another quoting bug
48038         * build-aux/vc-list-files: Avoid sed backslash expansion
48039         of pathological directory names.
48040
48041 2009-04-25  Eric Blake  <ebb9@byu.net>
48042
48043         vc-list-files: fix shell quoting error
48044         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
48045         timestamp.
48046
48047 2009-04-25  Jim Meyering  <meyering@redhat.com>
48048
48049         vc-list-files: restore lost functionality with subdir argument
48050         * build-aux/vc-list-files: When given a non-"." sub-directory
48051         argument, substitute the $dir/ prefix back onto each resulting name.
48052         Otherwise, coreutils' root_tests check would fail.
48053
48054 2009-04-24  Eric Blake  <ebb9@byu.net>
48055
48056         vc-list-files: ignore git symlinks
48057         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
48058         than ls-files, to ignore git symlinks.
48059
48060         maint.mk: import improvements from m4
48061         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
48062         (move_if_change): Delete unused macro.
48063         (news-date-check, vc-diff-check): Support VPATH builds.
48064         (announcement): Likewise.  Split --bootstrap-tools list...
48065         (boostrap-tools): ...into separate list, which can be overridden
48066         in cfg.mk.
48067         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
48068         requiring dependency on useless-if-before-free module.
48069         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
48070         Support VPATH builds.
48071
48072 2009-04-24  Jim Meyering  <meyering@redhat.com>
48073
48074         maint.mk: remove coreutils-specific rules and variables
48075         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
48076         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
48077         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
48078
48079         maint.mk: remove obsolete rule
48080         * top/maint.mk (rel-check): Remove rule.
48081         (WGET, WGETFLAGS): Remove now-unused variables.
48082
48083 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48084
48085         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
48086         consistency.
48087
48088         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
48089         '$(PATH_SEPARATOR)' instead of ':'.
48090
48091 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48092
48093         * lib/getopt1.c (main): Use 'const' for static array.
48094
48095 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48096
48097         * top/maint.mk: Sync with coreutils.
48098         * NEWS: Explain incompatibilities.
48099
48100 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48101             Bruno Haible  <bruno@clisp.org>
48102
48103         Fix cross-compilation results.
48104         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
48105         statement, as third argument of AC_TRY_RUN.
48106         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
48107         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
48108         Likewise.
48109         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
48110         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
48111         Likewise.
48112         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
48113         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
48114         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
48115
48116 2009-04-20  Bruno Haible  <bruno@clisp.org>
48117
48118         Avoid test failure on mingw.
48119         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
48120
48121 2009-04-20  Bruno Haible  <bruno@clisp.org>
48122
48123         Avoid compilation error on mingw.
48124         * modules/localename-tests (Depends-on): Add locale.
48125
48126 2009-04-19  Bruno Haible  <bruno@clisp.org>
48127
48128         Support for building a shared library on Windows platforms.
48129         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
48130         (main): Test the presence of UNINORM_NFC here.
48131         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
48132         (main): Test the presence of UNINORM_NFD here.
48133         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
48134         (main): Test the presence of UNINORM_NFKC here.
48135         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
48136         (main): Test the presence of UNINORM_NFKD here.
48137
48138 2009-04-19  Bruno Haible  <bruno@clisp.org>
48139
48140         Avoid a compiler warning.
48141         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
48142         Change type of variable 'sequence'.
48143
48144 2009-04-19  Bruno Haible  <bruno@clisp.org>
48145
48146         * modules/configmake (Makefile.am): When the contents of configmake.h
48147         does not change, arrange to preserve its modification time.
48148
48149 2009-04-17  Simon Josefsson  <simon@josefsson.org>
48150
48151         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
48152         gettext domain.
48153
48154 2009-04-16  Jim Meyering  <meyering@redhat.com>
48155
48156         useless-if-before-free: improve conversion code
48157         * build-aux/useless-if-before-free: Adjust code-in-comment to match
48158         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
48159
48160 2009-04-14  Bruno Haible  <bruno@clisp.org>
48161
48162         * modules/fcntl (Depends-on): Add extensions.
48163         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
48164
48165 2009-04-12  Ben Pfaff  <blp@gnu.org>
48166
48167         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
48168         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
48169
48170 2009-03-20  Ben Pfaff  <blp@gnu.org>
48171
48172         Make rename replace existing destinations on Windows.
48173         * m4/rename.m4: Add test for Mingw.
48174         * lib/rename.c: Add rename replacement that uses MoveFileEx with
48175         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
48176         * doc/posix-functions/rename.texi: Document.
48177
48178 2009-04-10  Bruno Haible  <bruno@clisp.org>
48179
48180         New include file "iconveh.h".
48181         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
48182         * lib/striconveh.h: Include it.
48183         (enum iconv_ilseq_handler): Remove definition.
48184         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
48185         striconveh.h.
48186         * lib/striconveha.c: Include striconveh.h.
48187         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
48188         * modules/striconveh (Files): Add lib/iconveh.h.
48189         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
48190         lib/striconveh.h.
48191
48192 2009-04-10  Bruno Haible  <bruno@clisp.org>
48193
48194         * lib/uniconv.h: Update comment.
48195
48196 2009-04-10  Bruno Haible  <bruno@clisp.org>
48197
48198         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
48199         always.
48200         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48201         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48202         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48203         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
48204         "unistring-notinline.h", so that the function gets defined always.
48205         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48206         * lib/unistr/u8-uctomb.c: Likewise.
48207         * lib/unistr/u16-mbtouc.c: Likewise.
48208         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48209         * lib/unistr/u16-uctomb.c: Likewise.
48210         * lib/unistr/u32-mbtouc.c: Likewise.
48211         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48212         * lib/unistr/u32-uctomb.c: Likewise.
48213
48214 2009-04-10  Bruno Haible  <bruno@clisp.org>
48215
48216         Mark 'utime' obsolete.
48217         * modules/utime (Status, Notice): New sections.
48218         Suggested by Jim Meyering.
48219
48220         Fix cross-compile guess for utime test.
48221         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
48222         autoconf.
48223         * doc/posix-functions/utime.texi: Give more precisions.
48224         Reported by Jan <ipif@ymail.com>.
48225
48226 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
48227
48228         filevercmp: correct today's change
48229         * lib/filevercmp.c: Also handle coreutils' test inputs.
48230         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
48231
48232         Fix regression in 'filevercmp' module. Thanks Sven Joachim
48233         for reporting it.
48234         * lib/filevercmp.c: Special handle for "", "." and "..".
48235         * tests/test-filevercmp.c: Enlarge the set suite.
48236
48237 2009-04-07  Jim Meyering  <meyering@redhat.com>
48238
48239         useless-if-before-free: show how to remove braced useless free, too
48240         * build-aux/useless-if-before-free: still only in a comment, though.
48241
48242 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
48243
48244         maint.mk: import changes to syntax-check macros from coreutils
48245         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
48246         Use them in the relevant macros.
48247
48248 2009-04-06  Bruno Haible  <bruno@clisp.org>
48249
48250         Fix unportable use of bit-fields.
48251         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
48252         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
48253         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
48254
48255 2009-04-06  Bruno Haible  <bruno@clisp.org>
48256
48257         Avoid test failures on AIX and OSF/1.
48258         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
48259         that malloc(0) = NULL.
48260         * tests/unicase/test-u8-tolower.c (check): Likewise.
48261         * tests/unicase/test-u8-totitle.c (check): Likewise.
48262         * tests/unicase/test-u8-toupper.c (check): Likewise.
48263         * tests/unicase/test-u16-casefold.c (check): Likewise.
48264         * tests/unicase/test-u16-tolower.c (check): Likewise.
48265         * tests/unicase/test-u16-totitle.c (check): Likewise.
48266         * tests/unicase/test-u16-toupper.c (check): Likewise.
48267         * tests/unicase/test-u32-casefold.c (check): Likewise.
48268         * tests/unicase/test-u32-tolower.c (check): Likewise.
48269         * tests/unicase/test-u32-totitle.c (check): Likewise.
48270         * tests/unicase/test-u32-toupper.c (check): Likewise.
48271         * tests/uninorm/test-u8-nfc.c (check): Likewise.
48272         * tests/uninorm/test-u8-nfd.c (check): Likewise.
48273         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
48274         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
48275         * tests/uninorm/test-u16-nfc.c (check): Likewise.
48276         * tests/uninorm/test-u16-nfd.c (check): Likewise.
48277         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
48278         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
48279         * tests/uninorm/test-u32-nfc.c (check): Likewise.
48280         * tests/uninorm/test-u32-nfd.c (check): Likewise.
48281         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
48282         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
48283
48284 2009-04-05  Bruno Haible  <bruno@clisp.org>
48285
48286         Work around an autoconf limitation.
48287         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
48288         comment line if it would be longer than 3 KB.
48289
48290 2009-04-05  Bruno Haible  <bruno@clisp.org>
48291
48292         Avoid test failure with libiconv-1.13.
48293         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
48294         of the expected test results.
48295
48296 2009-04-05  Bruno Haible  <bruno@clisp.org>
48297
48298         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
48299         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
48300         that it should be installed.
48301
48302 2009-04-05  Bruno Haible  <bruno@clisp.org>
48303
48304         * gnulib-tool: New option --copy-file.
48305         (func_usage): Document it.
48306         (func_dest_tmpfilename): Moved out of func_import.
48307         (func_add_file, func_update_file): New functions, extracted from
48308         func_import.
48309         (func_import): Update.
48310
48311 2009-04-05  Karl Berry  <karl@gnu.org>
48312
48313         * README: prominently mention gnulib-tool.
48314         Rearrange sections so getting the code is near the top.
48315
48316 2009-04-05  Bruno Haible  <bruno@clisp.org>
48317
48318         * lib/unicase.h: Mention u*_cmp2.
48319         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48320         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
48321         * lib/unicase/ulc-casecmp.c: Likewise.
48322         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
48323         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
48324         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
48325         unistr/u8-cmp.
48326         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
48327         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
48328         unistr/u16-cmp.
48329         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
48330         unistr/u32-cmp.
48331
48332         * lib/uninorm.h: Mention u*_cmp2.
48333         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48334         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
48335         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
48336         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
48337         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
48338         unistr/u8-cmp.
48339         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
48340         unistr/u16-cmp.
48341         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
48342         unistr/u32-cmp.
48343
48344         New module 'unistr/u32-cmp2'.
48345         * lib/unistr/u32-cmp2.c: New file.
48346         * modules/unistr/u32-cmp2: New file.
48347
48348         New module 'unistr/u16-cmp2'.
48349         * lib/unistr/u16-cmp2.c: New file.
48350         * modules/unistr/u16-cmp2: New file.
48351
48352         New module 'unistr/u8-cmp2'.
48353         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
48354         * lib/unistr/u8-cmp2.c: New file.
48355         * lib/unistr/u-cmp2.h: New file.
48356         * modules/unistr/u8-cmp2: New file.
48357
48358 2009-04-05  Bruno Haible  <bruno@clisp.org>
48359
48360         * lib/unictype.h (uc_property_is_valid): New macro.
48361         * tests/unictype/test-pr_byname.c (main): Use it.
48362
48363         * lib/unistr.h: Doc fixes.
48364         * lib/uniconv.h: Doc fixes.
48365         * lib/unictype.h: Doc fixes.
48366
48367 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
48368
48369         Port coreutils 7.2 to Solaris 8.
48370
48371         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
48372         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
48373         for Solaris 8.  This is a bit of a hack, as it means it's the
48374         caller's responsibility to add -lnsl if needed, but most likely it
48375         won't be needed since only getaddrinfo uses this and getaddrinfo
48376         isn't needed on Solaris 8.
48377
48378         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
48379         problem to Solaris 8 encountered with coreutils 7.2, which
48380         resulted in a message "fnmatch.c:292: warning: passing argument 4
48381         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
48382         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
48383
48384 2009-04-03  Simon Josefsson  <simon@josefsson.org>
48385
48386         * m4/ld-version-script.m4: Add FIXME comment.
48387
48388 2009-04-02  Simon Josefsson  <simon@josefsson.org>
48389
48390         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
48391         SOVERSION variable.
48392
48393 2009-04-02  Bruno Haible  <bruno@clisp.org>
48394
48395         * Makefile (info, html, dvi, pdf): Combine the rules.
48396         Suggested by Jim Meyering.
48397
48398 2009-04-01  Bruno Haible  <bruno@clisp.org>
48399
48400         * Makefile (info, html, dvi, pdf): New targets.
48401         Reported by Reuben Thomas <rrt@sc3d.org>.
48402
48403 2009-04-01  Bruno Haible  <bruno@clisp.org>
48404
48405         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
48406         can be put into PATH.
48407         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
48408
48409 2009-04-01  Bruno Haible  <bruno@clisp.org>
48410
48411         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
48412
48413 2009-04-01  Bruno Haible  <bruno@clisp.org>
48414
48415         Rename module 'visibility'.
48416         * modules/lib-symbol-visibility: Renamed from modules/visibility.
48417         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
48418         * doc/gnulib.texi: Update.
48419         * MODULES.html.sh (Misc): Update.
48420         * NEWS: Mention the change.
48421
48422 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48423
48424         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
48425         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
48426         Eric Blake <ebb9@byu.net> for review.
48427         * MODULES.html.sh: Add lib-msvc-compat.
48428         * doc/gnulib.texi: Link to new section.
48429         * m4/ld-output-def.m4: New file.
48430         * doc/ld-output-def.texi: New file.
48431
48432 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48433
48434         Rename ld-version-script to lib-symbol-versions.  Suggested by
48435         Bruno Haible <bruno@clisp.org>.
48436         * modules/ld-version-script: Renamed to lib-symbol-versions.
48437         * doc/ld-version-script.texi: Fix module name.
48438         * MODULES.html.sh: Add lib-symbol-versions.
48439
48440 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48441
48442         * modules/u64-tests: New file.
48443         * tests/test-u64.c: New file.
48444
48445 2009-03-04  Simon Josefsson  <simon@josefsson.org>
48446
48447         * MODULES.html.sh: Mention u64.
48448         * modules/u64: New module.
48449         * modules/crypto/sha512: Depend on u64 module instead of providing
48450         u64.h.
48451
48452 2009-03-27  Eric Blake  <ebb9@byu.net>
48453
48454         test-strerror: make debugging EAI_SYSTEM easier
48455         * modules/getaddrinfo-tests (Depends-on): Add strerror.
48456         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
48457         failure was EAI_SYSTEM.
48458
48459 2009-03-25  Bruno Haible  <bruno@clisp.org>
48460
48461         Fix a problem with --enable-relocatable on Solaris 7.
48462         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
48463         since 2008-02-24.
48464
48465 2009-03-25  Eric Blake  <ebb9@byu.net>
48466
48467         test-sockets: avoid gcc warning
48468         * tests/test-sockets.c (main): Silence compiler warning.
48469
48470 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
48471
48472         New modules nproc, pthread, contributed by Glen Lenker.
48473
48474         * MODULES.html.sh: Add pthread, nproc.
48475         * lib/nproc.c: New file.
48476         * lib/nproc.h: New file.
48477         * lib/pthread.in.h: New file.
48478         * m4/pthread.m4: New file.
48479         * modules/nproc: New file.
48480         * modules/pthread: New file.
48481
48482 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48483
48484         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
48485         New variable.
48486
48487 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
48488
48489         filevercmp: handle simple~ and numbered.~3~ backup suffixes
48490         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
48491         * tests/test-filevercmp.c: Add tests for backup suffixes.
48492
48493 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48494
48495         * modules/stdlib (Depends-on): Add stdint, needed when defining
48496         struct random_data on, for example, HP-UX 10.20.  Reported by
48497         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48498
48499 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48500
48501         * lib/readline.c (readline): Call fflush on stdout after printing
48502         prompt.
48503
48504 2009-03-20  Bruno Haible  <bruno@clisp.org>
48505
48506         Remove dependency from 'close' module to -lws2_32 on native Windows.
48507         * lib/close-hook.h: New file.
48508         * lib/close-hook.c: New file.
48509         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
48510         w32sock.h.
48511         (_gl_close_fd_maybe_socket): Remove function.
48512         (rpl_close): Invoke execute_all_close_hooks instead of
48513         _gl_close_fd_maybe_socket.
48514         * lib/sockets.c: Include close-hook.h, w32sock.h.
48515         (close_fd_maybe_socket): New function, essentially from lib/close.c.
48516         (close_sockets_hook): New variable.
48517         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
48518         (gl_sockets_cleanup): Unregister it.
48519         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
48520         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
48521         * modules/close-hook: New file.
48522         * modules/close (Files): Remove lib/w32sock.h.
48523         (Depends-on): Add close-hook.
48524         (Link): Remove section.
48525         * modules/sockets (Files): Add lib/w32sock.h.
48526         (Depends-on): Add close-hook.
48527         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
48528         invocation.
48529         * NEWS: Mention that LIB_CLOSE is gone.
48530
48531 2009-03-23  Eric Blake  <ebb9@byu.net>
48532
48533         signal-tests: test previous patch
48534         * tests/test-signal.c: New file.
48535         * modules/signal-tests: Likewise.
48536
48537         signal.h: always support 'volatile sig_atomic_t'
48538         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
48539         (gl_SIGNAL_H_DEFAULTS): Add a default.
48540         * modules/signal (Makefile.am): Substitute if needed.
48541         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
48542         users can blindly add volatile.
48543         * doc/posix-headers/signal.texi (signal.h): Document it.
48544         Reported by Matthew Woehlke.
48545
48546 2009-03-23  Jim Meyering  <meyering@redhat.com>
48547
48548         pathmax: PATH_MAX: use pathconf only when available
48549         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
48550         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
48551         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
48552         This avoids a link failure in a PSP cross-compilation environment
48553         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
48554
48555         * lib/vasnprintf.c (divide): Fix typo in comment.
48556
48557 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48558
48559         * gnulib-tool (func_filter_filelist): Fix comment.
48560
48561 2009-03-20  Bruno Haible  <bruno@clisp.org>
48562
48563         Make sockets.h self-contained.
48564         * lib/sockets.c: Include sockets.h first.
48565         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
48566
48567 2009-03-19  Eric Blake  <ebb9@byu.net>
48568
48569         doc: mention more functions added in cygwin 1.7.0
48570         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
48571         addition.
48572         * doc/posix-functions/log2f.texi: Likewise.
48573
48574 2009-03-19  Jim Meyering  <meyering@redhat.com>
48575
48576         fsusage: avoid syntax error due to statement-before-declaration
48577         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
48578         after all declarations.  Reported by Matthew Woehlke in
48579         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
48580
48581 2009-03-18  Eric Blake  <ebb9@byu.net>
48582
48583         build-aux/compile: sync from automake
48584         * build-aux/compile: New file, from automake.
48585         * config/srclist.txt: Mention build-aux/compile.
48586
48587 2009-03-17  Bruno Haible  <bruno@clisp.org>
48588
48589         * lib/git-merge-changelog.c: Fix typo in comment.
48590         Reported by Reuben Thomas <rrt@sc3d.org>.
48591
48592 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
48593
48594         * m4/regex.m4: update and improve help for
48595         --without-included-regex.
48596
48597 2009-03-17  Simon Josefsson  <simon@josefsson.org>
48598
48599         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
48600         failure on missing include files.
48601
48602 2009-03-17  Eric Blake  <ebb9@byu.net>
48603
48604         doc: mention more functions added in cygwin 1.7.0
48605         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
48606         addition.
48607         * doc/posix-functions/fwscanf.texi: Likewise.
48608         * doc/posix-functions/swprintf.texi: Likewise.
48609         * doc/posix-functions/swscanf.texi: Likewise.
48610         * doc/posix-functions/vfwprintf.texi: Likewise.
48611         * doc/posix-functions/vfwscanf.texi: Likewise.
48612         * doc/posix-functions/vswprintf.texi: Likewise.
48613         * doc/posix-functions/vswscanf.texi: Likewise.
48614         * doc/posix-functions/vwprintf.texi: Likewise.
48615         * doc/posix-functions/vwscanf.texi: Likewise.
48616         * doc/posix-functions/wcscasecmp.texi: Likewise.
48617         * doc/posix-functions/wcsdup.texi: Likewise.
48618         * doc/posix-functions/wcsftime.texi: Likewise.
48619         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48620         * doc/posix-functions/wprintf.texi: Likewise.
48621         * doc/posix-functions/wscanf.texi: Likewise.
48622         * doc/glibc-functions/gethostbyname2.texi: Likewise.
48623
48624 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48625
48626         maint.mk: really add $(AM_MAKEFLAGS)
48627         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
48628         was inadvertently omitted in the last commit.
48629         Spotted by Bruno Haible.
48630
48631         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
48632         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
48633         $(AM_MAKEFLAGS)' rather than plain `make'.
48634
48635         gnulib-tool: execute $MAKE not make
48636         * gnulib-tool: Default $MAKE to 'make'.
48637         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
48638         than make.  Initialize $MAKE in the do-autobuild script.
48639
48640         gnulib-tool: use $MAKE not make in generated files
48641         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
48642         make, in generated files.  Initialize $MAKE in the do-autobuild
48643         script.
48644
48645         * top/GNUmakefile (_have-git-version-gen): Fix typo.
48646
48647         GNUmakefile: disable parallelism only for multiple, recursive targets
48648         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
48649         additions in the Makefile.
48650         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
48651         by Automake.
48652         (.NOTPARALLEL): Only disable parallel builds if multiple targets
48653         are listed on the command line and at least one of them is
48654         listed in $(ALL_RECURSIVE_TARGETS).
48655
48656 2009-03-14  Bruno Haible  <bruno@clisp.org>
48657
48658         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
48659         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
48660         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
48661         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
48662         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
48663         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
48664         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
48665         unistr/u8-uctomb.
48666         * modules/unistr/u8-strchr (Depends-on): Likewise.
48667         * modules/unistr/u8-strrchr (Depends-on): Likewise.
48668         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
48669         unistr/u16-uctomb.
48670         * modules/unistr/u16-strchr (Depends-on): Likewise.
48671         * modules/unistr/u16-strrchr (Depends-on): Likewise.
48672
48673 2009-03-12  Bruno Haible  <bruno@clisp.org>
48674
48675         Work around select() bug on Interix 3.5.
48676         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
48677         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
48678         * m4/select.m4: New file.
48679         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
48680         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
48681         * modules/select (Files): Add m4/select.m4.
48682         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
48683         * modules/nanosleep (Depends-on): Add select.
48684         * modules/poll (Depends-on): Likewise.
48685         * doc/posix-functions/select.texi: Mention the Interix bug.
48686         Reported by Markus Duft <mduft@gentoo.org>.
48687
48688         * lib/select.c: Renamed from lib/winsock-select.c.
48689         * modules/select (Files): Add lib/select.c, remove
48690         lib/winsock-select.c.
48691         (configure.ac): Update.
48692
48693 2009-03-12  Jim Meyering  <meyering@redhat.com>
48694
48695         avoid gcc warnings about unused macro definitions
48696         * lib/readtokens.c (STREQ): Remove unused definition.
48697         * lib/xmalloc.c (SIZE_MAX): Likewise.
48698         * lib/openat-die.c (N_): Likewise.
48699         * lib/mountlist.c (SIZE_MAX): Remove definition.
48700         Instead, include <stdint.h>.
48701         * lib/readutmp.c: Likewise.
48702         * modules/readutmp (Depends-on): Add stdint.
48703         * modules/mountlist (Depends-on): Add stdint.
48704         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
48705
48706 2009-03-10  Bruno Haible  <bruno@clisp.org>
48707
48708         Tests for module 'mbmemcasecoll'.
48709         * modules/mbmemcasecoll-tests: New file.
48710         * tests/test-mbmemcasecoll1.sh: New file.
48711         * tests/test-mbmemcasecoll2.sh: New file.
48712         * tests/test-mbmemcasecoll3.sh: New file.
48713         * tests/test-mbmemcasecoll.c: New file.
48714
48715         New module 'mbmemcasecoll'.
48716         * lib/mbmemcasecoll.h: New file.
48717         * lib/mbmemcasecoll.c: New file.
48718         * modules/mbmemcasecoll: New file.
48719
48720         * tests/test-mbmemcasecmp.h: New file, extracted from
48721         tests/test-mbmemcasecmp.c.
48722         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
48723         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
48724         (main): Update.
48725         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
48726
48727 2009-03-09  Bruno Haible  <bruno@clisp.org>
48728
48729         Tests for module 'mbmemcasecmp'.
48730         * modules/mbmemcasecmp-tests: New file.
48731         * tests/test-mbmemcasecmp1.sh: New file.
48732         * tests/test-mbmemcasecmp2.sh: New file.
48733         * tests/test-mbmemcasecmp3.sh: New file.
48734         * tests/test-mbmemcasecmp.c: New file.
48735
48736         New module 'mbmemcasecmp'.
48737         * lib/mbmemcasecmp.h: New file.
48738         * lib/mbmemcasecmp.c: New file.
48739         * modules/mbmemcasecmp: New file.
48740
48741 2009-03-09  Bruno Haible  <bruno@clisp.org>
48742
48743         Tests for module 'unicase/ulc-casecoll'.
48744         * modules/unicase/ulc-casecoll-tests: New file.
48745         * tests/unicase/test-ulc-casecoll1.sh: New file.
48746         * tests/unicase/test-ulc-casecoll2.sh: New file.
48747         * tests/unicase/test-ulc-casecoll.c: New file.
48748
48749         New module 'unicase/ulc-casecoll'.
48750         * lib/unicase.h (ulc_casecoll): New declaration.
48751         * lib/unicase/ulc-casecoll.c: New file.
48752         * modules/unicase/ulc-casecoll: New file.
48753
48754         New module 'unicase/ulc-casexfrm'.
48755         * lib/unicase.h (ulc_casexfrm): New declaration.
48756         * lib/unicase/ulc-casexfrm.c: New file.
48757         * modules/unicase/ulc-casexfrm: New file.
48758
48759 2009-03-09  Bruno Haible  <bruno@clisp.org>
48760
48761         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
48762         invocations.
48763
48764         * m4/mbscasecmp.m4: Remove file.
48765         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
48766         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
48767
48768         * m4/mbscasestr.m4: Remove file.
48769         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
48770         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
48771
48772         * m4/mbschr.m4: Remove file.
48773         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
48774         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
48775
48776         * m4/mbscspn.m4: Remove file.
48777         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
48778         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
48779
48780         * m4/mbslen.m4: Remove file.
48781         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
48782         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
48783
48784         * m4/mbsncasecmp.m4: Remove file.
48785         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
48786         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
48787
48788         * m4/mbsnlen.m4: Remove file.
48789         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
48790         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
48791
48792         * m4/mbspbrk.m4: Remove file.
48793         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
48794         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
48795
48796         * m4/mbspcasecmp.m4: Remove file.
48797         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
48798         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
48799
48800         * m4/mbsrchr.m4: Remove file.
48801         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
48802         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
48803
48804         * m4/mbssep.m4: Remove file.
48805         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
48806         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
48807
48808         * m4/mbsspn.m4: Remove file.
48809         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
48810         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
48811
48812         * m4/mbsstr.m4: Remove file.
48813         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
48814         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
48815
48816         * m4/mbstok_r.m4: Remove file.
48817         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
48818         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
48819
48820         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
48821
48822         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
48823         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
48824
48825         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
48826
48827 2009-03-08  Bruno Haible  <bruno@clisp.org>
48828
48829         Tests for module 'unicase/ulc-casecmp'.
48830         * modules/unicase/ulc-casecmp-tests: New file.
48831         * tests/unicase/test-ulc-casecmp1.sh: New file.
48832         * tests/unicase/test-ulc-casecmp2.sh: New file.
48833         * tests/unicase/test-ulc-casecmp.c: New file.
48834
48835         New module 'unicase/ulc-casecmp'.
48836         * lib/unicase.h (ulc_casecmp): New declaration.
48837         * lib/unicase/ulc-casecmp.c: New file.
48838         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
48839         'const SRC_UNIT *'.
48840         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
48841         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
48842         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
48843         * modules/unicase/ulc-casecmp: New file.
48844
48845         Tests for module 'unicase/u32-is-cased'.
48846         * modules/unicase/u32-is-cased-tests: New file.
48847         * tests/unicase/test-u32-is-cased.c: New file.
48848
48849         Tests for module 'unicase/u16-is-cased'.
48850         * modules/unicase/u16-is-cased-tests: New file.
48851         * tests/unicase/test-u16-is-cased.c: New file.
48852
48853         Tests for module 'unicase/u8-is-cased'.
48854         * modules/unicase/u8-is-cased-tests: New file.
48855         * tests/unicase/test-u8-is-cased.c: New file.
48856         * tests/unicase/test-is-cased.h: New file.
48857
48858         New module 'unicase/u32-is-cased'.
48859         * lib/unicase/u32-is-cased.c: New file.
48860         * modules/unicase/u32-is-cased: New file.
48861
48862         New module 'unicase/u16-is-cased'.
48863         * lib/unicase/u16-is-cased.c: New file.
48864         * modules/unicase/u16-is-cased: New file.
48865
48866         New module 'unicase/u8-is-cased'.
48867         * lib/unicase/u8-is-cased.c: New file.
48868         * lib/unicase/u-is-cased.h: New file.
48869         * modules/unicase/u8-is-cased: New file.
48870
48871         Tests for module 'unicase/u32-is-casefolded'.
48872         * modules/unicase/u32-is-casefolded-tests: New file.
48873         * tests/unicase/test-u32-is-casefolded.c: New file.
48874
48875         Tests for module 'unicase/u16-is-casefolded'.
48876         * modules/unicase/u16-is-casefolded-tests: New file.
48877         * tests/unicase/test-u16-is-casefolded.c: New file.
48878
48879         Tests for module 'unicase/u8-is-casefolded'.
48880         * modules/unicase/u8-is-casefolded-tests: New file.
48881         * tests/unicase/test-u8-is-casefolded.c: New file.
48882         * tests/unicase/test-is-casefolded.h: New file.
48883
48884         New module 'unicase/u32-is-casefolded'.
48885         * lib/unicase/u32-is-casefolded.c: New file.
48886         * modules/unicase/u32-is-casefolded: New file.
48887
48888         New module 'unicase/u16-is-casefolded'.
48889         * lib/unicase/u16-is-casefolded.c: New file.
48890         * modules/unicase/u16-is-casefolded: New file.
48891
48892         New module 'unicase/u8-is-casefolded'.
48893         * lib/unicase/u8-is-casefolded.c: New file.
48894         * modules/unicase/u8-is-casefolded: New file.
48895
48896         Tests for module 'unicase/u32-is-titlecase'.
48897         * modules/unicase/u32-is-titlecase-tests: New file.
48898         * tests/unicase/test-u32-is-titlecase.c: New file.
48899
48900         Tests for module 'unicase/u16-is-titlecase'.
48901         * modules/unicase/u16-is-titlecase-tests: New file.
48902         * tests/unicase/test-u16-is-titlecase.c: New file.
48903
48904         Tests for module 'unicase/u8-is-titlecase'.
48905         * modules/unicase/u8-is-titlecase-tests: New file.
48906         * tests/unicase/test-u8-is-titlecase.c: New file.
48907         * tests/unicase/test-is-titlecase.h: New file.
48908
48909         New module 'unicase/u32-is-titlecase'.
48910         * lib/unicase/u32-is-titlecase.c: New file.
48911         * modules/unicase/u32-is-titlecase: New file.
48912
48913         New module 'unicase/u16-is-titlecase'.
48914         * lib/unicase/u16-is-titlecase.c: New file.
48915         * modules/unicase/u16-is-titlecase: New file.
48916
48917         New module 'unicase/u8-is-titlecase'.
48918         * lib/unicase/u8-is-titlecase.c: New file.
48919         * modules/unicase/u8-is-titlecase: New file.
48920
48921         Tests for module 'unicase/u32-is-lowercase'.
48922         * modules/unicase/u32-is-lowercase-tests: New file.
48923         * tests/unicase/test-u32-is-lowercase.c: New file.
48924
48925         Tests for module 'unicase/u16-is-lowercase'.
48926         * modules/unicase/u16-is-lowercase-tests: New file.
48927         * tests/unicase/test-u16-is-lowercase.c: New file.
48928
48929         Tests for module 'unicase/u8-is-lowercase'.
48930         * modules/unicase/u8-is-lowercase-tests: New file.
48931         * tests/unicase/test-u8-is-lowercase.c: New file.
48932         * tests/unicase/test-is-lowercase.h: New file.
48933
48934         New module 'unicase/u32-is-lowercase'.
48935         * lib/unicase/u32-is-lowercase.c: New file.
48936         * modules/unicase/u32-is-lowercase: New file.
48937
48938         New module 'unicase/u16-is-lowercase'.
48939         * lib/unicase/u16-is-lowercase.c: New file.
48940         * modules/unicase/u16-is-lowercase: New file.
48941
48942         New module 'unicase/u8-is-lowercase'.
48943         * lib/unicase/u8-is-lowercase.c: New file.
48944         * modules/unicase/u8-is-lowercase: New file.
48945
48946         Tests for module 'unicase/u32-is-uppercase'.
48947         * modules/unicase/u32-is-uppercase-tests: New file.
48948         * tests/unicase/test-u32-is-uppercase.c: New file.
48949
48950         Tests for module 'unicase/u16-is-uppercase'.
48951         * modules/unicase/u16-is-uppercase-tests: New file.
48952         * tests/unicase/test-u16-is-uppercase.c: New file.
48953
48954         Tests for module 'unicase/u8-is-uppercase'.
48955         * modules/unicase/u8-is-uppercase-tests: New file.
48956         * tests/unicase/test-u8-is-uppercase.c: New file.
48957         * tests/unicase/test-is-uppercase.h: New file.
48958
48959         New module 'unicase/u32-is-uppercase'.
48960         * lib/unicase/u32-is-uppercase.c: New file.
48961         * modules/unicase/u32-is-uppercase: New file.
48962
48963         New module 'unicase/u16-is-uppercase'.
48964         * lib/unicase/u16-is-uppercase.c: New file.
48965         * modules/unicase/u16-is-uppercase: New file.
48966
48967         New module 'unicase/u8-is-uppercase'.
48968         * lib/unicase/u8-is-uppercase.c: New file.
48969         * modules/unicase/u8-is-uppercase: New file.
48970
48971         New module 'unicase/u32-is-invariant'.
48972         * lib/unicase/u32-is-invariant.c: New file.
48973         * modules/unicase/u32-is-invariant: New file.
48974
48975         New module 'unicase/u16-is-invariant'.
48976         * lib/unicase/u16-is-invariant.c: New file.
48977         * modules/unicase/u16-is-invariant: New file.
48978
48979         New module 'unicase/u8-is-invariant'.
48980         * lib/unicase/u8-is-invariant.c: New file.
48981         * lib/unicase/invariant.h: New file.
48982         * lib/unicase/u-is-invariant.h: New file.
48983         * modules/unicase/u8-is-invariant: New file.
48984
48985         Tests for module 'unicase/u32-casecoll'.
48986         * modules/unicase/u32-casecoll-tests: New file.
48987         * tests/unicase/test-u32-casecoll.c: New file.
48988
48989         Tests for module 'unicase/u16-casecoll'.
48990         * modules/unicase/u16-casecoll-tests: New file.
48991         * tests/unicase/test-u16-casecoll.c: New file.
48992
48993         Tests for module 'unicase/u8-casecoll'.
48994         * modules/unicase/u8-casecoll-tests: New file.
48995         * tests/unicase/test-u8-casecoll.c: New file.
48996
48997         New module 'unicase/u32-casecoll'.
48998         * lib/unicase/u32-casecoll.c: New file.
48999         * modules/unicase/u32-casecoll: New file.
49000
49001         New module 'unicase/u16-casecoll'.
49002         * lib/unicase/u16-casecoll.c: New file.
49003         * modules/unicase/u16-casecoll: New file.
49004
49005         New module 'unicase/u8-casecoll'.
49006         * lib/unicase/u8-casecoll.c: New file.
49007         * lib/unicase/u-casecoll.h: New file.
49008         * modules/unicase/u8-casecoll: New file.
49009
49010         New module 'unicase/u32-casexfrm'.
49011         * lib/unicase/u32-casexfrm.c: New file.
49012         * modules/unicase/u32-casexfrm: New file.
49013
49014         New module 'unicase/u16-casexfrm'.
49015         * lib/unicase/u16-casexfrm.c: New file.
49016         * modules/unicase/u16-casexfrm: New file.
49017
49018         New module 'unicase/u8-casexfrm'.
49019         * lib/unicase/u8-casexfrm.c: New file.
49020         * lib/unicase/u-casexfrm.h: New file.
49021         * modules/unicase/u8-casexfrm: New file.
49022
49023         Tests for module 'unicase/u32-casecmp'.
49024         * modules/unicase/u32-casecmp-tests: New file.
49025         * tests/unicase/test-u32-casecmp.c: New file.
49026
49027         Tests for module 'unicase/u16-casecmp'.
49028         * modules/unicase/u16-casecmp-tests: New file.
49029         * tests/unicase/test-u16-casecmp.c: New file.
49030
49031         Tests for module 'unicase/u8-casecmp'.
49032         * modules/unicase/u8-casecmp-tests: New file.
49033         * tests/unicase/test-u8-casecmp.c: New file.
49034         * tests/unicase/test-casecmp.h: New file.
49035
49036         New module 'unicase/u32-casecmp'.
49037         * lib/unicase/u32-casecmp.c: New file.
49038         * modules/unicase/u32-casecmp: New file.
49039
49040         New module 'unicase/u16-casecmp'.
49041         * lib/unicase/u16-casecmp.c: New file.
49042         * modules/unicase/u16-casecmp: New file.
49043
49044         New module 'unicase/u8-casecmp'.
49045         * lib/unicase/u8-casecmp.c: New file.
49046         * lib/unicase/u-casecmp.h: New file.
49047         * modules/unicase/u8-casecmp: New file.
49048
49049         Tests for module 'unicase/u32-casefold'.
49050         * modules/unicase/u32-casefold-tests: New file.
49051         * tests/unicase/test-u32-casefold.c: New file.
49052
49053         Tests for module 'unicase/u16-casefold'.
49054         * modules/unicase/u16-casefold-tests: New file.
49055         * tests/unicase/test-u16-casefold.c: New file.
49056
49057         Tests for module 'unicase/u8-casefold'.
49058         * modules/unicase/u8-casefold-tests: New file.
49059         * tests/unicase/test-u8-casefold.c: New file.
49060
49061         New module 'unicase/u32-casefold'.
49062         * lib/unicase/u32-casefold.c: New file.
49063         * modules/unicase/u32-casefold: New file.
49064
49065         New module 'unicase/u16-casefold'.
49066         * lib/unicase/u16-casefold.c: New file.
49067         * modules/unicase/u16-casefold: New file.
49068
49069         New module 'unicase/u8-casefold'.
49070         * lib/unicase/u8-casefold.c: New file.
49071         * lib/unicase/u-casefold.h: New file.
49072         * modules/unicase/u8-casefold: New file.
49073
49074         New module 'unicase/tocasefold'.
49075         * lib/unicase/casefold.h: New file.
49076         * lib/unicase/tocasefold.c: New file.
49077         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
49078         * modules/unicase/tocasefold: New file.
49079
49080         Tests for module 'unicase/u32-totitle'.
49081         * modules/unicase/u32-totitle-tests: New file.
49082         * tests/unicase/test-u32-totitle.c: New file.
49083
49084         Tests for module 'unicase/u16-totitle'.
49085         * modules/unicase/u16-totitle-tests: New file.
49086         * tests/unicase/test-u16-totitle.c: New file.
49087
49088         Tests for module 'unicase/u8-totitle'.
49089         * modules/unicase/u8-totitle-tests: New file.
49090         * tests/unicase/test-u8-totitle.c: New file.
49091
49092         New module 'unicase/u32-totitle'.
49093         * lib/unicase/u32-totitle.c: New file.
49094         * modules/unicase/u32-totitle: New file.
49095
49096         New module 'unicase/u16-totitle'.
49097         * lib/unicase/u16-totitle.c: New file.
49098         * modules/unicase/u16-totitle: New file.
49099
49100         New module 'unicase/u8-totitle'.
49101         * lib/unicase/u8-totitle.c: New file.
49102         * lib/unicase/u-totitle.h: New file.
49103         * modules/unicase/u8-totitle: New file.
49104
49105         Tests for module 'unicase/u32-tolower'.
49106         * modules/unicase/u32-tolower-tests: New file.
49107         * tests/unicase/test-u32-tolower.c: New file.
49108
49109         Tests for module 'unicase/u16-tolower'.
49110         * modules/unicase/u16-tolower-tests: New file.
49111         * tests/unicase/test-u16-tolower.c: New file.
49112
49113         Tests for module 'unicase/u8-tolower'.
49114         * modules/unicase/u8-tolower-tests: New file.
49115         * tests/unicase/test-u8-tolower.c: New file.
49116
49117         New module 'unicase/u32-tolower'.
49118         * lib/unicase/u32-tolower.c: New file.
49119         * modules/unicase/u32-tolower: New file.
49120
49121         New module 'unicase/u16-tolower'.
49122         * lib/unicase/u16-tolower.c: New file.
49123         * modules/unicase/u16-tolower: New file.
49124
49125         New module 'unicase/u8-tolower'.
49126         * lib/unicase/u8-tolower.c: New file.
49127         * modules/unicase/u8-tolower: New file.
49128
49129         Tests for module 'unicase/u32-toupper'.
49130         * modules/unicase/u32-toupper-tests: New file.
49131         * tests/unicase/test-u32-toupper.c: New file.
49132
49133         Tests for module 'unicase/u16-toupper'.
49134         * modules/unicase/u16-toupper-tests: New file.
49135         * tests/unicase/test-u16-toupper.c: New file.
49136
49137         Tests for module 'unicase/u8-toupper'.
49138         * modules/unicase/u8-toupper-tests: New file.
49139         * tests/unicase/test-u8-toupper.c: New file.
49140
49141         New module 'unicase/u32-toupper'.
49142         * lib/unicase/u32-toupper.c: New file.
49143         * modules/unicase/u32-toupper: New file.
49144
49145         New module 'unicase/u16-toupper'.
49146         * lib/unicase/u16-toupper.c: New file.
49147         * modules/unicase/u16-toupper: New file.
49148
49149         New module 'unicase/u8-toupper'.
49150         * lib/unicase/u8-toupper.c: New file.
49151         * modules/unicase/u8-toupper: New file.
49152
49153         New module 'unicase/u32-casemap'.
49154         * lib/unicase/u32-casemap.c: New file.
49155         * modules/unicase/u32-casemap: New file.
49156
49157         New module 'unicase/u16-casemap'.
49158         * lib/unicase/u16-casemap.c: New file.
49159         * modules/unicase/u16-casemap: New file.
49160
49161         New module 'unicase/u8-casemap'.
49162         * lib/unicase/unicasemap.h: New file.
49163         * lib/unicase/u8-casemap.c: New file.
49164         * lib/unicase/u-casemap.h: New file.
49165         * modules/unicase/u8-casemap: New file.
49166
49167         New module 'unicase/special-casing'.
49168         * lib/unicase/special-casing.h: New file.
49169         * lib/unicase/special-casing.c: New file.
49170         * lib/unicase/special-casing-table.gperf: New file, generated by
49171         gen-uni-tables.c.
49172         * modules/unicase/special-casing: New file.
49173
49174         Tests for module 'unicase/locale-language'.
49175         * modules/unicase/locale-language-tests: New file.
49176         * tests/unicase/test-locale-language.sh: New file.
49177         * tests/unicase/test-locale-language.c: New file.
49178
49179         New module 'unicase/locale-language'.
49180         * lib/unicase/locale-language.c: New file.
49181         * lib/unicase/locale-languages.gperf: New file.
49182         * modules/unicase/locale-language: New file.
49183
49184         Generate more tables for case conversion and case folding.
49185         * lib/gen-uni-tables.c (SCC_*): New enum items.
49186         (struct special_casing_rule): New type.
49187         (casing_rules, num_casing_rules, allocated_casing_rules): New
49188         variables.
49189         (add_casing_rule, fill_casing_rules): New functions.
49190         (struct casefold_rule): New type.
49191         (casefolding_rules, num_casefolding_rules,
49192         allocated_casefolding_rules): New variables.
49193         (fill_casefolding_rules): New function.
49194         (unicode_casefold): New variable.
49195         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
49196         sort_casing_rules, output_casing_rules): New functions.
49197         (main): Accept to more arguments: SpecialCasing.txt and
49198         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
49199         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
49200         Output mapping for casefolding.
49201
49202         * lib/unicase.h: Include stdbool.h, uninorm.h.
49203         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
49204         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
49205         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
49206         arguments.
49207         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
49208         resultp arguments.
49209         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
49210         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
49211         resultp arguments.
49212         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
49213         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
49214         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
49215         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
49216         declarations.
49217         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
49218
49219 2009-03-08  Bruno Haible  <bruno@clisp.org>
49220
49221         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49222         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
49223         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
49224         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49225
49226 2009-03-07  Bruno Haible  <bruno@clisp.org>
49227
49228         Adjust u*_normcmp, u*_normcoll API.
49229         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49230         u16_normcoll, u32_normcoll): Change failure conventions.
49231         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
49232         errno and return -1.
49233         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49234
49235 2009-03-07  Bruno Haible  <bruno@clisp.org>
49236
49237         Tests for module 'uninorm/u32-normcoll'.
49238         * modules/uninorm/u32-normcoll-tests: New file.
49239         * tests/uninorm/test-u32-normcoll.c: New file.
49240
49241         Tests for module 'uninorm/u16-normcoll'.
49242         * modules/uninorm/u16-normcoll-tests: New file.
49243         * tests/uninorm/test-u16-normcoll.c: New file.
49244
49245         Tests for module 'uninorm/u8-normcoll'.
49246         * modules/uninorm/u8-normcoll-tests: New file.
49247         * tests/uninorm/test-u8-normcoll.c: New file.
49248
49249 2009-03-07  Bruno Haible  <bruno@clisp.org>
49250
49251         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
49252         tests/uninorm/test-u32-normcmp.c.
49253         * tests/uninorm/test-u32-normcmp.c: Include it.
49254         (test_nonascii): New function, extracted from main. Add some more
49255         tests.
49256         (main): Invoke test_ascii and test_nonascii.
49257         * modules/uninorm/u32-normcmp-tests (Files): Add
49258         tests/uninorm/test-u32-normcmp.h.
49259         (Depends-on): Remove uninorm/u32-normcmp.
49260
49261         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
49262         tests/uninorm/test-u16-normcmp.c.
49263         * tests/uninorm/test-u16-normcmp.c: Include it.
49264         (test_nonascii): New function, extracted from main. Add some more
49265         tests.
49266         (main): Invoke test_ascii and test_nonascii.
49267         * modules/uninorm/u16-normcmp-tests (Files): Add
49268         tests/uninorm/test-u16-normcmp.h.
49269         (Depends-on): Remove uninorm/u16-normcmp.
49270
49271         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
49272         tests/uninorm/test-u8-normcmp.c.
49273         * tests/uninorm/test-u8-normcmp.c: Include it.
49274         (test_nonascii): New function, extracted from main. Add some more
49275         tests.
49276         (main): Invoke test_ascii and test_nonascii.
49277         * modules/uninorm/u8-normcmp-tests (Files): Add
49278         tests/uninorm/test-u8-normcmp.h.
49279         (Depends-on): Remove uninorm/u8-normcmp.
49280
49281 2009-03-07  Bruno Haible  <bruno@clisp.org>
49282
49283         New module 'uninorm/u32-normcoll'.
49284         * lib/uninorm/u32-normcoll.c: New file.
49285         * modules/uninorm/u32-normcoll: New file.
49286
49287         New module 'uninorm/u16-normcoll'.
49288         * lib/uninorm/u16-normcoll.c: New file.
49289         * modules/uninorm/u16-normcoll: New file.
49290
49291         New module 'uninorm/u8-normcoll'.
49292         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
49293         declarations.
49294         * lib/uninorm/u8-normcoll.c: New file.
49295         * lib/uninorm/u-normcoll.h: New file.
49296         * modules/uninorm/u8-normcoll: New file.
49297
49298         New module 'uninorm/u32-normxfrm'.
49299         * lib/uninorm/u32-normxfrm.c: New file.
49300         * modules/uninorm/u32-normxfrm: New file.
49301
49302         New module 'uninorm/u16-normxfrm'.
49303         * lib/uninorm/u16-normxfrm.c: New file.
49304         * modules/uninorm/u16-normxfrm: New file.
49305
49306         New module 'uninorm/u8-normxfrm'.
49307         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
49308         declarations.
49309         * lib/uninorm/u8-normxfrm.c: New file.
49310         * lib/uninorm/u-normxfrm.h: New file.
49311         * modules/uninorm/u8-normxfrm: New file.
49312
49313 2009-03-07  Bruno Haible  <bruno@clisp.org>
49314
49315         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
49316         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
49317         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
49318
49319 2009-03-07  Bruno Haible  <bruno@clisp.org>
49320
49321         New module 'memxfrm'.
49322         * lib/memxfrm.h: New file.
49323         * lib/memxfrm.c: New file.
49324         * modules/memxfrm: New file.
49325
49326 2009-03-07  Bruno Haible  <bruno@clisp.org>
49327
49328         New module 'memcmp2'.
49329         * lib/memcmp2.h: New file.
49330         * lib/memcmp2.c: New file.
49331         * modules/memcmp2: New file.
49332
49333 2009-03-07  Bruno Haible  <bruno@clisp.org>
49334
49335         Tests for module 'uninorm/decomposing-form'.
49336         * modules/uninorm/decomposing-form-tests: New file.
49337         * tests/uninorm/test-decomposing-form.c: New file.
49338
49339         New module 'uninorm/decomposing-form'.
49340         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
49341         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
49342         Add 'decomposing_variant' field.
49343         * lib/uninorm/decomposing-form.c: New file.
49344         * lib/uninorm/nfc.c (uninorm_nfc): Update.
49345         * lib/uninorm/nfd.c (uninorm_nfd): Update.
49346         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
49347         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
49348         * modules/uninorm/decomposing-form: New file.
49349         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
49350         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
49351
49352 2009-03-07  Bruno Haible  <bruno@clisp.org>
49353
49354         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
49355         strings.
49356
49357 2009-03-06  Bruno Haible  <bruno@clisp.org>
49358
49359         Tests for module 'uninorm/u32-normcmp'.
49360         * tests/uninorm/test-u32-normcmp.c: New file.
49361         * modules/uninorm/u32-normcmp-tests: New file.
49362
49363         Tests for module 'uninorm/u16-normcmp'.
49364         * tests/uninorm/test-u16-normcmp.c: New file.
49365         * modules/uninorm/u16-normcmp-tests: New file.
49366
49367         Tests for module 'uninorm/u8-normcmp'.
49368         * tests/uninorm/test-u8-normcmp.c: New file.
49369         * modules/uninorm/u8-normcmp-tests: New file.
49370
49371         New module 'uninorm/u32-normcmp'.
49372         * lib/uninorm/u32-normcmp.c: New file.
49373         * modules/uninorm/u32-normcmp: New file.
49374
49375         New module 'uninorm/u16-normcmp'.
49376         * lib/uninorm/u16-normcmp.c: New file.
49377         * modules/uninorm/u16-normcmp: New file.
49378
49379         New module 'uninorm/u8-normcmp'.
49380         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
49381         declarations.
49382         * lib/uninorm/u8-normcmp.c: New file.
49383         * lib/uninorm/u-normcmp.h: New file.
49384         * modules/uninorm/u8-normcmp: New file.
49385
49386 2009-03-06  Bruno Haible  <bruno@clisp.org>
49387
49388         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
49389         Reported by Eric Blake.
49390
49391 2009-03-06  Eric Blake  <ebb9@byu.net>
49392             Bruno Haible  <bruno@clisp.org>
49393
49394         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
49395         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
49396         condition.
49397         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49398         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
49399         condition.
49400         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49401
49402 2009-03-06  Eric Blake  <ebb9@byu.net>
49403
49404         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
49405         to avoid compiler warnings.
49406         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
49407
49408 2009-03-05  Bruno Haible  <bruno@clisp.org>
49409
49410         * tests/test-ftell.c (main): Disable test beyond end of file on
49411         FreeMiNT.
49412         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49413
49414 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
49415
49416         * lib/filevercmp.c: Move hidden files up in ordering.
49417         * tests/test-filevercmp.c: Add tests for hidden files.
49418
49419 2009-03-04  Bruno Haible  <bruno@clisp.org>
49420
49421         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
49422         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
49423         AM_CFLAGS.
49424         Reported by Simon Josefsson.
49425
49426 2009-03-03  Bruno Haible  <bruno@clisp.org>
49427
49428         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
49429         Reported by Simon Josefsson.
49430
49431         * doc/ld-version-script.texi: Update node reference.
49432
49433 2009-03-03  Bruno Haible  <bruno@clisp.org>
49434
49435         * modules/visibility (License): Change to 'unlimited'.
49436         Suggested by Simon Josefsson.
49437
49438 2009-03-03  Jim Meyering  <meyering@redhat.com>
49439
49440         unlinkdir: cannot_unlink_dir may modify process state
49441         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
49442         it's neither thread-safe nor appropriate for use in a library.
49443
49444 2009-03-03  Eric Blake  <ebb9@byu.net>
49445
49446         test-closein: silence test under Darwin
49447         * tests/test-closein.sh: Ignore stderr from cat, since we don't
49448         care if it dies from EPIPE or EBADF.
49449
49450 2009-03-03  Bruno Haible  <bruno@clisp.org>
49451
49452         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
49453         earlier.
49454         * doc/visibility.texi: Fix @node and @section.
49455
49456 2009-03-03  Simon Josefsson  <simon@josefsson.org>
49457
49458         * doc/gnulib.texi: Link to sections for ld version script and
49459         visibility.
49460         * doc/visibility.texi: Add @node and @section.
49461         * modules/ld-version-script: New module.
49462         * m4/ld-version-script.m4: New file.
49463         * doc/ld-version-script.texi: New file.
49464
49465 2009-03-02  David Lutterkort  <lutter@redhat.com>
49466
49467         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
49468         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49469
49470 2009-03-02  Bruno Haible  <bruno@clisp.org>
49471
49472         * doc/visibility.texi: Mention libtool's -export-symbols option.
49473
49474 2009-03-02  Jim Meyering  <meyering@redhat.com>
49475
49476         announce-gen: new option: --no-print-checksums
49477         * build-aux/announce-gen (usage): Describe it.
49478         (print_checksums): Print a newline here, not in the [*] footnote.
49479         (main): Honor it.
49480
49481 2009-03-01  Bruno Haible  <bruno@clisp.org>
49482
49483         Use socklen_t in the native Windows replacements prototypes.
49484         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
49485         instead of 'int'.
49486         * lib/getsockopt.c (rpl_getsockopt): Likewise.
49487         * lib/setsockopt.c (rpl_setsockopt): Likewise.
49488         * modules/getsockopt (Depends-on): Add socklen.
49489         * modules/setsockopt (Depends-on): Add socklen.
49490
49491 2009-03-01  Bruno Haible  <bruno@clisp.org>
49492
49493         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
49494         least 4.2.
49495
49496 2009-03-01  Eric Blake  <ebb9@byu.net>
49497             Bruno Haible  <bruno@clisp.org>
49498
49499         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
49500         error messages.
49501         * lib/wait-process.c (wait_subprocess): Omit error message about
49502         deadly signal sent to the child of termsigp != NULL.
49503
49504 2009-03-01  Eric Blake  <ebb9@byu.net>
49505
49506         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
49507
49508 2009-03-01  Bruno Haible  <bruno@clisp.org>
49509
49510         Avoid a gcc warning.
49511         * tests/test-sched.c (b): Make global.
49512         Reported by Eric Blake.
49513
49514 2009-01-19  Martin Lambers  <marlam@marlam.de>
49515
49516         Provide POSIX semantics for socket timeout options on W32.
49517         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
49518         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
49519         * modules/setsockopt: Depend on sys_time module for struct timeval.
49520         * modules/getsockopt: Depend on sys_time module for struct timeval.
49521
49522 2009-03-01  Simon Josefsson  <simon@josefsson.org>
49523
49524         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
49525         __USE_GNU, for consistency with netdb.in.h.
49526         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49527
49528 2009-03-01  Bruno Haible  <bruno@clisp.org>
49529
49530         More support for FreeMiNT.
49531         * lib/fseeko.c (rpl_fseeko): Complete last commit.
49532         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49533
49534 2009-03-01  Bruno Haible  <bruno@clisp.org>
49535
49536         More support for FreeMiNT.
49537         * lib/fpurge.c (fpurge): Correct last commit.
49538         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49539
49540 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49541
49542         Fix unportable awk script in vc-list-files.
49543         * build-aux/vc-list-files: In the replacement awk script, use
49544         substr with a second argument of 1, not zero.
49545         Report by Simon Josefsson.
49546
49547 2009-02-28  Bruno Haible  <bruno@clisp.org>
49548
49549         More support for FreeMiNT.
49550         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
49551         to FreeMiNT today.
49552         * lib/fwriting.c (fwriting): Likewise.
49553         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
49554
49555 2009-02-28  Bruno Haible  <bruno@clisp.org>
49556
49557         * tests/test-freadseek.c (main): Disable test beyond end of file on
49558         FreeMiNT.
49559         * tests/test-ftello.c (main): Likewise.
49560         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49561
49562 2009-02-28  Bruno Haible  <bruno@clisp.org>
49563
49564         Add tentative support for FreeMiNT.
49565         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
49566         * lib/fpurge.c (fpurge): Likewise.
49567         * lib/freadable.c (freadable): Likewise.
49568         * lib/freading.c (freading): Likewise.
49569         * lib/freadptr.c (freadptr): Likewise.
49570         * lib/freadseek.c (freadptrinc): Likewise.
49571         * lib/fseeko.c (rpl_fseeko): Likewise.
49572         * lib/fseterr.c (fseterr): Likewise.
49573         * lib/fwritable.c (fwritable): Likewise.
49574         * lib/fwriting.c (fwriting): Likewise.
49575         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
49576         Hourihane.
49577         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49578
49579 2009-02-28  Bruno Haible  <bruno@clisp.org>
49580
49581         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
49582         SIGCHLD.
49583         Reported by Jim Meyering.
49584
49585 2009-02-28  Bruno Haible  <bruno@clisp.org>
49586
49587         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
49588         Mention the results of these tests on various platforms.
49589         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
49590         order.
49591         * doc/posix-functions/printf.texi: Likewise.
49592         * doc/posix-functions/snprintf.texi: Likewise.
49593         * doc/posix-functions/sprintf.texi: Likewise.
49594         * doc/posix-functions/vfprintf.texi: Likewise.
49595         * doc/posix-functions/vprintf.texi: Likewise.
49596         * doc/posix-functions/vsnprintf.texi: Likewise.
49597         * doc/posix-functions/vsprintf.texi: Likewise.
49598         * doc/glibc-functions/obstack_printf.texi: Likewise.
49599         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
49600
49601 2009-02-28  Bruno Haible  <bruno@clisp.org>
49602
49603         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
49604         Reported by Loïc Minier <lool@dooz.org>.
49605
49606 2009-02-27  Bruno Haible  <bruno@clisp.org>
49607
49608         * gnulib-tool (func_import): Make the sed expression used to create the
49609         sed script for updating the .gitignore file POSIX compliant.
49610         Reported by Eric Blake.
49611
49612 2009-02-27  Bruno Haible  <bruno@clisp.org>
49613
49614         * gnulib-tool (sed): Don't alias as "sed --posix".
49615         Reported by Eric Blake.
49616
49617 2009-02-27  Bruno Haible  <bruno@clisp.org>
49618
49619         Avoid test link errors.
49620         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
49621         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
49622         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
49623         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
49624         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49625
49626 2009-02-27  Bruno Haible  <bruno@clisp.org>
49627
49628         Avoid spurious "(cached)" in configure output.
49629         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
49630         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
49631         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49632         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49633         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49634         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
49635         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49636         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
49637         Reported by Eric Blake.
49638
49639 2009-02-27  Eric Blake  <ebb9@byu.net>
49640
49641         printf: fix regression in previous patch
49642         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
49643
49644 2009-02-27  Bruno Haible  <bruno@clisp.org>
49645
49646         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
49647         value.
49648         * lib/stdint.in.h: Likewise.
49649         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
49650
49651 2009-02-27  Eric Blake  <ebb9@byu.net>
49652
49653         doc: mention more functions added in cygwin 1.7.0
49654         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
49655         addition.
49656         * doc/posix-functions/open_wmemstream.texi: Likewise.
49657         * doc/posix-functions/wcsnlen.texi: Likewise.
49658         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49659         * doc/posix-functions/wcstod.texi: Likewise.
49660         * doc/posix-functions/wcstof.texi: Likewise.
49661         * doc/posix-functions/wcstoimax.texi: Likewise.
49662         * doc/posix-functions/wcstok.texi: Likewise.
49663         * doc/posix-functions/wcstoumax.texi: Likewise.
49664
49665         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
49666         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
49667         * doc/posix-functions/fprintf.texi: Update.
49668         * doc/posix-functions/printf.texi: Update.
49669         * doc/posix-functions/snprintf.texi: Update.
49670         * doc/posix-functions/sprintf.texi: Update.
49671         * doc/posix-functions/vfprintf.texi: Update.
49672         * doc/posix-functions/vprintf.texi: Update.
49673         * doc/posix-functions/vsnprintf.texi: Update.
49674         * doc/posix-functions/vsprintf.texi: Update.
49675         * doc/glibc-functions/obstack_printf.texi: Update.
49676         * doc/glibc-functions/obstack_vprintf.texi: Update.
49677
49678 2009-02-26  Eric Blake  <ebb9@byu.net>
49679
49680         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
49681         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
49682         compilation bug by using runtime conversion.
49683         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49684         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
49685         * modules/ceill-tests (Files): Use nan.h.
49686         * modules/floorl-tests (Files): Likewise.
49687         * modules/frexpl-tests (Files): Likewise.
49688         * modules/isnanl-tests (Files): Likewise.
49689         * modules/ldexpl-tests (Files): Likewise.
49690         * modules/roundl-tests (Files): Likewise.
49691         * modules/truncl-tests (Files): Likewise.
49692         * tests/test-ceill.c (main): Use a working NaN.
49693         * tests/test-floorl.c (main): Likewise.
49694         * tests/test-frexpl.c (main): Likewise.
49695         * tests/test-isnan.c (test_long_double): Likewise.
49696         * tests/test-isnanl.h (main): Likewise.
49697         * tests/test-ldexpl.h (main): Likewise.
49698         * tests/test-roundl.h (main): Likewise.
49699         * tests/test-truncl.h (main): Likewise.
49700         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
49701
49702 2009-02-26  Eric Blake  <ebb9@byu.net>
49703             Bruno Haible  <bruno@clisp.org>
49704
49705         Work around a *printf bug with %ls on Solaris.
49706         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
49707         precision is specified, sprintf stops converting the wide string
49708         argument when the number of bytes that have been produced by this
49709         conversion equals or exceeds the precision.
49710         * doc/posix-functions/fprintf.texi: Update.
49711         * doc/posix-functions/printf.texi: Update.
49712         * doc/posix-functions/snprintf.texi: Update.
49713         * doc/posix-functions/sprintf.texi: Update.
49714         * doc/posix-functions/vfprintf.texi: Update.
49715         * doc/posix-functions/vprintf.texi: Update.
49716         * doc/posix-functions/vsnprintf.texi: Update.
49717         * doc/posix-functions/vsprintf.texi: Update.
49718         * doc/glibc-functions/obstack_printf.texi: Update.
49719         * doc/glibc-functions/obstack_vprintf.texi: Update.
49720
49721 2009-02-26  Eric Blake  <ebb9@byu.net>
49722
49723         stdlib: favor compiler check of random.h
49724         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
49725         to avoid an ObjC random.h installed by Swarm.
49726
49727 2009-02-26  Bruno Haible  <bruno@clisp.org>
49728
49729         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
49730         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
49731         Reported by Gary V. Vaughan <gary@gnu.org>.
49732
49733 2009-02-26  Bruno Haible  <bruno@clisp.org>
49734
49735         Fix *printf behaviour regarding the %ls directive.
49736         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
49737         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
49738         NEED_PRINTF_DIRECTIVE_LS.
49739         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
49740         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49741         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49742         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
49743         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
49744         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
49745         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49746         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49747         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49748         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49749         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49750         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
49751         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49752         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49753         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49754         * doc/posix-functions/fprintf.texi: Update.
49755         * doc/posix-functions/printf.texi: Update.
49756         * doc/posix-functions/snprintf.texi: Update.
49757         * doc/posix-functions/sprintf.texi: Update.
49758         * doc/posix-functions/vfprintf.texi: Update.
49759         * doc/posix-functions/vprintf.texi: Update.
49760         * doc/posix-functions/vsnprintf.texi: Update.
49761         * doc/posix-functions/vsprintf.texi: Update.
49762         * doc/glibc-functions/obstack_printf.texi: Update.
49763         * doc/glibc-functions/obstack_vprintf.texi: Update.
49764         Reported by Eric Blake.
49765
49766 2009-02-25  Bruno Haible  <bruno@clisp.org>
49767
49768         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
49769         with known value.
49770         Reported by Gary V. Vaughan <gary@gnu.org>.
49771
49772 2009-02-25  Bruno Haible  <bruno@clisp.org>
49773
49774         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
49775         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
49776         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
49777         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
49778         Reported by Gary V. Vaughan <gary@gnu.org>.
49779
49780 2009-02-25  Bruno Haible  <bruno@clisp.org>
49781
49782         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
49783         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
49784         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
49785         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
49786         Reported by Gary V. Vaughan <gary@gnu.org>.
49787
49788 2009-02-25  Eric Blake  <ebb9@byu.net>
49789
49790         tests: skip fseek/ftell tests if ungetc is broken
49791         * m4/ungetc.m4: New file.
49792         * modules/fseek-tests: Split test, so ungetc dependency is
49793         separate from rest of test.
49794         * modules/fseeko-tests: Likewise.
49795         * modules/ftell-tests: Likewise.
49796         * modules/ftello-tests: Likewise.
49797         * tests/test-fseek.c (main): Isolate ungetc dependency.
49798         * tests/test-fseeko.c (main): Likewise.
49799         * tests/test-ftell.c (main): Likewise.
49800         * tests/test-ftello.c (main): Likewise.
49801         * tests/test-fseek2.sh: New file.
49802         * tests/test-fseeko2.sh: Likewise.
49803         * tests/test-ftell2.sh: Likewise.
49804         * tests/test-ftello2.sh: Likewise.
49805
49806 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
49807
49808         test-getaddrinfo: fix usage of skip return code 77
49809         * tests/test-gettaddrinfo.c: Return skip code 77 only
49810         for first occurrence of skip (4x77 is not 77)
49811
49812 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
49813
49814         strtod: avoid C99 decl-after-statement
49815         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
49816
49817 2009-02-24  Eric Blake  <ebb9@byu.net>
49818
49819         strtod: detect HP-UX 11.31 bug
49820         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
49821         Reported by Gary V. Vaughan.
49822
49823 2009-02-23  Bruno Haible  <bruno@clisp.org>
49824
49825         Fix invalid read past end of memory block.
49826         * lib/vasnprintf.c (DCHAR_SET): Define.
49827         (local_wcslen): Define only when needed.
49828         (local_strnlen, local_wcsnlen): New functions.
49829         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
49830         directives that involve a conversion ourselves.
49831         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
49832         wcsnlen, mbrtowc, wcrtomb.
49833         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
49834         * tests/test-vasprintf-posix.c (test_function): Likewise.
49835         * tests/test-snprintf-posix.h (test_function): Likewise.
49836         * tests/test-sprintf-posix.h (test_function): Likewise.
49837         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49838
49839 2009-02-22  Bruno Haible  <bruno@clisp.org>
49840
49841         Implement new clarified decomposition of Hangul syllables.
49842         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
49843         of type LTV, return only a pairwise decomposition.
49844         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
49845         Likewise.
49846         * tests/uninorm/test-decomposition.c (main): Updated expected result.
49847         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
49848         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
49849
49850 2009-02-22  Bruno Haible  <bruno@clisp.org>
49851
49852         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
49853         zero-length results and shrink excess allocated memory.
49854         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
49855         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
49856         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
49857         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
49858         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
49859         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
49860         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
49861         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
49862         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
49863         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
49864         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
49865         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
49866
49867 2009-02-21  Bruno Haible  <bruno@clisp.org>
49868
49869         * doc/gnulib.texi: Include safe-alloc.texi earlier.
49870         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
49871         spaces after a period. Put a space between a macro name and its
49872         argument list. Trivial rewordings.
49873         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
49874         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
49875         (main): Return 0 explicitly.
49876
49877 2009-02-21  Bruno Haible  <bruno@clisp.org>
49878
49879         Tests for module 'uninorm/filter'.
49880         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
49881         * modules/uninorm/filter-tests: New file.
49882
49883         New module 'uninorm/filter'.
49884         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
49885         uninorm_filter_flush, uninorm_filter_free): New declarations.
49886         * lib/uninorm/uninorm-filter.c: New file.
49887         * modules/uninorm/filter: New file.
49888
49889 2009-02-21  Bruno Haible  <bruno@clisp.org>
49890
49891         Tests for module 'uninorm/nfkc'.
49892         * tests/uninorm/test-nfkc.c: New file.
49893         * tests/uninorm/test-u8-nfkc.c: New file.
49894         * tests/uninorm/test-u16-nfkc.c: New file.
49895         * tests/uninorm/test-u32-nfkc.c: New file.
49896         * tests/uninorm/test-u32-nfkc-big.sh: New file.
49897         * tests/uninorm/test-u32-nfkc-big.c: New file.
49898         * modules/uninorm/nfkc-tests: New file.
49899
49900         New module 'uninorm/nfkc'.
49901         * lib/uninorm/nfkc.c: New file.
49902         * modules/uninorm/nfkc: New file.
49903
49904         Tests for module 'uninorm/nfkd'.
49905         * tests/uninorm/test-nfkd.c: New file.
49906         * tests/uninorm/test-u8-nfkd.c: New file.
49907         * tests/uninorm/test-u16-nfkd.c: New file.
49908         * tests/uninorm/test-u32-nfkd.c: New file.
49909         * tests/uninorm/test-u32-nfkd-big.sh: New file.
49910         * tests/uninorm/test-u32-nfkd-big.c: New file.
49911         * modules/uninorm/nfkd-tests: New file.
49912
49913         New module 'uninorm/nfkd'.
49914         * lib/uninorm/nfkd.c: New file.
49915         * modules/uninorm/nfkd: New file.
49916
49917         Tests for module 'uninorm/nfc'.
49918         * tests/uninorm/test-nfc.c: New file.
49919         * tests/uninorm/test-u8-nfc.c: New file.
49920         * tests/uninorm/test-u16-nfc.c: New file.
49921         * tests/uninorm/test-u32-nfc.c: New file.
49922         * tests/uninorm/test-u32-nfc-big.sh: New file.
49923         * tests/uninorm/test-u32-nfc-big.c: New file.
49924         * modules/uninorm/nfc-tests: New file.
49925
49926         New module 'uninorm/nfc'.
49927         * lib/uninorm/nfc.c: New file.
49928         * modules/uninorm/nfc: New file.
49929
49930         Tests for module 'uninorm/nfd'.
49931         * tests/uninorm/test-nfd.c: New file.
49932         * tests/uninorm/test-u8-nfd.c: New file.
49933         * tests/uninorm/test-u16-nfd.c: New file.
49934         * tests/uninorm/test-u32-nfd.c: New file.
49935         * tests/uninorm/test-u32-nfd-big.sh: New file.
49936         * tests/uninorm/test-u32-nfd-big.c: New file.
49937         * tests/uninorm/test-u32-normalize-big.h: New file.
49938         * tests/uninorm/test-u32-normalize-big.c: New file.
49939         * tests/uninorm/NormalizationTest.txt: New file, created from
49940         Unicode 5.1.0 NormalizationTest.txt.
49941         * modules/uninorm/nfd-tests: New file.
49942
49943         New module 'uninorm/nfd'.
49944         * lib/uninorm/nfd.c: New file.
49945         * modules/uninorm/nfd: New file.
49946
49947         New module 'uninorm/u32-normalize'.
49948         * lib/uninorm/u32-normalize.c: New file.
49949         * modules/uninorm/u32-normalize: New file.
49950
49951         New module 'uninorm/u16-normalize'.
49952         * lib/uninorm/u16-normalize.c: New file.
49953         * modules/uninorm/u16-normalize: New file.
49954
49955         New module 'uninorm/u8-normalize'.
49956         * lib/uninorm/u8-normalize.c: New file.
49957         * lib/uninorm/normalize-internal.h: New file.
49958         * lib/uninorm/u-normalize-internal.h: New file.
49959         * modules/uninorm/u8-normalize: New file.
49960
49961         New module 'uninorm/decompose-internal'.
49962         * lib/uninorm/decompose-internal.c: New file.
49963         * modules/uninorm/decompose-internal: New file.
49964
49965         Tests for module 'uninorm/composition'.
49966         * tests/uninorm/test-composition.c: New file.
49967         * modules/uninorm/composition-tests: New file.
49968
49969         New module 'uninorm/composition'.
49970         * lib/uninorm/composition.c: New file.
49971         * lib/uninorm/composition-table.gperf: New file, generated by
49972         gen-uni-tables.
49973         * modules/uninorm/composition: New file.
49974
49975         Tests for module 'uninorm/compat-decomposition'.
49976         * tests/uninorm/test-compat-decomposition.c: New file.
49977         * modules/uninorm/compat-decomposition-tests: New file.
49978
49979         New module 'uninorm/compat-decomposition'.
49980         * lib/uninorm/decompose-internal.h: New file.
49981         * lib/uninorm/compat-decomposition.c: New file.
49982         * modules/uninorm/compat-decomposition: New file.
49983
49984         Tests for module 'uninorm/canonical-decomposition'.
49985         * tests/uninorm/test-canonical-decomposition.c: New file.
49986         * modules/uninorm/canonical-decomposition-tests: New file.
49987
49988         New module 'uninorm/canonical-decomposition'.
49989         * lib/uninorm/canonical-decomposition.c: New file.
49990         * modules/uninorm/canonical-decomposition: New file.
49991
49992         Tests for module 'uninorm/decomposition'.
49993         * tests/uninorm/test-decomposition.c: New file.
49994         * modules/uninorm/decomposition-tests: New file.
49995
49996         New module 'uninorm/decomposition'.
49997         * lib/uninorm/decomposition.c: New file.
49998         * modules/uninorm/decomposition: New file.
49999
50000         New module 'uninorm/decomposition-table'.
50001         * lib/uninorm/decomposition-table.h: New file.
50002         * lib/uninorm/decomposition-table.c: New file.
50003         * lib/uninorm/decomposition-table1.h: New file, generated by
50004         gen-uni-tables.
50005         * lib/uninorm/decomposition-table2.h: New file, generated by
50006         gen-uni-tables.
50007         * modules/uninorm/decomposition-table: New file.
50008
50009         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
50010         (UC_DECOMP_*): New enumeration items.
50011         (get_decomposition): New function.
50012         (struct decomp_table): New type.
50013         (output_decomposition, output_decomposition_tables): New functions.
50014         (unicode_composition_exclusions): New variable.
50015         (fill_composition_exclusions, debug_output_composition_tables): New
50016         functions.
50017         (main): Accept one more argument. Invoke fill_composition_exclusions.
50018         Output decomposition and composition tables.
50019
50020         New module 'uninorm/base'.
50021         * lib/uninorm.h: New file.
50022         * lib/unictype.h: Update comment.
50023         * modules/uninorm/base: New file.
50024
50025 2009-02-21  David Lutterkort  <lutter@redhat.com>
50026
50027         Tests for module 'safe-alloc'.
50028         * tests/test-safe-alloc.c: New file.
50029         * modules/safe-alloc-tests: New file.
50030
50031         New module 'safe-alloc'.
50032         * lib/safe-alloc.h: New file.
50033         * lib/safe-alloc.c: New file.
50034         * m4/safe-alloc.m4: New file.
50035         * modules/safe-alloc: New file.
50036         * doc/safe-alloc.texi: New file.
50037         * doc/gnulib.texi: Include it.
50038         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
50039         safe-alloc.
50040
50041 2009-02-18  Bruno Haible  <bruno@clisp.org>
50042
50043         Fix link error on non-glibc systems.
50044         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
50045         variable.
50046         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50047
50048 2009-02-18  Jim Meyering  <meyering@redhat.com>
50049
50050         fts: avoid used-uninitialized error due to recent change
50051         * lib/fts.c (fts_read): Guard uses of the new member,
50052         parent->fts_n_dirs_remaining, since it's not relevant for
50053         the parent of a directory specified on the command-line.
50054
50055 2009-02-17  James Youngman  <jay@gnu.org>
50056             Bruno Haible  <bruno@clisp.org>
50057
50058         * m4/include_next.m4: Reformulate comment.
50059
50060 2009-02-16  Jim Meyering  <meyering@redhat.com>
50061
50062         fts: add #if guards so that the fts_lgpl module still builds
50063         * lib/fts.c: Guard just-added hash-table-using parts with
50064         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
50065         Reported by Simon Josefsson.
50066
50067 2009-02-15  Bruno Haible  <bruno@clisp.org>
50068
50069         * modules/array-mergesort-tests: New file.
50070         * tests/test-array-mergesort.c: New file.
50071
50072         New module 'array-mergesort'.
50073         * modules/array-mergesort: New file.
50074         * lib/array-mergesort.h: New file.
50075
50076 2009-02-15  Bruno Haible  <bruno@clisp.org>
50077
50078         Fix 2009-02-07 commit.
50079         * lib/gen-uni-tables.c (output_predicate, output_category,
50080         output_combclass, output_bidi_category, output_decimal_digit,
50081         output_digit, output_numeric, output_mirror, output_scripts,
50082         output_ident_category, output_simple_mapping): Fix format directives.
50083         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
50084
50085 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
50086
50087         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
50088         fixes are available from IBM.
50089
50090 2009-02-13  Jim Meyering  <meyering@redhat.com>
50091
50092         fts: arrange not to stat non-directories in more cases
50093         This makes GNU find (when it doesn't need to stat each file)
50094         *much* more efficient at traversing reiserfs file systems.
50095         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
50096         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
50097         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
50098         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
50099         (leaf_optimization_applies): New function.
50100         (LCO_hash, LCO_compare): New helper functions.
50101         (link_count_optimize_ok): New function.
50102         (fts_stat): Initialize new member (if dir).
50103         (fts_read): Decrement parent's fts_n_dirs_remaining count if
50104         we've just stat'ed a directory.  Skip the stat call when possible.
50105         ---
50106         Note this AFS-related exchange:
50107         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
50108         and note find's pioctl call in find/fstype.c.
50109         But that is necessary only if you want to enable the
50110         optimization for AFS, and for now, I don't.
50111
50112         fts: move a function definition "up" (no semantic change)
50113         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
50114         "up" to precede upcoming use of a related function.
50115
50116 2009-02-11  Jim Meyering  <meyering@redhat.com>
50117
50118         fts: correct internal computation of nlinks (optimization-related)
50119         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
50120         whether the current entry is a directory, so don't test it.
50121
50122 2009-02-10  Bruno Haible  <bruno@clisp.org>
50123
50124         Tests for module 'uniwbrk/ulc-wordbreaks'.
50125         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
50126         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
50127         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
50128
50129         Tests for module 'uniwbrk/u32-wordbreaks'.
50130         * modules/uniwbrk/u32-wordbreaks-tests: New file.
50131         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
50132
50133         Tests for module 'uniwbrk/u16-wordbreaks'.
50134         * modules/uniwbrk/u16-wordbreaks-tests: New file.
50135         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
50136
50137         Tests for module 'uniwbrk/u8-wordbreaks'.
50138         * modules/uniwbrk/u8-wordbreaks-tests: New file.
50139         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
50140
50141 2009-02-10  Bruno Haible  <bruno@clisp.org>
50142
50143         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
50144         property.
50145         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
50146         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
50147         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
50148
50149 2009-02-10  Simon Josefsson  <simon@josefsson.org>
50150
50151         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
50152         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
50153
50154 2009-02-10  Bruno Haible  <bruno@clisp.org>
50155
50156         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
50157         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
50158         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
50159         * lib/unilbrk/u8-possible-linebreaks.c: Update.
50160         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
50161         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
50162
50163 2009-02-09  Simon Josefsson  <simon@josefsson.org>
50164
50165         * lib/sockets.h (gl_fd_to_handle): New function.
50166
50167         * tests/test-sockets.c: Call gl_fd_to_handle.
50168
50169 2009-02-09  Bruno Haible  <bruno@clisp.org>
50170
50171         * doc/havelib.texi: Document the conventions on bi-arch systems.
50172
50173 2009-02-08  Bruno Haible  <bruno@clisp.org>
50174
50175         Document the AC_LIB_LINKFLAGS macro.
50176         * doc/havelib.texi: New file, mostly written on 2005-05-24.
50177         * doc/gnulib.texi: Include it.
50178
50179 2009-02-08  Bruno Haible  <bruno@clisp.org>
50180
50181         Fix wrong order of sections, compared to TOC.
50182         * doc/gnulib.texi: Include relocatable-maint.texi after the
50183         "Regular expressions" node, not before.
50184
50185 2009-02-08  Bruno Haible  <bruno@clisp.org>
50186
50187         Tests for module 'unicase/totitle'.
50188         * modules/unicase/totitle-tests: New file.
50189
50190         Tests for module 'unicase/tolower'.
50191         * modules/unicase/tolower-tests: New file.
50192
50193         Tests for module 'unicase/toupper'.
50194         * modules/unicase/toupper-tests: New file.
50195         * tests/unicase/test-mapping-part1.h: New file.
50196         * tests/unicase/test-mapping-part2.h: New file.
50197
50198         New module 'unicase/totitle'.
50199         * modules/unicase/totitle: New file.
50200         * lib/unicase/totitle.c: New file.
50201
50202         New module 'unicase/tolower'.
50203         * modules/unicase/tolower: New file.
50204         * lib/unicase/tolower.c: New file.
50205
50206         New module 'unicase/toupper'.
50207         * modules/unicase/toupper: New file.
50208         * lib/unicase/toupper.c: New file.
50209         * lib/unicase/simple-mapping.h: New file.
50210
50211         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
50212         (mapping_table): New structure.
50213         (output_simple_mapping): New function.
50214         (main): Invoke output_simple_mapping_test and output_simple_mapping.
50215         * modules/gen-uni-tables (Description): Update.
50216         * lib/unicase/toupper.h: New file, automatically generated by
50217         gen-uni-tables.
50218         * lib/unicase/tolower.h: New file, automatically generated by
50219         gen-uni-tables.
50220         * lib/unicase/totitle.h: New file, automatically generated by
50221         gen-uni-tables.
50222         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
50223         gen-uni-tables.
50224         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
50225         gen-uni-tables.
50226         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
50227         gen-uni-tables.
50228
50229         New module 'unicase/base'.
50230         * modules/unicase/base: New file.
50231         * lib/unicase.h: New file.
50232
50233 2009-02-08  Bruno Haible  <bruno@clisp.org>
50234
50235         New module 'uniwbrk/ulc-wordbreaks'.
50236         * modules/uniwbrk/ulc-wordbreaks: New file.
50237         * lib/uniwbrk/ulc-wordbreaks.c: New file.
50238
50239         New module 'uniwbrk/u32-wordbreaks'.
50240         * modules/uniwbrk/u32-wordbreaks: New file.
50241         * lib/uniwbrk/u32-wordbreaks.c: New file.
50242
50243         New module 'uniwbrk/u16-wordbreaks'.
50244         * modules/uniwbrk/u16-wordbreaks: New file.
50245         * lib/uniwbrk/u16-wordbreaks.c: New file.
50246
50247         New module 'uniwbrk/u8-wordbreaks'.
50248         * modules/uniwbrk/u8-wordbreaks: New file.
50249         * lib/uniwbrk/u8-wordbreaks.c: New file.
50250         * lib/uniwbrk/u-wordbreaks.h: New file.
50251
50252         New module 'uniwbrk/table'.
50253         * modules/uniwbrk/table: New file.
50254         * lib/uniwbrk/wbrktable.h: New file.
50255         * lib/uniwbrk/wbrktable.c: New file.
50256
50257         New module 'uniwbrk/wordbreak-property'.
50258         * modules/uniwbrk/wordbreak-property: New file.
50259         * lib/uniwbrk/wordbreak-property.c: New file.
50260
50261         * lib/gen-uni-tables.c (WBP_*): New enum items.
50262         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
50263         (unicode_org_wbp): New variable.
50264         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
50265         New functions.
50266         (wbp_table): New structure.
50267         (output_wbp, output_wbrk_tables): New functions.
50268         (main): Accept additional argument. Invoke fill_org_wbp,
50269         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
50270         output_wbrk_tables.
50271         * modules/gen-uni-tables (Description): Update.
50272         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
50273         gen-uni-tables.
50274
50275         New module 'uniwbrk/base'.
50276         * modules/uniwbrk/base: New file.
50277         * lib/uniwbrk.h: New file.
50278
50279 2009-02-08  Bruno Haible  <bruno@clisp.org>
50280
50281         Update to Unicode 5.1.0.
50282         * lib/gen-uni-tables.c (is_property_alphabetic): Include
50283         U+2185..U+2188.
50284         (is_property_default_ignorable_code_point): Don't include characters
50285         of category Cc or Cs and not-a-characters.
50286         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
50287         U+0D79, U+109E, U+109F, U+A60C.
50288         * lib/unictype/bidi_of.h: Regenerated.
50289         * lib/unictype/blocks.h: Regenerated.
50290         * lib/unictype/categ_C.h: Regenerated.
50291         * lib/unictype/categ_Cf.h: Regenerated.
50292         * lib/unictype/categ_Cn.h: Regenerated.
50293         * lib/unictype/categ_L.h: Regenerated.
50294         * lib/unictype/categ_Ll.h: Regenerated.
50295         * lib/unictype/categ_Lm.h: Regenerated.
50296         * lib/unictype/categ_Lo.h: Regenerated.
50297         * lib/unictype/categ_Lu.h: Regenerated.
50298         * lib/unictype/categ_M.h: Regenerated.
50299         * lib/unictype/categ_Mc.h: Regenerated.
50300         * lib/unictype/categ_Me.h: Regenerated.
50301         * lib/unictype/categ_Mn.h: Regenerated.
50302         * lib/unictype/categ_N.h: Regenerated.
50303         * lib/unictype/categ_Nd.h: Regenerated.
50304         * lib/unictype/categ_Nl.h: Regenerated.
50305         * lib/unictype/categ_No.h: Regenerated.
50306         * lib/unictype/categ_P.h: Regenerated.
50307         * lib/unictype/categ_Pd.h: Regenerated.
50308         * lib/unictype/categ_Pe.h: Regenerated.
50309         * lib/unictype/categ_Pf.h: Regenerated.
50310         * lib/unictype/categ_Pi.h: Regenerated.
50311         * lib/unictype/categ_Po.h: Regenerated.
50312         * lib/unictype/categ_Ps.h: Regenerated.
50313         * lib/unictype/categ_S.h: Regenerated.
50314         * lib/unictype/categ_Sk.h: Regenerated.
50315         * lib/unictype/categ_Sm.h: Regenerated.
50316         * lib/unictype/categ_So.h: Regenerated.
50317         * lib/unictype/categ_of.h: Regenerated.
50318         * lib/unictype/combining.h: Regenerated.
50319         * lib/unictype/ctype_alnum.h: Regenerated.
50320         * lib/unictype/ctype_alpha.h: Regenerated.
50321         * lib/unictype/ctype_graph.h: Regenerated.
50322         * lib/unictype/ctype_lower.h: Regenerated.
50323         * lib/unictype/ctype_print.h: Regenerated.
50324         * lib/unictype/ctype_punct.h: Regenerated.
50325         * lib/unictype/ctype_upper.h: Regenerated.
50326         * lib/unictype/decdigit.h: Regenerated.
50327         * lib/unictype/digit.h: Regenerated.
50328         * lib/unictype/mirror.h: Regenerated.
50329         * lib/unictype/numeric.h: Regenerated.
50330         * lib/unictype/pr_alphabetic.h: Regenerated.
50331         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
50332         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
50333         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
50334         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
50335         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
50336         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
50337         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
50338         * lib/unictype/pr_combining.h: Regenerated.
50339         * lib/unictype/pr_dash.h: Regenerated.
50340         * lib/unictype/pr_decimal_digit.h: Regenerated.
50341         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
50342         * lib/unictype/pr_deprecated.h: Regenerated.
50343         * lib/unictype/pr_diacritic.h: Regenerated.
50344         * lib/unictype/pr_extender.h: Regenerated.
50345         * lib/unictype/pr_format_control.h: Regenerated.
50346         * lib/unictype/pr_grapheme_base.h: Regenerated.
50347         * lib/unictype/pr_grapheme_extend.h: Regenerated.
50348         * lib/unictype/pr_grapheme_link.h: Regenerated.
50349         * lib/unictype/pr_id_continue.h: Regenerated.
50350         * lib/unictype/pr_id_start.h: Regenerated.
50351         * lib/unictype/pr_ideographic.h: Regenerated.
50352         * lib/unictype/pr_ignorable_control.h: Regenerated.
50353         * lib/unictype/pr_lowercase.h: Regenerated.
50354         * lib/unictype/pr_math.h: Regenerated.
50355         * lib/unictype/pr_numeric.h: Regenerated.
50356         * lib/unictype/pr_other_alphabetic.h: Regenerated.
50357         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
50358         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
50359         * lib/unictype/pr_other_id_continue.h: Regenerated.
50360         * lib/unictype/pr_other_lowercase.h: Regenerated.
50361         * lib/unictype/pr_other_math.h: Regenerated.
50362         * lib/unictype/pr_punctuation.h: Regenerated.
50363         * lib/unictype/pr_sentence_terminal.h: Regenerated.
50364         * lib/unictype/pr_soft_dotted.h: Regenerated.
50365         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
50366         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
50367         * lib/unictype/pr_unified_ideograph.h: Regenerated.
50368         * lib/unictype/pr_uppercase.h: Regenerated.
50369         * lib/unictype/pr_xid_continue.h: Regenerated.
50370         * lib/unictype/pr_xid_start.h: Regenerated.
50371         * lib/unictype/pr_zero_width.h: Regenerated.
50372         * lib/unictype/scripts.h: Regenerated.
50373         * lib/unictype/scripts_byname.gperf: Regenerated.
50374         * lib/unictype/sy_java_ident.h: Regenerated.
50375         * lib/unilbrk/lbrkprop1.h: Regenerated.
50376         * lib/unilbrk/lbrkprop2.h: Regenerated.
50377         * tests/unictype/test-categ_C.c: Regenerated.
50378         * tests/unictype/test-categ_Cf.c: Regenerated.
50379         * tests/unictype/test-categ_Cn.c: Regenerated.
50380         * tests/unictype/test-categ_L.c: Regenerated.
50381         * tests/unictype/test-categ_Ll.c: Regenerated.
50382         * tests/unictype/test-categ_Lm.c: Regenerated.
50383         * tests/unictype/test-categ_Lo.c: Regenerated.
50384         * tests/unictype/test-categ_Lu.c: Regenerated.
50385         * tests/unictype/test-categ_M.c: Regenerated.
50386         * tests/unictype/test-categ_Mc.c: Regenerated.
50387         * tests/unictype/test-categ_Me.c: Regenerated.
50388         * tests/unictype/test-categ_Mn.c: Regenerated.
50389         * tests/unictype/test-categ_N.c: Regenerated.
50390         * tests/unictype/test-categ_Nd.c: Regenerated.
50391         * tests/unictype/test-categ_Nl.c: Regenerated.
50392         * tests/unictype/test-categ_No.c: Regenerated.
50393         * tests/unictype/test-categ_P.c: Regenerated.
50394         * tests/unictype/test-categ_Pd.c: Regenerated.
50395         * tests/unictype/test-categ_Pe.c: Regenerated.
50396         * tests/unictype/test-categ_Pf.c: Regenerated.
50397         * tests/unictype/test-categ_Pi.c: Regenerated.
50398         * tests/unictype/test-categ_Po.c: Regenerated.
50399         * tests/unictype/test-categ_Ps.c: Regenerated.
50400         * tests/unictype/test-categ_S.c: Regenerated.
50401         * tests/unictype/test-categ_Sk.c: Regenerated.
50402         * tests/unictype/test-categ_Sm.c: Regenerated.
50403         * tests/unictype/test-categ_So.c: Regenerated.
50404         * tests/unictype/test-ctype_alnum.c: Regenerated.
50405         * tests/unictype/test-ctype_alpha.c: Regenerated.
50406         * tests/unictype/test-ctype_graph.c: Regenerated.
50407         * tests/unictype/test-ctype_lower.c: Regenerated.
50408         * tests/unictype/test-ctype_print.c: Regenerated.
50409         * tests/unictype/test-ctype_punct.c: Regenerated.
50410         * tests/unictype/test-ctype_upper.c: Regenerated.
50411         * tests/unictype/test-decdigit.h: Regenerated.
50412         * tests/unictype/test-digit.h: Regenerated.
50413         * tests/unictype/test-numeric.h: Regenerated.
50414         * tests/unictype/test-pr_alphabetic.c: Regenerated.
50415         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
50416         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
50417         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
50418         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
50419         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
50420         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
50421         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
50422         * tests/unictype/test-pr_combining.c: Regenerated.
50423         * tests/unictype/test-pr_dash.c: Regenerated.
50424         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
50425         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
50426         * tests/unictype/test-pr_deprecated.c: Regenerated.
50427         * tests/unictype/test-pr_diacritic.c: Regenerated.
50428         * tests/unictype/test-pr_extender.c: Regenerated.
50429         * tests/unictype/test-pr_format_control.c: Regenerated.
50430         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
50431         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
50432         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
50433         * tests/unictype/test-pr_id_continue.c: Regenerated.
50434         * tests/unictype/test-pr_id_start.c: Regenerated.
50435         * tests/unictype/test-pr_ideographic.c: Regenerated.
50436         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
50437         * tests/unictype/test-pr_lowercase.c: Regenerated.
50438         * tests/unictype/test-pr_math.c: Regenerated.
50439         * tests/unictype/test-pr_numeric.c: Regenerated.
50440         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
50441         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
50442         Regenerated.
50443         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
50444         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
50445         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
50446         * tests/unictype/test-pr_other_math.c: Regenerated.
50447         * tests/unictype/test-pr_punctuation.c: Regenerated.
50448         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
50449         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
50450         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
50451         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
50452         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
50453         * tests/unictype/test-pr_uppercase.c: Regenerated.
50454         * tests/unictype/test-pr_xid_continue.c: Regenerated.
50455         * tests/unictype/test-pr_xid_start.c: Regenerated.
50456         * tests/unictype/test-pr_zero_width.c: Regenerated.
50457
50458         Update to Unicode 5.1.0.
50459         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
50460         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
50461         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
50462         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
50463         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
50464         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
50465         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
50466         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
50467         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
50468         (nonspacing_table_ind): Update.
50469         * tests/uniwidth/test-uc_width2.sh: Update expected result.
50470
50471         Update to Unicode 5.1.0.
50472         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
50473         code transform.
50474         * lib/uniname/uniname.c (unicode_character_name,
50475         unicode_name_character): Add the range 0x1Fxxx to the code transform.
50476         * lib/uniname/uninames.h: Regenerated.
50477         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
50478
50479 2009-02-07  Bruno Haible  <bruno@clisp.org>
50480
50481         Merge gen-ctype and gen-lbrk into a single program.
50482         * lib/gen-uni-tables.c: New file, incorporating
50483         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
50484         Add directory prefixes to the names of the generated files.
50485         * lib/unictype/gen-ctype.c: Remove file.
50486         * lib/unilbrk/gen-lbrk.c: Remove file.
50487         * modules/gen-uni-tables: New file.
50488         * modules/unictype/gen-ctype: Remove file.
50489         * modules/unilbrk/gen-lbrk: Remove file.
50490
50491 2009-02-07  Bruno Haible  <bruno@clisp.org>
50492
50493         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
50494
50495         New module 'unistr/u32-strcoll'.
50496         * modules/unistr/u32-strcoll: New file.
50497         * lib/unistr/u32-strcoll.c: New file.
50498
50499         New module 'unistr/u16-strcoll'.
50500         * modules/unistr/u16-strcoll: New file.
50501         * lib/unistr/u16-strcoll.c: New file.
50502
50503         New module 'unistr/u8-strcoll'.
50504         * modules/unistr/u8-strcoll: New file.
50505         * lib/unistr/u8-strcoll.c: New file.
50506         * lib/unistr/u-strcoll.h: New file.
50507
50508 2009-02-07  Bruno Haible  <bruno@clisp.org>
50509
50510         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
50511         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50512         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50513         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
50514         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
50515         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
50516
50517 2009-02-07  Bruno Haible  <bruno@clisp.org>
50518
50519         Make 64-bit clean.
50520         * lib/unictype/gen-ctype.c (output_predicate, output_category,
50521         output_combclass, output_bidi_category, output_decimal_digit,
50522         output_digit, output_numeric, output_mirror, output_scripts,
50523         output_ident_category): Use proper width specifier in format strings.
50524
50525 2009-02-07  Bruno Haible  <bruno@clisp.org>
50526
50527         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
50528         failure behaviour.
50529
50530 2009-02-07  Jim Meyering  <meyering@redhat.com>
50531
50532         regex: avoid compilation failure with upcoming gcc-4.4
50533         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
50534         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
50535         "... error: integer overflow in preprocessor expression".
50536
50537 2009-02-05  Ben Pfaff  <blp@gnu.org>
50538
50539         Fix link errors on Windows when close module is used.
50540         * modules/close: Add $(LIB_CLOSE) to Link section.
50541         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
50542         $(LIB_CLOSE) on Windows.
50543
50544 2009-02-05  Jim Meyering  <meyering@redhat.com>
50545
50546         still avoid unused-parameter warnings, but do it cleanly
50547         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
50548         (get_fs_usage): Cast to void instead.
50549         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
50550         (dev_from_mount_options, read_file_system_list): Cast to void.
50551         Prompted by Bruno Haible.
50552
50553 2009-02-04  Jim Meyering  <meyering@redhat.com>
50554
50555         fsusage.c: correct copyright year
50556         * lib/fsusage.c: Reflect year in which the change is pushed into
50557
50558         avoid misc. warnings
50559         * lib/fsusage.c (UNUSED_PARAM): Define.
50560         (get_fs_usage): Mark parameter "disk" as unused.
50561         * lib/getugroups.c (getgrent): Use "void" in prototype.
50562         * lib/mountlist.c: Mark unused parameters.
50563         (read_file_system_list): Declare a local with "const".
50564         * lib/nanosleep.c (getnow): Declare static.
50565         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
50566
50567         dirfd: set errno upon failure
50568         * lib/dirfd.c: Include <errno.h>.
50569         Set errno to ENOTSUP when returning -1.
50570         * modules/dirfd (Depends-on): Add errno.
50571         Suggested by John Kodis <kodis@comcast.net>.
50572
50573 2009-02-01  Bruno Haible  <bruno@clisp.org>
50574
50575         Don't assume sizeof (long) >= sizeof (void *).
50576         * lib/memcmp.c: Include stdint.h.
50577         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
50578         srcp2 to 'const byte *'.
50579         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
50580         types to uintptr_t.
50581         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
50582         * modules/memcmp (Depends-on): Add stdint.
50583         Reported by Ozkan Sezer <sezeroz@gmail.com>.
50584
50585 2009-01-30  Eric Blake  <ebb9@byu.net>
50586
50587         fix more require-before-expand issues
50588         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
50589         expand, AC_PROG_AWK.
50590         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
50591
50592 2009-01-28  Eric Blake  <ebb9@byu.net>
50593
50594         version-etc: use consistent URL formatting
50595         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
50596         Improve formatting.  Use fputs for string without %.
50597
50598 2009-01-28  Jim Meyering  <meyering@redhat.com>
50599
50600         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
50601         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
50602         "underquoted definition of NAME" from autoconf-2.59.
50603
50604 2009-01-28  Bruno Haible  <bruno@clisp.org>
50605
50606         * doc/gnulib.texi: Add "Obsolete modules" to index.
50607
50608 2009-01-28  Jim Meyering  <meyering@redhat.com>
50609
50610         useless-if-before-free: recognize more variants
50611         * build-aux/useless-if-before-free: Also recognize e.g.,
50612         if (NULL != p) free (p);
50613
50614 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
50615
50616         test-getaddrinfo: skip (don't fail) this test when there's no network
50617         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
50618         on the presumption that it means you lack network access.
50619
50620 2009-01-26  Jim Meyering  <meyering@redhat.com>
50621
50622         fflush: avoid warnings on modern systems
50623         * lib/fflush.c (rpl_fflush): Move declarations of locals,
50624         pos and result, into scopes where they're used.
50625
50626 2009-01-26  Eric Blake  <ebb9@byu.net>
50627
50628         Silence warning reintroduced by recent extensions patch.
50629         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
50630         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
50631         autoconf.
50632
50633         Backport improved autoconf semantics of AC_DEFUN_ONCE.
50634         * m4/00gnulib.m4: New file.
50635         * gnulib-tool (func_get_filelist): Always use it.
50636         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
50637         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
50638
50639 2009-01-25  Bruno Haible  <bruno@clisp.org>
50640
50641         Make test-quotearg work on MacOS X and AIX.
50642         * tests/test-quotearg.sh: New file.
50643         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
50644         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
50645         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
50646         include <libintl.h>.
50647         (fake_locale): Remove variable.
50648         (gettext, dgettext, dcgettext): Remove functions.
50649         (main): Instead of setting a fake locale, set a real locale. Call
50650         textdomain and bindtextdomain.
50651         * modules/quotearg-tests (Files): Add the new files.
50652         (Depends-on): Add gettext, setenv, unsetenv.
50653         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
50654         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
50655         Augment TESTS_ENVIRONMENT.
50656
50657 2009-01-25  Bruno Haible  <bruno@clisp.org>
50658
50659         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
50660         fr_FR.ISO8859-1 locale on MacOS X.
50661         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
50662         ja_JP.eucJP locale on MacOS X.
50663         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
50664         zh_CN.GB18030 locale on MacOS X.
50665
50666 2009-01-25  Bruno Haible  <bruno@clisp.org>
50667
50668         Avoid link errors on MacOS X 10.3.
50669         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
50670         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
50671
50672 2009-01-25  Bruno Haible  <bruno@clisp.org>
50673
50674         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50675         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
50676         * modules/pipe (Files): Remove m4/posix_spawn.m4.
50677         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50678         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
50679         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50680         posix_spawnattr_init, posix_spawnattr_setsigmask,
50681         posix_spawnattr_setflags, posix_spawnattr_destroy.
50682
50683         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50684         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
50685         * modules/execute (Files): Remove m4/posix_spawn.m4.
50686         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50687         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50688         posix_spawnattr_init, posix_spawnattr_setsigmask,
50689         posix_spawnattr_setflags, posix_spawnattr_destroy.
50690
50691 2009-01-25  Bruno Haible  <bruno@clisp.org>
50692
50693         * lib/glthread/threadlib.c: Include <stdlib.h>.
50694
50695 2009-01-25  Bruno Haible  <bruno@clisp.org>
50696
50697         * lib/glthread/threadlib.c (dummy): New declaration.
50698
50699 2009-01-25  Bruno Haible  <bruno@clisp.org>
50700
50701         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
50702         multibyte characters also for the GB18030 encoding. Don't crash when
50703         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
50704
50705 2009-01-25  Bruno Haible  <bruno@clisp.org>
50706
50707         Avoid redefining 'struct random_data' on OSF/1 5.1.
50708         * lib/stdlib.in.h: Include <random.h> if it exists.
50709         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
50710         HAVE_RANDOM_H. Include <random.h> when testing whether
50711         'struct random_data' exists.
50712         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
50713
50714 2009-01-25  Bruno Haible  <bruno@clisp.org>
50715
50716         Don't install charset.alias on MacOS X >= 10.3.
50717         * lib/localcharset.c (DARWIN7): New macro.
50718         (get_charset_aliases): Hardcode the result for Darwin7.
50719         * modules/localcharset (install-exec-local): Don't install
50720         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
50721
50722 2009-01-25  Bruno Haible  <bruno@clisp.org>
50723
50724         Don't install charset.alias on mingw and Cygwin.
50725         * modules/localcharset (install-exec-local): Don't install
50726         charset.alias on mingw and Cygwin, if the file does not yet exist.
50727         The result for these platforms is hardcoded in localcharset.c.
50728
50729 2009-01-25  Bruno Haible  <bruno@clisp.org>
50730
50731         Make it possible again to use AC_GNU_SOURCE together with gnulib.
50732         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
50733         before requiring AC_USE_SYSTEM_EXTENSIONS.
50734
50735 2009-01-25  Jim Meyering  <meyering@redhat.com>
50736
50737         c-strtod: avoid warnings
50738         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
50739         "assignment discards qualifiers from pointer target type" warnings.
50740
50741 2009-01-24  Bruno Haible  <bruno@clisp.org>
50742
50743         Add support for non-UTF-8 locales on MacOS X.
50744         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
50745         canonical encodings. For Darwin 7 and newer, don't map traditional
50746         encodings to UTF-8.
50747         Reported by Vincent Lefevre <vincent@vinc17.org>
50748         at <http://savannah.gnu.org/bugs/?25235>.
50749
50750 2009-01-24  Bruno Haible  <bruno@clisp.org>
50751
50752         * doc/gnulib.texi (Obsolete modules): New section.
50753         Reported by Mike Frysinger <vapier@gentoo.org>.
50754
50755 2009-01-24  Bruno Haible  <bruno@clisp.org>
50756
50757         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
50758         (%.dvi): New rule.
50759
50760 2009-01-24  Bruno Haible  <bruno@clisp.org>
50761
50762         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
50763         Reported by Eric Blake.
50764
50765 2009-01-24  Bruno Haible  <bruno@clisp.org>
50766
50767         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
50768         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
50769         Reported by Gary V. Vaughan <gary@gnu.org>.
50770
50771 2009-01-24  Bruno Haible  <bruno@clisp.org>
50772
50773         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
50774
50775 2009-01-23  Bruno Haible  <bruno@clisp.org>
50776
50777         Make c-strtod, c-strtold usable in libraries.
50778         * lib/c-strtod.c: Include string.h instead of xalloc.h.
50779         (C_STRTOD): Call strdup instead of xstrdup.
50780         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
50781         * modules/c-strtold (Depends-on): Likewise.
50782         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
50783         * NEWS: Mention the change.
50784         Reported by Michael Gold <mgold@ncf.ca>.
50785
50786 2009-01-23  Jim Meyering  <meyering@redhat.com>
50787
50788         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
50789         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
50790         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
50791
50792 2009-01-23  Simon Josefsson  <simon@josefsson.org>
50793
50794         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
50795         GNU CoreUtils.
50796         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
50797         * modules/version-etc (Description): Update.
50798
50799 2009-01-22  Bruno Haible  <bruno@clisp.org>
50800
50801         Cache the C locale object.
50802         * lib/c-strtod.c (c_locale_cache): New variable.
50803         (c_locale): New function.
50804         (C_STRTOD): Use it, and don't call freelocale.
50805         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
50806         Suggested by Paolo Bonzini.
50807
50808 2009-01-21  Bruno Haible  <bruno@clisp.org>
50809
50810         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
50811         conditions other than overflow.
50812
50813 2009-01-21  Bruno Haible  <bruno@clisp.org>
50814
50815         * lib/c-strtod.c: Include errno.h.
50816         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
50817         value from STRTOD_L and STRTOD.
50818
50819 2009-01-21  Bruno Haible  <bruno@clisp.org>
50820         and Jim Meyering  <meyering@redhat.com>
50821
50822         nanosleep: skip configure test (fail it) for apple universal builds
50823         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
50824         universal builds, assume that nanosleep does not work.
50825         * modules/nanosleep (Depends-on): Add multiarch.
50826
50827         mktime: skip configure test (fail it) for apple universal builds
50828         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
50829         universal builds, assume that mktime does not work.
50830         * modules/mktime (Depends-on): Add multiarch.
50831
50832 2009-01-21  Eric Blake  <ebb9@byu.net>
50833
50834         multiarch: avoid expand-before-require warning
50835         * modules/multiarch (configure.ac): Require, rather than expand,
50836         gl_MULTIARCH.
50837         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
50838         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
50839         enforce that all clients require it.  Partial reversion of
50840         2008-12-29 patch.
50841
50842         error: avoid expand-before-require warning
50843         * modules/errno (configure.ac): Require, rather than expand,
50844         gl_HEADER_ERRNO_H.
50845         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
50846         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
50847         enforce that all clients require it.
50848
50849         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
50850         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
50851         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
50852         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
50853
50854 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
50855
50856         Revert:
50857         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50858
50859         regex: do not depend on obsolete modules.
50860         * modules/regex: Remove memcmp and memmove.
50861
50862 2009-01-20  Bruno Haible  <bruno@clisp.org>
50863
50864         Make the 'link' module link on Windows NT 4.
50865         * lib/link.c (_WIN32_WINNT): Don't define.
50866         (CreateHardLinkFuncType): New type.
50867         (CreateHardLinkFunc, initialized): New variables.
50868         (initialize): New function.
50869         (link): Invoke CreateHardLink indirectly through the function pointer.
50870
50871 2009-01-20  Bruno Haible  <bruno@clisp.org>
50872
50873         Fix compilation failure on mingw.
50874         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
50875
50876 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
50877
50878         * doc/c-strtod.texi: Mention a couple of restrictions.
50879
50880 2009-01-20  Jim Meyering  <meyering@redhat.com>
50881
50882         gettimeofday: move more declarations out of functions
50883         * lib/gettimeofday.c: Move extern declarations of tzset and
50884         gmtime out of containing functions.  Prompted by Bruno Haible.
50885
50886 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50887
50888         regex: do not depend on obsolete modules.
50889         * modules/regex: Remove memcmp and memmove.
50890
50891 2009-01-19  Bruno Haible  <bruno@clisp.org>
50892
50893         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50894         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
50895         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50896         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
50897         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
50898
50899 2009-01-19  Bruno Haible  <bruno@clisp.org>
50900
50901         * tests/test-link.c: Include <errno.h>.
50902         (main): Exit with code 77 when a hard link cannot be created due to
50903         the file system.
50904         * tests/test-link.sh: Skip test when a hard link cannot be created due
50905         to the file system.
50906         Suggested by Eric Blake.
50907
50908 2009-01-19  Martin Lambers  <marlam@marlam.de>
50909
50910         * modules/link-tests: New file.
50911         * tests/test-link.sh: New file.
50912         * tests/test-link.c: New file.
50913
50914 2009-01-19  Eric Blake  <ebb9@byu.net>
50915
50916         doc: mention another function added in cygwin 1.7.0
50917         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
50918         Another new function in cygwin 1.7.
50919
50920 2009-01-19  Bruno Haible  <bruno@clisp.org>
50921
50922         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50923         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
50924         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
50925         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50926         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
50927         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
50928         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
50929         * m4/md4.m4 (gl_MD4): Likewise.
50930         * m4/md5.m4 (gl_MD5): Likewise.
50931         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
50932         * m4/sha1.m4 (gl_SHA1): Likewise.
50933         * m4/sha256.m4 (gl_SHA256): Likewise.
50934         * m4/sha512.m4 (gl_SHA512): Likewise.
50935
50936 2009-01-19  Bruno Haible  <bruno@clisp.org>
50937
50938         * modules/uniname/uniname-tests (Depends-on): Add progname.
50939         * tests/uniname/test-uninames.c: Include progname.h.
50940         (main): Call set_program_name.
50941
50942         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
50943         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
50944         (main): Call set_program_name.
50945
50946         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
50947         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
50948         (main): Call set_program_name.
50949
50950         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
50951         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
50952         (main): Call set_program_name.
50953
50954         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
50955         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
50956         (main): Call set_program_name.
50957
50958         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
50959         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
50960         (main): Call set_program_name.
50961
50962         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
50963         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
50964         (main): Call set_program_name.
50965
50966         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
50967         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
50968         (main): Call set_program_name.
50969
50970         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
50971         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
50972         (main): Call set_program_name.
50973
50974 2009-01-19  Eric Blake  <ebb9@byu.net>
50975
50976         test-unistd: test previous patch
50977         * tests/test-unistd.c: Test *_FILENO macros.
50978
50979         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
50980         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50981         Guarantee a definition.
50982         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
50983         * modules/unistd-safer (Depends-on): Add dependency on unistd.
50984         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
50985         * lib/dup-safer.c (STDERR_FILENO): Likewise.
50986         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50987         Likewise.
50988         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
50989         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
50990         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50991         Likewise.
50992         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
50993         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
50994         (STDERR_FILENO): Likewise.
50995         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
50996         (STDERR_FILENO): Likewise.
50997         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
50998         (STDERR_FILENO): Likewise.
50999         Reported by Elbert Pol.
51000
51001 2009-01-19  Eric Blake  <ebb9@byu.net>
51002
51003         doc: mention more functions added in cygwin 1.7.0
51004         * doc/posix-functions/abort.texi (abort): Update wording related
51005         to cygwin.
51006         * doc/posix-functions/daylight.texi (daylight): Likewise.
51007         * doc/posix-functions/optarg.texi (optarg): Likewise.
51008         * doc/posix-functions/optarg.texi (opterr): Likewise.
51009         * doc/posix-functions/optarg.texi (optind): Likewise.
51010         * doc/posix-functions/optarg.texi (optopt): Likewise.
51011         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
51012         worked in 1.5.x, and was withdrawn in 1.7.
51013         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
51014         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
51015         cygwin versions.
51016         * doc/posix-functions/perror.texi (perror): Likewise.
51017         * doc/posix-functions/printf.texi (printf): Likewise.
51018         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
51019         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
51020         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51021         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51022         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
51023         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
51024         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
51025         Likewise.
51026         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
51027         Likewise.
51028         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
51029         this function.
51030         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
51031         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
51032         Likewise.
51033         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
51034         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
51035         * doc/posix-functions/confstr.texi (confstr): Likewise.
51036         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
51037         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
51038         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
51039         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
51040         * doc/posix-functions/fputws.texi (fputws): Likewise.
51041         * doc/posix-functions/fwide.texi (fwide): Likewise.
51042         * doc/posix-functions/getwc.texi (getwc): Likewise.
51043         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
51044         * doc/posix-functions/putwc.texi (putwc): Likewise.
51045         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
51046         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
51047         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
51048         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
51049         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
51050         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
51051         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
51052         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
51053         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
51054         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
51055         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
51056
51057 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51058
51059         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
51060         * lib/ioctl.c: Include <sys/ioctl.h>.
51061
51062 2009-01-19  Simon Josefsson  <simon@josefsson.org>
51063
51064         * modules/getdate-tests (Depends-on): Add progname.
51065         * tests/test-getdate.c: Use progname module, to avoid link errors
51066         on non-glibc systems.
51067
51068 2009-01-18  Simon Josefsson  <simon@josefsson.org>
51069
51070         * modules/filenamecat-tests (Depends-on): Add progname.
51071         * modules/fstrcmp-tests (Depends-on): Likewise.
51072
51073         * tests/test-filenamecat.c: Use progname module, to avoid link
51074         errors on non-glibc systems.
51075         * tests/test-fstrcmp.c: Likewise.
51076
51077 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51078
51079         gettimeofday: avoid warning: nested extern declaration of 'localtime'
51080         * lib/gettimeofday.c: Move extern declaration out of function.
51081
51082 2009-01-18  Bruno Haible  <bruno@clisp.org>
51083
51084         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
51085         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
51086         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
51087
51088 2009-01-18  Bruno Haible  <bruno@clisp.org>
51089
51090         * lib/strftime.c (MEMPCPY): Remove unused macro.
51091         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
51092
51093 2009-01-18  Martin Lambers  <marlam@marlam.de>
51094
51095         New module 'link'.
51096         * lib/unistd.in.h (link): New declaration.
51097         * lib/link.c: New file.
51098         * m4/link.m4: New file.
51099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
51100         HAVE_LINK.
51101         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
51102         * modules/link: New file.
51103         * doc/posix-functions/link.texi: Mention the new module.
51104
51105 2009-01-18  Bruno Haible  <bruno@clisp.org>
51106
51107         * tests/test-avltree_list.c (main): Call set_program_name.
51108         * tests/test-avltree_oset.c (main): Likewise.
51109         * tests/test-obstack-printf.c: Include progname.h.
51110         (main): Call set_program_name.
51111         * tests/test-quotearg.c: Include progname.h.
51112         (main): Call set_program_name.
51113         * tests/test-xmemdup0.c: Include progname.h.
51114         (main): Call set_program_name.
51115
51116 2009-01-18  Bruno Haible  <bruno@clisp.org>
51117
51118         New module 'alphasort'.
51119         * lib/dirent.in.h (alphasort): New declaration.
51120         * lib/alphasort.c: New file, from glibc with modifications.
51121         * m4/alphasort.m4: New file.
51122         * modules/alphasort: New file.
51123         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
51124         HAVE_ALPHASORT.
51125         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
51126         HAVE_ALPHASORT.
51127         * doc/posix-functions/alphasort.texi: Mention the new module and the
51128         portability problems.
51129
51130 2009-01-18  Bruno Haible  <bruno@clisp.org>
51131
51132         New module 'scandir'.
51133         * lib/dirent.in.h (scandir): New declaration.
51134         * lib/scandir.c: New file, from glibc with modifications.
51135         * m4/scandir.m4: New file.
51136         * modules/scandir: New file.
51137         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
51138         HAVE_SCANDIR.
51139         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
51140         HAVE_SCANDIR.
51141         * doc/posix-functions/scandir.texi: Mention the new module and the
51142         portability problems.
51143
51144 2009-01-17  Bruno Haible  <bruno@clisp.org>
51145
51146         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
51147         Update documentation.
51148         (func_remove_suffix): Escape all dots in the suffix. Update
51149         documentation.
51150         (func_filter_filelist): Update documentation.
51151         Reported by Ralf Wildenhues.
51152
51153 2009-01-17  Bruno Haible  <bruno@clisp.org>
51154
51155         * modules/dprintf-posix-tests: New file.
51156         * tests/test-dprintf-posix.sh: New file.
51157         * tests/test-dprintf-posix.c: New file.
51158
51159         New modules 'dprintf', 'dprintf-posix'.
51160         * lib/stdio.in.h (dprintf): New declaration.
51161         * lib/dprintf.c: New file.
51162         * m4/dprintf.m4: New file.
51163         * m4/dprintf-posix.m4: New file.
51164         * modules/dprintf: New file.
51165         * modules/dprintf-posix: New file.
51166         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
51167         HAVE_DPRINTF, REPLACE_DPRINTF.
51168         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
51169         HAVE_DPRINTF, REPLACE_DPRINTF.
51170         * doc/posix-functions/dprintf.texi: Mention the new modules.
51171
51172 2009-01-17  Bruno Haible  <bruno@clisp.org>
51173
51174         * modules/vdprintf-posix-tests: New file.
51175         * tests/test-vdprintf-posix.sh: New file.
51176         * tests/test-vdprintf-posix.c: New file.
51177
51178         New modules 'vdprintf', 'vdprintf-posix'.
51179         * lib/stdio.in.h (vdprintf): New declaration.
51180         * lib/vdprintf.c: New file.
51181         * m4/vdprintf.m4: New file.
51182         * m4/vdprintf-posix.m4: New file.
51183         * modules/vdprintf: New file.
51184         * modules/vdprintf-posix: New file.
51185         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
51186         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51187         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
51188         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51189         * doc/posix-functions/vdprintf.texi: Mention the new modules.
51190
51191 2009-01-17  Bruno Haible  <bruno@clisp.org>
51192
51193         Fix replacement of fopen on mingw.
51194         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
51195         mingw.
51196
51197 2009-01-17  Bruno Haible  <bruno@clisp.org>
51198
51199         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
51200         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
51201
51202 2009-01-17  Bruno Haible  <bruno@clisp.org>
51203
51204         Avoid test-fflush2.sh failure on mingw.
51205         * tests/test-fflush2.c: Include binary-io.h.
51206         (main): Put standard input into binary mode.
51207         * modules/fflush-tests (Depends-on): Add binary-io.
51208
51209 2009-01-17  Bruno Haible  <bruno@clisp.org>
51210
51211         * lib/wchar.in.h: In another particular situation, include only the
51212         system's <wchar.h> file.
51213         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
51214         Reported by Albert Chin-A-Young <china@thewrittenword.com>
51215         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
51216
51217 2009-01-17  Bruno Haible  <bruno@clisp.org>
51218
51219         Support for stripping executables in --enable-relocatable.
51220         * build-aux/install-reloc: Expect one more argument, or an environment
51221         variable RELOC_STRIP_PROG. If set, strip the destination program and
51222         its wrapper.
51223         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
51224         RELOC_STRIP_PROG.
51225         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
51226         to set RELOCATABLE_STRIP.
51227         * NEWS: Mention the new Makefile requirement.
51228
51229 2009-01-17  Bruno Haible  <bruno@clisp.org>
51230
51231         * build-aux/install-reloc: Remove debugging information left over by
51232         C compiler on MacOS X.
51233
51234 2009-01-17  Bruno Haible  <bruno@clisp.org>
51235
51236         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
51237         * lib/progreloc.c (find_executable): Fix type of pointer passed to
51238         _NSGetExecutablePath.
51239
51240 2009-01-16  Jim Meyering  <meyering@redhat.com>
51241
51242         strerror: avoid warnings about discarding "const"
51243         * lib/strerror.c (rpl_strerror): Instead of returning a const
51244         string from each and every "case", use a variable, and add a single
51245         cast after the switch.
51246
51247 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
51248
51249         * lib/arpa_inet.in.h: Add extern "C" block for C++.
51250
51251 2009-01-16  Bruno Haible  <bruno@clisp.org>
51252
51253         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
51254         array initializer syntax that also works in C++ mode.
51255         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51256
51257 2009-01-16  Jim Meyering  <meyering@redhat.com>
51258
51259         poll: suppress a warning
51260         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
51261         to ignore "...unsigned expression < 0 is always false" warnings.
51262
51263 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
51264
51265         poll: remove declarations of unused variables
51266         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
51267         sockbuf and optlen.
51268
51269 2009-01-15  Bruno Haible  <bruno@clisp.org>
51270
51271         Make fflush-after-ungetc POSIX compliant on BSD systems.
51272         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
51273         (clear_ungetc_buffer): Implement also for other systems.
51274         (rpl_fflush): On glibc systems, invoke
51275         clear_ungetc_buffer_preserving_position. Otherwise, invoke
51276         clear_ungetc_buffer after fetching the stream's position, not before.
51277
51278 2009-01-15  Bruno Haible  <bruno@clisp.org>
51279
51280         Make fflush-after-ungetc POSIX compliant on glibc systems.
51281         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
51282         after ungetc.
51283         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
51284         (rpl_fflush): On glibc systems, simply call the system's fflush
51285         function after clearing the ungetc buffer.
51286         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
51287         Instead, lseek only to the end of file, then use the system's fseeko
51288         for the rest. On glibc systems, reset the EOF indicator bit.
51289
51290 2009-01-15  Jim Meyering  <meyering@redhat.com>
51291
51292         openmp.m4: revert quote-adding change, for portability to older autoconf
51293         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
51294         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
51295         Simon Josefsson noticed the problem when using autoconf-2.61.
51296
51297 2009-01-15  Bruno Haible  <bruno@clisp.org>
51298
51299         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
51300         * tests/test-fflush2.c (ASSERT): Always fail.
51301         (main): Add two tests for fflush() after ungetc(), taking into account
51302         the Austin Group's clarification.
51303         Suggested by Eric Blake.
51304
51305 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
51306
51307         mktime.m4: remove K&R-style function prototypes
51308         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
51309         for the Sun C++ compiler.
51310
51311 2009-01-14  Bruno Haible  <bruno@clisp.org>
51312
51313         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
51314         while including <wchar.h>.
51315         * lib/wchar.in.h: In two particular situations on HP-UX, include only
51316         the system's <wchar.h> file.
51317         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51318
51319 2009-01-14  Bruno Haible  <bruno@clisp.org>
51320
51321         * m4/csharp.m4: Don't mention gettext on the serial number line.
51322         * m4/csharpexec.m4: Likewise.
51323         * m4/eaccess.m4: Likewise.
51324         * m4/javaexec.m4: Likewise.
51325         * m4/sig_atomic_t.m4: Likewise.
51326         * m4/tmpdir.m4: Likewise.
51327         * m4/intldir.m4: Bump gettext version.
51328         * m4/lib-ld.m4: Likewise.
51329
51330 2009-01-14  Bruno Haible  <bruno@clisp.org>
51331
51332         * lib/progname.c (set_program_name): Add more comments.
51333         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
51334
51335 2009-01-14  Simon Josefsson  <simon@josefsson.org>
51336
51337         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
51338         were sys/stat.h does not define it.
51339
51340 2009-01-14  Jim Meyering  <meyering@redhat.com>
51341
51342         many *.m4 files: improve m4 quoting
51343         99% of this change was performed by running the following commands:
51344         git ls-files | grep '\.m4$' | xargs perl -pi \
51345           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
51346           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51347           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51348           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
51349         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
51350         The remainder were to add Copyright dates, increment serial numbers,
51351         undo some changes in comments, exclude m4/intl.m4, and add quotes
51352         around the "1" in ",1" where the unusual spacing prohibited the
51353         above regexps from doing the job.  For more details, see
51354         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
51355         * m4/acl.m4: Modified.
51356         * m4/afs.m4: Likewise.
51357         * m4/alloca.m4: Likewise.
51358         * m4/argp.m4: Likewise.
51359         * m4/argz.m4: Likewise.
51360         * m4/atexit.m4: Likewise.
51361         * m4/bison-i18n.m4: Likewise.
51362         * m4/bison.m4: Likewise.
51363         * m4/byteswap.m4: Likewise.
51364         * m4/c-stack.m4: Likewise.
51365         * m4/c-strtod.m4: Likewise.
51366         * m4/calloc.m4: Likewise.
51367         * m4/canonicalize-lgpl.m4: Likewise.
51368         * m4/chown.m4: Likewise.
51369         * m4/clock_time.m4: Likewise.
51370         * m4/codeset.m4: Likewise.
51371         * m4/copy-file.m4: Likewise.
51372         * m4/csharp.m4: Likewise.
51373         * m4/csharpcomp.m4: Likewise.
51374         * m4/csharpexec.m4: Likewise.
51375         * m4/d-ino.m4: Likewise.
51376         * m4/d-type.m4: Likewise.
51377         * m4/dirfd.m4: Likewise.
51378         * m4/double-slash-root.m4: Likewise.
51379         * m4/eaccess.m4: Likewise.
51380         * m4/eealloc.m4: Likewise.
51381         * m4/environ.m4: Likewise.
51382         * m4/errno_h.m4: Likewise.
51383         * m4/euidaccess.m4: Likewise.
51384         * m4/execute.m4: Likewise.
51385         * m4/fatal-signal.m4: Likewise.
51386         * m4/fchdir.m4: Likewise.
51387         * m4/fcntl_h.m4: Likewise.
51388         * m4/fileblocks.m4: Likewise.
51389         * m4/filenamecat.m4: Likewise.
51390         * m4/findprog.m4: Likewise.
51391         * m4/flexmember.m4: Likewise.
51392         * m4/fnmatch.m4: Likewise.
51393         * m4/fopen.m4: Likewise.
51394         * m4/fpending.m4: Likewise.
51395         * m4/fprintf-posix.m4: Likewise.
51396         * m4/free.m4: Likewise.
51397         * m4/frexp.m4: Likewise.
51398         * m4/frexpl.m4: Likewise.
51399         * m4/fsusage.m4: Likewise.
51400         * m4/ftruncate.m4: Likewise.
51401         * m4/gc-camellia.m4: Likewise.
51402         * m4/gc-random.m4: Likewise.
51403         * m4/gc.m4: Likewise.
51404         * m4/getaddrinfo.m4: Likewise.
51405         * m4/getcwd-abort-bug.m4: Likewise.
51406         * m4/getcwd-path-max.m4: Likewise.
51407         * m4/getdate.m4: Likewise.
51408         * m4/getdomainname.m4: Likewise.
51409         * m4/getgroups.m4: Likewise.
51410         * m4/gethostname.m4: Likewise.
51411         * m4/gethrxtime.m4: Likewise.
51412         * m4/getline.m4: Likewise.
51413         * m4/getloadavg.m4: Likewise.
51414         * m4/getndelim2.m4: Likewise.
51415         * m4/getpass.m4: Likewise.
51416         * m4/gettext.m4: Likewise.
51417         * m4/gettime.m4: Likewise.
51418         * m4/gettimeofday.m4: Likewise.
51419         * m4/gnulib-common.m4: Likewise.
51420         * m4/group-member.m4: Likewise.
51421         * m4/host-os.m4: Likewise.
51422         * m4/iconv.m4: Likewise.
51423         * m4/iconv_open.m4: Likewise.
51424         * m4/inet_ntop.m4: Likewise.
51425         * m4/inet_pton.m4: Likewise.
51426         * m4/inline.m4: Likewise.
51427         * m4/intldir.m4: Likewise.
51428         * m4/intlmacosx.m4: Likewise.
51429         * m4/intmax.m4: Likewise.
51430         * m4/intmax_t.m4: Likewise.
51431         * m4/inttypes.m4: Likewise.
51432         * m4/inttypes_h.m4: Likewise.
51433         * m4/inttypes-pri.m4: Likewise.
51434         * m4/isapipe.m4: Likewise.
51435         * m4/isnand.m4: Likewise.
51436         * m4/isnanf.m4: Likewise.
51437         * m4/isnanl.m4: Likewise.
51438         * m4/javacomp.m4: Likewise.
51439         * m4/javaexec.m4: Likewise.
51440         * m4/jm-winsz1.m4: Likewise.
51441         * m4/jm-winsz2.m4: Likewise.
51442         * m4/lchown.m4: Likewise.
51443         * m4/lcmessage.m4: Likewise.
51444         * m4/ldexpl.m4: Likewise.
51445         * m4/lib-ld.m4: Likewise.
51446         * m4/lib-link.m4: Likewise.
51447         * m4/libsigsegv.m4: Likewise.
51448         * m4/link-follow.m4: Likewise.
51449         * m4/localcharset.m4: Likewise.
51450         * m4/locale-fr.m4: Likewise.
51451         * m4/locale-ja.m4: Likewise.
51452         * m4/locale-tr.m4: Likewise.
51453         * m4/locale-zh.m4: Likewise.
51454         * m4/lock.m4: Likewise.
51455         * m4/longlong.m4: Likewise.
51456         * m4/ls-mntd-fs.m4: Likewise.
51457         * m4/lstat.m4: Likewise.
51458         * m4/malloc.m4: Likewise.
51459         * m4/mathl.m4: Likewise.
51460         * m4/mbrtowc.m4: Likewise.
51461         * m4/mbstate_t.m4: Likewise.
51462         * m4/mbswidth.m4: Likewise.
51463         * m4/memchr.m4: Likewise.
51464         * m4/memcmp.m4: Likewise.
51465         * m4/memcpy.m4: Likewise.
51466         * m4/memmem.m4: Likewise.
51467         * m4/memmove.m4: Likewise.
51468         * m4/mempcpy.m4: Likewise.
51469         * m4/memrchr.m4: Likewise.
51470         * m4/memset.m4: Likewise.
51471         * m4/minmax.m4: Likewise.
51472         * m4/mkdir-slash.m4: Likewise.
51473         * m4/mkdtemp.m4: Likewise.
51474         * m4/mktime.m4: Likewise.
51475         * m4/mmap-anon.m4: Likewise.
51476         * m4/mountlist.m4: Likewise.
51477         * m4/nanosleep.m4: Likewise.
51478         * m4/nls.m4: Likewise.
51479         * m4/nocrash.m4: Likewise.
51480         * m4/open.m4: Likewise.
51481         * m4/openat.m4: Likewise.
51482         * m4/openmp.m4: Likewise.
51483         * m4/pathmax.m4: Likewise.
51484         * m4/perl.m4: Likewise.
51485         * m4/physmem.m4: Likewise.
51486         * m4/pipe.m4: Likewise.
51487         * m4/po.m4: Likewise.
51488         * m4/poll.m4: Likewise.
51489         * m4/posixtm.m4: Likewise.
51490         * m4/posixver.m4: Likewise.
51491         * m4/printf-frexp.m4: Likewise.
51492         * m4/printf-frexpl.m4: Likewise.
51493         * m4/printf-posix.m4: Likewise.
51494         * m4/printf-posix-rpl.m4: Likewise.
51495         * m4/printf.m4: Likewise.
51496         * m4/progtest.m4: Likewise.
51497         * m4/putenv.m4: Likewise.
51498         * m4/readline.m4: Likewise.
51499         * m4/readlink.m4: Likewise.
51500         * m4/readutmp.m4: Likewise.
51501         * m4/realloc.m4: Likewise.
51502         * m4/regex.m4: Likewise.
51503         * m4/relocatable.m4: Likewise.
51504         * m4/relocatable-lib.m4: Likewise.
51505         * m4/rename-dest-slash.m4: Likewise.
51506         * m4/rename.m4: Likewise.
51507         * m4/rmdir-errno.m4: Likewise.
51508         * m4/rmdir.m4: Likewise.
51509         * m4/roundf.m4: Likewise.
51510         * m4/roundl.m4: Likewise.
51511         * m4/rpmatch.m4: Likewise.
51512         * m4/save-cwd.m4: Likewise.
51513         * m4/selinux-selinux-h.m4: Likewise.
51514         * m4/setenv.m4: Likewise.
51515         * m4/settime.m4: Likewise.
51516         * m4/sig2str.m4: Likewise.
51517         * m4/sig_atomic_t.m4: Likewise.
51518         * m4/signalblocking.m4: Likewise.
51519         * m4/signbit.m4: Likewise.
51520         * m4/sigpipe.m4: Likewise.
51521         * m4/sockets.m4: Likewise.
51522         * m4/sockpfaf.m4: Likewise.
51523         * m4/st_dm_mode.m4: Likewise.
51524         * m4/stat-time.m4: Likewise.
51525         * m4/stdbool.m4: Likewise.
51526         * m4/stdint.m4: Likewise.
51527         * m4/stdint_h.m4: Likewise.
51528         * m4/stpcpy.m4: Likewise.
51529         * m4/stpncpy.m4: Likewise.
51530         * m4/strcase.m4: Likewise.
51531         * m4/strchrnul.m4: Likewise.
51532         * m4/strcspn.m4: Likewise.
51533         * m4/strdup.m4: Likewise.
51534         * m4/strftime.m4: Likewise.
51535         * m4/strndup.m4: Likewise.
51536         * m4/strnlen.m4: Likewise.
51537         * m4/strpbrk.m4: Likewise.
51538         * m4/strptime.m4: Likewise.
51539         * m4/strsep.m4: Likewise.
51540         * m4/strtod.m4: Likewise.
51541         * m4/strtoimax.m4: Likewise.
51542         * m4/strtok_r.m4: Likewise.
51543         * m4/strtol.m4: Likewise.
51544         * m4/strtoll.m4: Likewise.
51545         * m4/strtoul.m4: Likewise.
51546         * m4/strtoull.m4: Likewise.
51547         * m4/strtoumax.m4: Likewise.
51548         * m4/strverscmp.m4: Likewise.
51549         * m4/threadlib.m4: Likewise.
51550         * m4/timegm.m4: Likewise.
51551         * m4/tm_gmtoff.m4: Likewise.
51552         * m4/tmpdir.m4: Likewise.
51553         * m4/tmpfile.m4: Likewise.
51554         * m4/tzset.m4: Likewise.
51555         * m4/uintmax_t.m4: Likewise.
51556         * m4/unlinkdir.m4: Likewise.
51557         * m4/unlocked-io.m4: Likewise.
51558         * m4/uptime.m4: Likewise.
51559         * m4/userspec.m4: Likewise.
51560         * m4/utimbuf.m4: Likewise.
51561         * m4/utime.m4: Likewise.
51562         * m4/utimes-null.m4: Likewise.
51563         * m4/utimes.m4: Likewise.
51564         * m4/vararrays.m4: Likewise.
51565         * m4/vasnprintf.m4: Likewise.
51566         * m4/vfprintf-posix.m4: Likewise.
51567         * m4/vprintf-posix.m4: Likewise.
51568         * m4/wait-process.m4: Likewise.
51569         * m4/wchar_t.m4: Likewise.
51570         * m4/wint_t.m4: Likewise.
51571         * m4/write-any-file.m4: Likewise.
51572         * m4/yield.m4: Likewise.
51573
51574 2009-01-13  Bruno Haible  <bruno@clisp.org>
51575
51576         Avoid test-copy-file.sh failures when ACL support insufficient.
51577         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
51578         TESTS_ENVIRONMENT.
51579         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
51580         Reported by Jim Meyering.
51581
51582 2009-01-13  Bruno Haible  <bruno@clisp.org>
51583
51584         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
51585         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
51586         * modules/unistdio/u8-printf-parse (Files): Likewise.
51587         * modules/unistdio/u32-printf-parse (Files): Likewise.
51588         * modules/unistdio/ulc-printf-parse (Files): Likewise.
51589
51590 2009-01-13  Simon Josefsson  <simon@josefsson.org>
51591
51592         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
51593         and m4/inttypes_h.m4 too.
51594
51595 2009-01-12  Eric Blake  <ebb9@byu.net>
51596
51597         tests: IRIX 6.2 cc can't compile -0.0 into .data
51598         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
51599         rather than at compile-time.
51600         * tests/test-floorl.c (minus_zero): Likewise.
51601         * tests/test-frexpl.c (minus_zero): Likewise.
51602         * tests/test-isnan.c (minus_zerol): Likewise.
51603         * tests/test-isnanl.h (minus_zero): Likewise.
51604         * tests/test-ldexpl.c (minus_zero): Likewise.
51605         * tests/test-roundl.c (minus_zero): Likewise.
51606         * tests/test-signbit.c (minus_zerol): Likewise.
51607         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51608         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51609         * tests/test-truncl.c (minus_zero): Likewise.
51610         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51611         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51612         Reported by Tom G. Christensen and Nelson H. F. Beebe.
51613
51614 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51615
51616         regex: fix glibc bug 9697
51617         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
51618         handling.
51619
51620 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51621
51622         regex: fix glibc bug 697
51623         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
51624         being NULL also if there are no backreferences.
51625
51626 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51627
51628         regex: merge glibc changes
51629         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
51630         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
51631         re_string_skip_chars, re_string_reconstruct): Likewise.
51632         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
51633
51634 2009-01-07  Jim Meyering  <meyering@redhat.com>
51635
51636         poll: filter through cppi
51637         * lib/poll.c: Indent cpp directives to reflect nesting.
51638
51639 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
51640
51641         poll: don't return uninitialized
51642         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
51643
51644 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
51645
51646         avoid compile failure on AIX 6.1
51647         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
51648         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
51649
51650 2009-01-04  Jim Meyering  <meyering@redhat.com>
51651
51652         remove duplicate inclusion of <stdio.h>
51653         * tests/test-fprintf-posix.c: Likewise.
51654         * tests/test-printf-posix.c: Likewise.
51655         * tests/test-snprintf-posix.c: Likewise.
51656         * tests/test-sprintf-posix.c: Likewise.
51657         * tests/test-vasprintf-posix.c: Likewise.
51658         * tests/test-vfprintf-posix.c: Likewise.
51659         * tests/test-vprintf-posix.c: Likewise.
51660         * tests/test-vsnprintf-posix.c: Likewise.
51661         * tests/test-vsprintf-posix.c: Likewise.
51662
51663 2009-01-03  Jim Meyering  <meyering@redhat.com>
51664
51665         gnulib-tool: fix sed-based filtering
51666         * gnulib-tool (func_filter_filelist): Remove extra backslash
51667         in sed_fff_filter definition.
51668
51669 2009-01-02  Jim Meyering  <meyering@redhat.com>
51670
51671         strftime: avoid compilation failure on Solaris 2.6
51672         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
51673         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
51674         Don't #define mbrlen or mbsinit, since now they're guaranteed to
51675         be available.  Reported by Tom G. Christensen.  Details in
51676         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
51677
51678 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51679             Bruno Haible  <bruno@clisp.org>
51680
51681         Speed up gnulib-tool by doing more string processing through shell
51682         built-ins.
51683         * gnulib-tool (fast_func_append): New variable.
51684         (func_remove_prefix, func_remove_suffix): New functions.
51685         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
51686         (func_filter_filelist): New function.
51687         (func_get_dependencies): Use func_remove_suffix instead of sed.
51688         (func_get_automake_snippet): Use func_filter_filelist instead of a
51689         subshell and sed invocation.
51690
51691 2009-01-01  Bruno Haible  <bruno@clisp.org>
51692
51693         Fix a security bug.
51694         * gnulib-tool (func_import, import, update): Don't allow the characters
51695         '"', '$', '`', '\' in macro arguments that become part of commands that
51696         are evaluated.
51697
51698 2009-01-01  Bruno Haible  <bruno@clisp.org>
51699
51700         * gnulib-tool (func_reset_sigpipe): Add more comments.
51701
51702 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51703
51704         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
51705         func_emit_tests_Makefile_am, func_import): Abort loops early if we
51706         already know the answer.
51707
51708 2009-01-01  Jim Meyering  <meyering@redhat.com>
51709
51710         * lib/version-etc.c (version_etc_va): Update copyright year.
51711
51712 2008-12-30  Bruno Haible  <bruno@clisp.org>
51713
51714         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
51715         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
51716         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
51717
51718 2008-12-29  Eric Blake  <ebb9@byu.net>
51719
51720         multiarch: avoid autoconf AC_REQUIRE bug
51721         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
51722         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
51723         2.63 and older.
51724         Reported by Bruno Haible, and analyzed in
51725         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
51726
51727 2008-12-29  Bruno Haible  <bruno@clisp.org>
51728
51729         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
51730         files in subdirectories correctly.
51731         Reported by Ralf Wildenhues.
51732
51733 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51734
51735         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
51736         rather than 'join FILE -', for Solaris join.
51737
51738 2008-12-29  Bruno Haible  <bruno@clisp.org>
51739
51740         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
51741         quoting.
51742         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
51743         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
51744         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
51745         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
51746         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
51747         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
51748         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
51749         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
51750         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
51751         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
51752         * m4/nls.m4 (AM_NLS): Likewise.
51753         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
51754         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
51755         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
51756         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
51757         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
51758         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
51759         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
51760         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
51761         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
51762         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
51763         * m4/xsize.m4 (gl_XSIZE): Likewise.
51764         Suggested by Jim Meyering.
51765
51766 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51767
51768         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
51769         * lib/parse-duration.c: use a switch instead of cascading if's.
51770
51771 2008-12-29  Eric Blake  <ebb9@byu.net>
51772
51773         wchar.h: supply WEOF on Irix 5.3
51774         * lib/wchar.in.h (wint_t): Also supply WEOF.
51775         * lib/wctype.in.h (wint_t): Likewise.
51776         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
51777         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
51778         Reported by Tom G. Christensen.
51779
51780 2008-12-26  Bruno Haible  <bruno@clisp.org>
51781
51782         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
51783         i486, i586, i686.
51784
51785 2008-12-26  Bruno Haible  <bruno@clisp.org>
51786
51787         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
51788
51789 2008-12-26  Bruno Haible  <bruno@clisp.org>
51790
51791         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
51792         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
51793         not __STDC_CONSTANT_MACROS.
51794         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51795
51796 2008-12-25  Bruno Haible  <bruno@clisp.org>
51797
51798         Add support for universal builds to vasnprintf.
51799         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
51800         universal builds, guess no.
51801         * modules/vasnprintf-posix (Depends-on): Add multiarch.
51802         * modules/vasprintf-posix (Depends-on): Likewise.
51803         * modules/fprintf-posix (Depends-on): Likewise.
51804         * modules/vfprintf-posix (Depends-on): Likewise.
51805         * modules/snprintf-posix (Depends-on): Likewise.
51806         * modules/vsnprintf-posix (Depends-on): Likewise.
51807         * modules/sprintf-posix (Depends-on): Likewise.
51808         * modules/vsprintf-posix (Depends-on): Likewise.
51809         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51810         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51811         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51812         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51813         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51814         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51815         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51816
51817         Add support for universal builds to <inttypes.h>.
51818         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
51819         _SCNu64_PREFIX): In Apple
51820         universal builds, define directly, using _LP64.
51821         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
51822         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
51823         * modules/inttypes (Depends-on): Add multiarch.
51824         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51825
51826         Add support for universal builds to <stdint.h>.
51827         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
51828         universal builds, define directly, using _LP64.
51829         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
51830         Apple universal builds, don't test for the size and suffix of ptrdiff_t
51831         and size_t.
51832         * modules/stdint (Depends-on): Add multiarch.
51833         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51834
51835         New module 'multiarch'.
51836         * modules/multiarch: New file.
51837         * m4/multiarch.m4: New file.
51838
51839 2008-12-25  Bruno Haible  <bruno@clisp.org>
51840
51841         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
51842
51843 2008-12-25  Bruno Haible  <bruno@clisp.org>
51844
51845         * modules/btowc (License): Relicense under LGPLv2+.
51846         * modules/mbsinit (License): Likewise.
51847         * modules/mbrtowc (License): Likewise.
51848         * modules/wcrtomb (License): Likewise.
51849         * modules/streq (License): Likewise.
51850         Reported by David Lutterkort <lutter@redhat.com>.
51851
51852 2008-12-23  Bruno Haible  <bruno@clisp.org>
51853
51854         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
51855
51856 2008-12-23  Bruno Haible  <bruno@clisp.org>
51857
51858         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
51859         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
51860         GETADDRINFO_LIB, not in LIBS.
51861         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
51862         * modules/canon-host (Link): Likewise.
51863         * NEWS: Mention the change.
51864         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
51865         GETADDRINFO_LIB.
51866
51867 2008-12-22  Bruno Haible  <bruno@clisp.org>
51868
51869         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
51870         * doc/posix-functions/iswalpha_l.texi: Likewise.
51871         * doc/posix-functions/iswblank_l.texi: Likewise.
51872         * doc/posix-functions/iswcntrl_l.texi: Likewise.
51873         * doc/posix-functions/iswctype_l.texi: Likewise.
51874         * doc/posix-functions/iswdigit_l.texi: Likewise.
51875         * doc/posix-functions/iswgraph_l.texi: Likewise.
51876         * doc/posix-functions/iswlower_l.texi: Likewise.
51877         * doc/posix-functions/iswprint_l.texi: Likewise.
51878         * doc/posix-functions/iswpunct_l.texi: Likewise.
51879         * doc/posix-functions/iswspace_l.texi: Likewise.
51880         * doc/posix-functions/iswupper_l.texi: Likewise.
51881         * doc/posix-functions/iswxdigit_l.texi: Likewise.
51882         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
51883         * doc/posix-functions/open_wmemstream.texi: Likewise.
51884         * doc/posix-functions/swscanf.texi: Likewise.
51885         * doc/posix-functions/towctrans_l.texi: Likewise.
51886         * doc/posix-functions/towlower.texi: Likewise.
51887         * doc/posix-functions/towlower_l.texi: Likewise.
51888         * doc/posix-functions/towupper.texi: Likewise.
51889         * doc/posix-functions/towupper_l.texi: Likewise.
51890         * doc/posix-functions/vfwprintf.texi: Likewise.
51891         * doc/posix-functions/vfwscanf.texi: Likewise.
51892         * doc/posix-functions/vswscanf.texi: Likewise.
51893         * doc/posix-functions/vwprintf.texi: Likewise.
51894         * doc/posix-functions/vwscanf.texi: Likewise.
51895         * doc/posix-functions/wcpcpy.texi: Likewise.
51896         * doc/posix-functions/wcpncpy.texi: Likewise.
51897         * doc/posix-functions/wcscasecmp.texi: Likewise.
51898         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
51899         * doc/posix-functions/wcscoll_l.texi: Likewise.
51900         * doc/posix-functions/wcsdup.texi: Likewise.
51901         * doc/posix-functions/wcsncasecmp.texi: Likewise.
51902         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
51903         * doc/posix-functions/wcsnlen.texi: Likewise.
51904         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51905         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
51906         * doc/posix-functions/wctrans_l.texi: Likewise.
51907         * doc/posix-functions/wctype_l.texi: Likewise.
51908         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
51909         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
51910         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
51911         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
51912         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
51913         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
51914         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
51915         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
51916         * doc/glibc-functions/wcschrnul.texi: Likewise.
51917         * doc/glibc-functions/wcsftime_l.texi: Likewise.
51918         * doc/glibc-functions/wcstod_l.texi: Likewise.
51919         * doc/glibc-functions/wcstof_l.texi: Likewise.
51920         * doc/glibc-functions/wcstol_l.texi: Likewise.
51921         * doc/glibc-functions/wcstold_l.texi: Likewise.
51922         * doc/glibc-functions/wcstoll_l.texi: Likewise.
51923         * doc/glibc-functions/wcstoq.texi: Likewise.
51924         * doc/glibc-functions/wcstoul_l.texi: Likewise.
51925         * doc/glibc-functions/wcstoull_l.texi: Likewise.
51926         * doc/glibc-functions/wcstouq.texi: Likewise.
51927         * doc/glibc-functions/wmempcpy.texi: Likewise.
51928
51929 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
51930             Eric Blake  <ebb9@byu.net>
51931             Paolo Bonzini  <bonzini@gnu.org>
51932             Bruno Haible  <bruno@clisp.org>
51933
51934         Make c-stack work on Haiku.
51935         * lib/c-stack.c (SA_ONSTACK): Define fallback.
51936         (c_stack_action): Use SA_ONSTACK flag.
51937
51938 2008-12-22  Bruno Haible  <bruno@clisp.org>
51939
51940         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
51941
51942 2008-12-22  Bruno Haible  <bruno@clisp.org>
51943
51944         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
51945         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
51946         being overridden.
51947         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
51948         New macros.
51949         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
51950         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
51951         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
51952         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
51953
51954 2008-12-22  Bruno Haible  <bruno@clisp.org>
51955
51956         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
51957         from test code.
51958
51959 2008-12-22  Eric Blake  <ebb9@byu.net>
51960
51961         Avoid gcc warnings on cygwin.
51962         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
51963         Avoid unused variable.
51964         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
51965         Likewise.
51966
51967 2008-12-22  Bruno Haible  <bruno@clisp.org>
51968
51969         Remove HAVE_MBRTOWC conditionals.
51970         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
51971         (mbscasecmp): Assume mbrtowc function.
51972         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
51973         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
51974         * lib/mbschr.c: Include mbuiter.h unconditionally.
51975         (mbschr): Assume mbrtowc function.
51976         * lib/mbscspn.c: Include mbuiter.h unconditionally.
51977         (mbscspn): Assume mbrtowc function.
51978         * lib/mbslen.c: Include mbuiter.h unconditionally.
51979         (mbslen): Assume mbrtowc function.
51980         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
51981         (mbsncasecmp): Assume mbrtowc function.
51982         * lib/mbsnlen.c: Include mbiter.h unconditionally.
51983         (mbsnlen): Assume mbrtowc function.
51984         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
51985         (mbspbrk): Assume mbrtowc function.
51986         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
51987         (mbspcasecmp): Assume mbrtowc function.
51988         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
51989         (mbsrchr): Assume mbrtowc function.
51990         * lib/mbssep.c: Include mbuiter.h unconditionally.
51991         (mbssep): Assume mbrtowc function.
51992         * lib/mbsspn.c: Include mbuiter.h unconditionally.
51993         (mbsspn): Assume mbrtowc function.
51994         * lib/mbsstr.c: Include mbuiter.h unconditionally.
51995         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
51996         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
51997         (mbstok_r): Assume mbrtowc function.
51998         * lib/propername.c: Include mbuiter.h unconditionally.
51999         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
52000         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
52001         (trim2): Assume mbrtowc function.
52002         * lib/mbswidth.c (mbsinit): Remove fallback definition.
52003         (mbsnwidth): Assume mbrtowc function.
52004         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
52005         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
52006         fallback definitions.
52007         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
52008
52009 2008-12-22  Bruno Haible  <bruno@clisp.org>
52010
52011         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
52012
52013 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
52014
52015         * modules/regex: Request emulations for the mb*/wc* functions we need.
52016         * m4/regex.m4: Don't look for those functions here.
52017         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
52018
52019 2008-12-22  Bruno Haible  <bruno@clisp.org>
52020
52021         * modules/fnmatch (Depends-on): Remove duplicated dependency.
52022
52023 2008-12-21  Bruno Haible  <bruno@clisp.org>
52024
52025         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
52026         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
52027         (Include): Remove conditionalization.
52028         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
52029         (Include): Remove conditionalization.
52030         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
52031         (Include): Remove conditionalization.
52032         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
52033         * m4/mbfile.m4 (gl_MBFILE): Likewise.
52034         * NEWS: Mention the change.
52035         Reported by Alan Hourihane <alanh@fairlite.co.uk>
52036         via Sergey Poznyakoff <gray@gnu.org.ua>.
52037
52038 2008-12-21  Bruno Haible  <bruno@clisp.org>
52039
52040         * MODULES.html.sh (Extended multibyte and wide character utilities
52041         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
52042         wcrtomb, wcsrtombs.
52043         (Support for systems lacking POSIX:2008): Add accept, bind, close,
52044         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
52045         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
52046         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
52047
52048 2008-12-21  Bruno Haible  <bruno@clisp.org>
52049
52050         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
52051
52052 2008-12-21  Bruno Haible  <bruno@clisp.org>
52053
52054         * modules/wcsnrtombs-tests: New file.
52055         * tests/test-wcsnrtombs1.sh: New file.
52056         * tests/test-wcsnrtombs2.sh: New file.
52057         * tests/test-wcsnrtombs3.sh: New file.
52058         * tests/test-wcsnrtombs4.sh: New file.
52059         * tests/test-wcsnrtombs.c: New file.
52060
52061         New module 'wcsnrtombs'.
52062         * lib/wchar.in.h (wcsnrtombs): New declaration.
52063         * lib/wcsnrtombs.c: New file.
52064         * lib/wcsrtombs-state.c: New file.
52065         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
52066         (internal_state): Remove variable.
52067         * m4/wcsnrtombs.m4: New file.
52068         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
52069         compilation units.
52070         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
52071         HAVE_WCSNRTOMBS.
52072         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
52073         HAVE_WCSNRTOMBS.
52074         * modules/wcsnrtombs: New file.
52075         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
52076         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
52077
52078 2008-12-21  Bruno Haible  <bruno@clisp.org>
52079
52080         * modules/wcsrtombs-tests: New file.
52081         * tests/test-wcsrtombs1.sh: New file.
52082         * tests/test-wcsrtombs2.sh: New file.
52083         * tests/test-wcsrtombs3.sh: New file.
52084         * tests/test-wcsrtombs4.sh: New file.
52085         * tests/test-wcsrtombs.c: New file.
52086
52087         New module 'wcsrtombs'.
52088         * lib/wchar.in.h (wcsrtombs): New declaration.
52089         * lib/wcsrtombs.c: New file.
52090         * m4/wcsrtombs.m4: New file.
52091         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
52092         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52093         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
52094         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52095         * modules/wcsrtombs: New file.
52096         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
52097         bugs.
52098
52099 2008-12-21  Bruno Haible  <bruno@clisp.org>
52100
52101         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
52102         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
52103         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
52104         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
52105         if not correct.
52106         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
52107         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
52108         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52109         m4/locale-zh.m4, m4/codeset.m4.
52110         * doc/posix-functions/wcrtomb.texi: Document the bug.
52111
52112 2008-12-21  Bruno Haible  <bruno@clisp.org>
52113
52114         Work around a btowc() bug on IRIX 6.5.
52115         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
52116         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
52117         REPLACE_WTOBC if not.
52118         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
52119         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
52120         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
52121
52122 2008-12-21  Bruno Haible  <bruno@clisp.org>
52123
52124         * modules/wcrtomb-tests: New file.
52125         * tests/test-wcrtomb.sh: New file.
52126         * tests/test-wcrtomb.c: New file.
52127
52128         New module 'wcrtomb'.
52129         * lib/wchar.in.h (wcrtomb): New declaration.
52130         * lib/wcrtomb.c: New file.
52131         * m4/wcrtomb.m4: New file.
52132         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
52133         HAVE_WCRTOMB.
52134         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
52135         HAVE_WCRTOMB.
52136         * modules/wcrtomb: New file.
52137         * doc/posix-functions/wcrtomb.texi: Mention the new module.
52138
52139 2008-12-21  Bruno Haible  <bruno@clisp.org>
52140
52141         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
52142         * modules/mbsrtowcs (Files): Likewise.
52143         * modules/wctob (Files): Likewise.
52144         * modules/c-strcase-tests (Files): Likewise.
52145         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
52146         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
52147         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
52148         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
52149         * modules/vasnprintf-posix-tests (Files): Likewise.
52150
52151 2008-12-21  William Pursell  <bill.pursell@gmail.com>
52152
52153         gitlog-to-changelog: pass all command-line arguments to git-log
52154         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
52155         it is sometimes convenient to filter the commits in various ways.
52156         gitlog-to-changelog only allows --since to specify a start date,
52157         but git-log itself supports many other filtering mechanisms.
52158         At the moment, I want to filter by branch name.  Rather than
52159         adding a --branch option to gitlog-to-changelog, it seems more
52160         flexible to simply pass all options directly to git-log and let
52161         git do the work.  Notice that this effectively makes --since a
52162         redundant option for gitlog-to-changelog, but removing it would
52163         require current usage to change since calls would then require
52164         an additional '--'.
52165
52166 2008-12-21  Bruno Haible  <bruno@clisp.org>
52167
52168         * modules/mbsnrtowcs-tests: New file.
52169         * tests/test-mbsnrtowcs1.sh: New file.
52170         * tests/test-mbsnrtowcs2.sh: New file.
52171         * tests/test-mbsnrtowcs3.sh: New file.
52172         * tests/test-mbsnrtowcs4.sh: New file.
52173         * tests/test-mbsnrtowcs.c: New file.
52174
52175         New module 'mbsnrtowcs'.
52176         * lib/wchar.in.h (mbsnrtowcs): New declaration.
52177         * lib/mbsnrtowcs.c: New file.
52178         * lib/mbsrtowcs-state.c: New file.
52179         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
52180         (internal_state): Remove variable.
52181         * m4/mbsnrtowcs.m4: New file.
52182         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
52183         compilation units.
52184         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
52185         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52186         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
52187         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52188         * modules/mbsnrtowcs: New file.
52189         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
52190         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
52191         portability problem.
52192
52193 2008-12-21  Bruno Haible  <bruno@clisp.org>
52194
52195         Work around mbsrtowcs bug.
52196         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
52197         (gl_FUNC_MBSRTOWCS): Invoke it.
52198         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52199         m4/locale-zh.m4.
52200         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
52201
52202 2008-12-21  Bruno Haible  <bruno@clisp.org>
52203
52204         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
52205
52206 2008-12-21  Bruno Haible  <bruno@clisp.org>
52207
52208         Update doc for AIX.
52209         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
52210         16-bit wchar_t type.
52211         * doc/posix-functions/btowc.texi: Likewise.
52212         * doc/posix-functions/fgetwc.texi: Likewise.
52213         * doc/posix-functions/fgetws.texi: Likewise.
52214         * doc/posix-functions/fputwc.texi: Likewise.
52215         * doc/posix-functions/fputws.texi: Likewise.
52216         * doc/posix-functions/fwide.texi: Likewise.
52217         * doc/posix-functions/fwprintf.texi: Likewise.
52218         * doc/posix-functions/fwscanf.texi: Likewise.
52219         * doc/posix-functions/getwchar.texi: Likewise.
52220         * doc/posix-functions/getwc.texi: Likewise.
52221         * doc/posix-functions/iswalnum.texi: Likewise.
52222         * doc/posix-functions/iswalpha.texi: Likewise.
52223         * doc/posix-functions/iswblank.texi: Likewise.
52224         * doc/posix-functions/iswcntrl.texi: Likewise.
52225         * doc/posix-functions/iswctype.texi: Likewise.
52226         * doc/posix-functions/iswdigit.texi: Likewise.
52227         * doc/posix-functions/iswgraph.texi: Likewise.
52228         * doc/posix-functions/iswlower.texi: Likewise.
52229         * doc/posix-functions/iswprint.texi: Likewise.
52230         * doc/posix-functions/iswpunct.texi: Likewise.
52231         * doc/posix-functions/iswspace.texi: Likewise.
52232         * doc/posix-functions/iswupper.texi: Likewise.
52233         * doc/posix-functions/iswxdigit.texi: Likewise.
52234         * doc/posix-functions/mbrtowc.texi: Likewise.
52235         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52236         * doc/posix-functions/mbstowcs.texi: Likewise.
52237         * doc/posix-functions/mbtowc.texi: Likewise.
52238         * doc/posix-functions/putwchar.texi: Likewise.
52239         * doc/posix-functions/putwc.texi: Likewise.
52240         * doc/posix-functions/swprintf.texi: Likewise.
52241         * doc/posix-functions/tolower.texi: Likewise.
52242         * doc/posix-functions/toupper.texi: Likewise.
52243         * doc/posix-functions/towctrans.texi: Likewise.
52244         * doc/posix-functions/ungetwc.texi: Likewise.
52245         * doc/posix-functions/vswprintf.texi: Likewise.
52246         * doc/posix-functions/wcrtomb.texi: Likewise.
52247         * doc/posix-functions/wcscat.texi: Likewise.
52248         * doc/posix-functions/wcschr.texi: Likewise.
52249         * doc/posix-functions/wcscmp.texi: Likewise.
52250         * doc/posix-functions/wcscoll.texi: Likewise.
52251         * doc/posix-functions/wcscpy.texi: Likewise.
52252         * doc/posix-functions/wcscspn.texi: Likewise.
52253         * doc/posix-functions/wcsftime.texi: Likewise.
52254         * doc/posix-functions/wcslen.texi: Likewise.
52255         * doc/posix-functions/wcsncat.texi: Likewise.
52256         * doc/posix-functions/wcsncmp.texi: Likewise.
52257         * doc/posix-functions/wcsncpy.texi: Likewise.
52258         * doc/posix-functions/wcspbrk.texi: Likewise.
52259         * doc/posix-functions/wcsrchr.texi: Likewise.
52260         * doc/posix-functions/wcsrtombs.texi: Likewise.
52261         * doc/posix-functions/wcsspn.texi: Likewise.
52262         * doc/posix-functions/wcsstr.texi: Likewise.
52263         * doc/posix-functions/wcstod.texi: Likewise.
52264         * doc/posix-functions/wcstof.texi: Likewise.
52265         * doc/posix-functions/wcstoimax.texi: Likewise.
52266         * doc/posix-functions/wcstok.texi: Likewise.
52267         * doc/posix-functions/wcstold.texi: Likewise.
52268         * doc/posix-functions/wcstoll.texi: Likewise.
52269         * doc/posix-functions/wcstol.texi: Likewise.
52270         * doc/posix-functions/wcstombs.texi: Likewise.
52271         * doc/posix-functions/wcstoull.texi: Likewise.
52272         * doc/posix-functions/wcstoul.texi: Likewise.
52273         * doc/posix-functions/wcstoumax.texi: Likewise.
52274         * doc/posix-functions/wcswidth.texi: Likewise.
52275         * doc/posix-functions/wcsxfrm.texi: Likewise.
52276         * doc/posix-functions/wctob.texi: Likewise.
52277         * doc/posix-functions/wctomb.texi: Likewise.
52278         * doc/posix-functions/wctrans.texi: Likewise.
52279         * doc/posix-functions/wctype.texi: Likewise.
52280         * doc/posix-functions/wcwidth.texi: Likewise.
52281         * doc/posix-functions/wmemchr.texi: Likewise.
52282         * doc/posix-functions/wmemcmp.texi: Likewise.
52283         * doc/posix-functions/wmemcpy.texi: Likewise.
52284         * doc/posix-functions/wmemmove.texi: Likewise.
52285         * doc/posix-functions/wmemset.texi: Likewise.
52286         * doc/posix-functions/wprintf.texi: Likewise.
52287         * doc/posix-functions/wscanf.texi: Likewise.
52288
52289 2008-12-21  Bruno Haible  <bruno@clisp.org>
52290
52291         Update doc for HP-UX 11.11.
52292         * doc/posix-functions/btowc.texi: Clarify that the function is missing
52293         in HP-UX version 11.00, not in all versions of HP-UX 11.
52294         * doc/posix-functions/fwide.texi: Likewise.
52295         * doc/posix-functions/fwprintf.texi: Likewise.
52296         * doc/posix-functions/fwscanf.texi: Likewise.
52297         * doc/posix-functions/inet_ntop.texi: Likewise.
52298         * doc/posix-functions/inet_pton.texi: Likewise.
52299         * doc/posix-functions/mbrlen.texi: Likewise.
52300         * doc/posix-functions/mbrtowc.texi: Likewise.
52301         * doc/posix-functions/mbsinit.texi: Likewise.
52302         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52303         * doc/posix-functions/swprintf.texi: Likewise.
52304         * doc/posix-functions/swscanf.texi: Likewise.
52305         * doc/posix-functions/towctrans.texi: Likewise.
52306         * doc/posix-functions/vfwprintf.texi: Likewise.
52307         * doc/posix-functions/vswprintf.texi: Likewise.
52308         * doc/posix-functions/vwprintf.texi: Likewise.
52309         * doc/posix-functions/wcrtomb.texi: Likewise.
52310         * doc/posix-functions/wcsrtombs.texi: Likewise.
52311         * doc/posix-functions/wcsstr.texi: Likewise.
52312         * doc/posix-functions/wctob.texi: Likewise.
52313         * doc/posix-functions/wctrans.texi: Likewise.
52314         * doc/posix-functions/wmemchr.texi: Likewise.
52315         * doc/posix-functions/wmemcmp.texi: Likewise.
52316         * doc/posix-functions/wmemcpy.texi: Likewise.
52317         * doc/posix-functions/wmemmove.texi: Likewise.
52318         * doc/posix-functions/wmemset.texi: Likewise.
52319         * doc/posix-functions/wprintf.texi: Likewise.
52320         * doc/posix-functions/wscanf.texi: Likewise.
52321
52322 2008-12-21  Bruno Haible  <bruno@clisp.org>
52323
52324         Work around a portability problem.
52325         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
52326         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
52327
52328 2008-12-20  Bruno Haible  <bruno@clisp.org>
52329
52330         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
52331         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
52332         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
52333         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
52334         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
52335
52336         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
52337         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
52338         set.
52339         (GNULIB_defined_mbstate_t): New macro.
52340         (mbsinit): Redefine if REPLACE_MBSINIT is set.
52341         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
52342         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
52343         reuses the system's mbrtowc function but works around the bugs.
52344         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
52345         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
52346         macros.
52347         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
52348         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
52349         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
52350         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
52351         REPLACE_MBSINIT if mbsinit needs to be overridden.
52352         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
52353         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52354         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
52355         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52356         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52357         m4/locale-zh.m4.
52358         (Depends): Add mbsinit.
52359         * modules/mbsinit (Depends): Add mbrtowc.
52360         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
52361
52362 2008-12-20  Bruno Haible  <bruno@clisp.org>
52363
52364         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
52365         so that there are no conversion errors on AIX.
52366         * tests/test-mbsrtowcs.c (main): LIkewise.
52367
52368 2008-12-20  Bruno Haible  <bruno@clisp.org>
52369
52370         Work around wctob bug on Solaris <= 9.
52371         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
52372         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
52373         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
52374         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
52375         * modules/wctob (Files): Add m4/locale-fr.m4.
52376         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
52377
52378 2008-12-20  Bruno Haible  <bruno@clisp.org>
52379
52380         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
52381         /dev/null.
52382         * tests/test-select-in.sh: Likewise.
52383         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52384
52385 2008-12-20  Bruno Haible  <bruno@clisp.org>
52386
52387         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
52388         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
52389         Cygwin 1.5.x.
52390
52391 2008-12-20  Bruno Haible  <bruno@clisp.org>
52392
52393         Ensure mbstate_t is defined on HP-UX 11.11.
52394         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
52395         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
52396         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
52397         AC_USE_SYSTEM_EXTENSIONS.
52398         * modules/fnmatch (Depends-on): Add extensions.
52399         * modules/mbrlen (Depends-on): Likewise.
52400         * modules/mbrtowc (Depends-on): Likewise.
52401         * modules/mbsinit (Depends-on): Likewise.
52402         * modules/mbsrtowcs (Depends-on): Likewise.
52403         * modules/mbswidth (Depends-on): Likewise.
52404         * modules/quotearg (Depends-on): Likewise.
52405         * modules/strftime (Depends-on): Likewise.
52406
52407 2008-12-20  Bruno Haible  <bruno@clisp.org>
52408
52409         Ensure wctob is declared on IRIX 6.5.
52410         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
52411         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
52412         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
52413         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
52414         of HAVE_WCTOB.
52415         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
52416         HAVE_WCTOB.
52417         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
52418
52419 2008-12-19  Bruno Haible  <bruno@clisp.org>
52420
52421         * modules/mbsrtowcs-tests: New file.
52422         * tests/test-mbsrtowcs1.sh: New file.
52423         * tests/test-mbsrtowcs2.sh: New file.
52424         * tests/test-mbsrtowcs3.sh: New file.
52425         * tests/test-mbsrtowcs4.sh: New file.
52426         * tests/test-mbsrtowcs.c: New file.
52427
52428         New module 'mbsrtowcs'.
52429         * lib/wchar.in.h (mbsrtowcs): New declaration.
52430         * lib/mbsrtowcs.c: New file.
52431         * m4/mbsrtowcs.m4: New file.
52432         * modules/mbsrtowcs: New file.
52433         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
52434         HAVE_MBSRTOWCS.
52435         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
52436         HAVE_MBSRTOWCS.
52437         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
52438
52439 2008-12-19  Bruno Haible  <bruno@clisp.org>
52440
52441         New module 'mbrlen'.
52442         * lib/wchar.in.h (mbrlen): New declaration.
52443         * lib/mbrlen.c: New file.
52444         * m4/mbrlen.m4: New file.
52445         * modules/mbrlen: New file.
52446         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
52447         HAVE_MBRLEN.
52448         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
52449         HAVE_MBRLEN.
52450         * doc/posix-functions/mbrlen.texi: Document the new module.
52451
52452 2008-12-19  Bruno Haible  <bruno@clisp.org>
52453
52454         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
52455         * modules/mbrtowc (Depends-on): Add verify.
52456         Suggested by Paul Eggert.
52457
52458 2008-12-18  Bruno Haible  <bruno@clisp.org>
52459
52460         * modules/mbsinit-tests: New file.
52461         * tests/test-mbsinit.sh: New file.
52462         * tests/test-mbsinit.c: New file.
52463
52464 2008-12-18  Bruno Haible  <bruno@clisp.org>
52465
52466         * modules/mbrtowc-tests: New file.
52467         * tests/test-mbrtowc1.sh: New file.
52468         * tests/test-mbrtowc2.sh: New file.
52469         * tests/test-mbrtowc3.sh: New file.
52470         * tests/test-mbrtowc4.sh: New file.
52471         * tests/test-mbrtowc.c: New file.
52472
52473         New module 'mbrtowc'.
52474         * lib/wchar.in.h (mbstate_t): Override when the system does not have
52475         mbsinit and mbrtowc.
52476         (mbrtowc): New declaration.
52477         * lib/mbrtowc.c: New file.
52478         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
52479         * modules/mbrtowc: New file.
52480         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
52481         HAVE_MBRTOWC.
52482         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
52483         HAVE_MBRTOWC.
52484         * doc/posix-functions/mbrtowc.texi: Document the new module.
52485
52486 2008-12-18  Bruno Haible  <bruno@clisp.org>
52487
52488         New module 'wctob'.
52489         * lib/wchar.in.h (wctob): New declaration.
52490         * lib/wctob.c: New file.
52491         * m4/wctob.m4: New file.
52492         * modules/wctob: New file.
52493         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
52494         HAVE_WCTOB.
52495         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
52496         * doc/posix-functions/wctob.texi: Document the new module.
52497
52498 2008-12-18  Bruno Haible  <bruno@clisp.org>
52499
52500         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
52501         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
52502
52503 2008-12-18  Simon Josefsson  <simon@josefsson.org>
52504
52505         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
52506         G. Christensen" <tgc@jupiterrise.com>.
52507
52508         * lib/flock.c: Need to include errno.h.  Reported by "Tom
52509         G. Christensen" <tgc@jupiterrise.com>.
52510
52511         * lib/flock.c: Need to include string.h.  Reported by "Tom
52512         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
52513         <ebb9@byu.net>.
52514
52515 2008-12-18  Bruno Haible  <bruno@clisp.org>
52516
52517         * m4/locale-ja.m4: New file, from GNU gettext.
52518
52519 2008-12-17  Bruno Haible  <bruno@clisp.org>
52520
52521         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
52522         Suggested by Eric Blake.
52523
52524 2008-12-17  Bruno Haible  <bruno@clisp.org>
52525
52526         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
52527
52528 2008-12-17  Bruno Haible  <bruno@clisp.org>
52529
52530         * lib/mbsinit.c: Include verify.h. Verify an assumption.
52531         * modules/mbsinit (Depends-on): Add verify.
52532         Suggested by Paul Eggert.
52533
52534 2008-12-17  Bruno Haible  <bruno@clisp.org>
52535
52536         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
52537         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
52538         gl_FUNC_MBRTOWC.
52539         * m4/mbiter.m4 (gl_MBITER): LIkewise.
52540         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
52541         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
52542         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
52543         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
52544         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
52545         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
52546         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
52547         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
52548         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
52549         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
52550         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
52551         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
52552         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
52553         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
52554         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52555         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
52556         * modules/trim (configure.ac): Likewise.
52557
52558 2008-12-17  Bruno Haible  <bruno@clisp.org>
52559
52560         * modules/btowc-tests: New file.
52561         * tests/test-btowc1.sh: New file.
52562         * tests/test-btowc2.sh: New file.
52563         * tests/test-btowc.c: New file.
52564
52565         New module 'btowc'.
52566         * lib/wchar.in.h (btowc): New declaration.
52567         * lib/btowc.c: New file.
52568         * m4/btowc.m4: New file.
52569         * modules/btowc: New file.
52570         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
52571         HAVE_BTOWC.
52572         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
52573         * doc/posix-functions/btowc.texi: Document the new module.
52574
52575 2008-12-17  Bruno Haible  <bruno@clisp.org>
52576
52577         New module 'mbsinit'.
52578         * lib/wchar.in.h (mbsinit): New declaration.
52579         * lib/mbsinit.c: New file.
52580         * m4/mbsinit.m4: New file.
52581         * modules/mbsinit: New file.
52582         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
52583         HAVE_MBSINIT.
52584         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
52585         HAVE_MBSINIT.
52586         * doc/posix-functions/mbsinit.texi: Document the new module.
52587
52588 2008-12-16  Bruno Haible  <bruno@clisp.org>
52589
52590         * lib/unistd.in.h: Add comment.
52591         * tests/test-environ.c: Don't include <stdlib.h>.
52592
52593 2008-12-16  Bruno Haible  <bruno@clisp.org>
52594
52595         * lib/parse-duration.h (parse_duration): Document return value
52596         convention.
52597         * lib/parse-duration.c: Include specification header first. Add
52598         comments.
52599         (_): Remove macro.
52600         (parse_year_month_day, parse_hour_minute_second): Move side effects
52601         outside of strchr call.
52602         (parse_non_iso8601): Move side effects outside of isspace call.
52603         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
52604         call.
52605
52606 2008-12-16  Bruno Haible  <bruno@clisp.org>
52607
52608         * tests/test-parse-duration.sh: Produce no output when the test
52609         succeeds.
52610
52611 2008-12-16  Bruno Haible  <bruno@clisp.org>
52612
52613         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
52614         expressions.
52615
52616 2008-12-15  Bruno Haible  <bruno@clisp.org>
52617
52618         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
52619         * doc/glibc-functions/flistxattr.texi: Likewise.
52620         * doc/glibc-functions/fopencookie.texi: Likewise.
52621         * doc/glibc-functions/fremovexattr.texi: Likewise.
52622         * doc/glibc-functions/fsetxattr.texi: Likewise.
52623         * doc/glibc-functions/getxattr.texi: Likewise.
52624         * doc/glibc-functions/lgetxattr.texi: Likewise.
52625         * doc/glibc-functions/listxattr.texi: Likewise.
52626         * doc/glibc-functions/llistxattr.texi: Likewise.
52627         * doc/glibc-functions/lremovexattr.texi: Likewise.
52628         * doc/glibc-functions/lsetxattr.texi: Likewise.
52629         * doc/glibc-functions/removexattr.texi: Likewise.
52630         * doc/glibc-functions/setxattr.texi: Likewise.
52631         * doc/posix-functions/open_memstream.texi: Likewise.
52632
52633 2008-12-15  Eric Blake  <ebb9@byu.net>
52634
52635         Update doc for cygwin 1.7.
52636         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
52637         functions.
52638         * doc/posix-functions/fchmodat.texi: Likewise.
52639         * doc/posix-functions/fchownat.texi: Likewise.
52640         * doc/posix-functions/fdopendir.texi: Likewise.
52641         * doc/posix-functions/fmemopen.texi: Likewise.
52642         * doc/posix-functions/freeaddrinfo.texi: Likewise.
52643         * doc/posix-functions/fstatat.texi: Likewise.
52644         * doc/posix-functions/futimens.texi: Likewise.
52645         * doc/posix-functions/gai_strerror.texi: Likewise.
52646         * doc/posix-functions/getaddrinfo.texi: Likewise.
52647         * doc/posix-functions/getnameinfo.texi: Likewise.
52648         * doc/posix-functions/if_freenameindex.texi: Likewise.
52649         * doc/posix-functions/if_indextoname.texi: Likewise.
52650         * doc/posix-functions/if_nameindex.texi: Likewise.
52651         * doc/posix-functions/if_nametoindex.texi: Likewise.
52652         * doc/posix-functions/insque.texi: Likewise.
52653         * doc/posix-functions/linkat.texi: Likewise.
52654         * doc/posix-functions/llrint.texi: Likewise.
52655         * doc/posix-functions/llrintf.texi: Likewise.
52656         * doc/posix-functions/llrintl.texi: Likewise.
52657         * doc/posix-functions/lockf.texi: Likewise.
52658         * doc/posix-functions/lrintl.texi: Likewise.
52659         * doc/posix-functions/mkdirat.texi: Likewise.
52660         * doc/posix-functions/mkfifoat.texi: Likewise.
52661         * doc/posix-functions/mknodat.texi: Likewise.
52662         * doc/posix-functions/mq_close.texi: Likewise.
52663         * doc/posix-functions/mq_getattr.texi: Likewise.
52664         * doc/posix-functions/mq_notify.texi: Likewise.
52665         * doc/posix-functions/mq_open.texi: Likewise.
52666         * doc/posix-functions/mq_receive.texi: Likewise.
52667         * doc/posix-functions/mq_send.texi: Likewise.
52668         * doc/posix-functions/mq_setattr.texi: Likewise.
52669         * doc/posix-functions/mq_timedreceive.texi: Likewise.
52670         * doc/posix-functions/mq_timedsend.texi: Likewise.
52671         * doc/posix-functions/mq_unlink.texi: Likewise.
52672         * doc/posix-functions/open_memstream.texi: Likewise.
52673         * doc/posix-functions/openat.texi: Likewise.
52674         * doc/posix-functions/posix_fadvise.texi: Likewise.
52675         * doc/posix-functions/posix_fallocate.texi: Likewise.
52676         * doc/posix-functions/posix_madvise.texi: Likewise.
52677         * doc/posix-functions/posix_memalign.texi: Likewise.
52678         * doc/posix-functions/posix_openpt.texi: Likewise.
52679         * doc/posix-functions/readlinkat.texi: Likewise.
52680         * doc/posix-functions/remque.texi: Likewise.
52681         * doc/posix-functions/renameat.texi: Likewise.
52682         * doc/posix-functions/rintl.texi: Likewise.
52683         * doc/posix-functions/sem_unlink.texi: Likewise.
52684         * doc/posix-functions/shm_open.texi: Likewise.
52685         * doc/posix-functions/shm_unlink.texi: Likewise.
52686         * doc/posix-functions/signgam.texi: Likewise.
52687         * doc/posix-functions/sigset.texi: Likewise.
52688         * doc/posix-functions/stpcpy.texi: Likewise.
52689         * doc/posix-functions/stpncpy.texi: Likewise.
52690         * doc/posix-functions/strerror.texi: Likewise.
52691         * doc/posix-functions/strtod.texi: Likewise.
52692         * doc/posix-functions/symlinkat.texi: Likewise.
52693         * doc/posix-functions/unlinkat.texi: Likewise.
52694         * doc/posix-functions/utimensat.texi: Likewise.
52695         * doc/glibc-functions/bindresvport.texi: Likewise.
52696         * doc/glibc-functions/dn_expand.texi: Likewise.
52697         * doc/glibc-functions/exp10.texi: Likewise.
52698         * doc/glibc-functions/exp10f.texi: Likewise.
52699         * doc/glibc-functions/fgetxattr.texi: Likewise.
52700         * doc/glibc-functions/flistxattr.texi: Likewise.
52701         * doc/glibc-functions/fopencookie.texi: Likewise.
52702         * doc/glibc-functions/freeifaddrs.texi: Likewise.
52703         * doc/glibc-functions/fremovexattr.texi: Likewise.
52704         * doc/glibc-functions/fsetxattr.texi: Likewise.
52705         * doc/glibc-functions/getifaddrs.texi: Likewise.
52706         * doc/glibc-functions/getxattr.texi: Likewise.
52707         * doc/glibc-functions/lgetxattr.texi: Likewise.
52708         * doc/glibc-functions/listxattr.texi: Likewise.
52709         * doc/glibc-functions/llistxattr.texi: Likewise.
52710         * doc/glibc-functions/lremovexattr.texi: Likewise.
52711         * doc/glibc-functions/lsetxattr.texi: Likewise.
52712         * doc/glibc-functions/pow10.texi: Likewise.
52713         * doc/glibc-functions/pow10f.texi: Likewise.
52714         * doc/glibc-functions/rcmd_af.texi: Likewise.
52715         * doc/glibc-functions/removexattr.texi: Likewise.
52716         * doc/glibc-functions/res_init.texi: Likewise.
52717         * doc/glibc-functions/res_mkquery.texi: Likewise.
52718         * doc/glibc-functions/res_query.texi: Likewise.
52719         * doc/glibc-functions/res_querydomain.texi: Likewise.
52720         * doc/glibc-functions/res_send.texi: Likewise.
52721         * doc/glibc-functions/rresvport_af.texi: Likewise.
52722         * doc/glibc-functions/setxattr.texi: Likewise.
52723         * doc/glibc-functions/strcasestr.texi: Likewise.
52724
52725 2008-12-15  Bruno Haible  <bruno@clisp.org>
52726
52727         Fix compilation error on OSF/1 4.0.
52728         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
52729         <sys/time.h>, simply delegate to the system header.
52730         Reported by Daniel Richard G. <oss@teragram.com>.
52731
52732 2008-12-15  Bruno Haible  <bruno@clisp.org>
52733
52734         * doc/posix-functions/openat.texi: Mention the 'openat' module.
52735         * doc/posix-functions/fchmodat.texi: Likewise.
52736         * doc/posix-functions/fchownat.texi: Likewise.
52737         * doc/posix-functions/fdopendir.texi: Likewise.
52738         * doc/posix-functions/fstatat.texi: Likewise.
52739         * doc/posix-functions/mkdirat.texi: Likewise.
52740         * doc/posix-functions/unlinkat.texi: Likewise.
52741
52742 2008-12-14  Bruno Haible  <bruno@clisp.org>
52743
52744         Update doc for POSIX:2008.
52745         * doc/posix-functions/faccessat.texi: New file.
52746         * doc/posix-functions/fchmodat.texi: New file.
52747         * doc/posix-functions/fchownat.texi: New file.
52748         * doc/posix-functions/fdopendir.texi: New file.
52749         * doc/posix-functions/fstatat.texi: New file.
52750         * doc/posix-functions/futimens.texi: New file.
52751         * doc/posix-functions/linkat.texi: New file.
52752         * doc/posix-functions/mkdirat.texi: New file.
52753         * doc/posix-functions/mkfifoat.texi: New file.
52754         * doc/posix-functions/mknodat.texi: New file.
52755         * doc/posix-functions/open_wmemstream.texi: New file.
52756         * doc/posix-functions/openat.texi: New file.
52757         * doc/posix-functions/psiginfo.texi: New file.
52758         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
52759         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
52760         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
52761         * doc/posix-functions/readlinkat.texi: New file.
52762         * doc/posix-functions/renameat.texi: New file.
52763         * doc/posix-functions/strerror_l.texi: New file.
52764         * doc/posix-functions/symlinkat.texi: New file.
52765         * doc/posix-functions/unlinkat.texi: New file.
52766         * doc/posix-functions/utimensat.texi: New file.
52767         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52768
52769 2008-12-14  Bruno Haible  <bruno@clisp.org>
52770
52771         Update doc for POSIX:2008.
52772         * doc/posix-functions/alphasort.texi: Renamed from
52773         doc/glibc-functions/alphasort.texi.
52774         * doc/posix-functions/dirfd.texi: Renamed from
52775         doc/glibc-functions/dirfd.texi.
52776         * doc/posix-functions/dprintf.texi: Renamed from
52777         doc/glibc-functions/dprintf.texi.
52778         * doc/posix-functions/duplocale.texi: Renamed from
52779         doc/glibc-functions/duplocale.texi.
52780         * doc/posix-functions/fexecve.texi: Renamed from
52781         doc/glibc-functions/fexecve.texi.
52782         * doc/posix-functions/fmemopen.texi: Renamed from
52783         doc/glibc-functions/fmemopen.texi.
52784         * doc/posix-functions/freelocale.texi: Renamed from
52785         doc/glibc-functions/freelocale.texi.
52786         * doc/posix-functions/getdate_err.texi: Renamed from
52787         doc/glibc-functions/getdate_err.texi.
52788         * doc/posix-functions/isalnum_l.texi: Renamed from
52789         doc/glibc-functions/isalnum_l.texi.
52790         * doc/posix-functions/isalpha_l.texi: Renamed from
52791         doc/glibc-functions/isalpha_l.texi.
52792         * doc/posix-functions/isblank_l.texi: Renamed from
52793         doc/glibc-functions/isblank_l.texi.
52794         * doc/posix-functions/iscntrl_l.texi: Renamed from
52795         doc/glibc-functions/iscntrl_l.texi.
52796         * doc/posix-functions/isdigit_l.texi: Renamed from
52797         doc/glibc-functions/isdigit_l.texi.
52798         * doc/posix-functions/isgraph_l.texi: Renamed from
52799         doc/glibc-functions/isgraph_l.texi.
52800         * doc/posix-functions/islower_l.texi: Renamed from
52801         doc/glibc-functions/islower_l.texi.
52802         * doc/posix-functions/isprint_l.texi: Renamed from
52803         doc/glibc-functions/isprint_l.texi.
52804         * doc/posix-functions/ispunct_l.texi: Renamed from
52805         doc/glibc-functions/ispunct_l.texi.
52806         * doc/posix-functions/isspace_l.texi: Renamed from
52807         doc/glibc-functions/isspace_l.texi.
52808         * doc/posix-functions/isupper_l.texi: Renamed from
52809         doc/glibc-functions/isupper_l.texi.
52810         * doc/posix-functions/iswalnum_l.texi: Renamed from
52811         doc/glibc-functions/iswalnum_l.texi.
52812         * doc/posix-functions/iswalpha_l.texi: Renamed from
52813         doc/glibc-functions/iswalpha_l.texi.
52814         * doc/posix-functions/iswblank_l.texi: Renamed from
52815         doc/glibc-functions/iswblank_l.texi.
52816         * doc/posix-functions/iswcntrl_l.texi: Renamed from
52817         doc/glibc-functions/iswcntrl_l.texi.
52818         * doc/posix-functions/iswctype_l.texi: Renamed from
52819         doc/glibc-functions/iswctype_l.texi.
52820         * doc/posix-functions/iswdigit_l.texi: Renamed from
52821         doc/glibc-functions/iswdigit_l.texi.
52822         * doc/posix-functions/iswgraph_l.texi: Renamed from
52823         doc/glibc-functions/iswgraph_l.texi.
52824         * doc/posix-functions/iswlower_l.texi: Renamed from
52825         doc/glibc-functions/iswlower_l.texi.
52826         * doc/posix-functions/iswprint_l.texi: Renamed from
52827         doc/glibc-functions/iswprint_l.texi.
52828         * doc/posix-functions/iswpunct_l.texi: Renamed from
52829         doc/glibc-functions/iswpunct_l.texi.
52830         * doc/posix-functions/iswspace_l.texi: Renamed from
52831         doc/glibc-functions/iswspace_l.texi.
52832         * doc/posix-functions/iswupper_l.texi: Renamed from
52833         doc/glibc-functions/iswupper_l.texi.
52834         * doc/posix-functions/iswxdigit_l.texi: Renamed from
52835         doc/glibc-functions/iswxdigit_l.texi.
52836         * doc/posix-functions/isxdigit_l.texi: Renamed from
52837         doc/glibc-functions/isxdigit_l.texi.
52838         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
52839         doc/glibc-functions/mbsnrtowcs.texi.
52840         * doc/posix-functions/mkdtemp.texi: Renamed from
52841         doc/glibc-functions/mkdtemp.texi.
52842         * doc/posix-functions/newlocale.texi: Renamed from
52843         doc/glibc-functions/newlocale.texi.
52844         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
52845         doc/glibc-functions/nl_langinfo_l.texi.
52846         * doc/posix-functions/open_memstream.texi: Renamed from
52847         doc/glibc-functions/open_memstream.texi.
52848         * doc/posix-functions/opterr.texi: Renamed from
52849         doc/glibc-functions/opterr.texi.
52850         * doc/posix-functions/optind.texi: Renamed from
52851         doc/glibc-functions/optind.texi.
52852         * doc/posix-functions/optopt.texi: Renamed from
52853         doc/glibc-functions/optopt.texi.
52854         * doc/posix-functions/psignal.texi: Renamed from
52855         doc/glibc-functions/psignal.texi.
52856         * doc/posix-functions/scandir.texi: Renamed from
52857         doc/glibc-functions/scandir.texi.
52858         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
52859         doc/glibc-functions/sched_get_priority_min.texi.
52860         * doc/posix-functions/signgam.texi: Renamed from
52861         doc/glibc-functions/signgam.texi.
52862         * doc/posix-functions/stpcpy.texi: Renamed from
52863         doc/glibc-functions/stpcpy.texi.
52864         * doc/posix-functions/stpncpy.texi: Renamed from
52865         doc/glibc-functions/stpncpy.texi.
52866         * doc/posix-functions/strcasecmp_l.texi: Renamed from
52867         doc/glibc-functions/strcasecmp_l.texi.
52868         * doc/posix-functions/strcoll_l.texi: Renamed from
52869         doc/glibc-functions/strcoll_l.texi.
52870         * doc/posix-functions/strfmon_l.texi: Renamed from
52871         doc/glibc-functions/strfmon_l.texi.
52872         * doc/posix-functions/strftime_l.texi: Renamed from
52873         doc/glibc-functions/strftime_l.texi.
52874         * doc/posix-functions/strncasecmp_l.texi: Renamed from
52875         doc/glibc-functions/strncasecmp_l.texi.
52876         * doc/posix-functions/strndup.texi: Renamed from
52877         doc/glibc-functions/strndup.texi.
52878         * doc/posix-functions/strnlen.texi: Renamed from
52879         doc/glibc-functions/strnlen.texi.
52880         * doc/posix-functions/strsignal.texi: Renamed from
52881         doc/glibc-functions/strsignal.texi.
52882         * doc/posix-functions/strxfrm_l.texi: Renamed from
52883         doc/glibc-functions/strxfrm_l.texi.
52884         * doc/posix-functions/timer_gettime.texi: Renamed from
52885         doc/glibc-functions/timer_gettime.texi.
52886         * doc/posix-functions/tolower_l.texi: Renamed from
52887         doc/glibc-functions/tolower_l.texi.
52888         * doc/posix-functions/toupper_l.texi: Renamed from
52889         doc/glibc-functions/toupper_l.texi.
52890         * doc/posix-functions/towctrans_l.texi: Renamed from
52891         doc/glibc-functions/towctrans_l.texi.
52892         * doc/posix-functions/towlower_l.texi: Renamed from
52893         doc/glibc-functions/towlower_l.texi.
52894         * doc/posix-functions/towupper_l.texi: Renamed from
52895         doc/glibc-functions/towupper_l.texi.
52896         * doc/posix-functions/uselocale.texi: Renamed from
52897         doc/glibc-functions/uselocale.texi.
52898         * doc/posix-functions/vdprintf.texi: Renamed from
52899         doc/glibc-functions/vdprintf.texi.
52900         * doc/posix-functions/wcpcpy.texi:
52901         Renamed from doc/glibc-functions/wcpcpy.texi.
52902         * doc/posix-functions/wcpncpy.texi: Renamed from
52903         doc/glibc-functions/wcpncpy.texi.
52904         * doc/posix-functions/wcscasecmp.texi: Renamed from
52905         doc/glibc-functions/wcscasecmp.texi.
52906         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
52907         doc/glibc-functions/wcscasecmp_l.texi.
52908         * doc/posix-functions/wcscoll_l.texi: Renamed from
52909         doc/glibc-functions/wcscoll_l.texi.
52910         * doc/posix-functions/wcsdup.texi: Renamed from
52911         doc/glibc-functions/wcsdup.texi.
52912         * doc/posix-functions/wcsncasecmp.texi: Renamed from
52913         doc/glibc-functions/wcsncasecmp.texi.
52914         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
52915         doc/glibc-functions/wcsncasecmp_l.texi.
52916         * doc/posix-functions/wcsnlen.texi: Renamed from
52917         doc/glibc-functions/wcsnlen.texi.
52918         * doc/posix-functions/wcsnrtombs.texi: Renamed from
52919         doc/glibc-functions/wcsnrtombs.texi.
52920         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
52921         doc/glibc-functions/wcsxfrm_l.texi.
52922         * doc/posix-functions/wctrans_l.texi: Renamed from
52923         doc/glibc-functions/wctrans_l.texi.
52924         * doc/posix-functions/wctype_l.texi: Renamed from
52925         doc/glibc-functions/wctype_l.texi.
52926         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52927         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
52928         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
52929         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
52930         these subsections.
52931         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
52932         Remove sections.
52933
52934 2008-12-14  Bruno Haible  <bruno@clisp.org>
52935
52936         Update doc for POSIX:2008.
52937         * doc/posix-functions/*.texi: Update URL of POSIX specification.
52938
52939 2008-12-14  Bruno Haible  <bruno@clisp.org>
52940
52941         Update doc for POSIX:2008.
52942         * doc/pastposix-functions/bcmp.texi: Renamed from
52943         doc/posix-functions/bcmp.texi.
52944         * doc/pastposix-functions/bcopy.texi: Renamed from
52945         doc/posix-functions/bcopy.texi.
52946         * doc/pastposix-functions/bsd_signal.texi: Renamed from
52947         doc/posix-functions/bsd_signal.texi.
52948         * doc/pastposix-functions/bzero.texi: Renamed from
52949         doc/posix-functions/bzero.texi.
52950         * doc/pastposix-functions/ecvt.texi: Renamed from
52951         doc/posix-functions/ecvt.texi.
52952         * doc/pastposix-functions/fcvt.texi: Renamed from
52953         doc/posix-functions/fcvt.texi.
52954         * doc/pastposix-functions/ftime.texi: Renamed from
52955         doc/posix-functions/ftime.texi.
52956         * doc/pastposix-functions/gcvt.texi: Renamed from
52957         doc/posix-functions/gcvt.texi.
52958         * doc/pastposix-functions/getcontext.texi: Renamed from
52959         doc/posix-functions/getcontext.texi.
52960         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
52961         doc/posix-functions/gethostbyaddr.texi.
52962         * doc/pastposix-functions/gethostbyname.texi: Renamed from
52963         doc/posix-functions/gethostbyname.texi.
52964         * doc/pastposix-functions/getwd.texi: Renamed from
52965         doc/posix-functions/getwd.texi.
52966         * doc/pastposix-functions/h_errno.texi: Renamed from
52967         doc/posix-functions/h_errno.texi.
52968         * doc/pastposix-functions/index.texi: Renamed from
52969         doc/posix-functions/index.texi.
52970         * doc/pastposix-functions/makecontext.texi: Renamed from
52971         doc/posix-functions/makecontext.texi.
52972         * doc/pastposix-functions/mktemp.texi: Renamed from
52973         doc/posix-functions/mktemp.texi.
52974         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
52975         doc/posix-functions/pthread_attr_getstackaddr.texi.
52976         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
52977         doc/posix-functions/pthread_attr_setstackaddr.texi.
52978         * doc/pastposix-functions/rindex.texi: Renamed from
52979         doc/posix-functions/rindex.texi.
52980         * doc/pastposix-functions/scalb.texi: Renamed from
52981         doc/posix-functions/scalb.texi.
52982         * doc/pastposix-functions/setcontext.texi: Renamed from
52983         doc/posix-functions/setcontext.texi.
52984         * doc/pastposix-functions/swapcontext.texi: Renamed from
52985         doc/posix-functions/swapcontext.texi.
52986         * doc/pastposix-functions/ualarm.texi: Renamed from
52987         doc/posix-functions/ualarm.texi.
52988         * doc/pastposix-functions/usleep.texi: Renamed from
52989         doc/posix-functions/usleep.texi.
52990         * doc/pastposix-functions/vfork.texi: Renamed from
52991         doc/posix-functions/vfork.texi.
52992         * doc/pastposix-functions/wcswcs.texi: Renamed from
52993         doc/posix-functions/wcswcs.texi.
52994         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
52995         (Function Substitutes): Update.
52996
52997 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52998
52999         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
53000         m4/strerror.m4.
53001
53002 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53003             Bruno Haible  <bruno@clisp.org>
53004
53005         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
53006
53007 2008-12-13  Bruno Haible  <bruno@clisp.org>
53008
53009         * modules/strtoull (Depends-on): Remove unistd.
53010
53011 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53012
53013         * modules/strtoull (Depends-on): Add stdlib.
53014
53015 2008-12-11  Simon Josefsson  <simon@josefsson.org>
53016
53017         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
53018
53019 2008-12-10  Jim Meyering  <meyering@redhat.com>
53020
53021         gl_ASSERT: don't say assertions are disabled when they're not
53022         * m4/assert.m4 (gl_ASSERT): Do not make configure report
53023         "checking whether to enable assertions... no", when they are in
53024         fact enabled.  This is solely a bug in the output of configure.
53025         In spite of saying "no", NDEBUG was not defined in that case.
53026         Also, as noted by Eric Blake, leave assertions enabled upon
53027         --enable-assert=INVALID.
53028
53029 2008-12-10  Bruno Haible  <bruno@clisp.org>
53030
53031         Change MODULES.html to refer to POSIX:2008 where possible.
53032         * MODULES.html.sh (POSIX2008_URL): New variable.
53033         (posix_headers): Remove sys/timeb, ucontext.
53034         (posix2001_headers): New variable.
53035         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
53036         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
53037         index, makecontext, mktemp, pthread_attr_getstackaddr,
53038         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
53039         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
53040         (posix2001_functions): New variable.
53041         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
53042         otherwise.
53043
53044 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53045
53046         add missing include to parse-duration.c
53047         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
53048         * modules/parse-duration (Depends-on): Add xalloc.
53049
53050         fix sed script reading maint.mk
53051         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
53052         (syntax-check-rules): Use it.
53053
53054 2008-12-09  Bruno Haible  <bruno@clisp.org>
53055
53056         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
53057         MacOS X 10.4/PowerPC.
53058         Reported by Simon Josefsson.
53059
53060 2008-12-08  Jim Meyering  <meyering@redhat.com>
53061
53062         work around mingw's lack of some S_IF definitions
53063         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
53064         Reported by Simon Josefsson.
53065
53066 2008-12-08  Bruno Haible  <bruno@clisp.org>
53067
53068         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
53069         applied to variables. Needed on MacOS X 10.4/PowerPC.
53070         Reported by Simon Josefsson.
53071
53072 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
53073         and Eric Blake  <ebb9@byu.net>
53074
53075         assert: honor --enable-assert
53076         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
53077         order to honor --enable-assert, rather than treating it as a
53078         synonym for --disable-assert.
53079
53080 2008-12-08  Jim Meyering  <meyering@redhat.com>
53081
53082         * lib/posixtm.c: Remove now-useless declaration of mktime.
53083
53084         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
53085
53086 2008-12-07  Bruno Haible  <bruno@clisp.org>
53087
53088         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
53089         test_once): Mark functions as static.
53090         * tests/test-tls.c (test_tls): Likewise.
53091
53092 2008-12-07  Bruno Haible  <bruno@clisp.org>
53093
53094         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
53095         iconv_register_autodetect.
53096
53097 2008-12-07  Jim Meyering  <meyering@redhat.com>
53098
53099         posixtm.c: avoid a warning
53100         * lib/posixtm.c (posixtime): Don't initialize tm0.
53101         It's no longer needed to placate gcc4's -Wuninitialized,
53102         and the attempt to placate would elicit a new warning.
53103
53104         unicodeio.c: mark unused parameters
53105         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53106         (fallback_failure_callback): Likewise.
53107
53108 2008-12-07  Bruno Haible  <bruno@clisp.org>
53109
53110         * gnulib-tool (func_create_testdir): When building the tests
53111         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
53112         Reported by Simon Josefsson.
53113
53114 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53115
53116         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
53117
53118 2008-12-06  Bruno Haible  <bruno@clisp.org>
53119
53120         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
53121         Suggested by Eric Blake.
53122
53123 2008-12-06  Bruno Haible  <bruno@clisp.org>
53124
53125         Fix a c-stack test failure on MacOS X.
53126         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
53127         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
53128         handler for SIGBUS as well.
53129         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
53130         install a signal handler for SIGBUS as well.
53131         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
53132
53133 2008-12-06  Bruno Haible  <bruno@clisp.org>
53134
53135         Advocacy documentation.
53136         * doc/gnulib-intro.texi (Benefits): New section.
53137         * doc/gnulib.texi: Update.
53138
53139 2008-12-06  Bruno Haible  <bruno@clisp.org>
53140
53141         Document the 'manywarnings' module.
53142         * doc/manywarnings.texi: New file.
53143         * doc/gnulib.texi: Include it.
53144
53145 2008-12-05  Eric Blake  <ebb9@byu.net>
53146
53147         tests: silence some gcc warnings
53148         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
53149         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
53150         type mismatches.
53151
53152 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53153             Bruno Haible  <bruno@clisp.org>
53154
53155         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
53156
53157 2008-11-29  Jim Meyering  <meyering@redhat.com>
53158
53159         unicodeio.c: mark unused parameters
53160         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53161         (fallback_failure_callback): Likewise.
53162
53163         fts: fix a thinko
53164         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
53165         (set_stat_type): Return S_IF*-valued "type" directly.
53166         Prompted by James Youngman's spotting a related bug.
53167         Confirmed by further testing through find.
53168
53169         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
53170         * lib/fts.c (D_TYPE): Define.
53171         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
53172         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
53173         (s_ifmt_shift_bits): New function.
53174         (set_stat_type): New function.
53175         (fts_build): When not calling fts_stat, call set_stat_type
53176         to propagate dirent.d_type info to fts_read caller.
53177         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
53178         fts_statp->st_mode type information may be valid.
53179
53180 2008-11-28  Simon Josefsson  <simon@josefsson.org>
53181
53182         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
53183         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
53184         <sds@gnu.org>.
53185
53186 2008-11-20  Bruno Haible  <bruno@clisp.org>
53187
53188         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
53189         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
53190         INCLUDE_NEXT.
53191         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
53192         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
53193         * modules/math (Makefile.am): Substitute
53194         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
53195         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53196
53197 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
53198             Bruno Haible  <bruno@clisp.org>
53199
53200         * lib/stdint.in.h: Define all type macros so that their expansion is
53201         a single typedef'ed token. Fixes a compilation failure in Boost which
53202         does "using ::int8_t;".
53203
53204 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53205
53206         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
53207         gl_MANYWARN_ALL_GCC.
53208         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
53209         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
53210         * modules/manywarnings: New file.
53211         * MODULES.html.sh: Mention manywarnings module.
53212
53213 2008-11-18  Bruno Haible  <bruno@clisp.org>
53214
53215         * doc/gnulib-tool.texi (Unit tests): New section.
53216
53217 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53218
53219         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
53220         paths like 'lib/po/foo.po'.
53221
53222 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53223
53224         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
53225         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
53226
53227 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53228
53229         * m4/warnings.m4: Use CPPFLAGS to really check whether the
53230         parameter works.
53231
53232 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53233
53234         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
53235
53236 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53237
53238         * modules/parse-duration-tests: New file.
53239         * tests/test-parse-duration.sh: New file.
53240         * tests/test-parse-duration.c: New file.
53241
53242         New module 'parse-duration'.
53243         * lib/parse-duration.h: New file.
53244         * lib/parse-duration.c: New file.
53245         * modules/parse-duration: New file.
53246
53247 2008-11-17  Bruno Haible  <bruno@clisp.org>
53248
53249         * tests/test-select-out.sh: Comment out the first pipe test.
53250         Reported by Simon Josefsson.
53251
53252 2008-11-17  Bruno Haible  <bruno@clisp.org>
53253
53254         * modules/getaddrinfo (Depends-on): Add servent, hostent.
53255         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
53256         gl_HOSTENT.
53257
53258 2008-11-17  Bruno Haible  <bruno@clisp.org>
53259
53260         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
53261         -lnetwork and -lnet. Needed for Haiku and BeOS.
53262
53263 2008-11-16  Bruno Haible  <bruno@clisp.org>
53264
53265         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
53266
53267 2008-11-16  Bruno Haible  <bruno@clisp.org>
53268
53269         Avoid test failure on Haiku.
53270         * tests/test-fsync.c: Include <errno.h>.
53271         (main): Don't require that fsync (0) fails.
53272
53273 2008-11-15  Bruno Haible  <bruno@clisp.org>
53274
53275         New module 'hostent'.
53276         * modules/hostent: New file.
53277         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
53278
53279 2008-11-15  Bruno Haible  <bruno@clisp.org>
53280
53281         New module 'servent'.
53282         * modules/servent: New file.
53283         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
53284
53285 2008-11-15  Bruno Haible  <bruno@clisp.org>
53286
53287         Avoid generating same test program with two different rules.
53288         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
53289         test-frexp to test-frexp-nolibm.
53290         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
53291         test-frexpl to test-frexpl-nolibm.
53292
53293 2008-11-15  Bruno Haible  <bruno@clisp.org>
53294
53295         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
53296         $(FREXPL_LIBM).
53297
53298 2008-11-15  Bruno Haible  <bruno@clisp.org>
53299
53300         * lib/netdb.in.h: Activate the definitions also when the system's
53301         <netdb.h> has 'struct addrinfo'.
53302         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
53303         EAI_OVERFLOW or AI_NUMERICSERV.
53304         * doc/posix-headers/netdb.texi: Document the problem.
53305
53306 2008-11-15  Bruno Haible  <bruno@clisp.org>
53307
53308         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
53309
53310         Make the 'sched' module work on platforms where <sched.h> exists but
53311         is incomplete (such as Haiku).
53312         * lib/sched.in.h; Include the system's <sched.h> if it exists.
53313         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
53314         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
53315         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
53316         HAVE_STRUCT_SCHED_PARAM.
53317         * modules/sched (Depends-on): Add include_next.
53318         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
53319         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
53320         * doc/posix-headers/sched.texi: Document the issue.
53321
53322 2008-11-13  Jim Meyering  <meyering@redhat.com>
53323
53324         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
53325         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
53326         test would fail due to the difference in the Report bugs to ...
53327         line.  The expected address is empty, "<>", while the actual
53328         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
53329
53330 2008-11-12  Bruno Haible  <bruno@clisp.org>
53331
53332         lstat: don't compile lstat.c on systems lacking lstat
53333         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
53334         which don't have lstat; this is handled by lib/sys_stat.in.h already.
53335         Reported by Daniel P. Berrange via Jim Meyering.
53336
53337 2008-11-12  Jim Meyering  <meyering@redhat.com>
53338
53339         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
53340
53341 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53342
53343         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
53344         instead.
53345
53346 2008-11-12  Bruno Haible  <bruno@clisp.org>
53347
53348         * lib/unicodeio.c: Include unistr.h.
53349         (utf8_wctomb): Remove function.
53350         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
53351
53352 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53353
53354         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
53355         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
53356         <bruno@clisp.org>.
53357         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
53358
53359 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53360
53361         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
53362         * doc/gnulib.texi: Add section for warnings.
53363
53364 2008-11-11  Bruno Haible  <bruno@clisp.org>
53365
53366         * lib/sockets.h: Add a comment.
53367
53368 2008-11-11  Karl Berry  <karl@gnu.org>
53369
53370         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
53371
53372 2008-11-11  Eric Blake  <ebb9@byu.net>
53373
53374         fdl.texi: avoid git symlinks
53375         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
53376
53377 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53378
53379         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
53380
53381 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53382
53383         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
53384         (gl_WARN_ADD): Substitute $2 if literal.
53385
53386 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53387
53388         * m4/warning.m4: Remove.
53389
53390 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53391
53392         * m4/warnings.m4: Almost complete rewrite. :-)
53393
53394 2008-11-10  Simon Josefsson  <simon@josefsson.org>
53395
53396         * modules/warnings: New module.
53397         * m4/warnings.m4: New file.
53398         * MODULES.html.sh: Mention warnings module.
53399         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
53400         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53401
53402 2008-11-10  Eric Blake  <ebb9@byu.net>
53403
53404         fdl.texi: make a symlink to the latest version
53405         * doc/standards.texi: Revert today's earlier change.
53406         * doc/fdl-1.2.texi: Rename from old fdl.texi...
53407         * doc/fdl.texi: ...and replace this with a symlink to the newer
53408         fdl-1.3.texi.
53409
53410 2008-11-10  Bruno Haible  <bruno@clisp.org>
53411
53412         * tests/test-select-fd.c (main): Accept the result file name as fourth
53413         argument.
53414         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
53415         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
53416
53417 2008-11-10  Bruno Haible  <bruno@clisp.org>
53418
53419         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
53420         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
53421         as autoconf-substituted macros.
53422         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
53423         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
53424         gl_NETDB_H_DEFAULTS. Set these variables.
53425         * modules/netdb (Makefile.am): Substitute these variables.
53426
53427 2008-11-10  Eric Blake  <ebb9@byu.net>
53428
53429         standards.texi: include correct file for FDL 1.3
53430         * doc/standards.texi (GNU Free Documentation License): Change
53431         include file to pull in FDL 1.3, not 1.2.
53432
53433         fdl.texi: revert accidental change to license
53434         * doc/fdl.texi: This is FDL 1.2, not 1.3.
53435
53436 2008-11-10  Bruno Haible  <bruno@clisp.org>
53437
53438         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
53439         cross-compiling guesses also when the native compile gives no result.
53440
53441 2008-11-10  Bruno Haible  <bruno@clisp.org>
53442
53443         * lib/spawni.c (__spawni): Force variable into the stack.
53444
53445 2008-11-10  Bruno Haible  <bruno@clisp.org>
53446
53447         Add support for Haiku.
53448         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
53449         glibc and BeOS, but also on Haiku.
53450         * lib/fpurge.c (fpurge): Likewise.
53451         * lib/freadable.c (freadable): Likewise.
53452         * lib/freadahead.c (freadahead): Likewise.
53453         * lib/freading.c (freading): Likewise.
53454         * lib/freadptr.c (freadptr): Likewise.
53455         * lib/freadseek.c (freadptrinc): Likewise.
53456         * lib/fseeko.c (rpl_fseeko): Likewise.
53457         * lib/fseterr.c (fseterr): Likewise.
53458         * lib/fwritable.c (fwritable): Likewise.
53459         * lib/fwriting.c (fwriting): Likewise.
53460         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
53461
53462 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53463
53464         * lib/config.charset: Treat Haiku like BeOS.
53465
53466 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53467
53468         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
53469         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
53470
53471 2008-11-08  Bruno Haible  <bruno@clisp.org>
53472
53473         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
53474         AC_CACHE_CHECK.
53475
53476 2008-11-08  Bruno Haible  <bruno@clisp.org>
53477
53478         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
53479
53480 2008-11-08  Bruno Haible  <bruno@clisp.org>
53481
53482         * tests/test-select-fd.c: New file.
53483         * tests/test-select-in.sh: New file.
53484         * tests/test-select-out.sh: New file.
53485         * tests/test-select-stdin.c: New file.
53486         * modules/select-tests (Files): Add the new files.
53487         (Depends-on): Add gettimeofday.
53488         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
53489         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
53490         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
53491
53492 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
53493             Bruno Haible  <bruno@clisp.org>
53494
53495         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
53496
53497 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
53498
53499         * build-aux/pmccabe2html: Added support for C++ source files.
53500
53501 2008-11-05  Ben Pfaff  <blp@gnu.org>
53502
53503         Fix lib/close.c build on Windows.
53504         * modules/close (Files): Add lib/w32sock.h.
53505
53506 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
53507
53508         Accept Bison's NEWS format.
53509         * build-aux/announce-gen (print_news_deltas): Tweak
53510         $re_prefix.
53511
53512 2008-11-04  Bruno Haible  <bruno@clisp.org>
53513
53514         * modules/random_r (Maintainer): Add glibc.
53515
53516 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53517
53518         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
53519         by karl@freefriends.org (Karl Berry).
53520         * doc/alloca.texi: Likewise.
53521         * doc/c-ctype.texi: Likewise.
53522         * doc/c-strcase.texi: Likewise.
53523         * doc/c-strcaseeq.texi: Likewise.
53524         * doc/c-strcasestr.texi: Likewise.
53525         * doc/c-strstr.texi: Likewise.
53526         * doc/c-strtod.texi: Likewise.
53527         * doc/c-strtold.texi: Likewise.
53528         * doc/ctime.texi: Likewise.
53529         * doc/error.texi: Likewise.
53530         * doc/fdl.texi: Likewise.
53531         * doc/gcd.texi: Likewise.
53532         * doc/getdate.texi: Likewise.
53533         * doc/gnulib-intro.texi: Likewise.
53534         * doc/gnulib-tool.texi: Likewise.
53535         * doc/gnulib.texi: Likewise.
53536         * doc/inet_ntoa.texi: Likewise.
53537         * doc/maintain.texi: Likewise.
53538         * doc/make-stds.texi: Likewise.
53539         * doc/quote.texi: Likewise.
53540         * doc/regexprops-generic.texi: Likewise.
53541         * doc/standards.texi: Likewise.
53542         * doc/verify.texi: Likewise.
53543         * doc/visibility.texi: Likewise.
53544         * doc/gnulib.texi (GNU Free Documentation License): Include
53545         fdl-1.3.texi instead of fdl.texi.
53546
53547 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53548
53549         * doc/fdl-1.3.texi: New file, from
53550         <http://www.gnu.org/licenses/fdl-1.3.texi>.
53551         * modules/fdl-1.3: Add.
53552         * MODULES.html.sh: Add fdl-1.3.
53553
53554 2008-11-03  Bruno Haible  <bruno@clisp.org>
53555
53556         Make determination of absolute name of header file work with AIX xlc.
53557         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
53558         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
53559         preprocessing.
53560         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53561         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53562
53563 2008-11-03  Simon Josefsson  <simon@josefsson.org>
53564
53565         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
53566         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
53567         <ludo@gnu.org>.
53568
53569 2008-11-02  Bruno Haible  <bruno@clisp.org>
53570
53571         Mark 'strpbrk' obsolete.
53572         * modules/strpbrk (Status, Notice): New sections.
53573         * modules/strtok_r (Depends-on): Add strpbrk.
53574
53575 2008-11-02  Bruno Haible  <bruno@clisp.org>
53576
53577         Mark 'strdup' obsolete.
53578         * modules/strdup (Status, Notice): New sections.
53579         * modules/findprog (Depends-on): Add strdup.
53580         * modules/getaddrinfo (Depends-on): Likewise.
53581         * modules/localename (Depends-on): Likewise.
53582         * modules/relocatable-lib (Depends-on): Likewise.
53583         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
53584         * modules/relocatable-prog (Depends-on): Likewise.
53585         * modules/trim (Depends-on): Likewise.
53586         * modules/unictype/gen-ctype (Depends-on): Likewise.
53587         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53588
53589 2008-11-02  Bruno Haible  <bruno@clisp.org>
53590
53591         Mark 'strcspn' obsolete.
53592         * modules/strcspn (Status, Notice): New sections.
53593
53594 2008-11-02  Bruno Haible  <bruno@clisp.org>
53595
53596         Mark 'rmdir' obsolete.
53597         * modules/rmdir (Status, Notice): New sections.
53598         * modules/clean-temp (Depends-on): Add rmdir.
53599         * modules/openat (Depends-on): Likewise.
53600
53601 2008-11-02  Bruno Haible  <bruno@clisp.org>
53602
53603         Mark 'raise' obsolete.
53604         * modules/raise (Status, Notice): New sections.
53605         (Include): Specify <signal.h>.
53606         * modules/stdio (Depends-on): Add raise.
53607         * modules/write (Depends-on): Likewise.
53608
53609 2008-11-02  Bruno Haible  <bruno@clisp.org>
53610
53611         Mark 'memset' obsolete.
53612         * modules/memset (Status, Notice): New sections.
53613
53614 2008-11-02  Bruno Haible  <bruno@clisp.org>
53615
53616         Mark 'memmove' obsolete.
53617         * modules/memmove (Status, Notice): New sections.
53618         * modules/argp (Depends-on): Add memmove.
53619         * modules/argz (Depends-on): Likewise.
53620         * modules/canonicalize (Depends-on): Likewise.
53621         * modules/canonicalize-lgpl (Depends-on): Likewise.
53622         * modules/fts (Depends-on): Likewise.
53623         * modules/getcwd (Depends-on): Likewise.
53624         * modules/human (Depends-on): Likewise.
53625         * modules/regex (Depends-on): Likewise.
53626         * modules/striconveh (Depends-on): Likewise.
53627         * modules/trim (Depends-on): Likewise.
53628         * modules/unistr/u8-move (Depends-on): Likewise.
53629         * modules/unistr/u16-move (Depends-on): Likewise.
53630         * modules/unistr/u32-move (Depends-on): Likewise.
53631
53632 2008-11-02  Bruno Haible  <bruno@clisp.org>
53633
53634         Mark 'memcpy' obsolete.
53635         * modules/memcpy (Status, Notice): New sections.
53636
53637 2008-11-02  Bruno Haible  <bruno@clisp.org>
53638
53639         Mark 'memcmp' obsolete.
53640         * modules/memcmp (Status, Notice): New sections.
53641         * modules/argmatch (Depends-on): Add memchr.
53642         * modules/backupfile (Depends-on): Likewise.
53643         * modules/c-strcasestr (Depends-on): Likewise.
53644         * modules/crypto/des (Depends-on): Likewise.
53645         * modules/csharpcomp (Depends-on): Likewise.
53646         * modules/fnmatch (Depends-on): Likewise.
53647         * modules/git-merge-changelog (Depends-on): Likewise.
53648         * modules/isnand (Depends-on): Likewise.
53649         * modules/isnand-nolibm (Depends-on): Likewise.
53650         * modules/isnanf (Depends-on): Likewise.
53651         * modules/isnanf-nolibm (Depends-on): Likewise.
53652         * modules/isnanl (Depends-on): Likewise.
53653         * modules/isnanl-nolibm (Depends-on): Likewise.
53654         * modules/mbchar (Depends-on): Likewise.
53655         * modules/memcoll (Depends-on): Likewise.
53656         * modules/quotearg (Depends-on): Likewise.
53657         * modules/regex (Depends-on): Likewise.
53658         * modules/relocatable-prog (Depends-on): Likewise.
53659         * modules/same (Depends-on): Likewise.
53660         * modules/signbit (Depends-on): Likewise.
53661         * modules/strcasestr-simple (Depends-on): Likewise.
53662         * modules/unictype/gen-ctype (Depends-on): Likewise.
53663         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53664         * modules/uniname/uniname (Depends-on): Likewise.
53665         * modules/unistr/u8-cmp (Depends-on): Likewise.
53666
53667 2008-11-02  Bruno Haible  <bruno@clisp.org>
53668
53669         Mark 'memchr' obsolete.
53670         * modules/memchr (Status, Notice): New sections.
53671         * modules/argp (Depends-on): Add memchr.
53672         * modules/base64 (Depends-on): Likewise.
53673         * modules/c-strcasestr (Depends-on): Likewise.
53674         * modules/chdir-long (Depends-on): Likewise.
53675         * modules/fnmatch (Depends-on): Likewise.
53676         * modules/getsubopt (Depends-on): Likewise.
53677         * modules/git-merge-changelog (Depends-on): Likewise.
53678         * modules/glob (Depends-on): Likewise.
53679         * modules/strcasestr-simple (Depends-on): Likewise.
53680         * modules/strnlen (Depends-on): Likewise.
53681
53682 2008-11-02  Bruno Haible  <bruno@clisp.org>
53683
53684         Mark 'atexit' obsolete.
53685         * modules/atexit (Status, Notice): New sections.
53686         * modules/chdir-long (Depends-on): Add atexit.
53687         * modules/wait-process (Depends-on): Likewise.
53688
53689 2008-11-02  Bruno Haible  <bruno@clisp.org>
53690
53691         * gnulib-tool: New option --with-obsolete.
53692         (func_usage): Document it.
53693         (func_modules_transitive_closure): Drop obsolete dependencies if
53694         incobsolete is not true.
53695         (func_import): Read and save the incobsolete variable to the cache.
53696
53697 2008-11-02  Bruno Haible  <bruno@clisp.org>
53698
53699         * modules/TEMPLATE-EXTENDED: New field 'Status'.
53700         * gnulib-tool: New option --extract-status.
53701         (func_usage): Document it.
53702         (sed_extract_prog): Recognize it.
53703         (func_get_status): New function.
53704
53705 2008-10-30  Simon Josefsson  <simon@josefsson.org>
53706
53707         * modules/sockets (License): Change from LGPL to LGPLv2+.
53708
53709 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53710
53711         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
53712
53713 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53714
53715         * MODULES.html.sh (Support for systems lacking POSIX:2001):
53716         Mention times and sys_times.
53717         * modules/sys_times, modules/sys_times-tests: New modules.
53718         * modules/times, modules/times-tests: Likewise
53719         * m4/sys_times_h.m4: New file.
53720         * lib/sys_times.in.h: Likewise
53721         * lib/times.c: Likewise.
53722         * tests/test-sys_times.c: Likewise.
53723         * tests/test-times.c: Likewise.
53724         * doc/posix-headers/sys_times.texi: Update.
53725         * doc/posix-functions/times.texi: Update.
53726
53727 2008-10-28  Jim Meyering  <meyering@redhat.com>
53728
53729         * modules/tempname (Depends-on): Add lstat.
53730
53731         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
53732
53733 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53734
53735         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
53736         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
53737         using idiom used elsewhere in gnulib.
53738
53739 2008-10-27  Jim Meyering  <meyering@redhat.com>
53740
53741         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
53742
53743 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53744
53745         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
53746         TESTS_ENVIRONMENT, for shell scripts that needs to call built
53747         programs.
53748         * tests/test-argp-2.sh: Use $EXEEXT when needed.
53749
53750 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53751
53752         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
53753
53754 2008-10-27  Bruno Haible  <bruno@clisp.org>
53755
53756         * tests/test-lstat.c: Include <stdio.h>.
53757
53758 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53759
53760         * modules/lstat-tests: New module.
53761         * tests/test-lstat.c: New file.
53762
53763 2008-10-26  Jim Meyering  <meyering@redhat.com>
53764
53765         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
53766
53767 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53768             Bruno Haible  <bruno@clisp.org>
53769
53770         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
53771         * modules/configmake (Include): Add a note that the include must come
53772         after all system headers.
53773         * lib/javaversion.c: Include configmake.h after all other includes.
53774
53775 2008-10-26  Bruno Haible  <bruno@clisp.org>
53776
53777         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
53778         HAVE_STRUCT_RANDOM_DATA to 1.
53779         (gl_STDLIB_H): Simplify.
53780
53781 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53782
53783         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
53784         substitute HAVE_STRUCT_RANDOM_DATA.
53785         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
53786         random_data.
53787         * modules/stdlib (Makefile.am): Substitute
53788         HAVE_STRUCT_RANDOM_DATA.
53789
53790 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53791
53792         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
53793         * doc/gnulib-intro.texi (Copyright): Likewise.
53794
53795 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53796
53797         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
53798         findings.
53799
53800 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
53801             Bruno Haible  <bruno@clisp.org>
53802
53803         * lib/unistd.in.h: Include <winsock2.h>.
53804         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
53805         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
53806         Provide dummy declarations.
53807         (gethostname): Override.
53808         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
53809         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
53810         gl_PREREQ_SYS_H_WINSOCK2.
53811         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
53812         * doc/posix-functions/gethostname.texi: More details.
53813
53814 2008-10-25  Bruno Haible  <bruno@clisp.org>
53815
53816         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
53817         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
53818         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
53819
53820         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
53821         here ...
53822         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
53823         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
53824         gl_UNISTD_H_DEFAULTS.
53825
53826 2008-10-25  Eric Blake  <ebb9@byu.net>
53827
53828         signbit: avoid spurious compiler failure
53829         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
53830         declarations inside function.
53831
53832 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53833             Bruno Haible  <bruno@clisp.org>
53834
53835         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
53836         * modules/random_r (Depends-on): Add stdint.
53837
53838 2008-10-24  Bruno Haible  <bruno@clisp.org>
53839
53840         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
53841         Eggert.
53842         * modules/strerror (License): Likewise.
53843
53844 2008-10-24  Jim Meyering  <meyering@redhat.com>
53845
53846         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
53847         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
53848
53849 2008-10-24  Eric Blake  <ebb9@byu.net>
53850
53851         getgroups: fix compilation when getgroups is available
53852         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
53853         but with <config.h> override of getgroups disabled.
53854
53855 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53856
53857         * doc/gnulib.texi (Header files): Add note about C++ problems.
53858         Explained by Bruno Haible <bruno@clisp.org>.
53859
53860 2008-10-23  Bruno Haible  <bruno@clisp.org>
53861
53862         Define a dummy SA_NODEFER macro on Interix.
53863         * lib/signal.in.h (SA_NODEFER): Define fallback.
53864         Reported by Aleksey Cheusov <cheusov@tut.by> via
53865         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
53866
53867 2008-10-23  Bruno Haible  <bruno@clisp.org>
53868
53869         * modules/freadahead (License): Change to LGPLv2+.
53870         Suggested by Simon Josefsson.
53871
53872 2008-10-23  Jim Meyering  <meyering@redhat.com>
53873
53874         random_r: new module
53875         * modules/random_r: New file.
53876         * m4/random_r.m4: New file.
53877         * lib/random_r.c: New file, from glibc.
53878         * modules/random_r-tests: New file.
53879         * tests/test-random_r.c: New file.
53880         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
53881          Declare.
53882         (RAND_MAX): Define.
53883         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
53884         * modules/stdlib: Substitute them, too.
53885         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
53886         * doc/glibc-functions/initstate_r.texi: Mention the new module.
53887         * doc/glibc-functions/random_r.texi: Likewise.
53888         * doc/glibc-functions/setstate_r.texi: Likewise.
53889         * doc/glibc-functions/srandom_r.texi: Likewise.
53890         * config/srclist.txt: Mention it.
53891
53892 2008-10-23  David Lutterkort  <lutter@redhat.com>
53893
53894         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
53895         link requirement
53896
53897 2008-10-23  Jim Meyering  <meyering@redhat.com>
53898
53899         selinux-h: mark parameters of stub functions as intentionally unused
53900         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
53901         * lib/se-context.in.h: Likewise.
53902
53903 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53904
53905         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
53906
53907 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53908
53909         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
53910
53911 2008-10-22  Eric Blake  <ebb9@byu.net>
53912
53913         glthread/thread: avoid compiler warning
53914         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
53915         Add unreachable abort to silence compiler.
53916
53917 2008-10-22  Eric Blake  <ebb9@byu.net>
53918
53919         netdb: also supply struct addrinfo for cygwin 1.5.x
53920         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
53921         older cygwin.
53922         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
53923         cygwin.
53924         * doc/posix-headers/netdb.texi (netdb.h): Document this.
53925
53926 2008-10-22  Bruno Haible  <bruno@clisp.org>
53927
53928         * users.txt: Update entry about pspp.
53929
53930 2008-10-21  Bruno Haible  <bruno@clisp.org>
53931
53932         Simplification.
53933         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
53934         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
53935
53936         Simplification.
53937         * lib/ioctl.c (ioctl): Don't undefine.
53938         * lib/socket.c (socket): Don't undefine.
53939
53940         Remove unused module indicator macros.
53941         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
53942         GNULIB_$1 as a C macro.
53943
53944         * doc/posix-functions/close.texi: Undo last change.
53945         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
53946         Windows platforms.
53947
53948 2008-10-21  Bruno Haible  <bruno@clisp.org>
53949
53950         Add gethostname() declaration to <unistd.h>.
53951         * lib/unistd.in.h (gethostname): New declaration.
53952         * lib/gethostname.c: Include <unistd.h>.
53953         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
53954         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
53955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
53956         and HAVE_GETHOSTNAME.
53957         * modules/gethostname (Depends-on): Add unistd.
53958         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53959         (Include): Specify <unistd.h>.
53960         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
53961         HAVE_GETHOSTNAME.
53962         * tests/test-gethostname.c: Include <unistd.h> first.
53963
53964 2008-10-21  Bruno Haible  <bruno@clisp.org>
53965
53966         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
53967         * modules/select-tests (Depends-on): Likewise.
53968         Reported by Simon Josefsson.
53969
53970 2008-10-21  Simon Josefsson  <simon@josefsson.org>
53971
53972         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
53973         * lib/accept.c: New file, based on winsock.c.
53974         * lib/bind.c: New file, based on winsock.c.
53975         * lib/connect.c: New file, based on winsock.c.
53976         * lib/getpeername.c: New file, based on winsock.c.
53977         * lib/getsockname.c: New file, based on winsock.c.
53978         * lib/getsockopt.c: New file, based on winsock.c.
53979         * lib/ioctl.c: New file, based on winsock.c.
53980         * lib/listen.c: New file, based on winsock.c.
53981         * lib/recv.c: New file, based on winsock.c.
53982         * lib/recvfrom.c: New file, based on winsock.c.
53983         * lib/send.c: New file, based on winsock.c.
53984         * lib/sendto.c: New file, based on winsock.c.
53985         * lib/setsockopt.c: New file, based on winsock.c.
53986         * lib/shutdown.c: New file, based on winsock.c.
53987         * lib/socket.c: New file, based on winsock.c.
53988         * lib/w32sock.h: New file, based on winsock.c.
53989         * lib/winsock.c: Remove file.
53990         * modules/accept: Likewise.
53991         * modules/bind: Likewise.
53992         * modules/connect: Likewise.
53993         * modules/getpeername: Likewise.
53994         * modules/getsockname: Likewise.
53995         * modules/getsockopt: Likewise.
53996         * modules/ioctl: Likewise.
53997         * modules/listen: Likewise.
53998         * modules/recv: Likewise.
53999         * modules/recvfrom: Likewise.
54000         * modules/send: Likewise.
54001         * modules/sendto: Likewise.
54002         * modules/setsockopt: Likewise.
54003         * modules/shutdown: Likewise.
54004         * modules/socket: Use socket.c instead of winsock.c.
54005         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
54006         * doc/posix-functions/accept.texi: Doc fix.
54007         * doc/posix-functions/bind.texi: Doc fix.
54008         * doc/posix-functions/close.texi: Doc fix.
54009         * doc/posix-functions/connect.texi: Doc fix.
54010         * doc/posix-functions/getpeername.texi: Doc fix.
54011         * doc/posix-functions/getsockname.texi: Doc fix.
54012         * doc/posix-functions/getsockopt.texi: Doc fix.
54013         * doc/posix-functions/ioctl.texi: Doc fix.
54014         * doc/posix-functions/listen.texi: Doc fix.
54015         * doc/posix-functions/recv.texi: Doc fix.
54016         * doc/posix-functions/recvfrom.texi: Doc fix.
54017         * doc/posix-functions/send.texi: Doc fix.
54018         * doc/posix-functions/sendto.texi: Doc fix.
54019         * doc/posix-functions/setsockopt.texi: Doc fix.
54020         * doc/posix-functions/shutdown.texi: Doc fix.
54021         * doc/posix-functions/socket.texi: Doc fix.
54022
54023 2008-10-20  Bruno Haible  <bruno@clisp.org>
54024
54025         Take into account the role of SIGABRT_COMPAT on Windows 2008.
54026         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
54027         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
54028         as an alias for SIGABRT.
54029         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
54030         (sigaction): Map it to SIGABRT.
54031         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
54032
54033 2008-10-20  Bruno Haible  <bruno@clisp.org>
54034
54035         * lib/fts.c: Don't include lstat.h.
54036         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
54037
54038         Move the lstat() declaration to <sys/stat.h>.
54039         * lib/lstat.h: Remove file.
54040         * lib/sys_stat.in.h: Add special invocation convention.
54041         (lstat): New declaration.
54042         * lib/lstat.c (orig_lstat): New function.
54043         (rpl_lstat): Use orig_lstat instead of lstat.
54044         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
54045         AC_C_INLINE. Set REPLACE_LSTAT.
54046         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
54047         and REPLACE_LSTAT.
54048         * modules/lstat (Files): Remove lib/lstat.h.
54049         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54050         (Include): Specify <sys/stat.h> instead of lstat.h.
54051         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
54052         REPLACE_LSTAT.
54053         * NEWS: Mention the change.
54054
54055 2008-10-20  Bruno Haible  <bruno@clisp.org>
54056
54057         * modules/posix_spawn-tests: New file.
54058         * tests/test-posix_spawn3.c: New file.
54059
54060 2008-10-20  Bruno Haible  <bruno@clisp.org>
54061
54062         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
54063         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54064         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
54065         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54066         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
54067
54068 2008-10-20  Bruno Haible  <bruno@clisp.org>
54069
54070         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
54071         of posix_spawn on AIX 5.3.
54072
54073 2008-10-20  Bruno Haible  <bruno@clisp.org>
54074
54075         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
54076
54077 2008-10-20  Bruno Haible  <bruno@clisp.org>
54078
54079         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
54080         of AC_LANG_PROGRAM.
54081
54082 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54083
54084         * lib/netdb.in.h: Don't define GNU specific constants until they
54085         are supported or needed.  Reported by Bruno Haible
54086         <bruno@clisp.org>.
54087
54088 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54089
54090         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
54091
54092 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54093
54094         * lib/getaddrinfo.h: Remove file.
54095         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
54096         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
54097         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
54098         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
54099         * modules/netdb: Substitute GNULIB_GETADDRINFO.
54100         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
54101         * tests/test-getaddrinfo.c: Likewise.
54102         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
54103         * NEWS: Mention change.
54104
54105 2008-10-19  Bruno Haible  <bruno@clisp.org>
54106
54107         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
54108
54109 2008-10-19  Bruno Haible  <bruno@clisp.org>
54110
54111         * lib/wait-process.c: Include simply <sys/wait.h>.
54112         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
54113         WIFSTOPPED): Remove fallback definitions.
54114         * modules/wait-process (Depends-on): Add sys_wait.
54115
54116         New module 'sys_wait'.
54117         * modules/sys_wait: New file.
54118         * lib/sys_wait.in.h: New file, partially copied from
54119         lib/wait-process.c.
54120         * m4/sys_wait_h.m4: New file.
54121         * doc/posix-headers/sys_wait.texi: Mention the new module.
54122
54123 2008-10-19  Bruno Haible  <bruno@clisp.org>
54124
54125         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
54126
54127 2008-10-19  Bruno Haible  <bruno@clisp.org>
54128
54129         Assume that waitpid() fills an 'int' status, not a 'union wait'.
54130         * lib/wait-process.c (WAIT_T): Remove type.
54131         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
54132         (wait_subprocess): Update.
54133
54134 2008-10-19  Bruno Haible  <bruno@clisp.org>
54135
54136         New module 'atoll'.
54137         * modules/atoll: New file.
54138         * lib/stdlib.in.h (atoll): New declaration.
54139         * lib/atoll.c: New file, from glibc with modifications.
54140         * m4/atoll.m4: New file.
54141         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
54142         HAVE_ATOLL.
54143         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
54144         * doc/posix-functions/atoll.texi: Mention the new module.
54145
54146 2008-10-19  Bruno Haible  <bruno@clisp.org>
54147
54148         Add strtoull() declaration to <stdlib.h>.
54149         * lib/stdlib.in.h (strtoull): New declaration.
54150         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54151         Set HAVE_STRTOULL.
54152         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
54153         HAVE_STRTOULL.
54154         * modules/strtoull (Depends-on): Add stdlib.
54155         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54156         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
54157         HAVE_STRTOULL.
54158
54159 2008-10-19  Bruno Haible  <bruno@clisp.org>
54160
54161         Add strtoll() declaration to <stdlib.h>.
54162         * lib/stdlib.in.h (strtoll): New declaration.
54163         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54164         Set HAVE_STRTOLL.
54165         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
54166         HAVE_STRTOLL.
54167         * modules/strtoll (Depends-on): Add stdlib.
54168         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54169         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
54170
54171 2008-10-19  Bruno Haible  <bruno@clisp.org>
54172
54173         * modules/bcopy (Depends-on): Add strings.
54174         (Include): Specify <strings.h>.
54175
54176 2008-10-19  Bruno Haible  <bruno@clisp.org>
54177
54178         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
54179
54180 2008-10-19  Bruno Haible  <bruno@clisp.org>
54181
54182         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
54183         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
54184         mingw.
54185
54186 2008-10-19  Bruno Haible  <bruno@clisp.org>
54187
54188         * lib/atanl.c: Don't include isnanl.h.
54189         * lib/cosl.c: Likewise.
54190         * lib/ldexpl.c: Likewise.
54191         * lib/logl.c: Likewise.
54192         * lib/sinl.c: Likewise.
54193         * lib/sqrtl.c: Likewise.
54194         * lib/tanl.c: Likewise.
54195
54196         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
54197         * lib/isnanf.h: Remove file.
54198         * lib/isnand.h: Remove file.
54199         * lib/isnanl.h: Remove file.
54200         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
54201         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
54202         macros.
54203         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
54204         HAVE_ISNANF, don't define it as a C macro.
54205         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
54206         HAVE_ISNAND, don't define it as a C macro.
54207         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
54208         HAVE_ISNANL, don't define it as a C macro.
54209         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
54210         HAVE_ISNAN[FDL].
54211         * modules/isnanf (Files): Remove lib/isnanf.h.
54212         (Depends-on): Add math.
54213         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54214         (Include): Specify <math.h> instead of isnanf.h.
54215         * modules/isnand (Files): Remove lib/isnand.h.
54216         (Depends-on): Add math.
54217         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54218         (Include): Specify <math.h> instead of isnand.h.
54219         * modules/isnanl (Files): Remove lib/isnanl.h.
54220         (Depends-on): Add math.
54221         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54222         (Include): Specify <math.h> instead of isnanl.h.
54223         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
54224         HAVE_ISNAN[FDL].
54225         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
54226         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
54227         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
54228         * NEWS: Mention the change.
54229
54230 2008-10-18  Bruno Haible  <bruno@clisp.org>
54231
54232         Add getusershell(), setusershell(), endusershell() declarations to
54233         <unistd.h>.
54234         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
54235         declarations.
54236         * lib/getusershell.c: Include unistd.h.
54237         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
54238         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54239         HAVE_GETUSERSHELL.
54240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
54241         and HAVE_GETUSERSHELL.
54242         * modules/getusershell (Depends-on): Add unistd, extensions.
54243         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54244         (Include): Specify <unistd.h>.
54245         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
54246         HAVE_GETUSERSHELL.
54247
54248 2008-10-18  Bruno Haible  <bruno@clisp.org>
54249
54250         Add a getloadavg() declaration to <stdlib.h>.
54251         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
54252         getloadavg declaration.
54253         (getloadavg): New declaration.
54254         * lib/getloadavg.c: Include <stdlib.h> first.
54255         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
54256         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
54257         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
54258         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
54259         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54260         * modules/getloadavg (Depends-on): Add stdlib, extensions.
54261         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54262         (Include): Specify <stdlib.h>.
54263         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
54264         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54265
54266 2008-10-18  Bruno Haible  <bruno@clisp.org>
54267
54268         * lib/dirchownmod.c: Don't include lchmod.h.
54269
54270         Move the lchmod() declaration to <sys/stat.h>.
54271         * lib/lchmod.h: Remove file.
54272         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
54273         (lchmod): New declaration, moved here from lib/lchown.h.
54274         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
54275         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
54276         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
54277         and HAVE_LCHMOD.
54278         * modules/lchmod (Files): Remove lib/lchmod.h.
54279         (Depends-on): Add sys_stat, extensions.
54280         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54281         (Include): Specify <sys/stat.h> instead of lchmod.h.
54282         * modules/sys_stat (Depends-on): Add link-warning.
54283         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
54284         definition of GL_LINK_WARNING.
54285         * NEWS: Mention the change.
54286
54287 2008-10-18  Bruno Haible  <bruno@clisp.org>
54288
54289         * lib/fchdir.c: Don't include dirfd.h.
54290         * lib/fts.c: Likewise.
54291         * lib/getcwd.c: Likewise.
54292         * lib/glob.c: Likewise.
54293
54294         Move the dirfd() declaration to <dirent.h>.
54295         * lib/dirfd.h: Remove file.
54296         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
54297         (dirfd): New declaration.
54298         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
54299         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
54300         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
54301         HAVE_DECL_DIRFD.
54302         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
54303         HAVE_DECL_DIRFD.
54304         * modules/dirfd (Files): Remove lib/dirfd.h.
54305         (Depends-on): Add dirent, extensions.
54306         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
54307         (Include): Specify <dirent.h> instead of dirfd.h.
54308         * modules/dirent (Depends-on): Add link-warning.
54309         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
54310         definition of GL_LINK_WARNING.
54311         * NEWS: Mention the change.
54312
54313 2008-10-18  Bruno Haible  <bruno@clisp.org>
54314
54315         Move the euidaccess() declaration to <unistd.h>.
54316         * lib/euidaccess.h: Remove file.
54317         * lib/unistd.in.h (euidaccess): New declaration.
54318         * lib/euidaccess.c: Don't include euidaccess.h.
54319         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
54320         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
54321         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
54322         and HAVE_EUIDACCESS.
54323         * modules/euidaccess (Files): Remove lib/euidaccess.h.
54324         (Depends-on): Add unistd.
54325         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54326         (Include): Specify <unistd.h> instead of euidaccess.h.
54327         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
54328         HAVE_EUIDACCESS.
54329         * NEWS: Mention the change.
54330
54331 2008-10-18  Bruno Haible  <bruno@clisp.org>
54332
54333         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
54334
54335         Move the getdomainname() declaration to <unistd.h>.
54336         * lib/getdomainname.h: Remove file.
54337         * lib/unistd.in.h (getdomainname): New declaration.
54338         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
54339         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
54340         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54341         HAVE_GETDOMAINNAME.
54342         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54343         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
54344         * modules/getdomainname (Files): Remove lib/getdomainname.h.
54345         (Depends-on): Add unistd, extensions.
54346         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54347         (Includes): Specify <unistd.h> instead of getdomainname.h.
54348         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
54349         HAVE_GETDOMAINNAME.
54350         * NEWS: Mention the change.
54351
54352 2008-10-18  Bruno Haible  <bruno@clisp.org>
54353
54354         * modules/dirent: New file.
54355         * m4/dirent_h.m4: New file.
54356         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
54357         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
54358         * modules/fchdir (Files): Remove lib/dirent.in.h.
54359         (Depends-on): Add dirent.
54360         (Makefile.am): Move rules to modules/dirent.
54361         * doc/posix-headers/dirent.texi: Mention the new module.
54362
54363 2008-10-18  Bruno Haible  <bruno@clisp.org>
54364
54365         Avoid -Wunused-parameter warnings in public gnulib header files.
54366         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
54367         macro.
54368         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
54369
54370 2008-10-18  Bruno Haible  <bruno@clisp.org>
54371
54372         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
54373         * doc/glibc-functions/error.texi: Mention the module 'error'.
54374         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
54375         * doc/glibc-functions/getdomainname.texi: Mention the module
54376         'getdomainname'.
54377         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
54378         * doc/glibc-functions/getpagesize.texi: Mention the module
54379         'getpagesize'.
54380         * doc/glibc-functions/getusershell.texi: Mention the module
54381         'getusershell'.
54382         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
54383         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
54384         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
54385         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
54386         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
54387         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
54388         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
54389         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
54390         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
54391         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
54392         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
54393         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
54394         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
54395         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
54396
54397 2008-10-17  Bruno Haible  <bruno@clisp.org>
54398
54399         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
54400         HP-UX and IRIX, use -0.0L.
54401         * tests/test-ceill.c (minus_zero): Likewise.
54402         * tests/test-floorl.c (minus_zero): Likewise.
54403         * tests/test-frexpl.c (minus_zero): Likewise.
54404         * tests/test-isnan.c (minus_zerol): Likewise.
54405         * tests/test-isnanl.h (minus_zero): Likewise.
54406         * tests/test-ldexpl.c (minus_zero): Likewise.
54407         * tests/test-roundl.c (minus_zero): Likewise.
54408         * tests/test-signbit.c (minus_zerol): Likewise.
54409         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
54410         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
54411         * tests/test-truncl.c (minus_zero): Likewise.
54412         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
54413         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
54414         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
54415         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
54416
54417 2008-10-17  Bruno Haible  <bruno@clisp.org>
54418
54419         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
54420         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
54421         that it gets activated only for gcc >= 3.0.
54422         * lib/dirent.in.h: Likewise.
54423         * lib/errno.in.h: Likewise.
54424         * lib/fcntl.in.h: Likewise.
54425         * lib/float.in.h: Likewise.
54426         * lib/iconv.in.h: Likewise.
54427         * lib/inttypes.in.h: Likewise.
54428         * lib/locale.in.h: Likewise.
54429         * lib/math.in.h: Likewise.
54430         * lib/netdb.in.h: Likewise.
54431         * lib/netinet_in.in.h: Likewise.
54432         * lib/search.in.h: Likewise.
54433         * lib/signal.in.h: Likewise.
54434         * lib/spawn.in.h: Likewise.
54435         * lib/stdarg.in.h: Likewise.
54436         * lib/stdint.in.h: Likewise.
54437         * lib/stdio.in.h: Likewise.
54438         * lib/stdlib.in.h: Likewise.
54439         * lib/string.in.h: Likewise.
54440         * lib/strings.in.h: Likewise.
54441         * lib/sys_file.in.h: Likewise.
54442         * lib/sys_ioctl.in.h: Likewise.
54443         * lib/sys_select.in.h: Likewise.
54444         * lib/sys_socket.in.h: Likewise.
54445         * lib/sys_stat.in.h: Likewise.
54446         * lib/sys_time.in.h: Likewise.
54447         * lib/sysexits.in.h: Likewise.
54448         * lib/time.in.h: Likewise.
54449         * lib/unistd.in.h: Likewise.
54450         * lib/wchar.in.h: Likewise.
54451         * lib/wctype.in.h: Likewise.
54452         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54453
54454 2008-10-17  Jim Meyering  <meyering@redhat.com>
54455
54456         ignore-value: don't depend on inline module
54457         * modules/ignore-value (Depends-on): Remove 'inline'.
54458         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
54459         Suggestion from Bruno Haible.
54460
54461 2008-10-17  Bruno Haible  <bruno@clisp.org>
54462
54463         New implementation of condition variables for Win32.
54464         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
54465         (gl_linked_waitqueue_t): New type.
54466         (gl_cond_t): Use it.
54467         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
54468         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
54469         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
54470         (glthread_cond_init_func, glthread_cond_wait_func,
54471         glthread_cond_timedwait_func, glthread_cond_signal_func,
54472         glthread_cond_broadcast_func, glthread_cond_destroy_func):
54473         Reimplemented on the basis of gl_linked_waitqueue_t.
54474         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
54475         gl_waitqueue_t.
54476         (gl_rwlock_t): Update.
54477         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
54478
54479 2008-10-17  Simon Josefsson  <simon@josefsson.org>
54480
54481         * modules/recvfrom (Depends-on): Add dependency on getpeername.
54482         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54483
54484 2008-10-17  Jim Meyering  <meyering@redhat.com>
54485
54486         ignore-value: new module
54487         * modules/ignore-value: New file.
54488         * lib/ignore-value.h: New file.
54489         * MODULES.html.sh (Compiler warning management): New section,
54490         just for this module.  More to come.
54491
54492 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54493
54494         open-safer.c: avoid 'signed and unsigned in conditional...' warning
54495         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
54496         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
54497
54498 2008-10-16  Jim Meyering  <meyering@redhat.com>
54499
54500         openat-die.c: avoid 'no previous prototype' warning
54501         * lib/openat-die.c: Include "openat.h".
54502         Reported by Reuben Thomas <rrt@sc3d.org>.
54503
54504 2008-10-16  Simon Josefsson  <simon@josefsson.org>
54505
54506         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
54507         * lib/netdb.in.h: Fix typo.
54508         Reported by Bruno Haible  <bruno@clisp.org>
54509
54510         * lib/netdb.in.h: Include sys/socket.h for platforms without
54511         netdb.h, to get structures like hostent on MinGW.
54512         * modules/netdb (Depends-on): Add sys_socket.
54513
54514 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54515
54516         * modules/netdb, modules/netdb-tests: New file.
54517         * m4/netdb_h.m4: New file.
54518         * lib/netdb.in.h: Add, currently just an empty file pending
54519         definitions.
54520         * tests/test-netdb.c: New file.
54521         * doc/posix-headers/netdb.texi: Mention that we replace it if
54522         needed.
54523         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54524         netdb.
54525
54526 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54527
54528         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
54529         with code.
54530
54531 2008-10-13  Bruno Haible  <bruno@clisp.org>
54532
54533         * lib/glthread/cond.c (glthread_cond_wait_func,
54534         glthread_cond_timedwait_func): Add a comment.
54535
54536 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54537
54538         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
54539         * tests/test-select.c: Likewise,
54540
54541 2008-10-13  Bruno Haible  <bruno@clisp.org>
54542
54543         * lib/glthread/cond.c (glthread_cond_wait_func,
54544         glthread_cond_timedwait_func): Fix variable name.
54545         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54546
54547 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
54548
54549         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
54550         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
54551         struct sockaddr.sa_len.
54552         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
54553
54554 2008-10-13  Simon Josefsson  <simon@josefsson.org>
54555
54556         * build-aux/pmccabe2html: Add css and css_url parameters.
54557
54558 2008-10-12  Bruno Haible  <bruno@clisp.org>
54559
54560         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
54561         calling aclx_get.
54562         Reported by Rainer Tammer <tammer@tammer.net>.
54563
54564 2008-10-12  Bruno Haible  <bruno@clisp.org>
54565
54566         Use msvcrt aware primitives for creation/termination of Win32 threads.
54567         * lib/glthread/thread.c: Include <process.h>.
54568         (glthread_create_func): Use _beginthreadex instead of CreateThread.
54569         (wrapper_func): Update signature.
54570         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
54571
54572 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54573             Bruno Haible  <bruno@clisp.org>
54574
54575         Provide a Win32 implementation of the 'cond' module.
54576         * lib/glthread/cond.h [USE_WIN32]: New implementation.
54577         * lib/glthread/cond.c (glthread_cond_init_func,
54578         glthread_cond_wait_func, glthread_cond_timedwait_func,
54579         glthread_cond_signal_func, glthread_cond_broadcast_func,
54580         glthread_cond_destroy_func) [USE_WIN32]: New functions.
54581         * modules/cond (Dependencies): Add gettimeofday.
54582
54583 2008-10-11  Bruno Haible  <bruno@clisp.org>
54584
54585         Make sleep work on older versions of mingw.
54586         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
54587         only whether it exists.
54588         * doc/posix-functions/sleep.texi: Mention the problem with older
54589         versions of mingw.
54590
54591 2008-10-11  Bruno Haible  <bruno@clisp.org>
54592
54593         New module 'shutdown'.
54594         * modules/shutdown: New file.
54595         * lib/sys_socket.in.h (shutdown): New declaration.
54596         * lib/winsock.c (shutdown): New function.
54597         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
54598         GNULIB_SHUTDOWN.
54599         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
54600         * doc/posix-functions/shutdown.texi: Document the new module.
54601
54602 2008-10-11  Jim Meyering  <meyering@redhat.com>
54603
54604         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
54605
54606 2008-10-11  Bruno Haible  <bruno@clisp.org>
54607
54608         New module 'fclose'.
54609         * modules/fclose: New file.
54610         * lib/stdio.in.h (fclose): New declaration.
54611         * lib/fclose.c: New file.
54612         * m4/fclose.m4: New file.
54613         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
54614         REPLACE_FCLOSE.
54615         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
54616         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
54617         REPLACE_FCLOSE.
54618         * modules/close (Depends-on): fclose.
54619         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
54620
54621 2008-10-11  Bruno Haible  <bruno@clisp.org>
54622
54623         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
54624         set errno and don't call _close.
54625
54626 2008-10-10  Bruno Haible  <bruno@clisp.org>
54627
54628         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
54629         ACL, not afterwards. Fixes test failure on Cygwin.
54630
54631 2008-10-09  Ben Pfaff  <blp@gnu.org>
54632
54633         * build-aux/announce-gen: Fix gnulib version related part of usage
54634         message.  Die with a useful error message if no tarballs are
54635         found.
54636
54637 2008-10-10  Jim Meyering  <meyering@redhat.com>
54638
54639         bootstrap: use git's --depth=N option only if it's supported
54640         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
54641         recognize the --depth option.  Reported by Pádraig Brady.
54642
54643 2008-10-09  Bruno Haible  <bruno@clisp.org>
54644
54645         New module 'ioctl'.
54646         * modules/ioctl: New file.
54647         * lib/sys_socket.in.h (ioctl): Remove declaration.
54648         * lib/winsock.c: Include <sys/ioctl.h>.
54649         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
54650         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54651         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
54652         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
54653         * doc/posix-functions/ioctl.texi: Mention the new module.
54654
54655 2008-10-09  Bruno Haible  <bruno@clisp.org>
54656
54657         New module 'sys_ioctl'.
54658         * lib/sys_ioctl.in.h: New file.
54659         * m4/sys_ioctl_h.m4: New file.
54660         * modules/sys_ioctl: New file.
54661         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
54662
54663 2008-10-09  Bruno Haible  <bruno@clisp.org>
54664
54665         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
54666         * lib/winsock.c: Include <stdarg.h>.
54667         (rpl_ioctl): Change to second argument 'int' and then varargs.
54668
54669 2008-10-09  Bruno Haible  <bruno@clisp.org>
54670
54671         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
54672         when the sys_socket module is present and the system has <winsock2.h>.
54673
54674 2008-10-09  Bruno Haible  <bruno@clisp.org>
54675
54676         * doc/posix-functions/close.texi: Mention module 'close' instead of
54677         module 'sys_socket'.
54678
54679 2008-10-09  Bruno Haible  <bruno@clisp.org>
54680
54681         * doc/glibc-headers/sys_ioctl.texi: New file.
54682         * doc/gnulib.texi: Include it.
54683
54684 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54685             Bruno Haible  <bruno@clisp.org>
54686
54687         Combine the two replacements of 'close'.
54688         * lib/sys_socket.in.h (close): Define to a reminder to include
54689         <unistd.h>.
54690         (_gl_close_fd_maybe_socket): New declaration.
54691         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
54692         * lib/winsock.c (close): Remove undefinition.
54693         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
54694         needed for the gnulib module 'close'.
54695         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
54696         define to an error symbol or to a warning, if suitable.
54697         * lib/close.c: Include <sys/socket.h>.
54698         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
54699         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
54700         UNISTD_H_HAVE_WINSOCK2_H.
54701         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
54702         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54703         UNISTD_H_HAVE_WINSOCK2_H.
54704         * modules/sys_socket (Files): Add m4/unistd_h.m4.
54705         (configure.ac): Set a module indicator.
54706         (Makefile.am): Substitute GNULIB_CLOSE.
54707         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
54708         * modules/poll-tests (Depends-on): Add close.
54709         * modules/select-tests (Depends-on): Likewise.
54710
54711 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54712             Bruno Haible  <bruno@clisp.org>
54713
54714         New module 'close'.
54715         * modules/close: New file.
54716         * lib/unistd.in.h (close): Move declaration out of the
54717         FCHDIR_REPLACEMENT scope.
54718         (_gl_unregister_fd): New declaration.
54719         * lib/close.c: New file.
54720         * lib/fchdir.c (rpl_close): Remove function.
54721         * m4/close.m4: New file.
54722         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54723         close.
54724         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
54725         REPLACE_CLOSE.
54726         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
54727         REPLACE_CLOSE.
54728         * modules/fchdir (Depends-on): Add close.
54729
54730 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54731             Bruno Haible  <bruno@clisp.org>
54732
54733         * lib/fcntl.in.h (open): Simplify conditionals.
54734         (_gl_register_fd): New declaration.
54735         * lib/fchdir.c (rpl_open): Remove function.
54736         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
54737         also.
54738         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
54739         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54740         open.
54741
54742 2008-10-09  Jim Meyering  <meyering@redhat.com>
54743
54744         GNUmakefile: use the more name-space-friendly "_version"
54745         * top/GNUmakefile (_dummy): Update.
54746         (_version): Rename from "version".
54747
54748 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54749             Bruno Haible  <bruno@clisp.org>
54750
54751         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
54752         rpl_close.
54753         (_gl_register_fd): New function, extracted from rpl_open.
54754         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
54755         (rpl_open, rpl_opendir): Use _gl_register_fd.
54756
54757 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54758
54759         Fix organization of 'open' replacement.
54760         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
54761         (gl_FUNC_OPEN): Use it.
54762         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
54763
54764 2008-10-08  Bruno Haible  <bruno@clisp.org>
54765
54766         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
54767
54768 2008-10-08  Simon Josefsson  <simon@josefsson.org>
54769
54770         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
54771         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
54772         listen).
54773
54774 2008-10-08  Eric Blake  <ebb9@byu.net>
54775
54776         GNUmakefile: add 'make version' target
54777         * top/GNUmakefile (_curr-ver): Split version update rules...
54778         (version): ...into a target.
54779
54780 2008-10-07  Bruno Haible  <bruno@clisp.org>
54781
54782         Use a more portable replacement expression for -0.0L.
54783         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
54784         instead of -0.0L. Fix m4 quotation.
54785
54786         * tests/test-signbit.c: Include <float.h>.
54787         (minus_zero): New variable.
54788         (test_signbitl): Use minus_zero instead of -zero.
54789         * modules/signbit-tests (Depends-on): Add float.
54790
54791         * tests/test-ceill.c: Include <float.h>.
54792         (zero): Remove variable.
54793         (minus_zero): New variable.
54794         (main): Use minus_zero instead of -zero.
54795         * modules/ceill-tests (Depends-on): Add float.
54796
54797         * tests/test-floorl.c: Include <float.h>.
54798         (zero): Remove variable.
54799         (minus_zero): New variable.
54800         (main): Use minus_zero instead of -zero.
54801         * modules/floorl-tests (Depends-on): Add float.
54802
54803         * tests/test-roundl.c: Include <float.h>.
54804         (zero): Remove variable.
54805         (minus_zero): New variable.
54806         (main): Use minus_zero instead of -zero.
54807         * modules/roundl-tests (Depends-on): Add float.
54808
54809         * tests/test-truncl.c: Include <float.h>.
54810         (zero): Remove variable.
54811         (minus_zero): New variable.
54812         (main): Use minus_zero instead of -zero.
54813         * modules/truncl-tests (Depends-on): Add float.
54814
54815         * tests/test-frexpl.c (zero): Remove variable.
54816         (minus_zero): New variable.
54817         (main): Use minus_zero instead of -zero.
54818         * modules/frexpl-tests (Depends-on): Add float.
54819
54820         * tests/test-isnan.c (zerol): Remove variable.
54821         (minus_zerol): New variable.
54822         (test_long_double): Use minus_zerol instead of -zerol.
54823         * modules/isnan-tests (Depends-on): Add float.
54824
54825         * tests/test-isnanl.h (zero): Remove variable.
54826         (minus_zero): New variable.
54827         (main): Use minus_zero instead of -zero.
54828         * modules/isnanl-nolibm-tests (Depends-on): Add float.
54829         * modules/isnanl-tests (Depends-on): Add float.
54830
54831         * tests/test-ldexpl.c (zero): Remove variable.
54832         (minus_zero): New variable.
54833         (main): Use minus_zero instead of -zero.
54834         * modules/ldexpl-tests (Depends-on): Add float.
54835
54836         * tests/test-snprintf-posix.h (zerol): Remove variable.
54837         (minus_zerol): New variable.
54838         (test_function): Use minus_zerol instead of -zerol.
54839         * modules/snprintf-posix-tests (Depends-on): Add float.
54840         * modules/vsnprintf-posix-tests (Depends-on): Add float.
54841
54842         * tests/test-sprintf-posix.h (zerol): Remove variable.
54843         (minus_zerol): New variable.
54844         (test_function): Use minus_zerol instead of -zerol.
54845         * modules/sprintf-posix-tests (Depends-on): Add float.
54846         * modules/vsprintf-posix-tests (Depends-on): Add float.
54847
54848         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
54849         (minus_zerol): New variable.
54850         (test_function): Use minus_zerol instead of -zerol.
54851         * modules/vasnprintf-posix-tests (Depends-on): Add float.
54852
54853         * tests/test-vasprintf-posix.c (zerol): Remove variable.
54854         (minus_zerol): New variable.
54855         (test_function): Use minus_zerol instead of -zerol.
54856         * modules/vasprintf-posix-tests (Depends-on): Add float.
54857
54858 2008-10-07  Simon Josefsson  <simon@josefsson.org>
54859
54860         * MODULES.html.sh (Support for building documentation): Mention
54861         pmccabe2html.  Sort entries.
54862
54863         Add pmccabe2html module, from gnupdf.
54864         * build-aux/pmccabe.css: New file.
54865         * build-aux/pmccabe2html: New file.
54866         * m4/pmccabe2html.m4: New file.
54867         * modules/pmccabe2html: New file.
54868
54869 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
54870
54871         flock: new module
54872         * MODULES.html.sh: Add to list of modules.
54873         * lib/flock.c: flock implementation for Windows and Unix systems
54874         which have fcntl.
54875         * doc/glibc-functions/flock.texi: Update documentation.
54876         * lib/sys_file.in.h: <sys/file.h> header file.
54877         * m4/flock.m4: M4 macros.
54878         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
54879         * modules/flock: flock module.
54880         * modules/flock-tests: flock tests module.
54881         * modules/sys_file: sys/file.h module.
54882         * tests/test-flock.c: test suite for flock.
54883
54884 2008-10-06  Jim Meyering  <meyering@redhat.com>
54885
54886         bootstrap: check for LT_INIT more portably still ;-)
54887         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
54888         Spotted by Bruno Haible.
54889
54890 2008-10-06  Eric Blake  <ebb9@byu.net>
54891
54892         test-signbit: avoid tripping Irix cc bug on -0.0L
54893         * tests/test-signbit.c (minus_zerol): Delete, and replace with
54894         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
54895         entire testsuite consistent and avoids an Irix 6.2 bug.
54896
54897 2008-10-05  Bruno Haible  <bruno@clisp.org>
54898             Jim Meyering  <jim@meyering.net>
54899
54900         Add an option for ignoring EPIPE during close_stdout.
54901         * lib/closeout.h: Include <stdbool.h>.
54902         (close_stdout_set_ignore_EPIPE): New declaration.
54903         * lib/closeout.c: Include <stdbool.h>.
54904         (ignore_EPIPE): New variable.
54905         (close_stdout_set_ignore_EPIPE): New function.
54906         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
54907         * lib/close-stream.c (close_stream): Mention the possible EPIPE
54908         failure.
54909         * modules/closeout (Depends-on): Add stdbool.
54910
54911 2008-10-05  Bruno Haible  <bruno@clisp.org>
54912
54913         * modules/accept: New file.
54914         * modules/bind: New file.
54915         * modules/connect: New file.
54916         * modules/getpeername: New file.
54917         * modules/getsockname: New file.
54918         * modules/getsockopt: New file.
54919         * modules/listen: New file.
54920         * modules/recv: New file.
54921         * modules/recvfrom: New file.
54922         * modules/send: New file.
54923         * modules/sendto: New file.
54924         * modules/setsockopt: New file.
54925         * modules/socket: New file.
54926         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
54927         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
54928         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
54929         the particular module is requested. Add a link warning when the
54930         particular module is not requested.
54931         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
54932         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
54933         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
54934         the particular module is requested.
54935         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
54936         gl_SYS_SOCKET_H_DEFAULTS): New macros.
54937         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
54938         * modules/sys_socket (Depends-on): Add link-warning.
54939         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
54940         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
54941         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
54942         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
54943         GL_LINK_WARNING.
54944         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
54945         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
54946         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
54947         * doc/posix-functions/getpeername.texi: Mention the new module
54948         'getpeername'.
54949         * doc/posix-functions/getsockname.texi: Mention the new module
54950         'getsockname'.
54951         * doc/posix-functions/getsockopt.texi: Mention the new module
54952         'getsockopt'.
54953         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
54954         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
54955         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
54956         * doc/posix-functions/send.texi: Mention the new module 'send'.
54957         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
54958         * doc/posix-functions/setsockopt.texi: Mention the new module
54959         'setsockopt'.
54960         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
54961         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
54962         listen, connect, accept.
54963         * modules/select-tests (Depends-on): Likewise.
54964
54965 2008-10-05  Bruno Haible  <bruno@clisp.org>
54966
54967         * lib/winsock.c (strerror): Remove unused #undef.
54968         (rpl_close): Remove unused local variable.
54969
54970         * modules/sys_socket (Depends-on); Add errno.
54971
54972 2008-10-05  Bruno Haible  <bruno@clisp.org>
54973
54974         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
54975         (select): Add a link warning when the 'select' module is not used.
54976         * modules/sys_select (Depends-on): Add link-warning.
54977         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
54978         Suggested by Paolo Bonzini.
54979
54980 2008-10-05  Jim Meyering  <meyering@redhat.com>
54981
54982         bootstrap: check for LT_INIT more portably
54983         * build-aux/bootstrap: Avoid using grep -E, since it's not
54984         portable enough.  Suggestion from Bruno Haible.
54985
54986 2008-10-05  Bruno Haible  <bruno@clisp.org>
54987
54988         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
54989         as being fixed by gnulib.
54990
54991 2008-10-05  Bruno Haible  <bruno@clisp.org>
54992
54993         * modules/select-tests: New file, mostly copied from
54994         modules/sys_select-tests.
54995         * tests/test-select.c: New file, mostly copied from
54996         tests/test-sys_select.c.
54997         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
54998         * modules/sys_select-tests (Depends-on): Remove all dependencies.
54999         (Makefile.am): Remove test_sys_select_LDADD.
55000
55001         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
55002         to an undefined symbol, for an error message.
55003         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
55004         (gl_SYS_SELECT_H_DEFAULTS): New macro.
55005         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
55006         winsock-select.c here.
55007         * modules/sys_select (Files): Remove lib/winsock-select.c.
55008         (Depends-on): Remove alloca.
55009         (Makefile.am): Substitute GNULIB_SELECT.
55010         * modules/select: New file.
55011         * doc/posix-functions/select.texi: Update.
55012
55013 2008-10-05  Bruno Haible  <bruno@clisp.org>
55014
55015         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
55016         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
55017         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
55018         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
55019         getdtablesize.
55020         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
55021         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
55022
55023 2008-10-05  Bruno Haible  <bruno@clisp.org>
55024
55025         * modules/getdtablesize-tests: New file.
55026         * tests/test-getdtablesize.c: New file.
55027
55028         New module 'getdtablesize'.
55029         * lib/unistd.in.h (getdtablesize): New declaration.
55030         * lib/getdtablesize.c: New file.
55031         * m4/getdtablesize.m4: New file.
55032         * modules/getdtablesize: New file.
55033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55034         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
55035         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
55036         HAVE_GETDTABLESIZE.
55037         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
55038
55039 2008-10-05  Bruno Haible  <bruno@clisp.org>
55040
55041         * modules/sched (Makefile.am): Fix typo.
55042         Reported by Simon Josefsson.
55043
55044 2008-10-05  Jim Meyering  <meyering@redhat.com>
55045
55046         bootstrap: check for LT_INIT, too
55047         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
55048         are deprecated.  Suggestion from Ralf Wildenhues.
55049
55050 2008-10-05  Bruno Haible  <bruno@clisp.org>
55051
55052         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
55053         overriding them by ours.
55054         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
55055
55056 2008-10-05  Jim Meyering  <meyering@redhat.com>
55057
55058         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
55059         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
55060         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
55061
55062 2008-10-04  Bruno Haible  <bruno@clisp.org>
55063
55064         * modules/dup2 (License): Change to LGPLv2+.
55065         * modules/sleep (License): Likewise.
55066         * modules/perror (License): Likewise.
55067         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
55068         Blake.
55069         * modules/signal (License): Likewise.
55070         * modules/sigprocmask (License): Likewise.
55071         * modules/raise (License): Change to LGPLv2+, with approval by Jim
55072         Meyering.
55073
55074 2008-10-04  Bruno Haible  <bruno@clisp.org>
55075
55076         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
55077         Reported by Rainer Tammer <tammer@tammer.net>.
55078
55079 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
55080             Bruno Haible  <bruno@clisp.org>
55081
55082         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
55083         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
55084         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
55085
55086 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
55087
55088         filevercmp: new module
55089         * lib/filevercmp.h: New function filevercmp comparing version strings.
55090         * lib/filevercmp.c: Implementation of filevercmp function.
55091         * modules/filevercmp: Module metadata.
55092         * tests/test-filevercmp.c: Unit test for new module.
55093         * modules/filevercmp-tests: Unit test metadata.
55094         * MODULES.html.sh: Add filevercmp module.
55095
55096 2008-10-03  Bruno Haible  <bruno@clisp.org>
55097
55098         * lib/c-ctype.h: Add comment.
55099         Reported by Jim Meyering.
55100
55101 2008-10-02  Bruno Haible  <bruno@clisp.org>
55102
55103         * modules/posix_spawn-internal (Depends-on): Add 'open'.
55104
55105 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55106
55107         * build-aux/bootstrap: Allow renaming bootstrap, and change the
55108         name of bootstrap.conf accordingly.
55109
55110 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55111
55112         * build-aux/bootstrap: Install git-merge-changelog configuration
55113         items into .gitconfig if needed.
55114
55115 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55116
55117         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
55118         git repository, and initialize/update it accordingly.
55119
55120 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
55121
55122         * modules/fsync-tests: New file.
55123         * tests/test-fsync.c: New file.
55124
55125         New module 'fsync'.
55126         * lib/fsync.c: New file.
55127         * m4/fsync.m4: New file.
55128         * modules/fsync: New file.
55129         * lib/unistd.in.h (fsync): New declaration.
55130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
55131         GNULIB_FSYNC and HAVE_FSYNC.
55132         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
55133         * MODULES.html.sh (posix_functions): Add fsync.
55134         * doc/posix-functions/fsync.texi: Mention the new module.
55135
55136 2008-10-02  Jim Meyering  <meyering@redhat.com>
55137
55138         fts.c: sync with similar code from coreutils' remove.c
55139         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
55140         Guard also with "#if defined __linux__", since for now at least,
55141         this code is Linux-kernel-specific.
55142
55143 2008-10-02  Jim Meyering  <meyering@redhat.com>
55144
55145         fts: bug fixes
55146         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
55147         Include <sys/vfs.h>, not <sys/statfs.h>.
55148
55149         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
55150         Include <sys/vfs.h>, not <sys/statfs.h>.
55151
55152 2008-10-01  Bruno Haible  <bruno@clisp.org>
55153
55154         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
55155         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
55156         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
55157         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
55158         * doc/posix-functions/posix_spawnp.texi: Likewise.
55159         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
55160         whether posix_spawn actually works.
55161         * m4/pipe.m4 (gl_PIPE): Likewise.
55162         * modules/execute (Files): Add m4/posix_spawn.m4.
55163         * modules/pipe (Files): Add m4/posix_spawn.m4.
55164         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
55165
55166 2008-10-01  Jim Meyering  <meyering@redhat.com>
55167
55168         remove trailing spaces
55169         * NEWS: Likewise.
55170         * lib/poll.c (poll): Likewise.
55171         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
55172         * lib/winsock.c (rpl_close): Likewise.
55173         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
55174         * modules/yield: Likewise.
55175         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
55176         * tests/test-sys_select.c (connect_to_socket): Likewise.
55177
55178         fts.c: adjust a new interface to be more generally useful
55179         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
55180         (fts_build): Adjust caller.
55181
55182 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55183
55184         * modules/cond-tests: New file.
55185         * tests/test-cond.c: New file.
55186
55187 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55188             Bruno Haible  <bruno@clisp.org>
55189
55190         * modules/cond (Dependencies): Add errno, time.
55191         * lib/glthread/cond.h: Include <time.h>.
55192         (gl_cond_define, gl_cond_define_initialized): Use the same definition
55193         across platforms.
55194
55195 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55196             Bruno Haible  <bruno@clisp.org>
55197
55198         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
55199
55200 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55201             Bruno Haible  <bruno@clisp.org>
55202
55203         * modules/tls-tests (Depends-on): Add thread, yield.
55204         (configure.ac): Remove all checks.
55205         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
55206         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55207         gl_thread_self): Remove definitions. Include glthread/thread.h and
55208         glthread/yield.h instead.
55209         (test_tls): Pass an additional NULL argument to gl_thread_join.
55210
55211 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55212             Bruno Haible  <bruno@clisp.org>
55213
55214         * modules/lock-tests (Depends-on): Add thread, yield.
55215         (configure.ac): Remove all checks.
55216         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
55217         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55218         gl_thread_self): Remove definitions. Include glthread/thread.h and
55219         glthread/yield.h instead.
55220         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
55221         additional NULL argument to gl_thread_join.
55222
55223 2008-09-30  Bruno Haible  <bruno@clisp.org>
55224
55225         Fix the Win32 implementation of the 'thread' module.
55226         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
55227         pointer type.
55228         (gl_thread_self): Invoke gl_thread_self_func.
55229         (gl_thread_self_func): New declaration.
55230         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
55231         (do_init_self_key, init_self_key): New functions.
55232         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
55233         Remove some fields.
55234         (running_threads, running_lock): Remove variables.
55235         (get_current_thread_handle): New function.
55236         (gl_thread_self_func, wrapper_func, glthread_create_func,
55237         glthread_join_func, gl_thread_exit_func): Largely rewritten and
55238         simplified.
55239
55240 2008-09-30  Bruno Haible  <bruno@clisp.org>
55241
55242         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
55243         files.
55244
55245 2008-09-30  Jim Meyering  <meyering@redhat.com>
55246
55247         fts.m4: correct the test for statfs.f_type
55248         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
55249         when checking for statfs.f_type.
55250
55251 2008-09-15  Simon Josefsson  <simon@josefsson.org>
55252
55253         tests: avoid some compiler warnings
55254         * tests/test-memchr.c (main): Pass NULL indirectly.
55255         * tests/test-getdate.c (main): Remove unused variable 'ret'.
55256
55257 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
55258
55259         getdate.y: disallow countable dayshifts like "4 yesterday ago"
55260         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
55261         exactly specified dayshifts.
55262         (dayshift): New rule.
55263         (rel): Add dayshift.
55264         (relative_time_table) [tomorrow, yesterday, today, now]:
55265         Use tDAY_SHIFT in place of tDAY_UNIT.
55266         * tests/test-getdate.c: Add tests for now-disallowed countable
55267         dayshifts, e.g., "4 yesterday ago".
55268
55269 2008-09-29  Bruno Haible  <bruno@clisp.org>
55270
55271         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
55272         * tests/test-posix_spawn1.in.sh: Renamed from
55273         tests/test-posix_spawn.in.sh.
55274         * tests/test-posix_spawn2.c: New file.
55275         * tests/test-posix_spawn2.in.sh: New file.
55276         * modules/posix_spawnp-tests (Files): Update.
55277         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
55278
55279 2008-09-29  Bruno Haible  <bruno@clisp.org>
55280
55281         Propagate effects of putenv/setenv/unsetenv to child processes.
55282         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
55283         * lib/pipe.c (create_pipe): Likewise.
55284
55285 2008-09-29  Bruno Haible  <bruno@clisp.org>
55286
55287         Enable use of shell scripts as executables in mingw.
55288         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
55289         run the program as a shell script.
55290         * lib/pipe.c (create_pipe): Likewise.
55291         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
55292         resulting array.
55293
55294 2008-09-29  Eric Blake  <ebb9@byu.net>
55295
55296         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
55297
55298 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
55299
55300         * doc/posix-functions/accept.texi: Update mingw problems.
55301         * doc/posix-functions/bind.texi: Update mingw problems.
55302         * doc/posix-functions/close.texi: Update mingw problems.
55303         * doc/posix-functions/connect.texi: Update mingw problems.
55304         * doc/posix-functions/getpeername.texi: Update mingw problems.
55305         * doc/posix-functions/getsockname.texi: Update mingw problems.
55306         * doc/posix-functions/getsockopt.texi: Update mingw problems.
55307         * doc/posix-functions/ioctl.texi: Update mingw problems.
55308         * doc/posix-functions/listen.texi: Update mingw problems.
55309         * doc/posix-functions/recv.texi: Update mingw problems.
55310         * doc/posix-functions/recvfrom.texi: Update mingw problems.
55311         * doc/posix-functions/select.texi: Update mingw problems.
55312         * doc/posix-functions/send.texi: Update mingw problems.
55313         * doc/posix-functions/sendto.texi: Update mingw problems.
55314         * doc/posix-functions/setsockopt.texi: Update mingw problems.
55315         * doc/posix-functions/socket.texi: Update mingw problems.
55316
55317 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
55318             Bruno Haible  <bruno@clisp.org>
55319
55320         * lib/sys_select.in.h: Include sys/time.h.
55321         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
55322         * modules/sys_select: Depend on sys_time.
55323         * tests/test-sys_select.c: Test that sys/select.h defines struct
55324         timeval fully.
55325
55326 2008-09-29  Bruno Haible  <bruno@clisp.org>
55327
55328         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
55329         * lib/sys_select.in.h: Likewise.
55330
55331 2008-09-29  Bruno Haible  <bruno@clisp.org>
55332
55333         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
55334
55335 2008-09-29  Bruno Haible  <bruno@clisp.org>
55336
55337         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
55338         Set LIBSOCKET instead of augmenting LIBS.
55339         * modules/sockets (Link): New section.
55340         * modules/sockets-tests (test_sockets_LDADD): New variable.
55341         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
55342         * modules/poll-tests (test_poll_LDADD): New variable.
55343         * NEWS: Document the change.
55344
55345 2008-09-29  Bruno Haible  <bruno@clisp.org>
55346
55347         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
55348         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
55349         ARPA_INET_H directly.
55350         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55351
55352 2008-09-28  Bruno Haible  <bruno@clisp.org>
55353
55354         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
55355         from gl_HEADER_SYS_SOCKET.
55356         (gl_HEADER_SYS_SOCKET): Invoke it.
55357         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55358
55359 2008-09-28  Bruno Haible  <bruno@clisp.org>
55360
55361         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
55362         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
55363         Needed on OSF/1 4.0.
55364
55365 2008-09-28  Bruno Haible  <bruno@clisp.org>
55366
55367         Override open more carefully.
55368         * lib/open.c (orig_open): New function.
55369         (rpl_open): Use orig_open instead of open.
55370         * lib/fcntl.in.h: Add special invocation convention.
55371         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
55372         (gl_FUNC_OPEN): Invoke it.
55373
55374         Override freopen more carefully.
55375         * lib/freopen.c (orig_freopen): New function.
55376         (rpl_freopen): Use orig_freopen instead of freopen.
55377         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
55378         (gl_FUNC_FREOPEN): Invoke it.
55379
55380         Override fopen more carefully.
55381         * lib/fopen.c (orig_fopen): New function.
55382         (rpl_fopen): Use orig_fopen instead of fopen.
55383         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
55384         (gl_FUNC_FOPEN): Invoke it.
55385         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
55386
55387 2008-09-28  Bruno Haible  <bruno@clisp.org>
55388
55389         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
55390         SIGPIPE.
55391
55392 2008-09-28  Bruno Haible  <bruno@clisp.org>
55393
55394         * tests/test-sigaction.c (handler, main): Disable the check whether
55395         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
55396         glibc systems with LinuxThreads.
55397
55398 2008-09-28  Bruno Haible  <bruno@clisp.org>
55399
55400         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
55401
55402         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
55403         with AIX xlc.
55404         * lib/fcntl.in.h (open): Likewise.
55405         Reported by Rainer Tammer <tammer@tammer.net>.
55406
55407 2008-09-28  Bruno Haible  <bruno@clisp.org>
55408
55409         * modules/posix_spawnp-tests: New file.
55410         * tests/test-posix_spawn.c: New file.
55411         * tests/test-posix_spawn.in.sh: New file.
55412
55413         New module 'posix_spawnp'.
55414         * modules/posix_spawnp: New file.
55415         * lib/spawnp.c: New file, from GNU libc with modifications.
55416         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
55417
55418         New module 'posix_spawn'.
55419         * modules/posix_spawn: New file.
55420         * lib/spawn.c: New file, from GNU libc with modifications.
55421         * doc/posix-functions/posix_spawn.texi: Mention the new module.
55422
55423         New module 'posix_spawnattr_destroy'.
55424         * modules/posix_spawnattr_destroy: New file.
55425         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
55426         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
55427         module.
55428
55429         New module 'posix_spawnattr_setsigmask'.
55430         * modules/posix_spawnattr_setsigmask: New file.
55431         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
55432         modifications.
55433         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
55434         new module.
55435
55436         New module 'posix_spawnattr_getsigmask'.
55437         * modules/posix_spawnattr_getsigmask: New file.
55438         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
55439         modifications.
55440         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
55441         new module.
55442
55443         New module 'posix_spawnattr_setsigdefault'.
55444         * modules/posix_spawnattr_setsigdefault: New file.
55445         * lib/spawnattr_setdefault.c: New file, from GNU libc with
55446         modifications.
55447         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
55448         new module.
55449
55450         New module 'posix_spawnattr_getsigdefault'.
55451         * modules/posix_spawnattr_getsigdefault: New file.
55452         * lib/spawnattr_getdefault.c: New file, from GNU libc with
55453         modifications.
55454         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
55455         new module.
55456
55457         New module 'posix_spawnattr_setschedpolicy'.
55458         * modules/posix_spawnattr_setschedpolicy: New file.
55459         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
55460         modifications.
55461         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
55462         new module.
55463
55464         New module 'posix_spawnattr_getschedpolicy'.
55465         * modules/posix_spawnattr_getschedpolicy: New file.
55466         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
55467         modifications.
55468         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
55469         new module.
55470
55471         New module 'posix_spawnattr_setschedparam'.
55472         * modules/posix_spawnattr_setschedparam: New file.
55473         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
55474         modifications.
55475         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
55476         new module.
55477
55478         New module 'posix_spawnattr_getschedparam'.
55479         * modules/posix_spawnattr_getschedparam: New file.
55480         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
55481         modifications.
55482         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
55483         new module.
55484
55485         New module 'posix_spawnattr_setpgroup'.
55486         * modules/posix_spawnattr_setpgroup: New file.
55487         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
55488         modifications.
55489         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
55490         module.
55491
55492         New module 'posix_spawnattr_getpgroup'.
55493         * modules/posix_spawnattr_getpgroup: New file.
55494         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
55495         modifications.
55496         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
55497         module.
55498
55499         New module 'posix_spawnattr_setflags'.
55500         * modules/posix_spawnattr_setflags: New file.
55501         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
55502         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
55503         module.
55504
55505         New module 'posix_spawnattr_getflags'.
55506         * modules/posix_spawnattr_getflags: New file.
55507         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
55508         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
55509         module.
55510
55511         New module 'posix_spawnattr_init'.
55512         * modules/posix_spawnattr_init: New file.
55513         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
55514         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
55515         module.
55516
55517         New module 'posix_spawn_file_actions_destroy'.
55518         * modules/posix_spawn_file_actions_destroy: New file.
55519         * lib/spawn_faction_destroy.c: New file, from GNU libc with
55520         modifications.
55521         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
55522         the new module.
55523
55524         New module 'posix_spawn_file_actions_addopen'.
55525         * modules/posix_spawn_file_actions_addopen: New file.
55526         * lib/spawn_faction_addopen.c: New file, from GNU libc with
55527         modifications.
55528         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
55529         the new module.
55530
55531         New module 'posix_spawn_file_actions_adddup2'.
55532         * modules/posix_spawn_file_actions_adddup2: New file.
55533         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
55534         modifications.
55535         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
55536         the new module.
55537
55538         New module 'posix_spawn_file_actions_addclose'.
55539         * modules/posix_spawn_file_actions_addclose: New file.
55540         * lib/spawn_faction_addclose.c: New file, from GNU libc with
55541         modifications.
55542         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
55543         the new module.
55544
55545         New module 'posix_spawn_file_actions_init'.
55546         * modules/posix_spawn_file_actions_init: New file.
55547         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
55548         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
55549         new module.
55550
55551         New module 'posix_spawn-internal'.
55552         * modules/posix_spawn-internal: New file.
55553         * lib/spawn_int.h: New file, from GNU libc with modifications.
55554         * lib/spawni.c: New file, from GNU libc with modifications.
55555         * m4/posix_spawn.m4: New file.
55556
55557         New module 'spawn'.
55558         * modules/spawn: New file.
55559         * lib/spawn.in.h: New file, from GNU libc with modifications.
55560         * m4/spawn_h.m4: New file.
55561         * doc/posix-headers/spawn.texi: Mention the new module.
55562
55563 2008-09-28  Bruno Haible  <bruno@clisp.org>
55564
55565         * modules/sched-tests: New file.
55566         * tests/test-sched.c: New file.
55567
55568         New module 'sched'.
55569         * modules/sched: New file.
55570         * lib/sched.in.h: New file.
55571         * m4/sched_h.m4: New file.
55572         * doc/posix-headers/sched.texi: Mention the new module.
55573
55574 2008-09-27  Eric Blake  <ebb9@byu.net>
55575
55576         Fix previous patch, and tweak references to $0.
55577         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
55578         (func_version, func_gnulib_dir): Don't call this program
55579         gnulib-tool.
55580         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
55581         with using $0 in function.
55582         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
55583         (func_fatal_error): Reuse the name the user invoked us with.
55584
55585 2008-09-27  Bruno Haible  <bruno@clisp.org>
55586
55587         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
55588         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
55589         (gl_ICONV_H): Not here.
55590         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
55591         instead of assigning ICONV_H directly.
55592
55593         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
55594         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
55595         WCHAR_H directly.
55596
55597 2008-09-27  Bruno Haible  <bruno@clisp.org>
55598
55599         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
55600         * modules/arpa_inet (Depends-on): Add link-warning.
55601         (Makefile.am): Insert the definition of GL_LINK-WARNING.
55602         * modules/unistd (Makefile.am): Likewise.
55603
55604 2008-09-26  Bruno Haible  <bruno@clisp.org>
55605
55606         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
55607         variables.
55608         (func_version): Essentially copied from gnulib-tool.
55609         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
55610         func_readlink): Copied from gnulib-tool.
55611
55612 2008-09-26  Bruno Haible  <bruno@clisp.org>
55613
55614         * gnulib-tool (func_version): Change directory to $gnulib_dir before
55615         invoking git-version-gen.
55616
55617 2008-09-26  Bruno Haible  <bruno@clisp.org>
55618
55619         * posix-modules: Update to directory names changed on 2008-01-19.
55620         Remove commas in output before splitting into words. No more need to
55621         avoid 'ftruncate' since 2007-02-19.
55622
55623 2008-09-26  Bruno Haible  <bruno@clisp.org>
55624
55625         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
55626
55627 2008-09-26  Bruno Haible  <bruno@clisp.org>
55628
55629         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
55630         * modules/fwriteerror (Depends-on): Add errno.
55631
55632 2008-09-26  Bruno Haible  <bruno@clisp.org>
55633
55634         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
55635         * tests/test-vc-list-files-cvs.sh: Likewise.
55636
55637 2008-09-26  Bruno Haible  <bruno@clisp.org>
55638
55639         * doc/posix-headers/sys_resource.texi: Reorder items.
55640
55641 2008-09-26  Jim Meyering  <meyering@redhat.com>
55642
55643         fts: tweak inode comparison function
55644         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
55645         inode numbers, as documented.
55646
55647         fts: sort dirent entries on inode number before traversing
55648         This avoids a quadratic, seek-related performance penalty when
55649         operating on a directory containing many entries (measurable at 10k;
55650         3.5 hours at 2 million entries with a cold cache) on certain types
55651         of file systems, including ext3 and ext4, but not tmpfs.
55652         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
55653         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
55654         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
55655         (fs_handles_readdir_ordered_dirents_efficiently): New function.
55656         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
55657         (fts_build): Set the stat.st_ino member from D_INO.
55658         If it is likely to be useful, sort dirent entries on inode number.
55659
55660         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
55661         and the struct statfs.f_type member.
55662         * modules/fts (Depends-on): Add d-ino.
55663
55664 2008-09-26  Bruno Haible  <bruno@clisp.org>
55665
55666         * modules/sigpipe-die (Depends-on): Add sigpipe.
55667
55668         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
55669         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
55670         and GNULIB_STDIO_H_SIGPIPE are set.
55671         * lib/stdio-write.c: New file.
55672         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
55673         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55674         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55675         REPLACE_STDIO_WRITE_FUNCS.
55676         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
55677         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55678         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55679         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55680         * modules/stdio (Files): Add lib/stdio-write.c.
55681         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
55682         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55683         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55684         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55685         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
55686         REPLACE_FPRINTF_POSIX.
55687         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
55688         REPLACE_PRINTF_POSIX.
55689         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
55690         REPLACE_VFPRINTF_POSIX.
55691         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
55692         REPLACE_VPRINTF_POSIX.
55693         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
55694         SIGPIPE issue.
55695         * doc/posix-functions/fputc.texi: Likewise.
55696         * doc/posix-functions/fputs.texi: Likewise.
55697         * doc/posix-functions/fwrite.texi: Likewise.
55698         * doc/posix-functions/printf.texi: Likewise.
55699         * doc/posix-functions/putc.texi: Likewise.
55700         * doc/posix-functions/putchar.texi: Likewise.
55701         * doc/posix-functions/puts.texi: Likewise.
55702         * doc/posix-functions/vfprintf.texi: Likewise.
55703         * doc/posix-functions/vprintf.texi: Likewise.
55704
55705         * modules/safe-write (Depends-on): Add write.
55706
55707         * modules/sigpipe-tests: New file.
55708         * tests/test-sigpipe.c: New file.
55709         * tests/test-sigpipe.sh: New file.
55710
55711         * modules/write: New file.
55712         * lib/unistd.in.h: Include <sys/types.h>.
55713         (write): New declaration.
55714         * lib/write.c: New file.
55715         * m4/write.m4: New file.
55716         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55717         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
55718         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
55719         GNULIB_WRITE, REPLACE_WRITE.
55720         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
55721         and the SIGPIPE issue.
55722
55723         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
55724         (raise): New declaration.
55725         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
55726         (ext_signal): New function.
55727         (rpl_raise): New function.
55728         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
55729         GNULIB_SIGNAL_H_SIGPIPE.
55730         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
55731         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
55732
55733         * modules/sigpipe: New file.
55734         * m4/sigpipe.m4: New file.
55735
55736 2008-09-25  Derek Price  <derek@ximbiot.com>
55737             Bruno Haible  <bruno@clisp.org>
55738
55739         * gnulib-tool (func_import): Report all license incompatibilities, not
55740         just the first one.
55741
55742 2008-09-25  Bruno Haible  <bruno@clisp.org>
55743
55744         * gnulib-tool (func_import): When computing the edits, consider not
55745         only the Makefile.ams that exist but also those that will be generated.
55746
55747 2008-09-25  Simon Josefsson  <simon@josefsson.org>
55748
55749         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
55750         fixes gnulib-tool --test warning about duplicate dependency.
55751
55752 2008-09-25  Bruno Haible  <bruno@clisp.org>
55753
55754         * gnulib-tool: Don't ask the user to perform edits in the generated
55755         Makefile.ams.
55756         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
55757         apply to the Makefile.am being generated.
55758         (func_emit_tests_Makefile_am): Execute edits that apply to the
55759         Makefile.am being generated.
55760         (func_import): Setup list of Makefile.am edits before emitting the
55761         Makefile.ams, not at the end.
55762         (func_create_testdir): Update.
55763         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55764
55765 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55766
55767         * gnulib-tool (func_import): Store the --tests-base option in the
55768         comment in gnulib-cache.m4.
55769
55770 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
55771
55772         * NEWS: Document increased portability that sys_select now provides.
55773
55774         * lib/sys_select.in.h: Install select wrapper.
55775         * lib/sys_socket.in.h: Use more descriptive name when there is no
55776         select wrapper.
55777         * lib/winsock-select.c: New.
55778         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
55779         Require gl_HEADER_SYS_SOCKET.
55780         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
55781         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
55782         * tests/test-sys_select.c: Add functional tests.
55783
55784 2008-09-24  Eric Blake  <ebb9@byu.net>
55785
55786         open, fopen: close fd leak in last patch
55787         * lib/open.c (rpl_open): Close fd before returning error.
55788         * lib/fopen.c (rpl_fopen): Close fd before returning error.
55789         * doc/posix-functions/open.texi (open): Document that Irix also
55790         has the bug.
55791         * doc/posix-functions/fopen.texi (fopen): Likewise.
55792         Reported by Paolo Bonzini.
55793
55794 2008-09-24  Bruno Haible  <bruno@clisp.org>
55795
55796         Ensure that a filename ending in a slash cannot be used to access a
55797         non-directory.
55798         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
55799         to check whether it's really a directory.
55800         * lib/fopen.c: Include fcntl.h, unistd.h.
55801         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
55802         and fdopen().
55803         * modules/fopen (Depends-on): Add unistd.
55804         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
55805         * tests/test-fopen.c (main): Likewise.
55806         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
55807         * doc/posix-functions/fopen.texi: Likewise.
55808         Reported by Eric Blake.
55809
55810 2008-09-23  Eric Blake  <ebb9@byu.net>
55811
55812         c-stack: avoid compiler optimizations when provoking overflow
55813         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
55814         recursion harder to optimize, to ensure a stack overflow occurs.
55815         * tests/test-c-stack.c (recurse): Likewise.
55816         Borrowed from libsigsegv.
55817
55818         c-stack: work around Irix sigaltstack bug
55819         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
55820         whether sigaltstack uses wrong end of stack_t (copied in part from
55821         libsigsegv).
55822         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
55823         Irix bug, without requiring an over-allocation.
55824         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
55825         bug.
55826
55827         fopen: document mingw bug on directories
55828         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
55829         not allowing a stream visiting a directory, even though reading
55830         from such a stream is not portable.
55831
55832 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55833
55834         * lib/poll.c: Rewrite.
55835         * modules/poll: Depend on alloca.
55836
55837 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55838
55839         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
55840         instead define prototypes for a full set of wrappers.  Ensure
55841         that Cygwin does not use the compatibility code, which is only
55842         for MinGW.
55843         * lib/winsock.c: New.
55844         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
55845         * modules/sys_socket: Add lib/winsock.c.
55846
55847         * modules/poll-tests: Add errno and perror.
55848         * tests/test-poll.c: Use ioctl, not ioctlsocket.
55849
55850 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55851
55852         * tests/test-poll.c: Downgrade minimum needed Winsock version.
55853
55854 2008-09-23  Bruno Haible  <bruno@clisp.org>
55855
55856         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
55857         * doc/glibc-functions/*: Likewise.
55858
55859 2008-09-23  Simon Josefsson  <simon@josefsson.org>
55860
55861         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
55862         success.
55863
55864 2008-09-22  Eric Blake  <ebb9@byu.net>
55865             Bruno Haible  <bruno@clisp.org>
55866
55867         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
55868         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
55869         supply %A but mishandle pseudo-NaN.
55870         Reported by Simon Josefsson.
55871
55872 2008-09-21  Bruno Haible  <bruno@clisp.org>
55873
55874         * tests/test-lock.c (main): Tweak skip message.
55875         * tests/test-tls.c (main): Likewise.
55876
55877 2008-09-21  Bruno Haible  <bruno@clisp.org>
55878
55879         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
55880         whether 'struct sigaction' has sa_sigaction here...
55881         (gl_PREREQ_SIG_HANDLER_H): ... not here.
55882         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
55883
55884 2008-09-21  Bruno Haible  <bruno@clisp.org>
55885
55886         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
55887         section.
55888         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
55889         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
55890         the new section.
55891         (Support for obsolete systems lacking POSIX:2001): New section.
55892         (String handling <string.h>): Move strdup to the new section.
55893         Suggested by Simon Josefsson and Paolo Bonzini.
55894
55895 2008-09-21  Bruno Haible  <bruno@clisp.org>
55896
55897         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
55898         exponents in %e and %g results on 'long double'. Needed for mingw's
55899         improved *printf functions.
55900         * tests/test-vasprintf-posix.c (test_function): Likewise.
55901         * tests/test-snprintf-posix.h (test_function): Likewise.
55902         * tests/test-sprintf-posix.h (test_function): Likewise.
55903         Reported by Eric Blake.
55904
55905 2008-09-21  Bruno Haible  <bruno@clisp.org>
55906
55907         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
55908         * tests/test-sprintf-posix.h (test_function): Likewise.
55909
55910 2008-09-21  Bruno Haible  <bruno@clisp.org>
55911
55912         * modules/getpass (Depends-on): Add strdup-posix.
55913
55914         New module 'strdup-posix'.
55915         * modules/strdup-posix: New file.
55916         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
55917         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
55918         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55919         REPLACE_STRDUP.
55920         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
55921         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
55922         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55923         strdup-posix.
55924
55925         * modules/strdup (Depends-on): Remove malloc-posix.
55926
55927 2008-09-20  Bruno Haible  <bruno@clisp.org>
55928
55929         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
55930         Wildenhues.
55931
55932 2008-09-20  Bruno Haible  <bruno@clisp.org>
55933
55934         Ensure that wint_t gets defined on IRIX 5.3.
55935         * lib/wchar.in.h (wint_t): Define if not defined by the system.
55936         * lib/wctype.in.h (wint_t): Likewise.
55937         (__wctype_wint_t): Remove type.
55938         (isw*): Use wint_t instead of __wctype_wint_t.
55939         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
55940         * modules/wchar (Files): Add m4/wint_t.m4.
55941         (Makefile.am): Substitute HAVE_WINT_T.
55942         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
55943         * tests/test-wctype.c: Check that wint_t is defined.
55944         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
55945         * doc/posix-headers/wctype.texi: Likewise.
55946         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55947
55948 2008-09-18  Bruno Haible  <bruno@clisp.org>
55949
55950         * gnulib-tool (func_exit): Update comment.
55951
55952 2008-09-18  Simon Josefsson  <simon@josefsson.org>
55953
55954         * modules/getaddrinfo (Depends-on): Remove strdup, this module
55955         assumes strdup exists and does not depend on strdup to return
55956         ENOMEM on out of memory conditions.
55957
55958 2008-09-18  Bruno Haible  <bruno@clisp.org>
55959
55960         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
55961         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
55962         digits for the exponent.
55963
55964 2008-09-18  Jim Meyering  <meyering@redhat.com>
55965             Bruno Haible  <bruno@clisp.org>
55966
55967         * lib/vasnprintf.c (decimal_point_char): Define also if
55968         NEED_PRINTF_INFINITE_LONG_DOUBLE.
55969
55970 2008-09-16  Bruno Haible  <bruno@clisp.org>
55971         and Eric Blake  <ebb9@byu.net>
55972
55973         vasnprintf: support Irix 5.3
55974         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
55975         that mishandle long double infinity.
55976         Reported by Tom G. Christensen.
55977
55978 2008-09-16  Bruno Haible  <bruno@clisp.org>
55979
55980         * doc/glibc-functions/scandir.texi: Mention the function is missing on
55981         Solaris 9.
55982         * doc/glibc-functions/alphasort.texi: Likewise.
55983         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
55984
55985 2008-09-16  Jim Meyering  <meyering@redhat.com>
55986
55987         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
55988         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
55989         a umask modification leak out of a subshell.  Otherwise, the
55990         opensolaris /bin/sh would be accepted and thus cause unwarranted
55991         failures in the coreutils test suite.
55992
55993 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
55994
55995         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
55996         to succeed.
55997
55998 2008-09-16  Jim Meyering  <meyering@redhat.com>
55999
56000         avoid spurious test failure when library is built without ACL support
56001         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
56002         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
56003         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
56004         * tests/test-copy-acl.sh: Likewise.
56005
56006 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56007
56008         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
56009         based on character occurrence counts.
56010
56011 2008-09-15  Eric Blake  <ebb9@byu.net>
56012
56013         tests: avoid some compiler warnings
56014         * tests/test-memchr.c (main): Pass NULL indirectly.
56015         * tests/test-closein.c (main): Avoid unused variable.
56016
56017 2008-09-15  Bruno Haible  <bruno@clisp.org>
56018
56019         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
56020         are missing on OpenBSD 4.0 individually.
56021         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56022
56023 2008-09-15  Bruno Haible  <bruno@clisp.org>
56024
56025         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
56026         * doc/posix-functions/strerror.texi: Mention also Cygwin.
56027         * doc/posix-functions/perror.texi: Likewise.
56028         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
56029         is missing.
56030         Reported by Eric Blake.
56031
56032         * lib/errno.in.h: Use replacement values >= 2000.
56033         Reported by Eric Blake.
56034
56035 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56036
56037         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
56038         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
56039         limit.
56040         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
56041         compareseq was aborted.
56042
56043 2008-09-14  Bruno Haible  <bruno@clisp.org>
56044
56045         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
56046         yvec_edit_count.
56047         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
56048         (fstrcmp_bounded): Simplify result computation accordingly.
56049
56050 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56051
56052         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
56053         (fstrcmp): Define in terms of fstrcmp_bounded.
56054         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
56055         lower_bound argument.
56056         Return quickly if the result is certainly < lower_bound.
56057         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
56058
56059 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56060
56061         * lib/diffseq.h (EARLY_ABORT): New macro.
56062         (compareseq): Change return type to bool. Return true when EARLY_ABORT
56063         evaluates to true.
56064
56065 2008-09-14  Bruno Haible  <bruno@clisp.org>
56066
56067         * modules/perror-tests: New file.
56068         * tests/test-perror.sh: New file.
56069         * tests/test-perror.c: New file.
56070
56071         New module 'perror'.
56072         * lib/stdio.in.h (perror): New declaration.
56073         * lib/perror.c: New file.
56074         * m4/perror.m4: New file.
56075         * modules/perror: New file.
56076         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
56077         * doc/posix-functions/perror.texi: Mention the perror module.
56078         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
56079         REPLACE_PERROR.
56080         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
56081         REPLACE_PERROR.
56082
56083 2008-09-14  Bruno Haible  <bruno@clisp.org>
56084
56085         * modules/stdio (Makefile.am): Reorder to match the order in
56086         lib/stdio.in.h.
56087         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56088
56089 2008-09-13  Bruno Haible  <bruno@clisp.org>
56090
56091         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
56092
56093 2008-09-13  Bruno Haible  <bruno@clisp.org>
56094
56095         Extend strerror to cover the added errno values.
56096         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
56097         (rpl_strerror): Provide error messages for the added errno values and
56098         for the WSA* values.
56099         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
56100         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
56101         strerror.
56102         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
56103         * modules/strerror (Depends-on): Add errno.
56104         * doc/posix-functions/strerror.texi: Document the change.
56105         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
56106         and EOVERFLOW.
56107
56108 2008-09-13  Bruno Haible  <bruno@clisp.org>
56109
56110         * modules/EOVERFLOW: Remove file.
56111         * m4/eoverflow.m4: Remove file.
56112         * modules/EOVERFLOW-tests: Remove file.
56113         * tests/test-EOVERFLOW.c: Remove file.
56114         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
56115         * modules/ftell (Depends-on): Likewise.
56116         * modules/getdelim (Depends-on): Likewise.
56117         * modules/getugroups (Depends-on): Likewise.
56118         * modules/poll (Depends-on): Likewise.
56119         * modules/snprintf (Depends-on): Likewise.
56120         * modules/sprintf-posix (Depends-on): Likewise.
56121         * modules/vasnprintf (Depends-on): Likewise.
56122         * modules/vasprintf (Depends-on): Likewise.
56123         * modules/vfprintf-posix (Depends-on): Likewise.
56124         * modules/vsnprintf (Depends-on): Likewise.
56125         * modules/vsprintf-posix (Depends-on): Likewise.
56126         * modules/xvasprintf (Depends-on): Likewise.
56127         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56128         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
56129         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
56130         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
56131         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56132         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
56133         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
56134         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
56135         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56136         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
56137         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
56138         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
56139         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56140         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
56141         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
56142         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
56143         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56144         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
56145         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
56146         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
56147         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56148         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
56149         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
56150         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
56151         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
56152         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56153         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
56154         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
56155         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
56156         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
56157         * MODULES.html.sh: Remove EOVERFLOW.
56158         * NEWS: Mention the change.
56159
56160 2008-09-13  Bruno Haible  <bruno@clisp.org>
56161
56162         * modules/errno-tests: New file.
56163         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
56164
56165         * lib/errno.in.h: New file.
56166         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
56167         * modules/errno: New file.
56168         * doc/posix-headers/errno.texi: Update documentation.
56169         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
56170
56171 2008-09-13  Bruno Haible  <bruno@clisp.org>
56172
56173         * tests/test-poll.c: Use #if for native Windows, rather than testing
56174         __MSVCRT__.
56175
56176 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56177             Bruno Haible  <bruno@clisp.org>
56178
56179         * lib/glob.c: Don't include <pwd.h> on native Windows.
56180         (WINDOWS32): New macro.
56181         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
56182
56183 2008-09-13  Bruno Haible  <bruno@clisp.org>
56184
56185         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
56186         (ETIMEDOUT): Remove macro.
56187         (glthread_cond_timedwait_multithreaded): New declaration.
56188         (glthread_cond_timedwait): Use it.
56189         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
56190         (glthread_cond_timedwait_multithreaded): New function.
56191
56192 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56193
56194         * modules/poll-tests: Do not check for io.h.
56195         * tests/test-poll.c: Check for __MSVCRT__ instead.
56196
56197 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56198
56199         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
56200         * modules/poll-tests: Add inet_pton, stdbool, sockets.
56201         * tests/test-poll.c: Use them.  Use _pipe on Windows.
56202
56203 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56204
56205         * modules/poll-tests: New.
56206         * tests/test-poll.c: New.
56207
56208 2008-09-12  Eric Blake  <ebb9@byu.net>
56209
56210         frexp: test for NetBSD failure on -0.0
56211         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
56212         not all, bugs from NetBSD 3.0 have been fixed.
56213         * doc/posix-functions/frexp.texi (frexp): Document bug.
56214         Reported by Thomas Klausner.
56215
56216         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
56217         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
56218         literal -0.0.
56219         Reported by Jonathan C. Patschke <jp@centtech.com>.
56220
56221 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56222
56223         * lib/glthread/cond.h: Use dummy implementation also if
56224         USE_WIN32_THREADS.
56225
56226 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56227
56228         * modules/fnmatch-posix (License): Change to LGPLv2+.
56229         * modules/fnmatch-gnu (License): Likewise.
56230
56231 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56232
56233         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
56234
56235 2008-09-11  Jim Meyering  <meyering@redhat.com>
56236
56237         * users.txt: Add gtk-vnc.
56238
56239 2008-09-08  Simon Josefsson  <simon@josefsson.org>
56240
56241         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
56242         rotate amounts.
56243
56244         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
56245         required for 16-bit and 8-bit rotates.
56246         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
56247         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
56248         UINT8_MAX instead of hard-coded constants.
56249         Suggested by Paul Eggert.
56250
56251 2008-09-07  Bruno Haible  <bruno@clisp.org>
56252
56253         * tests/test-striconveh.c (main): Check behaviour when converting from
56254         UTF-7.
56255
56256         Make striconveh work better with stateful encodings.
56257         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
56258         that iconv does not increment the inptr when returning -1/EINVAL.
56259
56260 2008-09-07  Bruno Haible  <bruno@clisp.org>
56261
56262         * build-aux/config.rpath: Update according to libtool-2.2.6.
56263         * build-aux/config.libpath: Likewise.
56264
56265 2008-09-06  Bruno Haible  <bruno@clisp.org>
56266
56267         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
56268         * lib/freadptr.c (freadptr): Likewise.
56269         * lib/freadseek.c (freadptrinc): Likewise.
56270         Reported by Simon Josefsson.
56271
56272 2008-09-06  Bruno Haible  <bruno@clisp.org>
56273
56274         * modules/freadptr (License): Change to LGPLv2+.
56275         * modules/freadseek (License): Likewise.
56276         Suggested by Eric Blake.
56277
56278         * modules/memchr2 (License): Change to LGPLv2+.
56279         Approved by Eric Blake.
56280
56281 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56282             Bruno Haible  <bruno@clisp.org>
56283
56284         Make gnulib-tool work with native 'sed' on AIX.
56285         * gnulib-tool (sed_noop): New variable.
56286         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
56287         func_add_or_update, func_create_testdir): Use it to initialize sed
56288         script variables.
56289         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56290
56291 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
56292             Bruno Haible  <bruno@clisp.org>
56293
56294         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
56295         also works after #include directives.
56296
56297 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
56298
56299         getdate.y: reject an out-of-range timezone value
56300         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
56301         the range [-24...+24].  When specified with only one or two digits,
56302         * tests/test-getdate.c: Tests for the fix.
56303         * doc/getdate.texi: Document this change.
56304
56305 2008-09-03  Bruno Haible  <bruno@clisp.org>
56306
56307         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
56308
56309 2008-09-02  Simon Josefsson  <simon@josefsson.org>
56310
56311         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
56312         <bruce.korb@gmail.com> with ideas from Ben Pfaff
56313         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
56314         Blake <ebb9@byu.net>.
56315
56316         * tests/test-bitrotate.c: Add more test vectors.
56317
56318 2008-09-02  Eric Blake  <ebb9@byu.net>
56319
56320         vasnprintf-posix: handle large precision via %.*d
56321         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
56322         when handling it ourselves.
56323         * tests/test-vasnprintf-posix.c (test_function): Add test.
56324         * tests/test-snprintf-posix.h (test_function): Likewise.
56325         * tests/test-sprintf-posix.h (test_function): Likewise.
56326         * tests/test-vasprintf-posix.c (test_function): Likewise.
56327         Reported by Alain Guibert.
56328
56329 2008-09-01  Eric Blake  <ebb9@byu.net>
56330
56331         c-stack: make configure-time check more robust
56332         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
56333         successful sigaction call.
56334         Reported by Tom G. Christensen.
56335
56336 2008-09-01  Bruno Haible  <bruno@clisp.org>
56337
56338         New module 'findprog-lgpl'.
56339         * modules/findprog-lgpl: New file.
56340         * lib/findprog-lgpl.c: New file.
56341         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
56342         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
56343         to decide whether to use strdup or xstrdup, concatenated_filename or
56344         xconcatenated_filename.
56345
56346 2008-09-01  Bruno Haible  <bruno@clisp.org>
56347
56348         Split module 'concat-filename' into 'concat-filename' (LGPL) and
56349         'xconcat-filename' (GPL).
56350         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
56351         (License): Change to LGPLv2+.
56352         * modules/xconcat-filename: New file.
56353         * lib/concat-filename.h (concatenated_filename): Change specification.
56354         (xconcatenated_filename): New declaration.
56355         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
56356         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
56357         memory situations.
56358         * lib/xconcat-filename.c: New file.
56359         * NEWS: Mention the change.
56360         * lib/findprog.c: Include concat-filename.h, not filename.h.
56361         (find_in_path): Use xconcatenated_filename instead of
56362         concatenated_filename.
56363         * lib/javacomp.c: Include concat-filename.h, not filename.h.
56364         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56365         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56366         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56367         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
56368         instead of concatenated_filename.
56369         * lib/javaexec.c: Include concat-filename.h, not filename.h.
56370         (execute_java_class): Use xconcatenated_filename instead of
56371         concatenated_filename.
56372         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
56373         * modules/javacomp (Depends-on): Likewise.
56374         * modules/javaexec (Depends-on): Likewise.
56375
56376 2008-09-01  Bruno Haible  <bruno@clisp.org>
56377
56378         Split module 'filename' into 'filename' and 'concat-filename'.
56379         * modules/filename: Keep only lib/filename.h.
56380         (License): Change to LGPLv2+.
56381         * modules/concat-filename: New file, extracted from modules/filename.
56382         * lib/filename.h (concatenated_filename): Remove declaration.
56383         * lib/concat-filename.h: New file, extracted from lib/filename.h.
56384         * lib/concat-filename.c: Include concat-filename.h.
56385         * NEWS: Mention the change.
56386
56387 2008-09-01  Simon Josefsson  <simon@josefsson.org>
56388
56389         * lib/bitrotate.h (rotl8, rotr8): Add.
56390
56391         * modules/bitrotate (configure.ac): Need
56392         AC_REQUIRE([AC_C_INLINE]).
56393         (Description): Mention stdint.h.  Reported by Bruno Haible
56394         <bruno@clisp.org>.
56395
56396         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
56397         Paolo Bonzini <bonzini@gnu.org>.
56398
56399 2008-08-31  Bruno Haible  <bruno@clisp.org>
56400
56401         Assume Solaris specific bi-arch conventions on Solaris systems.
56402         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
56403         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
56404         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
56405         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
56406         like acl_libdirstem.
56407         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
56408         acl_libdirstem.
56409         * NEWS: Mention the change.
56410         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
56411
56412 2008-08-31  Jim Meyering  <meyering@redhat.com>
56413
56414         * lib/strftime.h: Add comments describing the two added arguments.
56415
56416         remove duplicate #include directives
56417         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
56418         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
56419
56420 2008-08-31  Bruno Haible  <bruno@clisp.org>
56421
56422         New module 'sigpipe-die'.
56423         * modules/sigpipe-die: New file.
56424         * lib/sigpipe-die.h: New file.
56425         * lib/sigpipe-die.c: New file.
56426         * MODULES.html.sh (Signal handling): Add sigpipe-die.
56427
56428 2008-08-31  Bruno Haible  <bruno@clisp.org>
56429
56430         Don't override previously installed signal handlers.
56431         * lib/fatal-signal.c (saved_sigactions): New variable.
56432         (uninstall_handlers): Reset the signal to the saved handler, not
56433         to SIG_DFL (except when ignored).
56434         (install_handlers): Save the previous handlers.
56435
56436 2008-08-30  Bruno Haible  <bruno@clisp.org>
56437
56438         * gnulib-tool (func_reset_sigpipe): New function.
56439         (func_get_automake_snippet, func_modules_transitive_closure,
56440         func_import): Invoke it before a join command that reads from stdin,
56441         to avoid "echo: write error: Broken pipe" error messages on stderr.
56442         Reported by Sam Steingold <sds@gnu.org>.
56443
56444 2008-08-30  Bruno Haible  <bruno@clisp.org>
56445
56446         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
56447         Code copied from m4/open.m4.
56448         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
56449         access and the filename ends in a slash. Code copied from lib/open.c.
56450         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
56451         * tests/test-fopen.c (main): Check against bug with trailing slash.
56452
56453 2008-08-29  Bruno Haible  <bruno@clisp.org>
56454
56455         Avoid some "gcc -pedantic" warnings.
56456         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
56457         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
56458         * lib/dirent.in.h: Likewise.
56459         * lib/fcntl.in.h: Likewise.
56460         * lib/float.in.h: Likewise.
56461         * lib/iconv.in.h: Likewise.
56462         * lib/inttypes.in.h: Likewise.
56463         * lib/locale.in.h: Likewise.
56464         * lib/math.in.h: Likewise.
56465         * lib/netinet_in.in.h: Likewise.
56466         * lib/search.in.h: Likewise.
56467         * lib/signal.in.h: Likewise.
56468         * lib/stdarg.in.h: Likewise.
56469         * lib/stdint.in.h: Likewise.
56470         * lib/stdio.in.h: Likewise.
56471         * lib/stdlib.in.h: Likewise.
56472         * lib/string.in.h: Likewise.
56473         * lib/strings.in.h: Likewise.
56474         * lib/sys_select.in.h: Likewise.
56475         * lib/sys_socket.in.h: Likewise.
56476         * lib/sys_stat.in.h: Likewise.
56477         * lib/sys_time.in.h: Likewise.
56478         * lib/sysexits.in.h: Likewise.
56479         * lib/time.in.h: Likewise.
56480         * lib/unistd.in.h: Likewise.
56481         * lib/wchar.in.h: Likewise.
56482         * lib/wctype.in.h: Likewise.
56483         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
56484         * modules/fchdir (Makefile.am): Likewise.
56485         * modules/fcntl (Makefile.am): Likewise.
56486         * modules/float (Makefile.am): Likewise.
56487         * modules/iconv_open (Makefile.am): Likewise.
56488         * modules/inttypes (Makefile.am): Likewise.
56489         * modules/locale (Makefile.am): Likewise.
56490         * modules/math (Makefile.am): Likewise.
56491         * modules/netinet_in (Makefile.am): Likewise.
56492         * modules/search (Makefile.am): Likewise.
56493         * modules/signal (Makefile.am): Likewise.
56494         * modules/stdarg (Makefile.am): Likewise.
56495         * modules/stdint (Makefile.am): Likewise.
56496         * modules/stdio (Makefile.am): Likewise.
56497         * modules/stdlib (Makefile.am): Likewise.
56498         * modules/string (Makefile.am): Likewise.
56499         * modules/strings (Makefile.am): Likewise.
56500         * modules/sys_select (Makefile.am): Likewise.
56501         * modules/sys_socket (Makefile.am): Likewise.
56502         * modules/sys_stat (Makefile.am): Likewise.
56503         * modules/sys_time (Makefile.am): Likewise.
56504         * modules/sysexits (Makefile.am): Likewise.
56505         * modules/time (Makefile.am): Likewise.
56506         * modules/unistd (Makefile.am): Likewise.
56507         * modules/wchar (Makefile.am): Likewise.
56508         * modules/wctype (Makefile.am): Likewise.
56509         Reported by Reuben Thomas <rrt@sc3d.org>.
56510
56511 2008-08-29  Bruno Haible  <bruno@clisp.org>
56512
56513         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
56514         any more.
56515
56516 2008-08-29  Simon Josefsson  <simon@josefsson.org>
56517
56518         * MODULES.html.sh (Misc): Add bitrotate.
56519
56520         * modules/bitrotate: New file.
56521
56522         * lib/bitrotate.h: New file.
56523
56524         * modules/bitrotate-tests: New file.
56525
56526         * tests/test-bitrotate.c: New file.
56527
56528         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
56529         on the bitrotate module.
56530
56531         * lib/arctwo.c: Use new bitrotate module.
56532
56533 2008-08-29  Jim Meyering  <meyering@redhat.com>
56534
56535         bootstrap: merge changes from coreutils
56536         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
56537         of copied files.  Remove a kludge, now that this is fixed.
56538         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
56539         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
56540         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
56541
56542 2008-08-29  Bruno Haible  <bruno@clisp.org>
56543
56544         * MODULES.html.sh: Remove --cvs-urls option.
56545
56546 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
56547
56548         maint.mk: adjust to file name change
56549         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
56550
56551 2008-08-28  Jim Meyering  <meyering@redhat.com>
56552
56553         * modules/getndelim2 (License): Relicense to LGPLv2+.
56554         Approved by Richard Stallman for the version of 1995, and by
56555         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
56556
56557 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
56558
56559         * lib/getdelim.c (flockfile, funlockfile): Make all of them
56560         dummy if one is not available.  Do not touch them if
56561         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
56562         (getc_maybe_unlocked): New.
56563         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
56564
56565 2008-08-26  Eric Blake  <ebb9@byu.net>
56566
56567         doc/INSTALL: resync from autoconf
56568         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
56569         (INSTALL_PRELUDE): Delete; this is done more efficiently by
56570         moving...
56571         * install.texi [!autoconf]: ...here.  Resync from autoconf.
56572         * INSTALL: Regenerate.
56573         * INSTALL.ISO: New file.
56574         * INSTALL.UTF-8: Likewise.
56575
56576 2008-08-26  Jim Meyering  <meyering@redhat.com>
56577
56578         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
56579         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
56580         these definitions conditional, so that they may be overridden, too.
56581
56582 2008-08-26  Bruno Haible  <bruno@clisp.org>
56583
56584         Generate INSTALL file variants with prettier quotes.
56585         * doc/Makefile (INSTALL_PRELUDE): New macro.
56586         (INSTALL): Use it.
56587         (INSTALL.ISO, INSTALL.UTF-8): New rules.
56588
56589 2008-08-26  Bruno Haible  <bruno@clisp.org>
56590
56591         Run makeinfo in an English locale.
56592         * doc/Makefile (MAKEINFO): New variable.
56593
56594 2008-08-26  Bruno Haible  <bruno@clisp.org>
56595
56596         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
56597         Suggested by Eric Blake.
56598
56599 2008-08-25  Bruno Haible  <bruno@clisp.org>
56600
56601         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
56602
56603 2008-08-25  Eric Blake  <ebb9@byu.net>
56604
56605         c-stack: test that stack overflow can be caught
56606         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
56607         that platform allows handling stack overflow; at least OS/2 EMX
56608         has sigaltstack, but crashes before transferring control to
56609         handler on stack overflow.
56610         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
56611         check for HAVE_STACK_OVERFLOW_HANDLING.
56612         Reported by Elbert Pol.
56613
56614 2008-08-25  Bruno Haible  <bruno@clisp.org>
56615
56616         * doc/posix-functions/strftime.texi: Fix description of strftime
56617         module.
56618
56619 2008-08-24  Bruno Haible  <bruno@clisp.org>
56620
56621         * tests/uniwidth/test-uc_width2.c: New file.
56622         * tests/uniwidth/test-uc_width2.sh: New file.
56623         * modules/uniwidth/width-tests (Files): Add the new files.
56624         (TESTS): Add uniwidth/test-uc_width2.sh.
56625         (TESTS_ENVIRONMENT): New variable.
56626         (check_PROGRAMS): Add test-uc_width2.
56627         (test_uc_width2_SOURCES): New variable.
56628
56629         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
56630         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
56631         not 0x00AB.
56632         Reported by Alexander V. Lukyanov <lav@netis.ru>.
56633
56634 2008-08-22  Eric Blake  <ebb9@byu.net>
56635
56636         test-lock, test-tls: mention why a test is skipped
56637         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
56638         skipped.
56639         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
56640
56641         count-one-bits: relax license
56642         * modules/count-one-bits (License): Relicense to LGPLv2+.
56643         Suggested by Ludovic Courtès, approved by Ben Pfaff.
56644
56645 2008-08-22  Andreas Schwab  <schwab@suse.de>
56646
56647         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
56648         Remove spurious space in assignment.
56649
56650 2008-08-21  Simon Josefsson  <simon@josefsson.org>
56651
56652         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
56653         Paul Eggert <eggert@CS.UCLA.EDU>.
56654
56655 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
56656
56657         * modules/gettext: Add m4/threadlib.m4.
56658
56659 2008-08-19  Eric Blake  <ebb9@byu.net>
56660
56661         test-c-stack: fix compilation failure on FreeBSD 5.0
56662         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
56663         headers before <sys/resource.h>.
56664         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
56665         the bug.
56666         Reported by Nelson H. F. Beebe.
56667
56668         strverscmp: migrate from "strverscmp.h" to <string.h>
56669         * modules/string (Makefile.am): Add new hooks.
56670         * modules/strverscmp (Files): Remove strverscmp.h.
56671         (Depends-on): Add string.
56672         (configure.ac): Add indicator.
56673         (Include): Mention new header.
56674         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
56675         defaults.
56676         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
56677         results.
56678         * lib/strverscmp.h: Delete.
56679         * lib/string.in.h (strverscmp): Provide declaration, when needed.
56680         * tests/test-strverscmp.c (includes): Adjust client.
56681         * lib/check-version.c (includes): Likewise.
56682         * NEWS: Document the change.
56683
56684         strverscmp: add unit test
56685         * modules/strverscmp-tests: New file.
56686         * tests/test-strverscmp.c: Likewise.
56687
56688 2008-08-19  Simon Josefsson  <simon@josefsson.org>
56689
56690         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
56691         regarding Windows crypto stuff, from Mono.
56692
56693 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
56694
56695         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
56696         if present, for intel RND.  Return error on failures.
56697
56698 2008-08-18  Ben Pfaff  <blp@gnu.org>
56699
56700         gitlog-to-changelog: give better diagnostic for failed pipe-open
56701         * build-aux/gitlog-to-changelog: Improve error message: suggest
56702         that the version of Git may be too old.
56703
56704 2008-08-18  Simon Josefsson  <simon@josefsson.org>
56705
56706         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
56707         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
56708
56709 2008-08-18  Bruno Haible  <bruno@clisp.org>
56710
56711         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
56712         pthread_in_use().
56713
56714 2008-08-18  Bruno Haible  <bruno@clisp.org>
56715
56716         * lib/glthread/threadlib.c: Include <pthread.h>.
56717
56718 2008-08-18  Bruno Haible  <bruno@clisp.org>
56719
56720         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
56721         glthread_recursive_lock_* macros.
56722         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
56723         Fix syntax error.
56724
56725 2008-08-18  Bruno Haible  <bruno@clisp.org>
56726
56727         * lib/glthread/thread.c: Avoid forcing a context switch right after
56728         thread creation.
56729
56730 2008-08-17  Bruno Haible  <bruno@clisp.org>
56731
56732         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
56733         * lib/glthread/thread.h: Provide Win32 specific implementation.
56734         * modules/thread (Files): Add lib/glthread/thread.c.
56735         (Depends-on): Add lock.
56736         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
56737
56738 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56739
56740         New module 'yield'.
56741         * modules/yield: New file.
56742         * lib/glthread/yield.h: New file.
56743         * m4/yield.m4: New file.
56744         * MODULES.html.sh (Multithreading): Add yield.
56745
56746 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56747
56748         New module 'thread'.
56749         * modules/thread: New file.
56750         * lib/glthread/thread.h: New file.
56751         * m4/thread.m4: New file.
56752         * MODULES.html.sh (Multithreading): Add thread.
56753
56754 2008-08-17  Bruno Haible  <bruno@clisp.org>
56755
56756         * lib/glthread/lock.h: Include <stdlib.h> always.
56757         * lib/glthread/tls.h: Likewise.
56758         * lib/glthread/cond.h: Likewise.
56759
56760 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56761
56762         New module 'cond'.
56763         * modules/cond: New file.
56764         * lib/glthread/cond.h: New file.
56765         * lib/glthread/cond.c: New file.
56766         * m4/cond.m4: New file.
56767         * MODULES.html.sh (Multithreading): Add cond.
56768
56769 2008-08-16  Eric Blake  <ebb9@byu.net>
56770
56771         c-stack: fix regression on Irix 5.3 from 2008-06-21
56772         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
56773         sa_sigaction...
56774         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
56775         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
56776         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
56777         * modules/signal (Makefile.am): Use the value.
56778         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
56779         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
56780         * doc/posix-headers/signal.texi (signal.h): Document this
56781         portability issue.
56782         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
56783         Reported by Tom G. Christensen.
56784
56785 2008-08-17  Bruno Haible  <bruno@clisp.org>
56786
56787         New module 'threadlib'.
56788         * modules/threadlib: New file.
56789         * lib/glthread/threadlib.c: New file, extracted from
56790         lib/glthread/lock.c.
56791         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
56792         functions.
56793         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
56794         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
56795         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
56796         macros.
56797         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
56798         (gl_DISABLE_THREADS): Remove macro.
56799         * modules/lock (Files): Remove build-aux/config.rpath.
56800         (Depends-on): Remove havelib. Add threadlib.
56801         (configure.ac-early): Remove section.
56802         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
56803         * modules/tls (Depends-on): Remove lock. Add threadlib.
56804         (Link): New section, copied from threadlib.
56805         * MODULES.html.sh (Multithreading): Add threadlib.
56806
56807 2008-08-14  Bruno Haible  <bruno@clisp.org>
56808
56809         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
56810         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
56811         glthread_rwlock_unlock, glthread_rwlock_destroy,
56812         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
56813         glthread_recursive_lock_destroy): Define as macros always.
56814         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
56815         glthread_lock_lock.
56816         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
56817         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
56818         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
56819         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
56820         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
56821         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
56822         (glthread_recursive_lock_lock_func): Renamed from
56823         glthread_recursive_lock_lock.
56824         (glthread_recursive_lock_unlock_func): Renamed from
56825         glthread_recursive_lock_unlock.
56826         (glthread_recursive_lock_destroy_func): Renamed from
56827         glthread_recursive_lock_destroy.
56828
56829 2008-08-14  Bruno Haible  <bruno@clisp.org>
56830
56831         * lib/glthread/lock.h: Renamed from lib/lock.h.
56832         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
56833         * lib/glthread/tls.h: Renamed from lib/tls.h.
56834         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
56835         * lib/fstrcmp.c: Update includes.
56836         * lib/strsignal.c: Update includes.
56837         * modules/lock (Files, Makefile.am): Update.
56838         (Include): Change to "glthread/lock.h".
56839         * modules/tls (Files, Makefile.am): Update.
56840         (Include): Change to "glthread/tls.h".
56841         * tests/test-lock.c: Update includes.
56842         * tests/test-tls.c: Update includes.
56843         * NEWS: Mention the renamed header files.
56844
56845 2008-08-11  Jim Meyering  <meyering@redhat.com>
56846
56847         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
56848
56849 2008-08-11  Eric Blake  <ebb9@byu.net>
56850
56851         test-c-stack: avoid C99-ism
56852         * tests/test-c-stack.c (main): Fix whitespace, move declaration
56853         before statement.
56854         Reported by Alain Guibert.
56855
56856 2008-08-10  Jim Meyering  <meyering@redhat.com>
56857
56858         ensure that return value of uinttostr et al are not ignored
56859         * lib/inttostr.h (__GNUC_PREREQ): Define.
56860         (__attribute_warn_unused_result__): Define.
56861         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
56862
56863 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
56864
56865         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
56866         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
56867
56868 2008-08-07  Jim Meyering  <meyering@redhat.com>
56869
56870         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
56871
56872         * modules/mkstemp (License): Relicense under LGPLv2+.
56873         * modules/tempname (License): Likewise.
56874
56875 2008-08-06  Bruno Haible  <bruno@clisp.org>
56876
56877         * lib/poll.c (poll): Further micro-optimization.
56878
56879 2008-08-06  Jim Meyering  <meyering@redhat.com>
56880
56881         inet_pton.c: use locale-independent tolower
56882         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
56883         (inet_pton6): Use c_tolower rather than tolower.
56884         * modules/inet_pton (Depends-on): Add c-ctype.
56885
56886 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
56887
56888         * lib/poll.c (poll): Avoid division when timeout is 0, cache
56889         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
56890
56891 2008-08-06  Jim Meyering  <meyering@redhat.com>
56892
56893         * modules/inet_pton (License): Relicense under LGPLv2+.
56894
56895 2008-08-03  Bruno Haible  <bruno@clisp.org>
56896
56897         Additional non-aborting API for lock and tls.
56898         * lib/lock.h: Include <errno.h>.
56899         (glthread_lock_init): New macro/function.
56900         (gl_lock_init): Define as wrapper around glthread_lock_init.
56901         (glthread_lock_lock): New macro/function.
56902         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
56903         (glthread_lock_unlock): New macro/function.
56904         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
56905         (glthread_lock_destroy): New macro/function.
56906         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
56907         (glthread_rwlock_init): New macro/function.
56908         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
56909         (glthread_rwlock_rdlock): New macro/function.
56910         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
56911         (glthread_rwlock_wrlock): New macro/function.
56912         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
56913         (glthread_rwlock_unlock): New macro/function.
56914         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
56915         (glthread_rwlock_destroy): New macro/function.
56916         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
56917         (glthread_recursive_lock_init): New macro/function.
56918         (gl_recursive_lock_init): Define as wrapper around
56919         glthread_recursive_lock_init.
56920         (glthread_recursive_lock_lock): New macro/function.
56921         (gl_recursive_lock_lock): Define as wrapper around
56922         glthread_recursive_lock_lock.
56923         (glthread_recursive_lock_unlock): New macro/function.
56924         (gl_recursive_lock_unlock): Define as wrapper around
56925         glthread_recursive_lock_unlock.
56926         (glthread_recursive_lock_destroy): New macro/function.
56927         (gl_recursive_lock_destroy): Define as wrapper around
56928         glthread_recursive_lock_destroy.
56929         (glthread_once): New macro/function.
56930         (gl_once): Define as wrapper around glthread_once.
56931         Update function declarations.
56932         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
56933         glthread_rwlock_init. Return error code.
56934         (glthread_rwlock_rdlock_multithreaded): Renamed from
56935         glthread_rwlock_rdlock. Return error code.
56936         (glthread_rwlock_wrlock_multithreaded): Renamed from
56937         glthread_rwlock_wrlock. Return error code.
56938         (glthread_rwlock_unlock_multithreaded): Renamed from
56939         glthread_rwlock_unlock. Return error code.
56940         (glthread_rwlock_destroy_multithreaded): Renamed from
56941         glthread_rwlock_destroy. Return error code.
56942         (glthread_recursive_lock_init_multithreaded): Renamed from
56943         glthread_recursive_lock_init. Return error code.
56944         (glthread_recursive_lock_lock_multithreaded): Renamed from
56945         glthread_recursive_lock_lock. Return error code.
56946         (glthread_recursive_lock_unlock_multithreaded): Renamed from
56947         glthread_recursive_lock_unlock. Return error code.
56948         (glthread_recursive_lock_destroy_multithreaded): Renamed from
56949         glthread_recursive_lock_destroy. Return error code.
56950         (glthread_once_call): Make static.
56951         (glthread_once_multithreaded): Renamed from glthread_once.
56952         * lib/tls.h: Include <errno.h>.
56953         (glthread_tls_key_init): New macro/function.
56954         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
56955         (glthread_tls_set): New macro/function.
56956         (gl_tls_set): Define as wrapper around glthread_tls_set.
56957         (glthread_tls_key_destroy): New macro/function.
56958         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
56959         Update function declarations.
56960         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
56961         glthread_tls_get.
56962         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56963
56964 2008-08-04  Eric Blake  <ebb9@byu.net>
56965
56966         gnumakefile: use space, not TAB, outside of targets
56967         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
56968
56969 2008-08-02  Jim Meyering  <meyering@redhat.com>
56970
56971         getdate.y: avoid locale-dependent date parsing failure
56972         In Turkish locales, getdate would fail to recognize keywords
56973         containing a lowercase "i".  The solution is not to rely on
56974         locale-sensitive case-conversion.
56975         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
56976         (lookup_word): Use c_toupper in place of toupper.
56977         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
56978         Reported by Vefa Bicakci <bicave@superonline.com> in
56979         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
56980         * modules/getdate (Depends-on): Add c-ctype.
56981
56982 2008-08-02  Bruno Haible  <bruno@clisp.org>
56983
56984         * gnulib-tool (func_import): When updating or creating a .gitignore
56985         file, prepend each added line with a slash, and ignore leading slashes
56986         from the existing lines.
56987         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56988
56989 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56990
56991         Portability fix for GNU make 3.79.1.
56992         * top/GNUmakefile: Avoid 'else COND', which older GNU make
56993         versions do not understand.
56994
56995 2008-08-01  Bruno Haible  <bruno@clisp.org>
56996
56997         Work around bug of HP-UX 10.20 cc with -0.0 literal.
56998         * tests/test-isnanf.h (zero): New variable.
56999         (main): Avoid literal -0.0f.
57000         * tests/test-isnand.h (zero): New variable.
57001         (main): Avoid literal -0.0.
57002         * tests/test-isnanl.h (zero): New variable.
57003         (main): Avoid literal -0.0L.
57004         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
57005         (test_float, test_double, test_long_double): Avoid literals -0.0f,
57006         -0.0, -0.0L.
57007         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
57008         (test_signbitd): Avoid literal -0.0.
57009         (test_signbitl): Avoid literal -0.0L.
57010         * tests/test-ceilf1.c (zero): New variable.
57011         (main): Avoid literal -0.0f.
57012         * tests/test-ceill.c (zero): New variable.
57013         (main): Avoid literal -0.0L.
57014         * tests/test-floorf1.c (zero): New variable.
57015         (main): Avoid literal -0.0f.
57016         * tests/test-floorl.c (zero): New variable.
57017         (main): Avoid literal -0.0L.
57018         * tests/test-roundf1.c (zero): New variable.
57019         (main): Avoid literal -0.0f.
57020         * tests/test-round1.c (zero): New variable.
57021         (main): Avoid literal -0.0.
57022         * tests/test-roundl.c (zero): New variable.
57023         (main): Avoid literal -0.0L.
57024         * tests/test-truncf1.c (zero): New variable.
57025         (main): Avoid literal -0.0f.
57026         * tests/test-trunc1.c (zero): New variable.
57027         (main): Avoid literal -0.0.
57028         * tests/test-truncl.c (zero): New variable.
57029         (main): Avoid literal -0.0L.
57030         * tests/test-frexp.c (zero): New variable.
57031         (main): Avoid literal -0.0.
57032         * tests/test-frexpl.c (zero): New variable.
57033         (main): Avoid literal -0.0L.
57034         * tests/test-ldexpl.c (zero): New variable.
57035         (main): Avoid literal -0.0L.
57036         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57037         (zerod, zerol): New variables.
57038         (test_function): Avoid literals -0.0, -0.0L.
57039         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57040         (zerod, zerol): New variables.
57041         (test_function): Avoid literals -0.0, -0.0L.
57042         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57043         (zerod, zerol): New variables.
57044         (test_function): Avoid literals -0.0, -0.0L.
57045         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57046         (zerod, zerol): New variables.
57047         (test_function): Avoid literals -0.0, -0.0L.
57048         * tests/test-strtod.c (zero): New variable.
57049         (main): Avoid literal -0.0.
57050         Reported by Jonathan C. Patschke <jp@centtech.com>.
57051
57052 2008-07-31  Jim Meyering  <meyering@redhat.com>
57053
57054         sha256.h: correct definition of SHA224_DIGEST_SIZE
57055         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
57056         Reported by Paulie Pena IV <paulie4@gmail.com>.
57057         Define as 224 / 8, rather than as a literal.
57058         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
57059         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
57060         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
57061
57062 2008-07-31  Bruno Haible  <bruno@clisp.org>
57063
57064         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
57065         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
57066         Reported by Jonathan Patschke <jp@centtech.com>.
57067
57068 2008-07-31  Bruno Haible  <bruno@clisp.org>
57069
57070         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
57071         Reported by Paolo Bonzini <bonzini@gnu.org>.
57072
57073 2008-07-30  Eric Blake  <ebb9@byu.net>
57074
57075         test-strtod: allow compilation without -lm
57076         * tests/test-strtod.c (main): Avoid link dependence on fabs.
57077         Reported by Dennis Clarke <blastwave@gmail.com>.
57078
57079 2008-07-28  Jim Meyering  <meyering@redhat.com>
57080
57081         bootstrap: work also when there are no .po files in po/
57082         * build-aux/bootstrap (update_po_files): Complete the change
57083         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
57084
57085 2008-07-27  Jim Meyering  <meyering@redhat.com>
57086
57087         * users.txt: Add zile.
57088
57089 2008-07-26  Ben Pfaff  <blp@gnu.org>
57090
57091         Add missing dependencies on new m4/exponent[fdl].m4 files.
57092         * modules/isnanf-nolibm: Add m4/exponentf.m4.
57093         * modules/isnand-nolibm: Add m4/exponentd.m4.
57094         * modules/isnanl-nolibm: Add m4/exponentl.m4.
57095         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
57096         m4/isnan[fdl].m4, because the macros actually used moved.
57097         Reported by Jim Meyering.
57098
57099 2008-07-14  Ben Pfaff  <blp@gnu.org>
57100
57101         Add isinf module.
57102         * lib/isinf.c: New file.
57103         * lib/math.in.h: Define isinf macro if we have decided to replace
57104         it.
57105         * m4/isinf.m4: New file.
57106         * m4/math_h.m4: Initialize and substitute variables for isinf
57107         module.
57108         * modules/isinf: New file.
57109         * modules/isinf-tests: New file.
57110         * modules/math: Add substitutions for new module.
57111         * tests/test-isinf.c: New file.
57112         * doc/posix-functions/isinf.texi: Mention new module.
57113         * MODULES.html.sh: Mention new module.
57114
57115 2008-07-14  Ben Pfaff  <blp@gnu.org>
57116
57117         Factor out some macros for use by additional modules.
57118         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
57119         exponentf.m4.
57120         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
57121         exponentd.m4.
57122         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
57123         file exponentl.m4.
57124         * m4/exponentf.m4: New file.
57125         * m4/exponentd.m4: New file.
57126         * m4/exponentl.m4: New file.
57127         * modules/isnanf: Use new file m4/exponentf.m4.
57128         * modules/isnand: Use new file m4/exponentd.m4.
57129         * modules/isnanl: Use new file m4/exponentl.m4.
57130
57131 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
57132
57133         mktime.c: normalize tp->tm_isdst value to -1/0/1.
57134         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
57135         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
57136         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
57137
57138         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
57139         readlink on platforms without PATH_MAX.
57140
57141 2008-07-21  Eric Blake  <ebb9@byu.net>
57142
57143         Warn, not fail, on stale version.
57144         * top/GNUmakefile (_curr-ver): Tone down previous patch.
57145
57146         Don't allow installation with stale devel version number.
57147         * top/GNUmakefile (_is-install-target): New macro.
57148         (_curr-ver): Forbid installation with stale version number.
57149
57150 2008-07-20  Bruno Haible  <bruno@clisp.org>
57151
57152         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
57153         TESTS_ENVIRONMENT.
57154         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
57155
57156 2008-07-20  Bruno Haible  <bruno@clisp.org>
57157
57158         * lib/c-stack.h (c_stack_action): Add documentation.
57159         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
57160
57161 2008-07-20  Bruno Haible  <bruno@clisp.org>
57162
57163         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
57164         * modules/readlink (License): Likewise.
57165
57166 2008-07-17  Eric Blake  <ebb9@byu.net>
57167
57168         * modules/c-stack (Link): Fix typo.
57169
57170         Make c-stack use libsigsegv, when available.
57171         * modules/c-stack (Depends-on): Add libsigsegv.
57172         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
57173         needed.
57174         * lib/c-stack.c (SIGSTKSZ): Define fallback.
57175         (segv_handler, overflow_handler, c_stack_action)
57176         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
57177         implementation when libsigsegv is available, but only when using
57178         the library is necessary.
57179         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
57180         comment, explaining why XSI check fails on Linux.
57181         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
57182         * tests/test-c-stack2.sh: Tweak skip message.
57183         * NEWS: Document new link-time requirements.
57184
57185 2008-07-16  Eric Blake  <ebb9@byu.net>
57186
57187         c-stack: Expose false positives when not using libsigsegv.
57188         * modules/c-stack-tests (Files): Expand test.
57189         * tests/test-c-stack.c (main): Add means to conditionally trigger
57190         non-overflow SIGSEGV.
57191         * tests/test-c-stack2.sh: New file.
57192
57193 2008-07-14  Bruno Haible  <bruno@clisp.org>
57194
57195         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
57196         Reported by Eric Blake.
57197
57198 2008-07-14  Sam Steingold  <sds@gnu.org>
57199             Bruno Haible  <bruno@clisp.org>
57200
57201         New module libsigsegv.
57202         * modules/libsigsegv: New file.
57203         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
57204         modifications.
57205         * MODULES.html.sh (Signal handling): New section.
57206
57207 2008-07-14  Bruno Haible  <bruno@clisp.org>
57208
57209         * modules/unictype/ctype-* (Description): Add the word "function".
57210         Improves the resulting doc in MODULES.html.
57211
57212 2008-07-12  Ben Pfaff  <blp@gnu.org>
57213
57214         Add longlong module.
57215         * modules/longlong: New file.
57216
57217 2008-07-12  Bruno Haible  <bruno@clisp.org>
57218
57219         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
57220         to empty.
57221
57222 2008-07-10  Ben Pfaff  <blp@gnu.org>
57223
57224         Add isnan module.
57225         * doc/posix-functions/isnan.texi: Mention new module.
57226         * lib/math.in.h: Define isnan macro if we have decided to replace
57227         it.
57228         * m4/isnan.m4: New file.
57229         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
57230         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
57231         also.
57232         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
57233         redundancy.
57234         * m4/math_h.m4: Initialize and substitute variables for isnan
57235         module.
57236         * modules/isnan: New file.
57237         * modules/isnan-tests: New file.
57238         * modules/math: Add substitutions for new module.
57239         * tests/test-isnan.c: New file.
57240         * MODULES.html.sh: Mention new module.
57241
57242 2008-07-10  Ben Pfaff  <blp@gnu.org>
57243
57244         Add isnanf module.
57245         * lib/isnanf.m4: New file.
57246         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
57247         (gl_HAVE_ISNANF_IN_LIBM): New macro.
57248         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
57249         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
57250         * modules/isnanf: New file.
57251         * modules/isnanf-tests: New file.
57252         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
57253         files.
57254         * tests/test-isnanf-nolibm.c: factored most of its contents into
57255         new file tests/test-isnanf.h.
57256         * tests/test-isnanf.h: New file.
57257         * tests/test-isnanf.c: New file.
57258         * MODULES.html.sh: Mention new module.
57259         * doc/glibc-functions/isnanf.texi: Mention new module.
57260
57261 2008-07-10  Ben Pfaff  <blp@gnu.org>
57262
57263         Add isnand module.
57264         * lib/isnand.h: New file.
57265         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
57266         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
57267         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
57268         functionality also.
57269         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
57270         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
57271         (gl_HAVE_ISNAND_IN_LIBM): New macro.
57272         * modules/isnand: New file.
57273         * modules/isnand-tests: New file.
57274         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
57275         files.
57276         * tests/test-isnand-nolibm.c: factored most of its contents into
57277         new file tests/test-isnand.h.
57278         * tests/test-isnand.h: New file.
57279         * tests/test-isnand.c: New file.
57280         * MODULES.html.sh: Mention new module.
57281
57282 2008-07-10  Ben Pfaff  <blp@gnu.org>
57283
57284         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
57285         * lib/isnand.h: Rename lib/isnand-nolibm.h.
57286         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
57287         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
57288         * modules/isnanf-nolibm: Update references to renamed files.
57289         * modules/isnand-nolibm: Likewise.
57290         * modules/isnanf-nolibm-tests: Likewise.
57291         * modules/isnand-nolibm-tests: Likewise.
57292         * lib/frexp.c: Likewise.
57293         * lib/isfinite.c: Likewise.
57294         * lib/signbitd.c: Likewise.
57295         * lib/signbitf.c: Likewise.
57296         * lib/vasnprintf.c: Likewise.
57297         * tests/test-ceilf1.c: Likewise.
57298         * tests/test-ceilf2.c: Likewise.
57299         * tests/test-floorf1.c: Likewise.
57300         * tests/test-floorf2.c: Likewise.
57301         * tests/test-frexp.c: Likewise.
57302         * tests/test-round1.c: Likewise.
57303         * tests/test-round2.c: Likewise.
57304         * tests/test-roundf1.c: Likewise.
57305         * tests/test-strtod.c: Likewise.
57306         * tests/test-trunc1.c: Likewise.
57307         * tests/test-trunc2.c: Likewise.
57308         * tests/test-truncf1.c: Likewise.
57309         * tests/test-truncf2.c: Likewise.
57310         * NEWS: Mention the renamed header files.
57311
57312 2008-07-11  Jim Meyering  <meyering@redhat.com>
57313
57314         vc-list-files: make the last-resort awk code more portable
57315         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
57316         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
57317         does not support it.
57318
57319 2008-07-10  Eric Blake  <ebb9@byu.net>
57320
57321         Work with tar's bootstrap.
57322         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
57323         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
57324         an m4 comment.
57325
57326 2008-07-09  Jim Meyering  <meyering@redhat.com>
57327
57328         posix-shell.m4: fix typo that made this test malfunction
57329         * m4/posix-shell.m4: Remove capitalization in variable name.
57330
57331 2008-07-08  Bruno Haible  <bruno@clisp.org>
57332
57333         * m4/onceonly.m4: Update comments.
57334         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57335
57336 2008-07-04  Jim Meyering  <meyering@redhat.com>
57337
57338         * users.txt: Add vc-dwim.
57339         (bison, coreutils): Use the gitweb URL.
57340
57341 2008-07-03  Jim Meyering  <meyering@redhat.com>
57342
57343         * users.txt: Add libffcall.  From Sam Steingold.
57344
57345 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
57346
57347         getdate.y: do not ignore TZ with relative day, month or year offset
57348         * lib/getdate.y (get_date): Move the tz-handling block to follow the
57349         relative-date-handling, since otherwise, the latter would clobber the
57350         sole output (an updated Start value) of the tz-handling block.
57351         * tests/test-getdate.c: Tests for the fix
57352
57353 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57354
57355         Recognize 'foo_LIBRARIES += libgnu.a'.
57356         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
57357         makefile snippet has already specified an installation location,
57358         also using '+='.
57359
57360 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
57361
57362         getdate.y: factor out common actions
57363         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
57364         Use them in place of open-coded actions.
57365
57366 2008-07-01  Simon Josefsson  <simon@josefsson.org>
57367
57368         Add self-test for getdate module.
57369         * modules/getdate-tests: New file.
57370         * tests/test-getdate.c: New file.
57371
57372 2008-06-29  Bruno Haible  <bruno@clisp.org>
57373
57374         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
57375         .gitignore.
57376         Reported by Sylvain Beucler <beuc@beuc.net>.
57377
57378 2008-06-29  Bruno Haible  <bruno@clisp.org>
57379
57380         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
57381         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
57382
57383 2008-06-29  Bruno Haible  <bruno@clisp.org>
57384
57385         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
57386         EXTRA_DIST.
57387         Reported by Sylvain Beucler <beuc@beuc.net>.
57388
57389 2008-06-26  Jim Meyering  <meyering@redhat.com>
57390
57391         make several modules depend on the "open" module
57392         This provides slightly increased consistency when opening-for-write
57393         the name of a non-directory spelled with a trailing slash.
57394         * modules/chdir-safer: Likewise.
57395         * modules/chown: Likewise.
57396         * modules/clean-temp: Likewise.
57397         * modules/copy-file: Likewise.
57398         * modules/fchdir: Likewise.
57399         * modules/fcntl-safer: Likewise.
57400         * modules/pipe: Likewise.
57401         * modules/utime: Likewise.
57402         Prompted by Eric Blake and Bruno Haible.
57403
57404 2008-06-24  Andreas Schwab  <schwab@suse.de>
57405
57406         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
57407         literals can be used as initializers for global variables.
57408
57409 2008-06-23  Eric Blake  <ebb9@byu.net>
57410
57411         Make gnulib-cache.m4 easier to diff.
57412         * gnulib-tool (func_import): Allow newlines when reading cached
57413         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
57414
57415 2008-06-23  Bruno Haible  <bruno@clisp.org>
57416
57417         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
57418         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
57419         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
57420         m4/signalblocking.m4.
57421         (gl_PREREQ_SIGACTION): Don't invoke it.
57422         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
57423         gl_PREREQ_SIG_HANDLER_H.
57424         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57425         Don't check for sigaction here.
57426
57427 2008-06-23  Bruno Haible  <bruno@clisp.org>
57428
57429         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
57430         (install_handlers): Don't set the SA_RESETHAND flag.
57431
57432 2008-06-23  Bruno Haible  <bruno@clisp.org>
57433
57434         * m4/sigaction.m4: Comment fixes.
57435         * lib/signal.in.h: Likewise.
57436
57437 2008-06-23  Eric Blake  <ebb9@byu.net>
57438
57439         Fix typo.
57440         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
57441
57442         Avoid SA_ namespace.
57443         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
57444         Reported by Ralf Wildenhues.
57445
57446         Avoid test failure due to SA_RESTORER.
57447         * tests/test-sigaction.c (SA_MASK): New macro.
57448         (main): Avoid failing due to extension flags being set.
57449         Reported by Jim Meyering.
57450
57451         Revert use of sig-handler.h in sigprocmask.c.
57452         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
57453         it requires the existence of struct sigaction.
57454         * lib/sigprocmask.c (handler_t): Restore typedef.
57455         (rpl_signal, old_handlers): Use local type.
57456
57457 2008-06-22  Bruno Haible  <bruno@clisp.org>
57458
57459         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
57460         conditionally.
57461         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57462
57463 2008-06-22  Bruno Haible  <bruno@clisp.org>
57464
57465         * doc/posix-functions/siginterrupt.texi: Move note.
57466
57467         * lib/signal.in.h (SA_RESTART): New macro.
57468         * lib/sigaction.c: Update comment.
57469
57470         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
57471
57472         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
57473         (gl_PREREQ_SIGPROCMASK): Invoke it.
57474         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
57475
57476         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
57477
57478         * lib/sigprocmask.c: Update a comment.
57479
57480 2008-06-21  Eric Blake  <ebb9@byu.net>
57481
57482         Use sigaction module rather than signal().
57483         * modules/c-stack (Depends-on): Add sigaction.
57484         * modules/fatal-signal (Depends-on): Likewise.
57485         * modules/nanosleep (Depends-on): Likewise.
57486         * modules/sigprocmask (Files): Add sig-handler.h.
57487         * modules/sigaction (Files): Likewise.
57488         * lib/sig-handler.h (get_handler): New file, suggested by Paul
57489         Eggert.
57490         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
57491         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
57492         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
57493         (init_fatal_signals): Likewise.
57494         * lib/nanosleep.c (rpl_nanosleep): Likewise.
57495         (siginterrupt): Delete fallback.
57496         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
57497         instead.
57498         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
57499         siginterrupt.
57500
57501         New module sigaction, for mingw.
57502         * modules/sigaction: New module...
57503         * modules/sigaction-tests: ...and its test.
57504         * m4/sigaction.m4: New file.
57505         * lib/sigaction.c: Likewise.
57506         * tests/test-sigaction.c: Likewise.
57507         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
57508         * modules/signal (Makefile.am): Likewise.
57509         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
57510         needed.
57511         * doc/posix-headers/signal.texi (signal.h): Mention provided
57512         types.
57513         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
57514         that sigaction is preferable.
57515         * doc/posix-functions/sigaction.texi (sigaction): Mention new
57516         module.
57517         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57518         sigaction.
57519
57520         Improve robustness of sigprocmask by overriding signal.
57521         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
57522         is in use.
57523         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
57524         (SIGKILL, SIGSTOP): Provide fallbacks.
57525         (rpl_signal): Implement.
57526         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
57527         signal can be called inside handlers.
57528
57529         Fix nanosleep module on mingw.
57530         * modules/nanosleep (Depends-on): Add sys_select.
57531         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
57532
57533         Fix licensing of sigprocmask.
57534         * modules/raise (License): Relicense as LGPL.
57535
57536 2008-06-21  Bruno Haible  <bruno@clisp.org>
57537
57538         * lib/propername.c (proper_name_utf8): Don't use the transliterated
57539         result if it contains question marks.
57540         Reported by Michael Geng <linux@michaelgeng.de>.
57541
57542 2008-06-19  Bruno Haible  <bruno@clisp.org>
57543
57544         Fix CVS-ism.
57545         * doc/gnulib.texi: Include updated-stamp.texi.
57546         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
57547         (updated-stamp.texi): New rule.
57548         (gnulib.info): Depend on it.
57549         * doc/.gitignore: Add updated-stamp.texi.
57550         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
57551
57552 2008-06-19  Bruno Haible  <bruno@clisp.org>
57553
57554         * doc/Makefile (gnulib.info): Update and simplify dependencies.
57555         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57556
57557 2008-06-19  Eric Blake  <ebb9@byu.net>
57558
57559         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
57560         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
57561         Reported by Stepan Kasal.
57562
57563 2008-06-18  Bruno Haible  <bruno@clisp.org>
57564
57565         * lib/fatal-signal.c (init_fatal_signals): Add comment.
57566         Reported by Eric Blake.
57567
57568 2008-06-18  Eric Blake  <ebb9@byu.net>
57569
57570         Work around cygwin 1.5.25 strsignal bug.
57571         * tests/test-strsignal.c: Allow for const char *.
57572         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
57573
57574 2008-06-18  Simon Josefsson  <simon@josefsson.org>
57575
57576         * users.txt: Update URL to article and add author/date
57577         information.
57578
57579 2008-06-17  Bruno Haible  <bruno@clisp.org>
57580
57581         New macro gl_DISABLE_THREADS.
57582         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
57583         if the user did not pass --enable-threads or --disable-threads option.
57584         (gl_DISABLE_THREADS): New macro.
57585         Reported by Eric Blake <ebb9@byu.net>.
57586
57587 2008-06-17  Bruno Haible  <bruno@clisp.org>
57588
57589         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
57590         when the macro ignores it.
57591         Based on a patch by Eric Blake <ebb9@byu.net>.
57592
57593 2008-06-17  Bruno Haible  <bruno@clisp.org>
57594
57595         * modules/tls (License): Change to LGPLv2+.
57596         Reported by Eric Blake.
57597
57598 2008-06-17  Eric Blake  <ebb9@byu.net>
57599
57600         Simplify c-stack prerequisites.
57601         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
57602         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
57603         no longer requires <ucontext.h> to exist.  Optimize setrlimit
57604         check.
57605         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
57606         <sys/resource.h>.
57607
57608         Move c-stack test into testsuite.
57609         * modules/c-stack-tests: New file.
57610         * lib/c-stack.c [DEBUG]: Move test program...
57611         * tests/test-c-stack.c: ...into this new file.  Skip rather than
57612         fail test if sigaltstack is lacking.
57613         * tests/test-c-stack.sh: New driver file.
57614
57615 2008-06-16  Eric Blake  <ebb9@byu.net>
57616
57617         Use raise module consistently.
57618         * modules/fatal-signal (Depends-on): Add raise.
57619         * modules/sigprocmask (Depends-on): Likewise.
57620         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
57621         * lib/sigprocmask.c (sigprocmask): Likewise.
57622         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57623         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
57624
57625         Fix compliance bug in sigpending.
57626         * lib/sigprocmask.c (sigpending): Return pending array via
57627         parameter, not return value.
57628
57629 2008-06-14  Eric Blake  <ebb9@byu.net>
57630
57631         Improve obstack-printf test code.
57632         * tests/test-obstack-printf.c (test_function): Fix comment, and
57633         simplify usage of obstack_* in macros.  Add a test for coverage.
57634         Reported by Bruno Haible.
57635
57636 2008-06-14  Bruno Haible  <bruno@clisp.org>
57637
57638         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
57639         array size as a constant, not as a const variable.
57640         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
57641         AC_USE_SYSTEM_EXTENSIONS.
57642         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
57643         Test whether the obstack_printf function actually exists.
57644         * modules/obstack-printf (Depends-on): Add extensions.
57645         (Include): Remove obstack.h.
57646         * modules/obstack-printf-posix (Depends-on): Add extensions.
57647         (Include): Remove obstack.h.
57648
57649 2008-06-13  Eric Blake  <ebb9@byu.net>
57650
57651         Add obstack-printf and obstack-printf-posix modules.
57652         * modules/obstack-printf: New file.
57653         * modules/obstack-printf-posix: Likewise.
57654         * MODULES.html.sh (Misc): Mention them.
57655         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
57656         Likewise.
57657         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
57658         Likewise.
57659         * modules/stdio (Makefile.am): Accomodate new modules.
57660         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57661         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
57662         Declare.
57663         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
57664         functions.
57665         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
57666         (gl_REPLACE_OBSTACK_PRINTF): New macros
57667         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
57668         * tests/test-obstack-printf.c: New file.
57669         * modules/obstack-printf-tests: Likewise.
57670         * modules/obstack-printf-posix-tests: Likewise.
57671
57672 2008-06-11  Bruno Haible  <bruno@clisp.org>
57673
57674         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
57675         * lib/open.c: Include errno.h.
57676         (open): Fail when attempting to write to a file that has a trailing
57677         slash.
57678         * tests/test-open.c (main): Test against trailing slash bug.
57679         * doc/posix-functions/open.texi: Mention the trailing slash bug.
57680
57681 2008-06-10  Bruno Haible  <bruno@clisp.org>
57682
57683         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
57684         for $? to work inside the trap command, with various /bin/sh-s.
57685         * tests/test-vc-list-files-cvs.sh: Likewise.
57686
57687 2008-06-10  Bruno Haible  <bruno@clisp.org>
57688
57689         * lib/acl-internal.h: Don't include gettext.h here.
57690         * lib/set-mode-acl.c: Include gettext.h here.
57691         * lib/copy-acl.c: Likewise.
57692
57693 2008-06-10  Bruno Haible  <bruno@clisp.org>
57694
57695         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
57696         * lib/wait-process.c (wait_subprocess): Likewise.
57697         * lib/execute.h (execute): Add termsigp argument.
57698         * lib/execute.c (execute): Likewise.
57699         * lib/csharpcomp.c (compile_csharp_using_pnet,
57700         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
57701         * lib/csharpexec.c (execute_csharp_using_pnet,
57702         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
57703         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
57704         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
57705         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
57706         is_jikes_present): Update.
57707         * lib/javaexec.c (execute_java_class): Update.
57708         * lib/javaversion.c (execute_and_read_line): Update.
57709         * NEWS: Document the changes.
57710         Reported by Eric Blake.
57711
57712 2008-06-10  Eric Blake  <ebb9@byu.net>
57713
57714         Add missing include.
57715         * tests/test-strstr.c (includes): Add <signal.h>.
57716         * tests/test-strcasestr.c (includes): Likewise.
57717         * tests/test-memmem.c (includes): Likewise.
57718
57719 2008-06-10  Bruno Haible  <bruno@clisp.org>
57720
57721         * lib/wait-process.c (wait_subprocess): Add an assertion.
57722
57723 2008-06-10  Bruno Haible  <bruno@clisp.org>
57724
57725         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
57726
57727 2008-06-10  Bruno Haible  <bruno@clisp.org>
57728
57729         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
57730         using alarm().
57731         * tests/test-strcasestr.c (main): Likewise.
57732         * tests/test-strstr.c (main): Likewise.
57733
57734 2008-06-09  Bruno Haible  <bruno@clisp.org>
57735
57736         Work around the Solaris 10 ACE ACLs ABI change.
57737         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
57738         declare if ACL_NO_TRIVIAL is present.
57739         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
57740         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
57741         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
57742         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
57743         define if ACL_NO_TRIVIAL is present.
57744         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
57745         and use the current ABI.
57746         (file_has_acl): Use same #if condition as elsewhere.
57747         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
57748         in use, and use the current ABI.
57749         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
57750         Reported by Jim Meyering.
57751
57752 2008-06-09  Eric Blake  <ebb9@byu.net>
57753
57754         Work around environments that (stupidly) ignore SIGALRM.
57755         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
57756         before using alarm().
57757         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57758         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57759         Reported by Ian Beckwith <ianb@erislabs.net>.
57760
57761         Produce autobuild blurb earlier in log.
57762         * modules/autobuild (configure.ac-early): Move AB_INIT here.
57763
57764 2008-06-09  Jim Meyering  <meyering@redhat.com>
57765         and OndÅ™ej Vašík  <ovasik@redhat.com>
57766
57767         utimens.c: correct kernel bug work-around
57768         OndÅ™ej Vašík found that the invalid return value of 280 indicates
57769         failure, not success, and the kernel bug we're trying to work
57770         around affects not just the utimensat call, but also the fallback
57771         futimens call.
57772         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
57773         not success.
57774         [HAVE_FUTIMENS]: Use the same work-around, here.
57775
57776 2008-06-09  Jim Meyering  <meyering@redhat.com>
57777
57778         add more guards around definition of ACE_-related code
57779         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
57780         ALLOW and ACE_OWNER are also defined.
57781
57782 2008-06-08  Bruno Haible  <bruno@clisp.org>
57783
57784         * lib/acl-internal.h: Add me as co-author.
57785         * lib/file-has-acl.c: Likewise.
57786         * lib/set-mode-acl.c: Likewise.
57787         * lib/copy-acl.c: Likewise.
57788
57789 2008-06-08  Bruno Haible  <bruno@clisp.org>
57790
57791         Add support for AIX ACLs.
57792         * lib/acl-internal.h (acl_nontrivial): New declaration.
57793         * lib/file-has-acl.c (acl_nontrivial): New function.
57794         (file_has_acl): Add implementation using AIX 4 ACL API.
57795         * lib/set-mode-acl.c (qset_acl): Likewise.
57796         * lib/copy-acl.c (qcopy_acl): Likewise.
57797
57798 2008-06-08  Bruno Haible  <bruno@clisp.org>
57799
57800         Add support for HP-UX ACLs.
57801         * lib/acl-internal.h (acl_nontrivial): New declaration.
57802         * lib/file-has-acl.c (acl_nontrivial): New function.
57803         (file_has_acl): Add implementation using HP-UX 11 ACL API.
57804         * lib/set-mode-acl.c (qset_acl): Likewise.
57805         * lib/copy-acl.c (qcopy_acl): Likewise.
57806
57807 2008-06-08  Bruno Haible  <bruno@clisp.org>
57808
57809         Add support for Cygwin ACLs.
57810         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
57811         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
57812         the chmod_or_fchmod call.
57813         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
57814
57815 2008-06-08  Bruno Haible  <bruno@clisp.org>
57816
57817         Fix bug with setuid modes in Solaris 10+ code.
57818         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
57819         succeeded, when the mode contains some special bits.
57820
57821 2008-06-08  Bruno Haible  <bruno@clisp.org>
57822
57823         Add support for Solaris 7..10 ACLs.
57824         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
57825         declarations.
57826         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
57827         functions.
57828         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
57829         * lib/set-mode-acl.c (qset_acl): Likewise.
57830         * lib/copy-acl.c (qcopy_acl): Likewise.
57831
57832 2008-06-08  Bruno Haible  <bruno@clisp.org>
57833
57834         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
57835         declaration.
57836         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
57837         (acl_access_nontrivial): Remove MacOS X case.
57838         (file_has_acl): Use acl_extended_nontrivial.
57839         * lib/copy-acl.c (qcopy_acl): Likewise.
57840
57841 2008-06-08  Bruno Haible  <bruno@clisp.org>
57842
57843         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
57844
57845 2008-06-08  Jim Meyering  <meyering@redhat.com>
57846
57847         * modules/acl (Maintainer): Add Bruno Haible.
57848
57849 2008-06-07  Bruno Haible  <bruno@clisp.org>
57850
57851         Improve support for Tru64 ACLs.
57852         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
57853         ACL on OSF/1.
57854
57855 2008-06-07  Bruno Haible  <bruno@clisp.org>
57856
57857         Add support for MacOS X ACLs.
57858         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
57859         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
57860         * lib/set-mode-acl.c (qset_acl): Likewise.
57861         * lib/copy-acl.c (qcopy_acl): Likewise.
57862
57863 2008-06-07  Bruno Haible  <bruno@clisp.org>
57864
57865         Fix memory leak introduced on 2008-05-22.
57866         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
57867         use.
57868
57869 2008-06-07  Bruno Haible  <bruno@clisp.org>
57870
57871         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
57872         to construct an empty ACL.
57873
57874 2008-06-07  Bruno Haible  <bruno@clisp.org>
57875
57876         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
57877         precisely.
57878         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
57879
57880 2008-06-07  Bruno Haible  <bruno@clisp.org>
57881
57882         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
57883         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
57884
57885 2008-06-07  Bruno Haible  <bruno@clisp.org>
57886
57887         * doc/posix-functions/_setjmp.texi: Explain the use of this function
57888         regardless of POSIX.
57889         * doc/posix-functions/_longjmp.texi: Likewise.
57890         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
57891         SystemV platform in this case.
57892
57893 2008-06-06  Eric Blake  <ebb9@byu.net>
57894
57895         Document abort() bugs.
57896         * doc/posix-functions/abort.texi (abort): Mention anomalies.
57897
57898         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
57899         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
57900         sigsetjmp.
57901         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
57902         siglongjmp, but only as a macro.
57903         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
57904         is obsolete.
57905         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
57906
57907         Tweak documentation to cover cygwin argz bugs.
57908         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
57909         argz bug fix; no code change needed since no cygwin releases
57910         occurred between the last fix and the bug being tested.
57911         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
57912         module and recently fixed cygwin bugs.
57913         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
57914         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
57915         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
57916         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
57917         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
57918         Likewise.
57919         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
57920         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
57921         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
57922         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
57923         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
57924         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
57925         Likewise.
57926
57927         Avoid gcc warning on cygwin.
57928         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
57929         !ACL_NO_TRIVIAL]: Avoid unused variable.
57930
57931 2008-06-05  Eric Blake  <ebb9@byu.net>
57932
57933         Be tolerant of UNKNOWN version in gnulib-tool test dir.
57934         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
57935         git-version-gen fails to come up with a version.
57936         Reported by Simon Josefsson.
57937
57938 2008-06-05  Jim Meyering  <meyering@redhat.com>
57939             Paul Eggert  <eggert@cs.ucla.edu>
57940
57941         utimens.c: work around a probable Linux kernel bug
57942         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
57943         appears to be a kernel bug that causes utimensat to return 280
57944         instead of 0, indicating success.
57945
57946 2008-06-04  Bruno Haible  <bruno@clisp.org>
57947
57948         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
57949         2008-06-01 commit.
57950
57951 2008-06-04  Bruno Haible  <bruno@clisp.org>
57952
57953         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
57954         * lib/file-has-acl.c (acl_access_nontrivial): New function.
57955         (file_has_acl): Use it. Save errno afterwards.
57956         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
57957
57958 2008-06-03  Bruno Haible  <bruno@clisp.org>
57959
57960         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
57961         draft code. Simplify #ifs.
57962         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
57963         Put Solaris code after POSIX-draft code. Fix comments regarding
57964         Solaris 10, HP-UX. Mention Cygwin.
57965         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
57966
57967 2008-06-03  Eric Blake  <ebb9@byu.net>
57968
57969         Provide fallback for older kernels.
57970         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
57971         Provide runtime fallback if kernel lacks support.
57972         Reported by Mike Frysinger.
57973
57974 2008-06-02  Bruno Haible  <bruno@clisp.org>
57975
57976         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
57977         it exists.
57978
57979 2008-06-02  Bruno Haible  <bruno@clisp.org>
57980
57981         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
57982         * lib/copy-acl.c (qcopy_acl): Update comment.
57983
57984 2008-06-02  Bruno Haible  <bruno@clisp.org>
57985
57986         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
57987         like ACL APIs.
57988
57989 2008-06-02  Bruno Haible  <bruno@clisp.org>
57990
57991         * tests/test-file-has-acl.sh: Use different code for Cygwin.
57992         * tests/test-set-mode-acl.sh: Likewise.
57993         * tests/test-copy-acl.sh: Likewise.
57994         * tests/test-copy-file.sh: Likewise.
57995
57996 2008-06-02  Bruno Haible  <bruno@clisp.org>
57997
57998         * tests/test-file-has-acl.sh: Remove unused code.
57999
58000 2008-06-01  Bruno Haible  <bruno@clisp.org>
58001
58002         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
58003         (copy_acl): Just a wrapper around qcopy_acl that emits the error
58004         messages.
58005         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
58006
58007 2008-06-01  Bruno Haible  <bruno@clisp.org>
58008
58009         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
58010         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
58011         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
58012         APIs.
58013         * modules/acl-tests (configure.ac): Remove tests now contained in
58014         m4/acl.m4.
58015
58016 2008-06-02  Jim Meyering  <meyering@redhat.com>
58017
58018         announce-gen: use a better key-server host name
58019         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
58020         it may be more consistently reliable.  Suggested by Werner Koch
58021         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
58022
58023 2008-06-01  Bruno Haible  <bruno@clisp.org>
58024
58025         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
58026         Reported by Voroskoi Andras <voroskoi@gmail.com>.
58027
58028 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
58029
58030         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
58031
58032 2008-06-01  Bruno Haible  <bruno@clisp.org>
58033
58034         New ACL tests.
58035         * tests/test-file-has-acl.sh: New file.
58036         * tests/test-file-has-acl.c: New file.
58037         * tests/test-set-mode-acl.sh: New file.
58038         * tests/test-set-mode-acl.c: New file.
58039         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
58040         * tests/test-copy-acl.c: New file.
58041         * modules/acl-tests: New file, based on modules/copy-file-tests.
58042         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
58043         (Depends-on): Add acl-tests.
58044         (configure.ac): Remove checks.
58045         (Makefile.am): Don't create test-sameacls program here any more.
58046
58047 2008-06-01  Bruno Haible  <bruno@clisp.org>
58048
58049         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
58050         * tests/test-sameacls.c: Include progname.h.
58051         (main): Invoke set_program_name. Portability fixes for MacOS X,
58052         Solaris, HP-UX.
58053
58054 2008-06-01  Bruno Haible  <bruno@clisp.org>
58055
58056         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
58057         function.
58058         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
58059
58060 2008-06-01  Bruno Haible  <bruno@clisp.org>
58061
58062         * modules/rpmatch (Depends-on): Add strdup.
58063
58064 2008-06-01  Bruno Haible  <bruno@clisp.org>
58065
58066         * lib/pipe.c: Include unistd-safer.h.
58067         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
58068         * modules/pipe (Depends-on): Add unistd-safer.
58069
58070 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58071
58072         * modules/autobuild (configure.ac): Call AB_INIT.
58073
58074 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58075
58076         * tests/test-getaddrinfo.c: Don't print debug messages by default.
58077         Suggested by Bruno Haible <bruno@clisp.org>.
58078
58079 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58080
58081         * tests/test-base64.c: Cast size_t to unsigned long when invoking
58082         printf.  Use %lu instead of %d.  Reported by Bruno Haible
58083         <bruno@clisp.org>.
58084
58085 2008-05-29  Eric Blake  <ebb9@byu.net>
58086
58087         Prefer new POSIX 200x interfaces over futimesat.
58088         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
58089         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
58090         when available.
58091         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
58092
58093 2008-05-28  Bruno Haible  <bruno@clisp.org>
58094
58095         * modules/stpcpy (License): Change to LGPLv2+.
58096         Requested by David Lutterkort <dlutter@redhat.com>.
58097
58098 2008-05-27  Bruno Haible  <bruno@clisp.org>
58099
58100         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
58101         current mingw.
58102         Reported by Jose E. Marchesi <jemarch@gnu.org>.
58103
58104 2008-05-27  Bruno Haible  <bruno@clisp.org>
58105
58106         * modules/iconv_open (Link): New section, from module 'iconv'.
58107         * modules/striconv (Link): Likewise.
58108         * modules/striconveh (Link): Likewise.
58109         * modules/xstriconv (Link): Likewise.
58110         * modules/unicodeio (Link): Likewise.
58111         * modules/propername (Link): Likewise.
58112         Reported by Jim Meyering.
58113
58114 2008-05-26  Jim Meyering  <meyering@redhat.com>
58115
58116         sha256: do not artificially restrict buffer length to be < 2^32
58117         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
58118         uint32_t to size_t.
58119         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
58120         to match.
58121
58122         avoid unaligned access errors, e.g., on sparc
58123         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
58124         direct access through a possibly-unaligned uint64* pointer.
58125         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
58126         direct access through a possibly-unaligned uint32* pointer.
58127         Prompted by this patch from Tom "spot" Callaway:
58128         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
58129
58130         sha512.c: fix typo in comment
58131         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
58132
58133 2008-05-25  Bruno Haible  <bruno@clisp.org>
58134
58135         * lib/set-mode-acl.c: Renamed from lib/acl.c.
58136         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
58137         (Makefile.am): Update lib_SOURCES.
58138
58139 2008-05-25  Bruno Haible  <bruno@clisp.org>
58140
58141         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
58142
58143 2008-05-25  Jim Meyering  <meyering@redhat.com>
58144
58145         useless-if-before-free: freed expr may have white-space differences
58146         * build-aux/useless-if-before-free: Recognize cases in which the
58147         freed expression differs from the tested one in embedded white
58148         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
58149         $1 was used, so we can't make any regexp shy.  Improved tests now
58150         detect this.
58151
58152         useless-if-before-free: accept white space in the expression.
58153         * build-aux/useless-if-before-free: For now, any white space
58154         in the expression must be identical in the free argument.
58155
58156         useless-if-before-free: efficiency tweak
58157         * build-aux/useless-if-before-free: Make the expression-matching
58158         regexp "shy".
58159         Make the *outer* regexp shy, not the expr-matching one.
58160
58161         update code-in-comment to accept cast of free arg
58162         * build-aux/useless-if-before-free: Update regexp.
58163
58164 2008-05-25  Bruno Haible  <bruno@clisp.org>
58165
58166         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
58167         * modules/copy-file-tests (Files, Makefile.am): Update.
58168         * tests/test-copy-file.c (func_test_copy): Update.
58169
58170 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
58171
58172         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
58173
58174 2008-05-23  Bruno Haible  <bruno@clisp.org>
58175
58176         Improve support for ACLs on OSF/1.
58177         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
58178         Remove fallback for unknown flavors of ACLs.
58179
58180 2008-05-22  Bruno Haible  <bruno@clisp.org>
58181
58182         Add support for ACLs on OSF/1.
58183         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
58184         replacements.
58185         (acl_free_text): New macro fallback.
58186         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
58187         acl_free.
58188         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
58189         acl_free_text function. Require AC_C_INLINE.
58190
58191 2008-05-22  Bruno Haible  <bruno@clisp.org>
58192
58193         Make copy_acl work on MacOS X 10.5.
58194         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
58195         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
58196         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
58197         If MODE_INSIDE_ACL, don't assume that every system has the same text
58198         representation for ACLs as FreeBSD.
58199         * lib/copy-acl.c (copy_acl): Add support for platforms with
58200         !MODE_INSIDE_ACL.
58201         * lib/file-has-acl.c (file_has_acl): Likewise.
58202         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
58203         FreeBSD, MacOS X, or IRIX, respectively.
58204
58205 2008-05-22  Bruno Haible  <bruno@clisp.org>
58206
58207         * lib/acl.h: Don't include <sys/acl.h>.
58208         (GETACLCNT): Move fallback to lib/acl-internal.h.
58209         * lib/acl-internal.h: Include <sys/acl.h> here.
58210         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
58211
58212 2008-05-22  Bruno Haible  <bruno@clisp.org>
58213
58214         Split off copy_acl function to separate file.
58215         * lib/copy-acl.c: New file, extracted from lib/acl.c.
58216         * lib/acl.c (copy_acl): Moved function to separate file.
58217         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
58218         * modules/acl (Files): Add lib/copy-acl.c.
58219         (Makefiles.am): Augment lib_SOURCES.
58220
58221 2008-05-22  Bruno Haible  <bruno@clisp.org>
58222
58223         * modules/copy-file-tests: New file.
58224         * tests/test-copy-file.sh: New file.
58225         * tests/test-copy-file.c: New file.
58226         * tests/test-copy-file-sameacls.c: New file.
58227
58228 2008-05-22  Eric Blake  <ebb9@byu.net>
58229
58230         Avoid gcc warning.
58231         * tests/test-memcmp.c (main): Pass NULL indirectly.
58232
58233 2008-05-21  Bruno Haible  <bruno@clisp.org>
58234
58235         Add reference doc about ACLs.
58236         * doc/acl-resources.txt: New file.
58237         * doc/acl-cygwin.txt: New file.
58238
58239 2008-05-21  Bruno Haible  <bruno@clisp.org>
58240
58241         Avoid one more warning from gcc.
58242         * lib/vasnprintf.c (IF_LINT): Update comments.
58243         (VASNPRINTF): Use it also for the 'prefix' array initializer.
58244
58245 2008-05-21  Jim Meyering  <meyering@redhat.com>
58246
58247         avoid a warning from gcc
58248         * lib/vasnprintf.c (IF_LINT): Define.
58249         (scale10_round_decimal_long_double):
58250         Use it to avoid a "may be used uninitialized" warning.
58251         (scale10_round_decimal_double): Likewise.
58252
58253 2008-05-21  Simon Josefsson  <simon@josefsson.org>
58254
58255         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
58256         declared.
58257
58258 2008-05-20  Bruno Haible  <bruno@clisp.org>
58259
58260         * tests/test-memcmp.c (main): Test also the sign of the result. Test
58261         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
58262
58263 2008-05-20  Simon Josefsson  <simon@josefsson.org>
58264
58265         * modules/memcmp-tests: New file.
58266         * tests/test-memcmp.c: New file.
58267
58268 2008-05-19  Bruno Haible  <bruno@clisp.org>
58269
58270         * modules/propername (Notice, configure.ac): Put quoted "..." into
58271         --keyword option.
58272         * lib/propername.h: Update comments accordingly.
58273         Reported by Eric Blake.
58274
58275 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
58276
58277         * modules/getpass-gnu (Depends-on): Add fseeko.
58278
58279 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58280
58281         * modules/base64-tests: New file.
58282
58283 2008-05-19  Bo Borgerson <gigabo@gmail.com>
58284
58285         * lib/base64.c (base64_decode_ctx): If a decode context structure
58286         was passed in use it to ignore newlines.  If a context structure
58287         was _not_ passed in, continue to treat newlines as garbage (this
58288         is the historical behavior).  Formerly base64_decode.
58289         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58290         takes a decode context structure.
58291         * lib/base64.h (base64_decode): Macro for four-argument calls.
58292         (base64_decode_alloc): Likewise.
58293         * lib/base64.c (base64_decode_ctx): If a decode context structure
58294         was passed in use it to ignore newlines.  If a context structure
58295         was _not_ passed in, continue to treat newlines as garbage (this
58296         is the historical behavior).  Formerly base64_decode.
58297         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58298         takes a decode context structure.
58299         * lib/base64.h (base64_decode): Macro for four-argument calls.
58300         (base64_decode_alloc): Likewise.
58301
58302 2008-05-19  Jim Meyering  <meyering@redhat.com>
58303
58304         avoid a warning from gcc
58305         * lib/trim.c (IF_LINT): Define.
58306         (trim2): Use it to avoid a "may be used uninitialized" warning.
58307
58308         Fix doc typo.
58309         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
58310
58311 2008-05-19  Bruno Haible  <bruno@clisp.org>
58312
58313         * doc/glibc-functions/getpass.texi: Document limits of other
58314         implementations.
58315
58316 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58317             Bruno Haible <bruno@clisp.org>
58318
58319         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
58320
58321 2008-05-18  Bruno Haible  <bruno@clisp.org>
58322
58323         * modules/propername: New file, from GNU gettext.
58324         * lib/propername.h: New file, from GNU gettext.
58325         * lib/propername.c: New file, from GNU gettext.
58326         * MODULES.html.sh (Internationalization functions): Add propername.
58327
58328 2008-05-16  Jim Meyering  <meyering@redhat.com>
58329             Bruno Haible  <bruno@clisp.org>
58330
58331         Avoid some warnings from "gcc -Wshadow".
58332         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
58333
58334 2008-05-15  Eric Blake  <ebb9@byu.net>
58335
58336         Extend previous patch to cygwin 1.7.0.
58337         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
58338         fast implementation in cygwin >= 1.7.0.
58339         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58340         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58341
58342 2008-05-15  Bruno Haible  <bruno@clisp.org>
58343
58344         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
58345         implementation in glibc >= 2.9.
58346         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58347         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58348
58349 2008-05-15  Bruno Haible  <bruno@clisp.org>
58350
58351         * MODULES.html.sh (Internationalization functions): Remove linebreak.
58352         (Unicode string functions): Add unilbrk/*.
58353         Reported by Karl Berry.
58354
58355 2008-05-15  Eric Blake  <ebb9@byu.net>
58356
58357         Fix violation of <stdbool.h> replacement in regex.
58358         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
58359         * lib/regexec.c (re_search_internal): Likewise.
58360         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
58361
58362 2008-05-15  Jim Meyering  <meyering@redhat.com>
58363
58364         avoid distracting test output when git or cvs is not found
58365         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
58366         * tests/test-vc-list-files-git.sh: Likewise.
58367
58368 2008-05-15  Eric Blake  <ebb9@byu.net>
58369
58370         Glibc finally accepted the memmem speedup code, bugzilla #5514.
58371         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
58372         glibc version.
58373         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
58374         * doc/posix-functions/strstr.texi (strstr): Likewise.
58375         * lib/str-two-way.h (MAX): Sychronize with glibc.
58376
58377 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
58378
58379         * lib/regcomp.c (optimize_utf8): Add a note on why we test
58380         opr.ctx_type.
58381         (calc_first): Initialize constraint field.
58382         (duplicate_node_closure): Use it instead of special casing ANCHORS.
58383         Fix grammar.
58384         (duplicate_node): Merge constraint field for all node types.
58385         (calc_eclosure_iter): Look at constraint field for all node types.
58386         * lib/regex_internal.c (create_cd_newstate): Don't look at
58387         opr.ctx_type.
58388
58389 2008-05-14  Bruno Haible  <bruno@clisp.org>
58390
58391         Help GCC to do better code generation.
58392         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
58393         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
58394         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
58395         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
58396         Declare with attribute 'malloc' if supported.
58397
58398 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
58399
58400         use "echo STR|wc -c" rather than unportable "expr length STR"
58401         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
58402         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
58403
58404 2008-05-14  Jim Meyering  <meyering@redhat.com>
58405
58406         use dd ibs=$n count=1 ... rather than less-portable head -c$n
58407         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
58408         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
58409         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
58410         via Collin Lasse.
58411
58412 2008-05-14  Eric Blake  <ebb9@byu.net>
58413
58414         Avoid quadratic growth in gl_LIBSOURCES.
58415         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
58416         Suggested by Bruno Haible.
58417
58418         Test xmemdup0.
58419         * modules/xmemdup0-tests: New file.
58420         * tests/test-xmemdup0.c: Likewise.
58421
58422 2008-05-13  Eric Blake  <ebb9@byu.net>
58423
58424         Split xmemdup0 into its own module.
58425         * modules/xmemdup0: New file.
58426         * lib/xmemdup0.h: Likewise.
58427         * lib/xmemdup0.c: Likewise.
58428         * MODULES.html.sh (Memory management functions): Add xmemdup0.
58429         * lib/xalloc.h (xmemdup0): Remove.
58430         * lib/xmalloc.c (xmemdup0): Likewise.
58431
58432 2008-05-13  Eric Blake  <ebb9@byu.net>
58433             Bruno Haible  <bruno@clisp.org>
58434
58435         Reduce number of forks required during autoconf.
58436         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
58437         and gl_LIBSOURCES_DIR.
58438         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
58439         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
58440         m4_syscmd per file.
58441         <m4_foreach_w>: Move...
58442         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
58443
58444 2008-05-13  Eric Blake  <ebb9@byu.net>
58445
58446         * gnulib-tool: Fix various comment typos.
58447
58448 2008-05-12  Bruno Haible  <bruno@clisp.org>
58449
58450         Tailor the linebreaking algorithm.
58451         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
58452
58453 2008-05-12  Bruno Haible  <bruno@clisp.org>
58454
58455         Update to Unicode 5.0.0.
58456         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58457         LBP_JV, LBP_JT. Redistribute values.
58458         (unilbrk_table): Change size.
58459         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
58460         Unicode TR#14 rev. 22.
58461         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58462         LBP_JV, LBP_JT. Redistribute values.
58463         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
58464         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
58465         Update.
58466         * lib/unilbrk/lbrkprop1.h: Regenerated.
58467         * lib/unilbrk/lbrkprop2.h: Regenerated.
58468         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
58469         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
58470         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
58471         Likewise.
58472         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
58473         Likewise.
58474         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
58475         result.
58476         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
58477         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
58478         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
58479         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
58480         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
58481         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
58482
58483 2008-05-11  Bruno Haible  <bruno@clisp.org>
58484
58485         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
58486
58487 2008-05-11  Bruno Haible  <bruno@clisp.org>
58488
58489         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
58490         * modules/unilbrk/gen-lbrk: New file.
58491
58492 2008-05-11  Bruno Haible  <bruno@clisp.org>
58493
58494         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
58495         * m4/sha512.m4 (gl_SHA512): Likewise.
58496
58497 2008-05-11  Jim Meyering  <meyering@redhat.com>
58498
58499         New modules: crypto/sha256, crypto/sha512 (from coreutils)
58500         * modules/crypto/sha256: New file.
58501         * modules/crypto/sha512: Likewise.
58502         * lib/sha256.c: Likewise.
58503         * lib/sha256.h: Likewise.
58504         * lib/sha512.c: Likewise.
58505         * lib/sha512.h: Likewise.
58506         * lib/u64.h: Likewise.
58507         * m4/sha256.m4: Likewise.
58508         * m4/sha512.m4: Likewise.
58509         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
58510
58511 2008-05-10  Bruno Haible  <bruno@clisp.org>
58512
58513         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
58514         (Input/Output <stdio.h>): Add xprintf.
58515         (Signal handling <signal.h>): Add strsignal.
58516         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
58517         (Core language properties): Add func.
58518         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
58519         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
58520         strings.
58521         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
58522         (Input/output): New section.
58523         (File system functions): Add openat-die, stat-macros.
58524         (Networking functions): Add sockets.
58525         (Unicode string functions): Add unictype/*.
58526         (Support for building libraries and executables): Add gperf.
58527         (Support for building documentation): Add agpl-3.0.
58528         (Misc): Add nocrash.
58529
58530 2008-05-10  Bruno Haible  <bruno@clisp.org>
58531
58532         * modules/unictype/gen-ctype: New file.
58533
58534 2008-05-10  Jim Meyering  <meyering@redhat.com>
58535
58536         Make chdir-safer.c more efficient on a system with no symlinks.
58537         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
58538         also if ELOOP is zero.  Suggested by Bruno Haible.
58539
58540         Make chdir-safer.c slightly safer.
58541         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
58542         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
58543
58544         Avoid compile failure on systems without ELOOP (like mingw).
58545         * lib/chdir-safer.c (ELOOP): Define if not already defined.
58546         Reported by Bruno Haible.
58547
58548 2008-05-10  Bruno Haible  <bruno@clisp.org>
58549
58550         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
58551         (is_utf8_encoding): Use a case-insensitive comparison.
58552         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
58553         streq.
58554
58555 2008-05-10  Bruno Haible  <bruno@clisp.org>
58556
58557         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
58558         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
58559         * lib/unilbrk/ulc-common.h (iconv_string_length,
58560         iconv_string_keeping_offsets): Remove declarations.
58561         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
58562         Don't include <iconv.h>, streq.h, xsize.h.
58563         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
58564         conversion.
58565         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
58566         <iconv.h>, streq.h, xsize.h.
58567         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
58568         conversion.
58569         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
58570         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
58571         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
58572         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
58573
58574 2008-05-10  Bruno Haible  <bruno@clisp.org>
58575
58576         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
58577         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
58578
58579         * modules/unilbrk/u32-width-linebreaks-tests: New file.
58580         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
58581
58582         * modules/unilbrk/u16-width-linebreaks-tests: New file.
58583         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
58584
58585         * modules/unilbrk/u8-width-linebreaks-tests: New file.
58586         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
58587
58588         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
58589         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
58590
58591         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
58592         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
58593
58594         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
58595         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
58596
58597         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
58598         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
58599
58600 2008-05-10  Bruno Haible  <bruno@clisp.org>
58601
58602         Split up 'linebreak' module.
58603         * lib/unilbrk.h: New file, based on lib/linebreak.h.
58604         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
58605         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
58606         modifications.
58607         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
58608         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
58609         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
58610         lib/linebreak.c.
58611         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
58612         lib/linebreak.c.
58613         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
58614         lib/linebreak.c.
58615         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
58616         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
58617         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
58618         lib/linebreak.c.
58619         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
58620         lib/linebreak.c.
58621         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
58622         lib/linebreak.c.
58623         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
58624         lib/linebreak.c.
58625         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
58626         lib/linebreak.c.
58627         * modules/unilbrk/base: New file.
58628         * modules/unilbrk/tables: New file.
58629         * modules/unilbrk/u8-possible-linebreaks: New file.
58630         * modules/unilbrk/u16-possible-linebreaks: New file.
58631         * modules/unilbrk/u32-possible-linebreaks: New file.
58632         * modules/unilbrk/ulc-common: New file.
58633         * modules/unilbrk/ulc-possible-linebreaks: New file.
58634         * modules/unilbrk/u8-width-linebreaks: New file.
58635         * modules/unilbrk/u16-width-linebreaks: New file.
58636         * modules/unilbrk/u32-width-linebreaks: New file.
58637         * modules/unilbrk/ulc-width-linebreaks: New file.
58638         * lib/linebreak.h: Remove file.
58639         * lib/linebreak.c: Remove file.
58640         * m4/linebreak.m4: Remove file.
58641         * modules/linebreak: Remove file.
58642         * NEWS: Mention the changes.
58643
58644 2008-05-09  Eric Blake  <ebb9@byu.net>
58645
58646         Add xmemdup0.
58647         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
58648         implementation.
58649         * lib/xmalloc.c (xmemdup0): New C implementation.
58650
58651 2008-05-08  Bruno Haible  <bruno@clisp.org>
58652
58653         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
58654
58655 2008-05-07  Eric Blake  <ebb9@byu.net>
58656
58657         Support cross-compilation of <wctype.h>.
58658         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
58659         AC_CACHE_CHECK.
58660
58661 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
58662
58663         * build-aux/vc-list-files: Add support for bzr.
58664
58665 2008-05-03  Jim Meyering  <meyering@redhat.com>
58666
58667         avoid failed assertion with tight malloc
58668         * tests/test-getndelim2.c: Correct an off-by-one assertion.
58669
58670 2008-05-03  Simon Josefsson  <simon@josefsson.org>
58671
58672         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
58673         are needed from arpa/inet.h.
58674         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
58675         Reported by Bruno Haible.
58676
58677 2008-05-02  Jim Meyering  <meyering@redhat.com>
58678
58679         avoid compilation error on FreeBSD 6
58680         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
58681
58682 2008-05-01  Jim Meyering  <meyering@redhat.com>
58683
58684         useless-if-before-free: correct --help's exit status description
58685         * build-aux/useless-if-before-free (usage): Like grep, exit 0
58686         for one or more matches, etc.  Reported by Bruno Haible.
58687
58688         vc-list-files: make the stand-alone gnulib test work
58689         * modules/vc-list-files-tests (configure.ac):
58690         Define and AC_SUBST abs_aux_dir.
58691         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
58692         $(abs_top_srcdir) to each script and having each of them
58693         duplicate the work of setting PATH, set PATH here, using
58694         the new variable, abs_aux_dir instead.
58695         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
58696         * tests/test-vc-list-files-git.sh: Likewise.
58697         Reported by Bruno Haible.
58698
58699 2008-05-01  Bruno Haible  <bruno@clisp.org>
58700
58701         * lib/getndelim2.c (getndelim2): Fix newsize computation during
58702         reallocation. Rename 'done' to 'found_delimiter'.
58703
58704 2008-05-01  Jim Meyering  <meyering@redhat.com>
58705
58706         vc-list-files: accommodate /bin/sh like the one from Solaris 10
58707         * build-aux/vc-list-files: Use `...`, not $(...).
58708
58709 2008-04-30  Jim Meyering  <meyering@redhat.com>
58710
58711         add tests for vc-list-files
58712         * modules/vc-list-files-tests: New module.
58713         * tests/test-vc-list-files-cvs.sh: New file.
58714         * tests/test-vc-list-files-git.sh: New file.
58715
58716         avoid a warning from gcc
58717         * lib/getndelim2.c (IF_LINT): Define.
58718         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
58719
58720         vc-list-files: work properly with build-aux/cvsu, too
58721         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
58722         to all cvs-based clauses.
58723
58724         vc-list-files: work properly in the CVS+awk case, too
58725         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
58726
58727         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
58728         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
58729         take more than one file argument, so .  Add quotes, just in case $dir
58730         ever contains a shell meta-character.  Prompted by Soren Hansen in
58731         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
58732
58733 2008-04-29  Eric Blake  <ebb9@byu.net>
58734
58735         Optimize getndelim2 to use block operations when possible.
58736         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
58737         freadseek, and memchr2.
58738         * lib/getndelim2.c (getndelim2): Use them for block reads.
58739
58740 2008-04-29  Bruno Haible  <bruno@clisp.org>
58741
58742         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
58743         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58744         * modules/inet_ntop (Depends-on): Add extensions.
58745         * modules/inet_pton (Depends-on): Likewise.
58746         Reported by Simon Josefsson.
58747
58748 2008-04-29  Jim Meyering  <meyering@redhat.com>
58749
58750         When the is more than one match in a block, match all of them.
58751         * build-aux/useless-if-before-free: Iterate through each block
58752         until there are no more matches.
58753
58754         Fix broken useless-if-before-free script.
58755         * build-aux/useless-if-before-free: Fix typo: missing "?" after
58756         the expression to match cast of argument to free-like function.
58757
58758 2008-04-29  Eric Blake  <ebb9@byu.net>
58759
58760         Use new header.
58761         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
58762
58763 2008-04-29  Jim Meyering  <meyering@redhat.com>
58764
58765         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
58766         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
58767         by gnulib to exist and to declare e.g., inet_ntop.
58768         Don't include "inet_ntop.h", now removed.
58769
58770         * m4/arpa_inet_h.m4: Remove trailing blanks.
58771
58772 2008-04-29  Eric Blake  <ebb9@byu.net>
58773
58774         Silence valgrind on safe reads beyond potential array bounds.
58775         * lib/rawmemchr.valgrind: New file.
58776         * lib/strchrnul.valgrind: Likewise.
58777         * modules/rawmemchr (Files): Distribute new file.
58778         * modules/strchrnul (Files): Likewise.
58779         Suggested by Bruno Haible.
58780
58781 2008-04-29  Bruno Haible  <bruno@clisp.org>
58782
58783         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
58784         (inet_ntop, inet_pton): Change portability warning's wording.
58785         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
58786         Invoke gl_CHECK_NEXT_HEADERS.
58787         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
58788         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
58789         set ARPA_INET_H.
58790         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58791         * modules/arpa_inet (Description): No longer only for systems that
58792         lack it.
58793         (Depends-on): Add include_next.
58794         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
58795         HAVE_ARPA_INET_H.
58796
58797 2008-04-29  Jim Meyering  <meyering@redhat.com>
58798
58799         * modules/mkdir (License): Re-license as LGPLv2+.
58800
58801 2008-04-29  Bruno Haible  <bruno@clisp.org>
58802
58803         * modules/rawmemchr (Maintainer): Set to Eric.
58804         * modules/strchrnul (Maintainer): Likewise.
58805
58806 2008-04-29  Simon Josefsson  <simon@josefsson.org>
58807
58808         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
58809         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
58810
58811         * modules/arpa_inet (arpa/inet.h): Use them.
58812
58813 2008-04-28  Eric Blake  <ebb9@byu.net>
58814
58815         Test getndelim2.
58816         * modules/getndelim2-tests: New file.
58817         * tests/test-getndelim2.c: Likewise.
58818         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
58819         stream.
58820         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
58821
58822         * MODULES.html.sh: Document new module.
58823
58824 2008-04-20  Bruno Haible  <bruno@clisp.org>
58825
58826         * lib/c-stack.c (die): Use raise.
58827         * modules/c-stack (Depends-on): Add raise.
58828
58829 2008-04-28  Bruno Haible  <bruno@clisp.org>
58830
58831         Expect rpmatch to be declared.
58832         * lib/yesno.c (rpmatch): Remove declaration.
58833
58834         Declare rpmatch.
58835         * lib/stdlib.in.h (rpmatch): New declaration.
58836         * lib/rpmatch.c: Include <stdlib.h> first.
58837         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
58838         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
58839         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
58840         HAVE_RPMATCH.
58841         * modules/rpmatch (Depends-on): Add stdlib, extensions.
58842         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58843         (Include): Set to <stdlib.h>.
58844         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
58845         HAVE_RPMATCH.
58846         * NEWS: Document the change.
58847
58848 2008-04-28  Bruno Haible  <bruno@clisp.org>
58849
58850         Change rpmatch to use nl_langinfo when appropriate.
58851         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
58852         (N_): New macro.
58853         (localized_pattern): New function/macro.
58854         (try): Remove match, nomatch arguments. Copy the pattern into safe
58855         memory before caching it.
58856         (rpmatch): Use localized_pattern. Add translator comments.
58857         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
58858         Suggested by Eric Blake.
58859         * modules/rpmatch (Depends-on): Add stdbool.
58860
58861 2008-04-28  Eric Blake  <ebb9@byu.net>
58862
58863         Add rawmemchr module, matching glibc.
58864         * modules/string (Makefile.am): New indicator.
58865         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
58866         * lib/string.in.h (rawmemchr): Declare when appropriate.
58867         * modules/rawmemchr: New file.
58868         * m4/rawmemchr.m4: Likewise.
58869         * lib/rawmemchr.c: Likewise.
58870         * modules/rawmemchr-tests: Likewise.
58871         * tests/test-rawmemchr.c: Likewise.
58872         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
58873         module.
58874         * modules/strchrnul (Depends-on): Add rawmemchr.
58875         * lib/strchrnul.c (strchrnul): Optimize a corner case.
58876
58877         Whitespace cleanup.
58878         * tests/test-strchrnul.c: Reindent.
58879         * lib/strchrnul.c: Likewise.
58880
58881         Optimize and test strchrnul.
58882         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
58883         * modules/strchrnul-tests: New file.
58884         * tests/test-strchrnul.c: Likewise.
58885
58886         Remove intprops dependency.
58887         * modules/memchr (Depends-on): Remove intprops.
58888         * modules/memrchr (Depends-on): Likewise.
58889         * modules/memchr2 (Depends-on): Likewise.
58890         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
58891         * lib/memrchr.c (__memrchr): Likewise.
58892         * lib/memrchr2.c (memchr2): Likewise.
58893         Reported by Simon Josefsson.
58894
58895 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58896
58897         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
58898         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58899
58900 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58901
58902         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
58903
58904         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
58905
58906         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
58907
58908         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
58909         declarations.
58910         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
58911
58912         * m4/inet_pton.m4: Don't check for header files.
58913
58914         * m4/inet_ntop.m4: Don't check for header files.
58915
58916 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58917
58918         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
58919         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
58920         trigger for cygwin).
58921         Reported by Bruno Haible  <bruno@clisp.org>.
58922
58923 2008-04-28  Bruno Haible  <bruno@clisp.org>
58924
58925         * doc/posix-functions/strdup.texi: Mention mingw problem.
58926
58927 2008-04-27  Bruno Haible  <bruno@clisp.org>
58928
58929         * modules/stat-time-tests (Depends-on): Add sleep.
58930         * tests/test-stat-time.c (force_unlink): New function.
58931         (cleanup): Use it.
58932         (test_mtime): Remove the ctime related tests.
58933         (test_ctime): New function, containing the ctime related tests.
58934         (main): Call test_ctime, except on native Windows platforms.
58935
58936 2008-04-27  Bruno Haible  <bruno@clisp.org>
58937
58938         * lib/rpmatch.c (rpmatch): Add some comments.
58939         Reported by James Youngman <jay@gnu.org>.
58940
58941 2008-04-27  Bruno Haible  <bruno@clisp.org>
58942
58943         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
58944         quiet NaNs.
58945
58946 2008-04-27  Bruno Haible  <bruno@clisp.org>
58947
58948         Make test-yesno.sh work on mingw.
58949         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
58950         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
58951         (main): Set stdin to binary mode.
58952         * modules/yesno-tests (Depends-on): Add binary-io.
58953
58954 2008-04-27  Bruno Haible  <bruno@clisp.org>
58955
58956         Fix 'isfinite' on x86, x86_64, ia64 platforms.
58957         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
58958         argument that lie outside the IEEE 854 domain.
58959         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
58960         (gl_ISFINITE): Use it.
58961         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
58962
58963 2008-04-27  Bruno Haible  <bruno@clisp.org>
58964
58965         Allow local renaming in config.h.
58966         * lib/memrchr.c (memrchr): Don't undefine outside libc.
58967
58968 2008-04-27  Bruno Haible  <bruno@clisp.org>
58969
58970         * lib/memchr.c (__memchr): Change type of 'i'.
58971         * lib/memchr2.c (memchr2): Likewise.
58972
58973 2008-04-26  Eric Blake  <ebb9@byu.net>
58974         and Bruno Haible  <bruno@clisp.org>
58975
58976         Optimize and test memrchr.
58977         * modules/memrchr (Depends-on): Add intprops.
58978         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
58979         * modules/memrchr-tests: New file.
58980         * tests/test-memrchr.c: New file.
58981
58982 2008-04-26  Bruno Haible  <bruno@clisp.org>
58983
58984         Add tentative support for DragonFly BSD.
58985         * lib/stdio-impl.h: Add macros for DragonFly BSD.
58986         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
58987         fp.
58988         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58989         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
58990         * lib/fpurge.c (fpurge): Likewise.
58991         * lib/freadable.c (freaadable): Likewise.
58992         * lib/freadahead.c (freadahead): Likewise.
58993         * lib/freading.c (freading): Likewise.
58994         * lib/freadptr.c (freadptr): Likewise.
58995         * lib/freadseek.c (freadptrinc): Likewise.
58996         * lib/fseeko.c (fseeko): Likewise.
58997         * lib/fseterr.c (fseterr): Likewise.
58998         * lib/fwritable.c (fwritable): Likewise.
58999         * lib/fwriting.c (fwriting): Likewise.
59000
59001 2008-04-26  Bruno Haible  <bruno@clisp.org>
59002
59003         * lib/stdio-impl.h: New file.
59004         * lib/fbufmode.c: Include stdio-impl.h.
59005         (fbufmode): Use fp_, remove redundant #defines.
59006         * lib/fflush.c: Include stdio-impl.h.
59007         (clear_ungetc_buffer): Remove redundant #defines.
59008         * lib/fpurge.c: Include stdio-impl.h.
59009         (fpurge): Remove redundant #defines.
59010         * lib/freadable.c: Include stdio-impl.h.
59011         (freadable): Remove redundant #defines.
59012         * lib/freadahead.c: Include stdio-impl.h.
59013         (freadahead): Remove redundant #defines.
59014         * lib/freading.c: Include stdio-impl.h.
59015         (freading): Remove redundant #defines.
59016         * lib/freadptr.c: Include stdio-impl.h.
59017         (freadptr): Remove redundant #defines.
59018         * lib/freadseek.c: Include stdio-impl.h.
59019         (freadptrinc): Remove redundant #defines.
59020         * lib/fseeko.c: Include stdio-impl.h.
59021         (rpl_fseeko): Remove redundant #defines.
59022         * lib/fseterr.c: Include stdio-impl.h.
59023         (fseterr): Remove redundant #defines.
59024         * lib/fwritable.c: Include stdio-impl.h.
59025         (fwritable: Remove redundant #defines.
59026         * lib/fwriting.c: Include stdio-impl.h.
59027         (fwriting): Remove redundant #defines.
59028         * modules/fbufmode (Files): Add lib/stdio-impl.h.
59029         * modules/fflush (Files): Likewise.
59030         * modules/fpurge (Files): Likewise.
59031         * modules/freadable (Files): Likewise.
59032         * modules/freadahead (Files): Likewise.
59033         * modules/freading (Files): Likewise.
59034         * modules/freadptr (Files): Likewise.
59035         * modules/freadseek (Files): Likewise.
59036         * modules/fseeko (Files): Likewise.
59037         * modules/fseterr (Files): Likewise.
59038         * modules/fwritable (Files): Likewise.
59039         * modules/fwriting (Files): Likewise.
59040
59041 2008-04-26  Bruno Haible  <bruno@clisp.org>
59042
59043         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59044         restore_seek_optimization, update_fpos_cache): New functions, extracted
59045         from rpl_fflush.
59046         (rpl_fflush): Use them.
59047         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
59048         (gl_REPLACE_FFLUSH): Use it.
59049
59050 2008-04-26  Bruno Haible  <bruno@clisp.org>
59051
59052         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
59053         on Solaris.
59054         * tests/test-xstrtoimax.sh: Likewise.
59055         * tests/test-xstrtoumax.sh: Likewise.
59056         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59057
59058 2008-04-26  Bruno Haible  <bruno@clisp.org>
59059
59060         * modules/memchr-tests: New file.
59061         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
59062
59063 2008-04-26  Eric Blake  <ebb9@byu.net>
59064             Bruno Haible  <bruno@clisp.org>
59065
59066         * lib/memchr.c: Include intprops.h.
59067         (__memchr): Optimize parallel detection of matching bytes. Rename local
59068         variables. Add explanatory comments.
59069
59070 2008-04-26  Bruno Haible  <bruno@clisp.org>
59071
59072         Fix module 'memchr', broken since 2000-10-28.
59073         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
59074
59075 2008-04-26  Bruno Haible  <bruno@clisp.org>
59076
59077         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
59078         comments.
59079
59080 2008-04-25  Eric Blake  <ebb9@byu.net>
59081
59082         Use native fstatat on cygwin 1.7.0.
59083         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
59084         first.
59085
59086 2008-04-23  Eric Blake  <ebb9@byu.net>
59087
59088         Improve memchr2 performance.
59089         * lib/memchr2.c (memchr2): Further optimize parallel detection of
59090         NUL bytes.
59091         * modules/memchr2 (Depends-on): Use intprops.h.
59092
59093 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59094
59095         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
59096         an inline function instead of a CPP macro.  Patch by Ben Pfaff
59097         <blp@cs.stanford.edu>.
59098
59099 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59100
59101         * lib/arpa_inet.in.h: New file.
59102
59103         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
59104         (Makefile.am): Sed in substitute header file.
59105
59106         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
59107         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
59108
59109         * modules/inet_ntop (configure.ac): Use
59110         gl_ARPA_INET_MODULE_INDICATOR.
59111
59112         * modules/inet_pton (configure.ac): Use
59113         gl_ARPA_INET_MODULE_INDICATOR.
59114
59115 2008-04-22  Jim Meyering  <meyering@redhat.com>
59116
59117         * modules/verify (License): Re-license as LGPLv2+.
59118
59119 2008-04-22  Simon Josefsson  <simon@josefsson.org>
59120
59121         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
59122         parameter to void* as per POSIX standard (MinGW uses char*).
59123
59124 2008-04-21  Bruno Haible  <bruno@clisp.org>
59125
59126         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59127         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59128         Define to replacements if REPLACE_ISWCNTRL is 1.
59129         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
59130         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
59131         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
59132         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
59133         what it fixes.
59134         * doc/posix-functions/iswalpha.texi: Likewise.
59135         * doc/posix-functions/iswblank.texi: Likewise.
59136         * doc/posix-functions/iswcntrl.texi: Likewise.
59137         * doc/posix-functions/iswdigit.texi: Likewise.
59138         * doc/posix-functions/iswgraph.texi: Likewise.
59139         * doc/posix-functions/iswlower.texi: Likewise.
59140         * doc/posix-functions/iswprint.texi: Likewise.
59141         * doc/posix-functions/iswpunct.texi: Likewise.
59142         * doc/posix-functions/iswspace.texi: Likewise.
59143         * doc/posix-functions/iswupper.texi: Likewise.
59144         * doc/posix-functions/iswxdigit.texi: Likewise.
59145         Reported by Alain Guibert.
59146
59147 2008-04-21  Bruno Haible  <bruno@clisp.org>
59148
59149         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
59150         Patch by Alain Guibert.
59151
59152 2008-04-21  Bruno Haible  <bruno@clisp.org>
59153
59154         Fix test failures on mingw.
59155         * tests/test-xstrtol.c (print_no_progname): New function.
59156         (main): Install it in error_print_progname hook.
59157         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
59158         * tests/test-xstrtoimax.sh: Likewise.
59159         * tests/test-xstrtoumax.sh: Likewise.
59160
59161 2008-04-21  Bruno Haible  <bruno@clisp.org>
59162
59163         Fix test failure on mingw.
59164         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
59165
59166 2008-04-21  Bruno Haible  <bruno@clisp.org>
59167
59168         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
59169         Actually assign a value.
59170
59171 2008-04-20  Bruno Haible  <bruno@clisp.org>
59172
59173         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
59174         take 2.
59175         * lib/canonicalize.c (canonicalize_file_name): Elide if the
59176         'canonicalize-lgpl' module is also used.
59177         * lib/canonicalize-lgpl.c: Undo last change.
59178         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
59179
59180 2008-04-20  Bruno Haible  <bruno@clisp.org>
59181
59182         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
59183         config.h. Provide _mkdir based fallback for mingw.
59184         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
59185         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
59186         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
59187         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
59188         rather than defining mkdir in config.h.
59189         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
59190         (gl_SYS_STAT_H_DEFAULTS): New macro.
59191         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
59192         HAVE_IO_H any more.
59193         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
59194         HAVE_DECL_MKDIR and HAVE_IO_H.
59195
59196 2008-04-20  Bruno Haible  <bruno@clisp.org>
59197
59198         * lib/isapipe.c: Port to native Windows platforms.
59199
59200 2008-04-20  Bruno Haible  <bruno@clisp.org>
59201
59202         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
59203
59204 2008-04-21  Eric Blake  <ebb9@byu.net>
59205
59206         Work around preprocessors that don't handle UINTMAX_MAX.
59207         * lib/memchr2.c (memchr2): Avoid embedded #if.
59208         Reported by Alain Guibert, fix suggested by Bruno Haible.
59209
59210 2008-04-21  Simon Josefsson  <simon@josefsson.org>
59211
59212         * doc/posix-functions/strftime.texi (strftime): Explain better
59213         Windows incompatibility.  Suggested by Micah Cowan
59214         <micah@cowan.name>.
59215
59216 2008-04-20  Bruno Haible  <bruno@clisp.org>
59217
59218         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
59219         unistr/u8-mblen.
59220
59221 2008-04-20  Bruno Haible  <bruno@clisp.org>
59222
59223         Fix test failure on platforms with non-GNU iconv.
59224         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
59225         (U_TO_U8): Use it, rather than u16_to_u8.
59226         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
59227         units at the end of the input string.
59228         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
59229
59230 2008-04-20  Bruno Haible  <bruno@clisp.org>
59231
59232         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
59233         when the resulting length is 0.
59234         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
59235
59236 2008-04-20  Bruno Haible  <bruno@clisp.org>
59237
59238         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
59239         works.
59240         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
59241
59242 2008-04-20  Bruno Haible  <bruno@clisp.org>
59243
59244         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
59245         * modules/tsearch-tests (configure.ac): Test for initstate function.
59246
59247 2008-04-20  Bruno Haible  <bruno@clisp.org>
59248
59249         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
59250         for nlink_t if missing.
59251         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
59252
59253 2008-04-19  Bruno Haible  <bruno@clisp.org>
59254
59255         Work around snprintf bug on Linux libc5.
59256         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
59257         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59258         gl_SNPRINTF_SIZE1.
59259         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59260         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
59261         that test failed.
59262         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
59263         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
59264         * modules/snprintf (Files): Add m4/printf.m4.
59265         * modules/vsnprintf (Files): Likewise.
59266         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
59267         * doc/posix-functions/vsnprintf.texi: Likewise.
59268
59269 2008-04-19  Bruno Haible  <bruno@clisp.org>
59270
59271         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
59272         from 0.0058 to less than 10^-7.
59273
59274 2008-04-19  Bruno Haible  <bruno@clisp.org>
59275
59276         Fix rounding when a precision is given.
59277         * lib/vasnprintf.c (is_borderline): New function.
59278         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
59279         9...9x.
59280         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
59281         %e, %g.
59282         * tests/test-vasprintf-posix.c (test_function): Likewise.
59283         * tests/test-snprintf-posix.h (test_function): Likewise.
59284         * tests/test-sprintf-posix.h (test_function): Likewise.
59285         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
59286         * tests/test-printf-posix.h (test_function): Likewise.
59287         * tests/test-printf-posix.output: Update.
59288         Reported by John Darrington <john@darrington.wattle.id.au> via
59289         Ben Pfaff <blp@cs.stanford.edu>.
59290
59291 2008-04-18  Simon Josefsson  <simon@josefsson.org>
59292
59293         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
59294         Suggested by Bruno Haible <bruno@clisp.org>.
59295
59296 2008-04-17  Bruno Haible  <bruno@clisp.org>
59297
59298         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
59299         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
59300         implementation.
59301         Patch by Bruce Merry <bmerry@gmail.com>.
59302
59303 2008-04-17  Simon Josefsson  <simon@josefsson.org>
59304
59305         * doc/posix-functions/strftime.texi (strftime): Mention that %e
59306         doesn't work under Windows.
59307
59308 2008-04-16  Bruno Haible  <bruno@clisp.org>
59309
59310         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
59311         New macros.
59312         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
59313         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
59314         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
59315         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
59316         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
59317         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
59318         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
59319         macros.
59320         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
59321         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
59322         Northern Sotho, Uighur.
59323
59324 2008-04-16  Bruno Haible  <bruno@clisp.org>
59325
59326         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
59327         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
59328         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
59329         Reported by Daniel Bergström <daniel@octocode.com>.
59330
59331 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
59332             Bruno Haible  <bruno@clisp.org>
59333
59334         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
59335         function.
59336         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
59337         New functions, mostly extracted from gl_locale_name_default.
59338         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
59339
59340 2008-04-16  Eric Blake  <ebb9@byu.net>
59341
59342         Adjust strtod detection to catch glibc 2.7 bug.
59343         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
59344         Reported by John Gatewood Ham.
59345
59346 2008-04-16  Bruno Haible  <bruno@clisp.org>
59347
59348         Add tentative support for Linux libc5.
59349         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
59350         * lib/fpurge.c (fpurge): Likewise.
59351         * lib/freadable.c (freadable): Likewise.
59352         * lib/freadahead.c (freadahead): Likewise.
59353         * lib/freading.c (freading): Likewise.
59354         * lib/freadptr.c (freadptr): Likewise.
59355         * lib/freadseek.c (freadptrinc): Likewise.
59356         * lib/fseeko.c (rpl_fseeko): Likewise.
59357         * lib/fseterr.c (fseterr): Likewise.
59358         * lib/fwritable.c (fwritable): Likewise.
59359         * lib/fwriting.c (fwriting): Likewise.
59360         Reported by Alain Guibert <alguibert+bts@free.fr>.
59361
59362 2008-04-15  Bruno Haible  <bruno@clisp.org>
59363
59364         * modules/mathl (configure.ac): Define module indicator.
59365
59366 2008-04-15  Bruno Haible  <bruno@clisp.org>
59367
59368         * lib/logl.c (logl): Remove unused variables.
59369
59370 2008-04-15  Bruno Haible  <bruno@clisp.org>
59371
59372         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
59373         fails.
59374
59375 2008-04-15  Bruno Haible  <bruno@clisp.org>
59376
59377         * lib/trim.c (trim2): Fix argument of isspace() macro.
59378
59379 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
59380
59381         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
59382         to 0.
59383         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
59384
59385 2008-04-14  Bruno Haible  <bruno@clisp.org>
59386
59387         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
59388         AC_LANG_PROGRAM argument.
59389         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
59390         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
59391         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
59392         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59393         * m4/math_h.m4 (gl_MATH_H): Likewise.
59394         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
59395         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59396         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59397         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
59398         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59399         * m4/regex.m4 (gl_REGEX): Likewise.
59400         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
59401         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
59402         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59403         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
59404         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59405         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59406         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59407         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59408
59409 2008-04-14  Jim Meyering  <meyering@redhat.com>
59410
59411         test-strtod: fix typos: s/abs/fabs/
59412         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
59413
59414 2008-04-13  Bruno Haible  <bruno@clisp.org>
59415
59416         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
59417         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
59418         module is also used and while not building the reloc-wrapper.
59419
59420 2008-04-13  Bruno Haible  <bruno@clisp.org>
59421
59422         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
59423
59424 2008-04-13  Bruno Haible  <bruno@clisp.org>
59425
59426         Fix AIX compilation failure introduced on 2008-04-02.
59427         * tests/test-frexp.c (exp): Undefine before redefining.
59428         * tests/test-frexpl.c (exp): Likewise.
59429
59430 2008-04-13  Bruno Haible  <bruno@clisp.org>
59431
59432         Work around a HP-UX stdio bug.
59433         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
59434         * tests/test-ftello.c (main): Likewise.
59435         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
59436         * doc/posix-functions/ftello.texi: Likewise.
59437
59438 2008-04-13  Bruno Haible  <bruno@clisp.org>
59439
59440         Make test-signbit pass on HP-UX/hppa.
59441         * tests/test-signbit.c (minus_zerol): New variable.
59442         (test_signbitl): Use it.
59443
59444 2008-04-13  Bruno Haible  <bruno@clisp.org>
59445
59446         Make truncl work on OSF/1 4.0.
59447         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
59448         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59449         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59450         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
59451         HAVE_DECL_TRUNCL.
59452         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
59453         HAVE_DECL_TRUNCL.
59454         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
59455
59456 2008-04-13  Bruno Haible  <bruno@clisp.org>
59457
59458         * lib/unictype.h: Remove trailing comma from enumeration definitions.
59459
59460 2008-04-13  Bruno Haible  <bruno@clisp.org>
59461
59462         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
59463         expression, so as to avoid HP-UX 11 cc compiler bug.
59464
59465 2008-04-13  Bruno Haible  <bruno@clisp.org>
59466
59467         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
59468
59469 2008-04-13  Bruno Haible  <bruno@clisp.org>
59470
59471         * lib/git-merge-changelog.c: Remove empty declaration outside of
59472         functions.
59473
59474 2008-04-13  Bruno Haible  <bruno@clisp.org>
59475
59476         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
59477
59478 2008-04-13  Bruno Haible  <bruno@clisp.org>
59479
59480         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
59481         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
59482         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
59483         also if it exists but lacks definitions of the SHUT_* macros.
59484         * modules/sys_socket (Description): Update.
59485         Reported by Elbert Pol <e.pol@chello.nl>.
59486
59487 2008-04-13  Bruno Haible  <bruno@clisp.org>
59488
59489         * lib/localcharset.c (OS2): Don't redefine if already defined.
59490         Reported by Elbert Pol <e.pol@chello.nl>.
59491
59492 2008-04-13  Bruno Haible  <bruno@clisp.org>
59493
59494         * lib/binary-io.h [__EMX__]: Include <io.h>.
59495         Reported by Elbert Pol <e.pol@chello.nl>.
59496
59497 2008-04-12  Bruno Haible  <bruno@clisp.org>
59498
59499         * lib/fpucw.h: Enable the definitions also for x86_64.
59500         Needed for NetBSD/x86_64.
59501         Reported by Thomas Klausner <tk@giga.or.at>.
59502
59503 2008-04-12  Bruno Haible  <bruno@clisp.org>
59504
59505         * tests/test-strtod.c: Include isnand.h.
59506         (main): Use isnand instead of isnan.
59507         Reported by Jim Meyering.
59508
59509 2008-04-12  Bruno Haible  <bruno@clisp.org>
59510
59511         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
59512         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59513
59514 2008-04-12  Jim Meyering  <meyering@redhat.com>
59515
59516         * m4/math_h.m4 (gl_MATH_H): Fix typos.
59517
59518 2008-04-12  Bruno Haible  <bruno@clisp.org>
59519
59520         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
59521         Reported by Elbert Pol <e.pol@chello.nl>.
59522
59523 2008-04-12  Eric Blake  <ebb9@byu.net>
59524
59525         Work around Solaris 10 math.h bug.
59526         * m4/math_h.m4 (gl_MATH_H): Check for bug.
59527         (gl_MATH_H_DEFAULTS): Set up default.
59528         * modules/math (Makefile.am): Replace new indicators.
59529         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
59530         * tests/test-math.c (main): Test this.
59531         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
59532         * doc/posix-headers/math.texi (math.h): Mention bug.
59533         Reported by Nelson H. F. Beebe and Jim Meyering.
59534
59535 2008-04-11  Bruno Haible  <bruno@clisp.org>
59536
59537         Adapt to future versions of Apple GCC.
59538         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
59539         Reported by Peter O'Gorman <peter@pogma.com>.
59540
59541 2008-04-11  Bruno Haible  <bruno@clisp.org>
59542
59543         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
59544
59545 2008-04-11  Bruno Haible  <bruno@clisp.org>
59546
59547         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
59548
59549         * modules/getaddrinfo-tests (Makefile.am): Define
59550         test_getaddrinfo_LDADD.
59551
59552 2008-04-11  Bruno Haible  <bruno@clisp.org>
59553
59554         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
59555         (init): Fix syntax error.
59556         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
59557         is declared.
59558
59559 2008-04-11  Bruno Haible  <bruno@clisp.org>
59560
59561         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
59562         * modules/glob (Depends-on): Add stdbool.
59563
59564 2008-04-11  Bruno Haible  <bruno@clisp.org>
59565
59566         * lib/trim.c: Include <string.h>.
59567
59568 2008-04-11  Eric Blake  <ebb9@byu.net>
59569
59570         Avoid compile failure on OS/2.
59571         * lib/regex_internal.h (internal_function): Disable optimization
59572         on OS/2 (__EMX__), where it caused compiler error.
59573         Reported by Elbert Pol.
59574
59575 2008-04-11  Bruno Haible  <bruno@clisp.org>
59576
59577         Flush the standard error stream before aborting. Needed on mingw.
59578         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
59579         * tests/test-array_list.c (ASSERT): Likewise.
59580         * tests/test-array_oset.c (ASSERT): Likewise.
59581         * tests/test-avltree_list.c (ASSERT): Likewise.
59582         * tests/test-avltree_oset.c (ASSERT): Likewise.
59583         * tests/test-avltreehash_list.c (ASSERT): Likewise.
59584         * tests/test-binary-io.c (ASSERT): Likewise.
59585         * tests/test-byteswap.c (ASSERT): Likewise.
59586         * tests/test-c-ctype.c (ASSERT): Likewise.
59587         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
59588         * tests/test-c-strcasestr.c (ASSERT): Likewise.
59589         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
59590         * tests/test-c-strstr.c (ASSERT): Likewise.
59591         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
59592         * tests/test-canonicalize.c (ASSERT): Likewise.
59593         * tests/test-carray_list.c (ASSERT): Likewise.
59594         * tests/test-ceilf1.c (ASSERT): Likewise.
59595         * tests/test-ceilf2.c (ASSERT): Likewise.
59596         * tests/test-ceill.c (ASSERT): Likewise.
59597         * tests/test-count-one-bits.c (ASSERT): Likewise.
59598         * tests/test-fbufmode.c (ASSERT): Likewise.
59599         * tests/test-fflush2.c (ASSERT): Likewise.
59600         * tests/test-floorf1.c (ASSERT): Likewise.
59601         * tests/test-floorf2.c (ASSERT): Likewise.
59602         * tests/test-floorl.c (ASSERT): Likewise.
59603         * tests/test-fopen.c (ASSERT): Likewise.
59604         * tests/test-fpending.c (ASSERT): Likewise.
59605         * tests/test-fprintf-posix.c (ASSERT): Likewise.
59606         * tests/test-fpurge.c (ASSERT): Likewise.
59607         * tests/test-freadable.c (ASSERT): Likewise.
59608         * tests/test-freadahead.c (ASSERT): Likewise.
59609         * tests/test-freading.c (ASSERT): Likewise.
59610         * tests/test-freadptr.c (ASSERT): Likewise.
59611         * tests/test-freadptr2.c (ASSERT): Likewise.
59612         * tests/test-freadseek.c (ASSERT): Likewise.
59613         * tests/test-freopen.c (ASSERT): Likewise.
59614         * tests/test-frexp.c (ASSERT): Likewise.
59615         * tests/test-frexpl.c (ASSERT): Likewise.
59616         * tests/test-fseek.c (ASSERT): Likewise.
59617         * tests/test-fseeko.c (ASSERT): Likewise.
59618         * tests/test-fstrcmp.c (ASSERT): Likewise.
59619         * tests/test-ftell.c (ASSERT): Likewise.
59620         * tests/test-ftello.c (ASSERT): Likewise.
59621         * tests/test-func.c (ASSERT): Likewise.
59622         * tests/test-fwritable.c (ASSERT): Likewise.
59623         * tests/test-fwriting.c (ASSERT): Likewise.
59624         * tests/test-getdelim.c (ASSERT): Likewise.
59625         * tests/test-getline.c (ASSERT): Likewise.
59626         * tests/test-i-ring.c (ASSERT): Likewise.
59627         * tests/test-iconv-utf.c (ASSERT): Likewise.
59628         * tests/test-iconv.c (ASSERT): Likewise.
59629         * tests/test-isfinite.c (ASSERT): Likewise.
59630         * tests/test-isnand.c (ASSERT): Likewise.
59631         * tests/test-isnanf.c (ASSERT): Likewise.
59632         * tests/test-isnanl.h (ASSERT): Likewise.
59633         * tests/test-ldexpl.c (ASSERT): Likewise.
59634         * tests/test-linked_list.c (ASSERT): Likewise.
59635         * tests/test-linkedhash_list.c (ASSERT): Likewise.
59636         * tests/test-localename.c (ASSERT): Likewise.
59637         * tests/test-lseek.c (ASSERT): Likewise.
59638         * tests/test-mbscasecmp.c (ASSERT): Likewise.
59639         * tests/test-mbscasestr1.c (ASSERT): Likewise.
59640         * tests/test-mbscasestr2.c (ASSERT): Likewise.
59641         * tests/test-mbscasestr3.c (ASSERT): Likewise.
59642         * tests/test-mbscasestr4.c (ASSERT): Likewise.
59643         * tests/test-mbschr.c (ASSERT): Likewise.
59644         * tests/test-mbscspn.c (ASSERT): Likewise.
59645         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
59646         * tests/test-mbspbrk.c (ASSERT): Likewise.
59647         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
59648         * tests/test-mbsrchr.c (ASSERT): Likewise.
59649         * tests/test-mbsspn.c (ASSERT): Likewise.
59650         * tests/test-mbsstr1.c (ASSERT): Likewise.
59651         * tests/test-mbsstr2.c (ASSERT): Likewise.
59652         * tests/test-mbsstr3.c (ASSERT): Likewise.
59653         * tests/test-memchr2.c (ASSERT): Likewise.
59654         * tests/test-memmem.c (ASSERT): Likewise.
59655         * tests/test-open.c (ASSERT): Likewise.
59656         * tests/test-printf-frexp.c (ASSERT): Likewise.
59657         * tests/test-printf-frexpl.c (ASSERT): Likewise.
59658         * tests/test-printf-posix.c (ASSERT): Likewise.
59659         * tests/test-quotearg.c (ASSERT): Likewise.
59660         * tests/test-rbtree_list.c (ASSERT): Likewise.
59661         * tests/test-rbtree_oset.c (ASSERT): Likewise.
59662         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
59663         * tests/test-round1.c (ASSERT): Likewise.
59664         * tests/test-roundf1.c (ASSERT): Likewise.
59665         * tests/test-roundl.c (ASSERT): Likewise.
59666         * tests/test-signbit.c (ASSERT): Likewise.
59667         * tests/test-sleep.c (ASSERT): Likewise.
59668         * tests/test-snprintf-posix.c (ASSERT): Likewise.
59669         * tests/test-snprintf.c (ASSERT): Likewise.
59670         * tests/test-sprintf-posix.c (ASSERT): Likewise.
59671         * tests/test-stat-time.c (ASSERT): Likewise.
59672         * tests/test-strcasestr.c (ASSERT): Likewise.
59673         * tests/test-strerror.c (ASSERT): Likewise.
59674         * tests/test-striconv.c (ASSERT): Likewise.
59675         * tests/test-striconveh.c (ASSERT): Likewise.
59676         * tests/test-striconveha.c (ASSERT): Likewise.
59677         * tests/test-strsignal.c (ASSERT): Likewise.
59678         * tests/test-strstr.c (ASSERT): Likewise.
59679         * tests/test-strtod.c (ASSERT): Likewise.
59680         * tests/test-trunc1.c (ASSERT): Likewise.
59681         * tests/test-trunc2.c (ASSERT): Likewise.
59682         * tests/test-truncf1.c (ASSERT): Likewise.
59683         * tests/test-truncf2.c (ASSERT): Likewise.
59684         * tests/test-truncl.c (ASSERT): Likewise.
59685         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
59686         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
59687         * tests/test-vasnprintf.c (ASSERT): Likewise.
59688         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
59689         * tests/test-vasprintf.c (ASSERT): Likewise.
59690         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
59691         * tests/test-vprintf-posix.c (ASSERT): Likewise.
59692         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
59693         * tests/test-vsnprintf.c (ASSERT): Likewise.
59694         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
59695         * tests/test-wcwidth.c (ASSERT): Likewise.
59696         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
59697         * tests/test-xprintf-posix.c (ASSERT): Likewise.
59698         * tests/test-xvasprintf.c (ASSERT): Likewise.
59699         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
59700         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
59701         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
59702         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
59703         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
59704         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
59705         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
59706         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
59707         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
59708         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
59709         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
59710         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
59711         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
59712         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
59713         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
59714         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
59715         * tests/unictype/test-block_list.c (ASSERT): Likewise.
59716         * tests/unictype/test-block_of.c (ASSERT): Likewise.
59717         * tests/unictype/test-block_test.c (ASSERT): Likewise.
59718         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
59719         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
59720         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
59721         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
59722         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
59723         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
59724         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
59725         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
59726         * tests/unictype/test-combining.c (ASSERT): Likewise.
59727         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
59728         * tests/unictype/test-digit.c (ASSERT): Likewise.
59729         * tests/unictype/test-mirror.c (ASSERT): Likewise.
59730         * tests/unictype/test-numeric.c (ASSERT): Likewise.
59731         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
59732         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
59733         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
59734         * tests/unictype/test-scripts.c (ASSERT): Likewise.
59735         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
59736         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
59737         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
59738         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
59739         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
59740         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
59741         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
59742         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
59743         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
59744         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
59745         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
59746         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
59747         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
59748         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
59749         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
59750         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
59751         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
59752         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
59753         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
59754         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
59755         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
59756         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
59757         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
59758         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
59759         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
59760         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
59761         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
59762         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
59763         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
59764         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
59765         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
59766         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
59767         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
59768         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
59769         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
59770         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
59771         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
59772         Reported by Eric Blake.
59773
59774 2008-04-11  Bruno Haible  <bruno@clisp.org>
59775
59776         * lib/wchar.in.h: Tweak comment.
59777
59778 2008-04-11  Bruno Haible  <bruno@clisp.org>
59779
59780         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
59781         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
59782         gl_COMMON.
59783         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
59784
59785 2008-04-11  Bruno Haible  <bruno@clisp.org>
59786
59787         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
59788
59789 2008-04-11  Simon Josefsson  <simon@josefsson.org>
59790
59791         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
59792         of attempting to use non-existing /dev/*random.  Based on patch
59793         from Adam Strzelecki <ono@java.pl> in
59794         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
59795
59796 2008-04-08  Bruno Haible  <bruno@clisp.org>
59797
59798         Add tentative support for emx+gcc.
59799         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
59800         * lib/fpurge.c (fpurge): Likewise.
59801         * lib/freadable.c (freadable): Likewise.
59802         * lib/freadahead.c (freadahead): Likewise.
59803         * lib/freading.c (freading): Likewise.
59804         * lib/freadptr.c (freadptr): Likewise.
59805         * lib/freadseek.c (freadptrinc): Likewise.
59806         * lib/fseeko.c (rpl_fseeko): Likewise.
59807         * lib/fseterr.c (fseterr): Likewise.
59808         * lib/fwritable.c (fwritable): Likewise.
59809         * lib/fwriting.c (fwriting): Likewise.
59810         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
59811
59812 2008-04-09  Eric Blake  <ebb9@byu.net>
59813
59814         Avoid some autoconf warnings.
59815         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
59816         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
59817         * m4/afs.m4 (gl_AFS): Likewise.
59818         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
59819         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
59820         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59821         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
59822         (gl_INTEGER_TYPE_SUFFIX): Likewise.
59823         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
59824         (AC_CHECK_DECLS_ONCE): Likewise.
59825         Rename file...
59826         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
59827         gnulib-tool requires autoconf 2.59 or better.
59828         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
59829
59830 2008-04-08  Eric Blake  <ebb9@byu.net>
59831
59832         Use 'git describe --match' if present (added in git 1.5.5).
59833         * build-aux/git-version-gen: Limit result to tags that match 'v*'
59834         if possible.
59835
59836 2008-04-08  Bruno Haible  <bruno@clisp.org>
59837
59838         Add tentative support for OpenServer.
59839         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
59840         _ptr, _cnt.
59841         * lib/fpurge.c (fpurge): Likewise.
59842         * lib/freadable.c (freadable): Likewise.
59843         * lib/freadahead.c (freadahead): Likewise.
59844         * lib/freading.c (freading): Likewise.
59845         * lib/freadptr.c (freadptr): Likewise.
59846         * lib/freadseek.c (freadptrinc): Likewise.
59847         * lib/fseeko.c (rpl_fseeko): Likewise.
59848         * lib/fseterr.c (fseterr): Likewise.
59849         * lib/fwritable.c (fwritable): Likewise.
59850         * lib/fwriting.c (fwriting): Likewise.
59851         Reported by Roger Cornelius <rac@tenzing.org> and
59852         Brian K. White <brian@aljex.com>.
59853
59854 2008-04-06  Jim Meyering  <meyering@redhat.com>
59855
59856         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
59857
59858 2008-04-06  Bruno Haible  <bruno@clisp.org>
59859
59860         Avoid possible error with non-ASCII bytes in UTF-8 locales.
59861         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
59862         * tests/test-printf-posix.sh: Likewise.
59863         * tests/test-vfprintf-posix.sh: Likewise.
59864         * tests/test-vprintf-posix.sh: Likewise.
59865         * tests/test-xprintf-posix.sh: Likewise.
59866
59867 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59868
59869         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
59870         hide error from 'ls', needed on OS/2.
59871         Report by Elbert Pol <elbert.pol@gmail.com>.
59872
59873 2008-04-04  Eric Blake  <ebb9@byu.net>
59874
59875         Make test-fseeko.c failures meaningful.
59876         * tests/test-fseeko.c: Print line number on failure.
59877         * tests/test-fseek.c: Likewise.
59878         Reported by Nelson H. F. Beebe.
59879
59880         Improve strtod bug detection check.
59881         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
59882         required for Solaris 10.
59883         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
59884
59885 2008-04-04  Bruno Haible  <bruno@clisp.org>
59886
59887         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
59888         by m4/setenv.m4.
59889
59890 2008-04-03  Eric Blake  <ebb9@byu.net>
59891
59892         Ensure sane .version contents.
59893         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
59894         version string.
59895         * build-aux/git-version-gen: Improve documentation.
59896
59897         Make GNU make output nicer.
59898         * top/GNUmakefile [!_have-Makefile]: Add dependency on
59899         MAKECMDGOALS to enforce message for all command line targets.  Set
59900         srcdir for use in maint.mk.
59901
59902         Another maintainer tweak.
59903         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
59904         a target that regenerates version.
59905
59906 2008-04-03  Jim Meyering  <meyering@redhat.com>
59907
59908         vc-list-files: don't cause coreutils "make po-check" failure
59909         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
59910
59911 2008-04-03  Eric Blake  <ebb9@byu.net>
59912
59913         Allow VPATH usage of vc-list-files.
59914         * build-aux/vc-list-files (scriptversion): Add timestamp.
59915         (options): Add --help, --version, -C.
59916         (CVS): Support installed cvsu.
59917
59918 2008-04-02  Bruno Haible  <bruno@clisp.org>
59919
59920         Avoid some "statement with no effect" warnings from gcc.
59921         * tests/test-wctype.c (main): Explicitly ignore unused values.
59922         Reported by Jim Meyering.
59923
59924 2008-04-02  Jim Meyering  <meyering@redhat.com>
59925
59926         Avoid some warnings from "gcc -Wshadow".
59927         * tests/test-frexp.c (exp): Define to a different identifier.
59928         * tests/test-frexpl.c (exp): Likewise.
59929
59930 2008-04-03  Jim Meyering  <meyering@redhat.com>
59931
59932         bootstrap: remove dangling *.[ch] symlinks from lib
59933         * build-aux/bootstrap [dangling symlink removal]: Move find's
59934         -depth option to precede all others, to avoid a warning.
59935         Remove *.[ch] files too, and from "$source_base" (usually lib/).
59936
59937 2008-04-02  Bruno Haible  <bruno@clisp.org>
59938
59939         Avoid some warnings from "gcc -Wshadow".
59940         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
59941         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
59942         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
59943         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
59944         Reported by Jim Meyering.
59945
59946 2008-04-01  Bruno Haible  <bruno@clisp.org>
59947
59948         Fix test to work on IRIX 6.5 with cc.
59949         * tests/test-math.c (numeric_equal): New function.
59950         (main): Use it.
59951
59952 2008-04-01  Bruno Haible  <bruno@clisp.org>
59953
59954         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
59955
59956 2008-04-01  Bruno Haible  <bruno@clisp.org>
59957
59958         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
59959         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59960         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
59961         (Depends-on): Remove math.
59962
59963         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
59964         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59965         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
59966         (Depends-on): Remove math.
59967
59968         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
59969         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59970         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
59971         (Depends-on): Remove math.
59972         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
59973         (Depends-on): Remove math.
59974
59975         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
59976         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59977         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
59978         (Depends-on): Remove math.
59979         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
59980         (Depends-on): Remove math.
59981
59982         * tests/test-round1.c: Include nan.h.
59983         (main): Use NaNd instead of NAN.
59984         * modules/round-tests (Files): Add tests/nan.h.
59985
59986         * tests/test-trunc1.c: Include nan.h.
59987         (main): Use NaNd instead of NAN.
59988         * modules/trunc-tests (Files): Add tests/nan.h.
59989
59990         * tests/test-roundf1.c: Include nan.h.
59991         (main): Use NaNf instead of NAN.
59992         * modules/roundf-tests (Files): Add tests/nan.h.
59993
59994         * tests/test-truncf1.c: Include nan.h.
59995         (main): Use NaNf instead of NAN.
59996         * modules/truncf-tests (Files): Add tests/nan.h.
59997
59998         * tests/test-ceilf1.c: Include nan.h.
59999         (main): Use NaNf instead of NAN.
60000         * modules/ceilf-tests (Files): Add tests/nan.h.
60001
60002         * tests/test-floorf1.c: Include nan.h.
60003         (main): Use NaNf instead of NAN.
60004         * modules/floorf-tests (Files): Add tests/nan.h.
60005
60006         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
60007         (main): Use NaNf instead of NAN.
60008         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
60009
60010         * tests/test-isnand.c: Include nan.h instead of <math.h>.
60011         (main): Use NaNd instead of NAN.
60012         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
60013
60014         * tests/test-frexp.c: Include nan.h.
60015         (main): Use NaNd instead of NAN.
60016         * modules/frexp-tests (Files): Add tests/nan.h.
60017
60018         * lib/isnan.c: Don't include <math.h>.
60019         (FUNC): Don't use NAN macro.
60020         * modules/isnand-nolibm (Depends-on): Remove math.
60021         * modules/isnanf-nolibm (Depends-on): Remove math.
60022         * modules/isnanl (Depends-on): Remove math.
60023         * modules/isnanl-nolibm (Depends-on): Remove math.
60024
60025         * tests/nan.h: New file.
60026
60027 2008-04-01  Eric Blake  <ebb9@byu.net>
60028
60029         Fix typos.
60030         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
60031         values to be the right type.
60032
60033         For now, cater to gnulib strtod inaccuracies.
60034         * tests/test-strtod.c (main): Allow 1-ulp error on expected
60035         fractional results.  While not as nice from a QoI perspective, it
60036         is a quicker patch than correctly implementing decimal to binary
60037         rounding.
60038
60039 2008-03-31  Eric Blake  <ebb9@byu.net>
60040
60041         Guarantee a definition of NAN.
60042         * lib/math.in.h (NAN): Define if missing.
60043         * tests/test-math.c (main): Test it.
60044         * doc/posix-headers/math.texi (math.h): Document this.
60045         * lib/isnan.c (rpl_isnand): Use it.
60046         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
60047         * tests/test-floorf1.c (NaN): Likewise.
60048         * tests/test-frexp.c (NaN): Likewise.
60049         * tests/test-isnand.c (NaN): Likewise.
60050         * tests/test-isnanf.c (NaN): Likewise.
60051         * tests/test-round1.c (NaN): Likewise.
60052         * tests/test-roundf1.c (NaN): Likewise.
60053         * tests/test-snprintf-posix.h (NaN): Likewise.
60054         * tests/test-sprintf-posix.h (NaN): Likewise.
60055         * tests/test-trunc1.c (NaN): Likewise.
60056         * tests/test-truncf1.c (NaN): Likewise.
60057         * tests/test-vasnprintf-posix.c (NaN): Likewise.
60058         * tests/test-vasprintf-posix.c (NaN): Likewise.
60059         * modules/isnand-nolibm (Depends-on): Add math.
60060         * modules/isnanf-nolibm (Depends-on): Likewise.
60061         * modules/isnanl (Depends-on): Likewise.
60062         * modules/isnanl-nolibm (Depends-on): Likewise.
60063         * modules/snprintf-posix-tests (Depends-on): Likewise.
60064         * modules/sprintf-posix-tests (Depends-on): Likewise.
60065         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
60066         * modules/vsprintf-posix-tests (Depends-on): Likewise.
60067         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
60068         * modules/vasprintf-posix-tests (Depends-on): Likewise.
60069
60070 2008-03-31  Bruno Haible  <bruno@clisp.org>
60071
60072         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
60073         * doc/posix-functions/strtod.texi: Likewise.
60074
60075 2008-03-31  Bruno Haible  <bruno@clisp.org>
60076
60077         * tests/test-strtod.c (main): Don't use C99 syntax.
60078
60079 2008-03-31  Bruno Haible  <bruno@clisp.org>
60080
60081         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
60082         Reported by Eric Blake.
60083
60084 2008-03-31  Jim Meyering  <meyering@redhat.com>
60085
60086         Don't compare actual signbit return values.
60087         * tests/test-strtod.c (main): Rather, compare only their
60088         zero/non-zero nature.
60089
60090 2008-03-31  Eric Blake  <ebb9@byu.net>
60091
60092         More strtod documentation.
60093         * doc/posix-functions/strtod.texi (strtod): Interpret more test
60094         failures as distinct bugs.
60095
60096 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60097
60098         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
60099         Problem reported by Erik Benada in
60100         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
60101
60102 2008-03-30  Bruno Haible  <bruno@clisp.org>
60103
60104         * tests/test-strtod.c: Add comments about which assertion fails on which
60105         platform.
60106         * doc/posix-functions/strtod.texi: Add info about many more platforms.
60107
60108 2008-03-30  Eric Blake  <ebb9@byu.net>
60109
60110         Test signbit behavior on zeros.
60111         * tests/test-signbit.c (test_signbitf): Add tests for zero.
60112         (test_signbitd, test_signbitl): Likewise.
60113
60114         More strtod touchups.
60115         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
60116         sign of negative underflow, for now.  Use .5, not .1.
60117         * doc/posix-functions/strtod.texi (strtod): Mention these
60118         limitations.
60119         Reported by Jim Meyering.
60120
60121 2008-03-30  Bruno Haible  <bruno@clisp.org>
60122
60123         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
60124         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
60125
60126 2008-03-30  Bruno Haible  <bruno@clisp.org>
60127
60128         Avoid failure when attempting to return empty iconv results on some
60129         platforms.
60130         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
60131         allocation, don't report ENOMEM when the resulting string is empty.
60132
60133 2008-03-30  Bruno Haible  <bruno@clisp.org>
60134
60135         Fix buffer overrun.
60136         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
60137         Don't consider the width for tmp_length. Check count against tmp_length
60138         before doing the padding. Ensure enough allocation during padding.
60139
60140 2008-03-30  Eric Blake  <ebb9@byu.net>
60141
60142         strtod touchups.
60143         * lib/strtod.c (strtod): Avoid compiler warnings.
60144         Reported by Jim Meyering.
60145
60146 2008-03-30  Bruno Haible  <bruno@clisp.org>
60147
60148         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
60149         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
60150         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
60151         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
60152         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
60153         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
60154         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
60155         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
60156
60157         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
60158         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
60159         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
60160         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
60161         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
60162         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
60163         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
60164         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
60165
60166         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
60167         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
60168         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
60169         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
60170         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
60171         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
60172         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
60173         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
60174
60175         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
60176         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
60177
60178         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
60179         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
60180
60181         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
60182         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
60183
60184         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
60185         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
60186         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
60187
60188         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
60189         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
60190         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
60191
60192         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
60193         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
60194         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
60195
60196         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
60197         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
60198         * modules/vasprintf (Depends-on): Add EOVERFLOW.
60199
60200         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
60201         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
60202         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
60203         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
60204         (Depends-on): Add EOVERFLOW.
60205         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
60206         (Depends-on): Add EOVERFLOW.
60207         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60208         (Depends-on): Add EOVERFLOW.
60209         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60210         (Depends-on): Add EOVERFLOW.
60211         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60212         (Depends-on): Add EOVERFLOW.
60213         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60214         (Depends-on): Add EOVERFLOW.
60215         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60216         (Depends-on): Add EOVERFLOW.
60217         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60218         (Depends-on): Add EOVERFLOW.
60219
60220         * lib/sprintf.c (EOVERFLOW): Remove fallback.
60221         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
60222         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
60223
60224         * lib/snprintf.c (EOVERFLOW): Remove fallback.
60225         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
60226         * modules/snprintf (Depends-on): Add EOVERFLOW.
60227
60228         * lib/poll.c (EOVERFLOW): Remove fallback.
60229         * modules/poll (Depends-on): Add EOVERFLOW.
60230
60231         * lib/getugroups.c (EOVERFLOW): Remove fallback.
60232         * modules/getugroups (Depends-on): Add EOVERFLOW.
60233
60234         * lib/getdelim.c (EOVERFLOW): Remove fallback.
60235         * modules/getdelim (Depends-on): Add EOVERFLOW.
60236
60237         * lib/ftell.c (EOVERFLOW): Remove fallback.
60238         * modules/ftell (Depends-on): Add EOVERFLOW.
60239
60240         * lib/fprintf.c (EOVERFLOW): Remove fallback.
60241         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
60242         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
60243
60244         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
60245
60246         * modules/EOVERFLOW-tests: New file.
60247         * tests/test-EOVERFLOW.c: New file.
60248
60249         * modules/EOVERFLOW: New file.
60250         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
60251
60252 2008-03-30  Bruno Haible  <bruno@clisp.org>
60253
60254         Fix bug introduced on 2007-06-10.
60255         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
60256         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
60257
60258 2008-03-30  Bruno Haible  <bruno@clisp.org>
60259
60260         Improve freadseek's efficiency after ungetc.
60261         * lib/freadseek.c: Include freadahead.h.
60262         (freadptrinc): New function, extracted from freadseek.
60263         (freadseek): Use it in a loop. Use freadahead to determine the number
60264         of loop iterations.
60265         * modules/freadseek (Depends-on): Add freadahead.
60266         (configure.ac): Require AC_C_INLINE.
60267
60268 2008-03-30  Bruno Haible  <bruno@clisp.org>
60269
60270         * lib/freadseek.c (freadseek): Don't ignore the return value of
60271         freadptr.
60272
60273 2008-03-29  Eric Blake  <ebb9@byu.net>
60274
60275         Add hex float support.
60276         * modules/strtod (Depends-on): Add c-ctype.
60277         (Link): Mention POW_LIB.
60278         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
60279         whitespace between 'e' and exponent.
60280         * tests/test-strtod.c (main): Enable hex float tests.
60281         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
60282         now provides.
60283
60284         Document various strtod bugs, with some fixes.
60285         * doc/posix-functions/strtod.texi (strtod): Document bugs with
60286         "-0x", "inf", "nan", and hex constants.
60287         * doc/posix-functions/atof.texi (atof): Likewise.
60288         * modules/stdlib (Makefile.am): Support strtod.
60289         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
60290         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
60291         detect additional strtod bugs.
60292         * lib/stdlib.in.h (rpl_strtod): Add declarations.
60293         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
60294         bool where appropriate.  Parse 'inf' and 'nan'.
60295         * tests/test-strtod.c: New file.
60296         * modules/strtod (Depends-on): Add stdbool, stdlib.
60297         (configure.ac): Turn on module indicator.
60298         * modules/strtod-tests: New module.
60299
60300 2008-03-29  Eric Blake  <ebb9@byu.net>
60301
60302         Fix ftell on mingw.
60303         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
60304         * modules/ftell-tests (Depends-on): Add binary-io.
60305         * modules/ftello-tests (Depends-on): Likewise.
60306         * tests/test-ftell.c (main): Enhance test to cover behavior after
60307         ungetc.  Enforce binary mode.
60308         * tests/test-ftello.c (main): Likewise.
60309
60310         Pass test-freadseek on cygwin.
60311         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
60312         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
60313         ungetc buffer.
60314
60315         * tests/test-fflush2.c (main): Fix typo.
60316
60317 2008-03-29  Bruno Haible  <bruno@clisp.org>
60318
60319         * tests/test-fflush2.c (main): Temporarily disable the contents of
60320         this test.
60321         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
60322         Reported by Eric Blake.
60323
60324 2008-03-28  Simon Josefsson  <simon@josefsson.org>
60325
60326         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
60327         (GC_SHA224_DIGEST_SIZE): Add.
60328
60329         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
60330         (gc_hash_digest_length): Likewise.
60331         (gc_hash_buffer): Likewise.
60332
60333 2008-03-25  Bruno Haible  <bruno@clisp.org>
60334
60335         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
60336         detail which gettext release to use.
60337         Reported by Simon Josefsson.
60338
60339 2008-03-26  Jim Meyering  <meyering@redhat.com>
60340
60341         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
60342         * modules/gnumakefile (clean-GNUmakefile): Also, use
60343         test ... && ... || : syntax rather than if-then ... fi.
60344
60345         gnumakefile: Don't double-quote-expand $(VPATH) value.
60346         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
60347
60348 2008-03-24  Eric Blake  <ebb9@byu.net>
60349
60350         Alter GNUmakefile to install into top directory.
60351         * modules/maintainer-makefile: Split, and add dependency...
60352         * modules/gnumakefile: to this new module.
60353         * build-aux/GNUmakefile: Move...
60354         * top/GNUmakefile: ...here.
60355         * build-aux/maint.mk: Move...
60356         * top/maint.mk: ...here.
60357         * MODULES.html.sh (Support for maintaining...): Document new
60358         module.
60359
60360 2008-03-23  Bruno Haible  <bruno@clisp.org>
60361
60362         * gnulib-tool: New options --vc-files, --no-vc-files.
60363         (func_usage): Document them.
60364         (vc_files): New variable.
60365         (func_import): Consider vc_files.
60366         (func_create_testdir): Set vc_files to empty.
60367         Suggested by Jim Meyering and Karl Berry.
60368
60369 2008-03-23  Bruno Haible  <bruno@clisp.org>
60370
60371         Fix regex compilation error on HP-UX 11.
60372         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
60373         * modules/regex (Files): Add m4/mbstate_t.m4.
60374         Reported by Ton Voon <ton.voon@altinity.com>.
60375
60376 2008-03-23  Bruno Haible  <bruno@clisp.org>
60377
60378         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
60379
60380 2008-03-23  Eric Blake  <ebb9@byu.net>
60381             Bruno Haible  <bruno@clisp.org>
60382
60383         Install files from top/ in the destination directory.
60384         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
60385         augmentation also for the files from top/.
60386         (func_import, func_create_testdir): Rewrite file names:
60387         top/filename -> filename.
60388
60389 2008-03-23  Bruno Haible  <bruno@clisp.org>
60390
60391         Tweak "gnulib --version" output.
60392         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
60393
60394 2008-03-23  Bruno Haible  <bruno@clisp.org>
60395
60396         Tweak "gnulib --version" output.
60397         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
60398         rather than contents of ChangeLog, when possible.
60399
60400 2008-03-21  Eric Blake  <ebb9@byu.net>
60401
60402         More --version tweaks.
60403         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
60404         date of last ChangeLog entry.
60405
60406 2008-03-21  Jim Meyering  <meyering@redhat.com>
60407
60408         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
60409
60410 2008-03-20  Eric Blake  <ebb9@byu.net>
60411
60412         VPATH fix.
60413         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
60414
60415 2008-03-20  Simon Josefsson  <simon@josefsson.org>
60416
60417         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
60418         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
60419
60420 2008-03-20  Eric Blake  <ebb9@byu.net>
60421
60422         Sync GNUmakefile with coreutils.
60423         * build-aux/GNUmakefile (have-Makefile): Rename...
60424         (_have-Makefile): ...to this, for namespace consideration.
60425         (GNUmakefile.cfg): Include, if present.
60426         (_autoreconf): Define a default.
60427         (_is-dist-target): New rule for rebuilds to pick up intra-release
60428         version.
60429         (maint-cfg.mk): Rename...
60430         (cfg.mk): ...to this.
60431
60432 2008-03-18  Jim Meyering  <meyering@redhat.com>
60433
60434         New script and module: mktempd
60435         * MODULES.html.sh (maint+release support): Add mktempd.
60436         * build-aux/mktempd: New file.
60437         * modules/mktempd: New file.
60438
60439 2008-03-15  Jim Meyering  <meyering@redhat.com>
60440
60441         Undo last change.
60442         * lib/sha1.c, lib/md5.c: 63 != ~63.
60443         Reported by Andreas Schwab.
60444
60445         sha1.c, md5.c: Hoist a redundant expression.
60446         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
60447         "ctx->buflen" only once, before calling *_process_block.
60448         * lib/md5.c (md5_process_bytes): Likewise.
60449
60450 2008-03-14  Eric Blake  <ebb9@byu.net>
60451
60452         Bump copyright year in files generated by gnulib-tool.
60453         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
60454         gnulib-tool, rather than hard-coding it.
60455
60456         Fix 'gnulib-tool --version' output to work with git.
60457         * gnulib-tool (func_gnulib_dir): New function, extracted from...
60458         (startup): ...here.
60459         (func_version): Use it to invoke git-version-gen, rather than
60460         relying on CVS keyword expansion.  Modernize wording.
60461         (cvsdatestamp, last_checkin_date, version): Kill unused
60462         variables.
60463
60464 2008-03-12  Jim Meyering  <meyering@redhat.com>
60465
60466         Recognize optional cast of the argument to free.
60467         * build-aux/useless-if-before-free: Update regexps.
60468
60469         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
60470
60471 2008-03-11  Bruno Haible  <bruno@clisp.org>
60472
60473         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
60474         by a single package.
60475         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
60476         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
60477         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
60478         Reported by Sam Steingold <sds@gnu.org>.
60479
60480 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60481
60482         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
60483         repositories.
60484
60485 2008-03-11  Bruno Haible  <bruno@clisp.org>
60486
60487         Avoid conflicts between local macro definitions.
60488         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60489         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
60490
60491 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
60492             Bruno Haible  <bruno@clisp.org>
60493
60494         Make va_copy work with some version of xlc on AIX 5.1.
60495         * lib/stdarg.in.h: New file.
60496         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
60497         On AIX, use a <stdarg.h> file substitute.
60498         * modules/stdarg (Files): Add lib/stdarg.in.h.
60499         (Depends-on): Add include_next.
60500         (Makefile.am): Build a stdarg.h substitute if requested.
60501         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
60502
60503 2008-03-10  Bruno Haible  <bruno@clisp.org>
60504
60505         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
60506         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60507         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60508
60509 2008-03-10  Bruno Haible  <bruno@clisp.org>
60510
60511         * modules/stdlib (Depends-on): Add include_next, remove
60512         absolute-header.
60513
60514 2008-03-09  Bruno Haible  <bruno@clisp.org>
60515
60516         * lib/freadahead.h (freadahead): Document more precisely.
60517         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
60518         the sum of both buffer sizes.
60519         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
60520         * NEWS: Document the change.
60521
60522 2008-03-09  Bruno Haible  <bruno@clisp.org>
60523
60524         Extend freadptr to return also the buffer size.
60525         * lib/freadptr.h (freadptr): Add sizep argument.
60526         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
60527         (freadptr): Add sizep argument. Determine buffer size like freadahead
60528         does.
60529         * tests/test-freadptr.c: Don't include freadahead.h.
60530         (main): Adapt for new calling convention of freadptr.
60531         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
60532         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
60533         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
60534         tests/test-freadptr2.sh.
60535         (Depends): Remove freadahead.
60536         (TESTS): Add test-freadptr2.sh.
60537         (check_PROGRAMS): Add test-freadptr2.
60538
60539 2008-03-09  Bruno Haible  <bruno@clisp.org>
60540
60541         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
60542         Report and solution by Simon Josefsson.
60543
60544 2008-03-06  Bruno Haible  <bruno@clisp.org>
60545
60546         Make fflush after ungetc work on BSD platforms.
60547         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
60548         * tests/test-fflush2.c: New file.
60549         * tests/test-fflush2.sh: New file.
60550         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
60551         tests/test-fflush2.c.
60552         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
60553         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
60554
60555 2008-03-06  Eric Blake  <ebb9@byu.net>
60556
60557         Likewise for ftello.
60558         * modules/ftello (Dependencies): Add extensions.
60559         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
60560
60561 2008-03-06  Bruno Haible  <bruno@clisp.org>
60562
60563         * modules/fseeko (Dependencies): Add extensions.
60564         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
60565         Needed on glibc systems.
60566
60567 2008-03-06  Bruno Haible  <bruno@clisp.org>
60568
60569         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
60570         email address.
60571         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60572
60573 2008-03-06  Bruno Haible  <bruno@clisp.org>
60574
60575         * users.txt: Add libgnupdf.
60576
60577 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60578
60579         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
60580         (Header File Substitutes, Function Substitutes,
60581         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
60582         (Build robot for gnulib): Fix typo.
60583
60584 2008-03-06  Bruno Haible  <bruno@clisp.org>
60585
60586         * doc/gnulib-tool.texi (VCS Issues): Small updates.
60587         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60588
60589 2008-03-06  Bruno Haible  <bruno@clisp.org>
60590
60591         * doc/func.texi: New file, extracted from doc/gnulib.texi.
60592         * doc/gnulib.texi: Include it.
60593
60594 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60595
60596         * modules/func (License): Change license to unlimited; there was
60597         no LGPL parts in the module anyway.
60598
60599 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60600
60601         * modules/__func__: Renamed to modules/func.
60602         * modules/__func__-tests: Renamed to modules/func-tests.
60603         * tests/test-__func__.c: Renamed to tests/test-func.c.
60604         * m4/__func__.m4: Renamed to m4/func.m4.
60605         * doc/gnulib.texi (__func__): Section renamed to func.
60606         Suggested by Eric Blake <ebb9@byu.net>.
60607
60608 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60609
60610         * doc/gnulib.texi (__func__): Use C99 terminology when talking
60611         about __func__.  Make example self-contained.  Suggested by Eric
60612         Blake <ebb9@byu.net>.
60613
60614         * tests/test-__func__.c (main): Avoid extraneous () around __func.
60615         Suggested by Eric Blake <ebb9@byu.net>.
60616
60617 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60618
60619         * modules/__func__: New file.
60620         * modules/__func__-tests: New file.
60621         * tests/test-__func__.c: New file.
60622         * m4/__func__.m4: New file.
60623         * doc/gnulib.texi (__func__): Document __func__ module.
60624
60625 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60626
60627         * modules/byteswap (License): Re-license as LGPLv2+.
60628
60629 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60630
60631         * doc/Makefile: Add pdf target.
60632
60633 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60634
60635         * modules/inline (License): Use 'unlimited', since there are only
60636         *.m4 files in this module.
60637
60638 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60639             Bruno Haible  <bruno@clisp.org>
60640
60641         Add support for HP C 7.1 on OpenVMS 8.3.
60642         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
60643
60644 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60645
60646         Update VMS specifics.
60647         * lib/getopt.c [VMS]: Remove include of unixlib.h.
60648
60649 2008-03-02  Jim Meyering  <meyering@redhat.com>
60650
60651         Remove the last dependency on the "free" module.
60652         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
60653         Reported by Bob Proulx.
60654
60655         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
60656
60657         Remove useless "if" tests before free.  Deprecate "free" module.
60658         * doc/posix-functions/free.texi: Mention that this
60659         module is no longer useful.
60660         * modules/free (Notice): Say this module is obsolete.
60661         * modules/readutmp (Depends-on): Remove free.
60662         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
60663         * lib/putenv.c (putenv): Likewise.
60664         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
60665         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
60666         * tests/test-c-strcasestr.c (main): Likewise.
60667         * tests/test-c-strstr.c (main): Likewise.
60668         * tests/test-mbscasestr1.c (main): Likewise.
60669         * tests/test-mbscasestr2.c (main): Likewise.
60670         * tests/test-mbsstr1.c (main): Likewise.
60671         * tests/test-mbsstr2.c (main): Likewise.
60672         * tests/test-memmem.c (main): Likewise.
60673         * tests/test-strcasestr.c (main): Likewise.
60674         * tests/test-striconv.c (main): Likewise.
60675         * tests/test-striconveh.c (main): Likewise.
60676         * tests/test-striconveha.c (main): Likewise.
60677         * tests/test-strstr.c (main): Likewise.
60678
60679         * build-aux/git-version-gen: Adjust a comment and the Usage string.
60680
60681         bootstrap: sync from coreutils again
60682         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
60683
60684 2008-03-01  Jim Meyering  <meyering@redhat.com>
60685
60686         bootstrap: sync from coreutils
60687         * build-aux/bootstrap (update_po_files): Copy a .po file into place
60688         also when the target doesn't exist.
60689
60690 2008-03-01  Eric Blake  <ebb9@byu.net>
60691
60692         Fix bugs in last patch.
60693         * lib/memchr2.c (memchr2): Fix typo.
60694         * tests/test-memchr2.c: Test previous bug, and don't use GNU
60695         extension.
60696         Reported by Bruce Korb.
60697
60698         New module 'memchr2'.
60699         * modules/memchr2: New file.
60700         * modules/memchr2-tests: Likewise.
60701         * lib/memchr2.h: Likewise.
60702         * lib/memchr2.c: Likewise, based on memchr.c.
60703         * tests/test-memchr2.c: New test.
60704         * MODULES.html.sh (String handling): Add memchr2.
60705
60706 2008-02-29  Bruno Haible  <bruno@clisp.org>
60707
60708         * modules/freadseek-tests: New file.
60709         * tests/test-freadseek.sh: New file.
60710         * tests/test-freadseek.c: New file.
60711
60712         New module 'freadseek'.
60713         * modules/freadseek: New file.
60714         * lib/freadseek.h: New file.
60715         * lib/freadseek.c: New file.
60716         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
60717
60718 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60719
60720         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
60721         wydawca.
60722
60723         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
60724         program_invocation_name and program_invocation_short_name are
60725         present.
60726
60727 2008-02-28  Bruno Haible  <bruno@clisp.org>
60728
60729         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
60730         * tests/test-freadptr.sh: Also test non-seekable stdin.
60731
60732 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
60733
60734         * build-aux/bootstrap (source_base, m4_base)
60735         (doc_base, tests_base): New variables.
60736         (gnulib_tool_options): Do not hardcode base directories, use
60737         the above variables instead.
60738
60739 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
60740
60741         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
60742
60743 2008-02-28  Bruno Haible  <bruno@clisp.org>
60744
60745         * modules/freadptr-tests: New file.
60746         * tests/test-freadptr.sh: New file.
60747         * tests/test-freadptr.c: New file.
60748
60749         New module 'freadptr'.
60750         * modules/freadptr: New file.
60751         * lib/freadptr.h: New file.
60752         * lib/freadptr.c: New file.
60753         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
60754
60755 2008-02-26  Karl Berry  <karl@freefriends.org>
60756
60757         Sync from Libtool:
60758         * libltdl/argz.c (argz_add, argz_count): New functions.
60759         * libltdl/argz.in.h: Declare them.
60760         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
60761
60762 2008-02-22  Bruno Haible  <bruno@clisp.org>
60763
60764         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
60765         is a pointer type.  Needed for HP-UX 10.
60766         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
60767         * doc/posix-functions/gmtime_r.texi: Likewise.
60768         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60769
60770 2008-02-24  Bruno Haible  <bruno@clisp.org>
60771
60772         * modules/environ-tests: New file.
60773         * tests/test-environ.c: New file.
60774
60775         New module 'environ'.
60776         * modules/environ: New file.
60777         * lib/unistd.in.h (environ): New declaration.
60778         * m4/environ.m4: New file.
60779         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
60780         after use.
60781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
60782         HAVE_DECL_ENVIRON.
60783         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
60784         HAVE_DECL_ENVIRON.
60785         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
60786         wrong claim that 'environ' is missing on some systems.
60787         * modules/execute (Depends-on): Add environ.
60788         * lib/execute.c (environ): Remove fallback declaration.
60789         * modules/pipe (Depends-on): Add environ.
60790         * lib/pipe.c (environ): Remove fallback declaration.
60791         * modules/setenv (Depends-on): Add environ.
60792         * lib/setenv.c (environ): Remove fallback declaration.
60793         * modules/unsetenv (Depends-on): Add environ.
60794         * lib/unsetenv.c (environ): Remove fallback declaration.
60795         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
60796         m4/environ.m4.
60797         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
60798         (gl_PREREQ_UNSETENV): Likewise.
60799
60800 2008-02-24  Bruno Haible  <bruno@clisp.org>
60801
60802         * doc/posix-functions/environ.texi: Document the MacOS X problem.
60803
60804 2008-02-20  Bob Proulx  <bob@proulx.com>
60805
60806         Enable use of older two part flavor 'git describe'.
60807         * build-aux/git-version-gen: If using the older two part flavor of
60808         git version then recreate the third part now present in the
60809         newer three part flavor of git describe.
60810
60811 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
60812
60813         * lib/fts.c (fts_build): Typo correction to comment.
60814
60815 2008-02-17  Bruno Haible  <bruno@clisp.org>
60816
60817         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
60818         generating no-op conflicts.
60819
60820 2008-02-17  Bruno Haible  <bruno@clisp.org>
60821
60822         Speed up by 10%.
60823         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
60824         result_entries, rather than an index-based loop.
60825
60826 2008-02-17  Bruno Haible  <bruno@clisp.org>
60827
60828         Speed up by 25%.
60829         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
60830         'hashcode_cached'.
60831         (entry_create): New function.
60832         (entry_hashcode): Use the cached hashcode if possible.
60833         (read_changelog_file, try_split_merged_entry): Use entry_create.
60834
60835 2008-02-17  Bruno Haible  <bruno@clisp.org>
60836
60837         Speed up from O(n^2) to O(n) for long ChangeLog files.
60838         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
60839         (read_changelog_file): Change implementation of entries_reversed list
60840         to rbtreehash.
60841         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
60842
60843 2008-02-17  Bruno Haible  <bruno@clisp.org>
60844
60845         New option --split-merged-entry.
60846         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
60847         (find_paragraph_end, try_split_merged_entry): New functions.
60848         (long_options): Add option --split-merged-entry.
60849         (usage): Document option --split-merged-entry.
60850         (main): Implement option --split-merged-entry.
60851         Reported by Eric Blake.
60852
60853 2008-02-17  Bruno Haible  <bruno@clisp.org>
60854
60855         * lib/git-merge-changelog.c: Include c-strstr.h.
60856         (main): Support the "git pull --rebase" situation.
60857         * modules/git-merge-changelog (Depends-on): Add c-strstr.
60858         Reported by Eric Blake.
60859
60860 2008-02-16  Eric Blake  <ebb9@byu.net>
60861
60862         Avoid doubling \ in common case of "c-maybe" quoting style.
60863         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
60864         eliding outer quotes.
60865         * lib/quotearg.h: Document this.
60866         * tests/test-quotearg.c (result_strings, inputs, results_g)
60867         (flag_results, locale_results): Test it by adding a new string to
60868         each test group.
60869         (compare_strings): Test new string.
60870
60871 2008-02-13  Eric Blake  <ebb9@byu.net>
60872
60873         Avoid trigraph quoting in default output.
60874         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
60875         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
60876         unless explicitly requested.
60877         * tests/test-quotearg.c (flag_results, main): Add additional tests.
60878
60879 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
60880
60881         Don't rely on signed integer overflowing to negative value.
60882         * lib/getugroups.c (getugroups): Include <limits.h>.
60883         Instead, compare against INT_MAX, and increment only if the test passes.
60884
60885 2008-02-13  Jim Meyering  <meyering@redhat.com>
60886         and Eric Blake  <ebb9@byu.net>
60887
60888         Avoid shadowing warning and compile errors on Linux.
60889         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
60890         forwarding macros on Linux.
60891         (dcgettext): Define a stub, for Linux.
60892         (results_g, main): Avoid warnings.
60893
60894 2008-02-12  Eric Blake  <ebb9@byu.net>
60895
60896         Silence warning in last patch.
60897         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
60898
60899         Quotearg part 4: add tests, fix c-maybe colon quoting.
60900         * lib/quotearg.h: Improve documentation.
60901         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
60902         escapes when adding outer quotes.  When quoting trigraphs, use
60903         valid C notation.  When quoting NUL, omit extra characters if next
60904         character is not digit.  Alter prototype.
60905         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
60906         callers.
60907         * modules/quotearg-tests: New module.
60908         * tests/test-quotearg.c: New test.
60909
60910 2008-02-07  Eric Blake  <ebb9@byu.net>
60911
60912         Quotearg part 3: add flag to control outer quote elision.
60913         * lib/quotearg.h (c_maybe_quoting_style): New style.
60914         (enum quoting_flags): Better documentation of flags.
60915         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
60916         c-maybe style.
60917         (quotearg_buffer_restyled): Handle new flag to elide outer
60918         quotes.
60919
60920         Quotearg part 2: add flag that can control NUL elision.
60921         * lib/quotearg.h (set_quoting_flags): New prototype.
60922         * lib/quotearg.c (struct quoting_options): Add flag field.
60923         (set_quoting_flags): New function.
60924         (quotearg_buffer_restyled): Add flags parameter.
60925         (quotearg_alloc_mem): Set the flag if length cannot be returned.
60926         (quotearg_n_options): Set the flag, since length cannot be
60927         returned.
60928         (quoting_options_from_style): Default flags correctly.
60929
60930         Quotearg part 1: more wrappers, restore quotearg_char state.
60931         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
60932         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
60933         (quotearg_colon_mem): New wrappers.
60934         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
60935         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
60936         functions.
60937         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
60938         (quotearg_colon_mem): New functions.
60939
60940 2008-02-11  Bruno Haible  <bruno@clisp.org>
60941
60942         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
60943         library in the current directory: it does not work with parallel make.
60944         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60945
60946 2008-02-11  Bruno Haible  <bruno@clisp.org>
60947
60948         * .gitattributes: New file.
60949
60950 2008-02-11  Jim Meyering  <meyering@redhat.com>
60951
60952         useless-if-before-free: Fix reversed exit values.
60953         * build-aux/useless-if-before-free: Use correct values
60954         for EXIT_MATCH and EXIT_NO_MATCH.
60955
60956         * build-aux/useless-if-before-free: Close stdout carefully.
60957
60958 2008-02-10  Bruno Haible  <bruno@clisp.org>
60959
60960         New module 'git-merge-changelog'.
60961         * modules/git-merge-changelog: New file.
60962         * lib/git-merge-changelog.c: New file.
60963
60964 2008-02-10  Jim Meyering  <meyering@redhat.com>
60965
60966         useless-if-before-free: New option: --list (-l).
60967
60968         useless-if-before-free: Don't exit immediately upon open failure.
60969         * build-aux/useless-if-before-free: Exit 2 for errors.
60970         Upon failure to open a file, don't exit immediately.
60971         Rather, just warn and continue with any remaining files.
60972
60973 2008-02-10  Bruno Haible  <bruno@clisp.org>
60974
60975         New abstract list operation 'node_set_value'.
60976         * lib/gl_list.h (gl_list_node_set_value): New function.
60977         (struct gl_list_implementation): New field node_set_value.
60978         * lib/gl_list.c (gl_list_node_set_value): New function.
60979         * lib/gl_array_list.c (gl_array_node_set_value): New function.
60980         (gl_array_list_implementation): Update.
60981         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
60982         (gl_carray_list_implementation): Update.
60983         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
60984         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60985         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60986         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
60987         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60988         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60989         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60990         Update.
60991         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60992         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
60993         (gl_sublist_list_implementation): Update.
60994
60995 2008-02-10  Bruno Haible  <bruno@clisp.org>
60996
60997         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
60998         Needed when ELEMENT is #defined to 'some_type *'.
60999
61000 2008-02-10  Jim Meyering  <meyering@redhat.com>
61001
61002         New script and module: useless-if-before-free
61003         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
61004         * build-aux/useless-if-before-free: New file.
61005         * modules/useless-if-before-free: New file.
61006
61007         * build-aux/gitlog-to-changelog: Use committer date, not author date.
61008
61009         xstrtol_error: Fix typo.
61010         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
61011         s/exit_failure/exit_status/.
61012
61013 2008-02-09  Jim Meyering  <meyering@redhat.com>
61014
61015         New script and module: gitlog-to-changelog
61016         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
61017         * modules/gitlog-to-changelog: New file.
61018         * build-aux/gitlog-to-changelog: New file.
61019
61020 2008-02-08  Jim Meyering  <meyering@redhat.com>
61021
61022         Avoid two "parameter unused" warnings.
61023         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
61024         Mark "st" as used.
61025
61026         Use "git COMMAND", not "git-COMMAND".
61027         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
61028         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
61029         * build-aux/git-version-gen: Use "git status", not "git-status".
61030
61031 2008-02-07  Bruno Haible  <bruno@clisp.org>
61032
61033         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
61034         Avoids a crash on Windows Vista.
61035         Reported by Adam Strzelecki <ono@java.pl> via
61036         Simon Josefsson <simon@josefsson.org>.
61037
61038 2008-02-06  Bruno Haible  <bruno@clisp.org>
61039
61040         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
61041         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
61042         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
61043         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
61044         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61045         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61046         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
61047         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
61048         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61049         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61050         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61051         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61052         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61053         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61054         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61055         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
61056         left-adjust flag.
61057         * tests/test-snprintf-posix.h (test_function): Likewise.
61058         * tests/test-sprintf-posix.h (test_function): Likewise.
61059         * tests/test-vasprintf-posix.c (test_function): Likewise.
61060         * doc/posix-functions/fprintf.texi: Update.
61061         * doc/posix-functions/printf.texi: Update.
61062         * doc/posix-functions/snprintf.texi: Update.
61063         * doc/posix-functions/sprintf.texi: Update.
61064         * doc/posix-functions/vfprintf.texi: Update.
61065         * doc/posix-functions/vprintf.texi: Update.
61066         * doc/posix-functions/vsnprintf.texi: Update.
61067         * doc/posix-functions/vsprintf.texi: Update.
61068         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61069
61070 2008-02-06  Bruno Haible  <bruno@clisp.org>
61071
61072         Fix bug introduced on 2008-01-26.
61073         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
61074
61075 2008-02-06  Bruno Haible  <bruno@clisp.org>
61076
61077         Fix bug introduced on 2007-06-10.
61078         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
61079         !NEED_PRINTF_FLAG_ZERO.
61080
61081 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
61082
61083         getloadavg: use libperfstat on AIX5
61084         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
61085
61086 2008-02-03  Bruno Haible  <bruno@clisp.org>
61087
61088         * lib/diffseq.h: Add comments about required #includes.
61089         Reported by Michael Biggs <gnulib@doubleplum.net>.
61090
61091 2008-02-01  Bruno Haible  <bruno@clisp.org>
61092
61093         * users.txt: Add gnuit.
61094
61095 2008-01-31  Bruno Haible  <bruno@clisp.org>
61096
61097         * lib/md4.c (set_uint32): Mark as inline.
61098         * lib/md5.c (set_uint32): Likewise.
61099         * lib/sha1.c (set_uint32): Likewise.
61100         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
61101         * m4/md5.m4 (gl_MD5): Likewise.
61102         * m4/sha1.m4 (gl_SHA1): Likewise.
61103
61104 2008-01-31  Jim Meyering  <meyering@redhat.com>
61105
61106         Use "sizeof VAR", rather than a literal "4".
61107         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
61108         * lib/md4.c (md4_read_ctx): Likewise.
61109         * lib/sha1.c (sha1_read_ctx): Likewise.
61110
61111 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61112
61113         * tests/test-sha1.c: New file, based on test-md5.c.
61114
61115         * modules/crypto/sha1-tests: New file.
61116
61117 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61118
61119         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
61120
61121 2008-01-31  Jim Meyering  <meyering@redhat.com>
61122
61123         Prefer "sizeof v" over the equivalent "4".
61124         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
61125         * lib/md5.c (set_uint32): Likewise.
61126         * lib/sha1.c (set_uint32): Likewise.
61127
61128 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61129
61130         * lib/sha1.c (set_uint32): Mark function as static.
61131
61132 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61133
61134         md2: clarify comments to say that alignment is not required.
61135         * lib/md2.h: Remove warning about alignment in comment.
61136         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
61137         never been required.
61138
61139 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61140
61141         md4: adapt alignment constraint fix from sha1.
61142         * lib/md4.c (set_uint32): New function, from sha1.c
61143         (md4_read_ctx): Use it.
61144         (md4_finish_ctx): Doc fix.
61145         * lib/md4.h: Doc fix.
61146
61147 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61148
61149         md5: adapt alignment constraint fix from sha1.
61150         * lib/md5.c (set_uint32): New function, from sha1.c
61151         (md5_read_ctx): Use it.
61152         (md5_finish_ctx): Doc fix.
61153         * lib/md5.h: Doc fix.
61154
61155 2008-01-30  Peter Palfrader  <weasel@debian.org>
61156
61157         sha1: remove the result buffer alignment constraint
61158         * lib/sha1.c (set_uint32): New function.
61159         (sha1_read_ctx): Rewrite to remove the result buffer alignment
61160         constraint.
61161         (sha1_finish_ctx): Remove comment warning about alignment constraint.
61162         * lib/sha1.h: Likewise.
61163
61164 2008-01-30  Andreas Schwab  <schwab@suse.de>
61165             Bruno Haible  <bruno@clisp.org>
61166
61167         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
61168         correct definition of LDBL_MIN_EXP.
61169
61170 2008-01-30  Karl Berry  <karl@gnu.org>
61171
61172         * config/srclist-update: try to preserve x bit on updates.
61173         * config/srclistvars.sh: update for karl.
61174
61175 2008-01-29  Jim Meyering  <meyering@redhat.com>
61176
61177         vasnprintf.c: Avoid warning about unused label
61178         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
61179         "overflow" label definition and associated code with the
61180         same cpp condition that guards the sole use of that label.
61181
61182 2008-01-26  Bruno Haible  <bruno@clisp.org>
61183
61184         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
61185         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
61186         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
61187         * lib/isnanl-nolibm.h (isnanl): Likewise.
61188         Reported by Paul Eggert <eggert@cs.ucla.edu>.
61189
61190 2008-01-26  Bruno Haible  <bruno@clisp.org>
61191
61192         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
61193         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
61194
61195 2008-01-26  Bruno Haible  <bruno@clisp.org>
61196
61197         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
61198         GCC >= 4.0 built-in.
61199         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
61200
61201 2008-01-26  Bruno Haible  <bruno@clisp.org>
61202
61203         Rename isnan, applicable to 'double' only, to isnand.
61204         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
61205         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
61206         (configure.ac): Update.
61207         (Include): Replace "isnan.h" with "isnand.h".
61208         * m4/isnand.m4: Renamed from m4/isnan.m4.
61209         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
61210         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
61211         instead of isnan.c.
61212         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
61213         instead of HAVE_ISNAN_IN_LIBC.
61214         (isnand): Renamed from isnan.
61215         * lib/isnand.c: New file.
61216         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
61217         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
61218         (Makefile.am): Update.
61219         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
61220         Include isnand.h instead of isnan.h.
61221         (main): Test isnand instead of isnan.
61222         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
61223         isnan-nolibm.
61224         * modules/frexp (Depends-on): Likewise.
61225         * modules/frexp-tests (Depends-on): Likewise.
61226         * modules/frexp-nolibm (Depends-on): Likewise.
61227         * modules/frexp-nolibm-tests (Depends-on): Likewise.
61228         * modules/isfinite (Depends-on): Likewise.
61229         * modules/round-tests (Depends-on): Likewise.
61230         * modules/signbit (Depends-on): Likewise.
61231         * modules/signbit-tests (Depends-on): Likewise.
61232         * modules/snprintf-posix (Depends-on): Likewise.
61233         * modules/sprintf-posix (Depends-on): Likewise.
61234         * modules/trunc-tests (Depends-on): Likewise.
61235         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61236         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61237         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61238         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61239         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61240         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61241         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61242         * modules/vasnprintf-posix (Depends-on): Likewise.
61243         * modules/vasprintf-posix (Depends-on): Likewise.
61244         * modules/vfprintf-posix (Depends-on): Likewise.
61245         * modules/vsnprintf-posix (Depends-on): Likewise.
61246         * modules/vsprintf-posix (Depends-on): Likewise.
61247         * lib/frexp.c: Include isnand.h instead of isnan.h.
61248         (ISNAN): Set to isnand instead of isnan.
61249         * lib/isfinite.c: Include isnand.h instead of isnan.h.
61250         (gl_isfinited): Use isnand instead of isnan.
61251         * lib/signbitd.c: Include isnand.h instead of isnan.h.
61252         (gl_signbitd): Use isnand instead of isnan.
61253         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
61254         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
61255         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
61256         (main): Use isnand instead of isnan.
61257         * tests/test-round1.c: Include isnand.h.
61258         (main): Use isnand instead of isnan.
61259         * tests/test-round2.c: Include isnand.h instead of isnan.h.
61260         (ISNAN): Set to isnand instead of isnan.
61261         * tests/test-trunc1.c: Include isnand.h.
61262         (main): Use isnand instead of isnan.
61263         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
61264         (equal): Use isnand instead of isnan.
61265         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
61266         isnand-nolibm.
61267         * NEWS: Mention the change.
61268
61269 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61270             Bruno Haible  <bruno@clisp.org>
61271
61272         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
61273         the GCC builtins for signbits are present and set
61274         REPLACE_SIGNBIT_USING_GCC if so.
61275         * lib/math.in.h (signbit): Define using GCC builtins if
61276         REPLACE_SIGNBIT_USING_GCC is set.
61277         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
61278         REPLACE_SIGNBIT_USING_GCC.
61279         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
61280
61281 2008-01-25  Jim Meyering  <meyering@redhat.com>
61282
61283         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
61284         * lib/poll.c: Include <config.h>, not "config.h".
61285         * tests/test-getaddrinfo.c: Likewise.
61286
61287 2008-01-25  Simon Josefsson  <simon@josefsson.org>
61288
61289         * modules/sockets-tests: New file.
61290
61291 2008-01-24  Simon Josefsson  <simon@josefsson.org>
61292
61293         * modules/sockets: New module, can be used to call WSA_Startup and
61294         WSA_Cleanup when needed.
61295
61296         * lib/sockets.h, lib/sockets.c: New files.
61297
61298         * m4/sockets.m4: New file.
61299
61300         * tests/test-sockets.c: New file.
61301
61302 2008-01-19  Bruno Haible  <bruno@clisp.org>
61303
61304         * doc/posix-headers: Renamed from doc/headers.
61305         * doc/posix-functions: Renamed from doc/functions.
61306         * doc/gnulib.texi: Update.
61307
61308 2008-01-19  Bruno Haible  <bruno@clisp.org>
61309
61310         * doc/glibc-functions/strcasestr.texi: Include contents of
61311         doc/functions/strcasestr.texi, fixing the list of platforms.
61312         * doc/functions/strcasestr.texi: Remove file.
61313
61314 2008-01-19  Bruno Haible  <bruno@clisp.org>
61315
61316         * doc/glibc-functions/memmem.texi: Include contents of
61317         doc/functions/memmem.texi.
61318         * doc/functions/memmem.texi: Remove file.
61319
61320 2008-01-18  Bruno Haible  <bruno@clisp.org>
61321
61322         * doc/glibc-functions/*.texi: New files.
61323         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
61324         to use the new files.
61325
61326 2008-01-17  Bruno Haible  <bruno@clisp.org>
61327
61328         * tests/test-gethostname.c (main): Fix printf statement.
61329
61330 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61331
61332         * modules/gethostname-tests: New file.
61333
61334         * tests/test-gethostname.c: New file.
61335
61336 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61337
61338         * lib/gethostname.c: Include string.h unconditionally, strncpy is
61339         used by the UNAME case.  Reported by Bruno Haible
61340         <bruno@clisp.org>.
61341
61342 2008-01-17  Eric Blake  <ebb9@byu.net>
61343
61344         Convert c-strcasestr to be more efficient.
61345         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
61346         (Depends-on): Add c-strcase, remove malloca, strnlen.
61347         * tests/test-c-strcasestr.c (main): Enhance test.
61348         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
61349
61350 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61351
61352         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
61353         Use it in creating po/Makevars.
61354
61355 2008-01-15  Simon Josefsson  <simon@josefsson.org>
61356
61357         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
61358         Applications that requires it should initialize libgcrypt
61359         manually.
61360
61361 2008-01-16  Simon Josefsson  <simon@josefsson.org>
61362
61363         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
61364
61365 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
61366
61367         Fix problem with getdate on mingw32 reported by Simon Josefsson
61368         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
61369         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
61370         tzname", when deciding whether to declare tzname.
61371         * lib/strftime.c (tzname): Likewise.
61372
61373 2008-01-15  Bruno Haible  <bruno@clisp.org>
61374
61375         Work around a MacOS X 10.5 bug in frexpl().
61376         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
61377         * doc/functions/frexpl.texi: Document the bug.
61378         Reported by Elias Pipping <pipping@gentoo.org>.
61379
61380 2008-01-14  Eric Blake  <ebb9@byu.net>
61381
61382         Touch up previous patch.
61383         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
61384         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
61385
61386         Convert strcasestr module to use Two-Way algorithm.
61387         * modules/strcasestr-simple: New module, based on the old
61388         strcasestr, but with Two-Way rather than KMP.
61389         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
61390         * lib/string.in.h (rpl_strcasestr): Declare.
61391         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
61392         performance.
61393         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
61394         * modules/string (Makefile.am): Support strcasestr.
61395         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
61396         * modules/strcasestr-tests (Depends-on): Check for alarm.
61397         * tests/test-strcasestr.c: Augment test.
61398         * lib/str-two-way.h: Clean up stray macro.
61399         * NEWS: Document new module.
61400         * MODULES.html.sh (string handling): Likewise.
61401         * doc/functions/strcasestr.texi: New file.
61402         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
61403         here, since it is not a POSIX function.
61404
61405 2008-01-14  Colin Watson  <cjwatson@debian.org>
61406             Bruno Haible  <bruno@clisp.org>
61407
61408         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
61409         works fine; if not, set REPLACE_STRSIGNAL.
61410         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
61411         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61412         REPLACE_STRSIGNAL.
61413         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
61414         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
61415         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
61416
61417 2008-01-14  Bruno Haible  <bruno@clisp.org>
61418
61419         * modules/strsignal (Include): Change to <string.h>.
61420
61421 2008-01-14  Colin Watson  <cjwatson@debian.org>
61422
61423         * modules/argp (Notice): Add a notice recommending to change
61424         XGETTEXT_OPTIONS.
61425         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
61426
61427 2008-01-13  Colin Watson  <cjwatson@debian.org>
61428
61429         * modules/strsignal-tests: New file.
61430         * tests/test-strsignal.c: New file.
61431
61432         * lib/strsignal.c: New file, from glibc with modifications.
61433         * lib/siglist.h: New file, from glibc with modifications.
61434         * lib/string.in.h (strsignal): New declaration.
61435         * m4/strsignal.m4: New file.
61436         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61437         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
61438         * modules/strsignal: New file.
61439         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
61440         HAVE_DECL_STRSIGNAL.
61441
61442 2008-01-13  Bruno Haible  <bruno@clisp.org>
61443
61444         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
61445         locale encoding is not ASCII. Needed for OpenBSD 4.0.
61446         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61447         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61448
61449 2008-01-13  Bruno Haible  <bruno@clisp.org>
61450
61451         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
61452         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
61453         * lib/argp.h (__attribute__): Likewise.
61454         * lib/c-stack.c (__attribute__): Likewise.
61455         * lib/error.h (__attribute__): Likewise.
61456         * lib/fts.c (__attribute__): Likewise.
61457         * lib/openat.h (__attribute__): Likewise.
61458         * lib/stdio.in.h (__attribute__): Likewise.
61459         * lib/string.in.h (__attribute__): Likewise.
61460         * lib/utimens.c (__attribute__): Likewise.
61461         * lib/vasnprintf.h (__attribute__): Likewise.
61462         * lib/xalloc.h (__attribute__): Likewise.
61463         * lib/xprintf.h (__attribute__): Likewise.
61464         * lib/xstrtol.h (__attribute__): Likewise.
61465         * lib/xvasprintf.h (__attribute__): Likewise.
61466
61467 2008-01-12  Bruno Haible  <bruno@clisp.org>
61468
61469         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
61470         * doc/glibc-headers/a.out.texi: New file.
61471         * doc/glibc-headers/aliases.texi: New file.
61472         * doc/glibc-headers/alloca.texi: New file.
61473         * doc/glibc-headers/ar.texi: New file.
61474         * doc/glibc-headers/argp.texi: New file.
61475         * doc/glibc-headers/argz.texi: New file.
61476         * doc/glibc-headers/byteswap.texi: New file.
61477         * doc/glibc-headers/crypt.texi: New file.
61478         * doc/glibc-headers/endian.texi: New file.
61479         * doc/glibc-headers/envz.texi: New file.
61480         * doc/glibc-headers/err.texi: New file.
61481         * doc/glibc-headers/error.texi: New file.
61482         * doc/glibc-headers/execinfo.texi: New file.
61483         * doc/glibc-headers/fpu_control.texi: New file.
61484         * doc/glibc-headers/fstab.texi: New file.
61485         * doc/glibc-headers/fts.texi: New file.
61486         * doc/glibc-headers/getopt.texi: New file.
61487         * doc/glibc-headers/ieee754.texi: New file.
61488         * doc/glibc-headers/ifaddrs.texi: New file.
61489         * doc/glibc-headers/libintl.texi: New file.
61490         * doc/glibc-headers/mcheck.texi: New file.
61491         * doc/glibc-headers/mntent.texi: New file.
61492         * doc/glibc-headers/obstack.texi: New file.
61493         * doc/glibc-headers/paths.texi: New file.
61494         * doc/glibc-headers/printf.texi: New file.
61495         * doc/glibc-headers/pty.texi: New file.
61496         * doc/glibc-headers/resolv.texi: New file.
61497         * doc/glibc-headers/shadow.texi: New file.
61498         * doc/glibc-headers/sysexits.texi: New file.
61499         * doc/glibc-headers/ttyent.texi: New file.
61500
61501 2008-01-12  Jim Meyering  <meyering@redhat.com>
61502
61503         announce-gen: emit Gnulib's git-based version string.
61504         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
61505         New option --gnulib-version=V, where V is expected to be
61506         the output of running git describe in the gnulib directory.
61507         (get_tool_versions): Request feedback on xdelta.  I suspect it's
61508         not useful, and plan to stop publishing an xdelta file with each
61509         coreutils release.
61510
61511         * build-aux/announce-gen: Also check for lzma-compressed files.
61512
61513 2008-01-11  Bruno Haible  <bruno@clisp.org>
61514
61515         * tests/test-memmem.c (main): Increase maximum allowed time.
61516         * tests/test-strstr.c (main): Likewise.
61517
61518 2008-01-11  Bruno Haible  <bruno@clisp.org>
61519
61520         * doc/functions/memmem.texi: Add more precisions about platforms.
61521         * doc/functions/strstr.texi: Likewise.
61522
61523 2008-01-10  Eric Blake  <ebb9@byu.net>
61524
61525         * m4/strstr.m4: Delete cruft from copy-n-paste.
61526         Reported by Bruno Haible.
61527
61528 2008-01-10  Bruno Haible  <bruno@clisp.org>
61529
61530         Make c-strstr rely on strstr.
61531         * lib/c-strstr.c: Don't include str-kmp.h.
61532         (c_strstr): Define in terms of strstr.
61533         * modules/c-strstr (Files): Remove lib/str-kmp.h.
61534         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
61535
61536 2008-01-10  Bruno Haible  <bruno@clisp.org>
61537
61538         * doc/gnulib.texi (String Functions in C Locale): New section.
61539         * doc/c-ctype.texi: New file.
61540         * doc/c-strcase.texi: New file.
61541         * doc/c-strcaseeq.texi: New file.
61542         * doc/c-strcasestr.texi: New file.
61543         * doc/c-strstr.texi: New file.
61544         * doc/c-strtod.texi: New file.
61545         * doc/c-strtold.texi: New file.
61546
61547 2008-01-10  Eric Blake  <ebb9@byu.net>
61548
61549         * lib/relocatable.h: Fix a comment.
61550
61551 2008-01-10  Eric Blake  <ebb9@byu.net>
61552
61553         Share two-way algorithm.
61554         * lib/str-two-way.h: New file, merged from...
61555         * lib/memmem.c: ...here...
61556         * lib/strstr.c: ...and here.
61557         * modules/memmem (Files): Use it.
61558         * modules/strstr (Files): Likewise.
61559
61560         Avoid quadratic strstr implementations.
61561         * lib/strstr.c: New file.
61562         * m4/strstr.m4: Likewise.
61563         * modules/strstr: Likewise.
61564         * modules/strstr-tests: Likewise.
61565         * tests/test-strstr.c: Likewise.
61566         * lib/string.in.h (rpl_strstr): Declare.
61567         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
61568         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
61569         * modules/string (Makefile.am): Likewise.
61570         * MODULES.html.sh (string handling): Mention new module.
61571         * doc/functions/strstr.texi (strstr): Document the bug.
61572
61573 2008-01-10  Bruno Haible  <bruno@clisp.org>
61574
61575         * lib/relocatable.h (relocate): State whether result is freshly
61576         allocated or not.
61577         * lib/relocatable.c (relocate): Return a freshly allocated string
61578         instead of a pointer to a privately held string.
61579         Reported by Sylvain Beucler <beuc@gnu.org>.
61580
61581 2008-01-10  Colin Watson  <cjwatson@debian.org>
61582
61583         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
61584         s/S_ISNLK/S_ISLNK/.
61585
61586 2008-01-09  Bruno Haible  <bruno@clisp.org>
61587
61588         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
61589         and other files.
61590         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
61591         if it's only a guess.
61592         * modules/memmem: Simplify by depending on memmem-simple.
61593
61594 2008-01-09  Bruno Haible  <bruno@clisp.org>
61595
61596         Work around OpenBSD 4.0 tdelete() bug.
61597         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
61598         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
61599         macros and don't redefine the enum values.
61600         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
61601         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
61602         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
61603
61604 2008-01-09  Bruno Haible  <bruno@clisp.org>
61605
61606         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
61607         (main): Don't perform the tests if setlocale did not install a UTF-8
61608         locale. Needed on OpenBSD 4.0.
61609         * modules/wcwidth-tests (Depends-on): Add localcharset.
61610
61611 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61612
61613         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
61614         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
61615         * NEWS: announce this.
61616         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
61617
61618 2008-01-09  Simon Josefsson  <simon@josefsson.org>
61619         and Eric Blake  <ebb9@byu.net>
61620
61621         Add memmem-simple module.
61622         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
61623         (gl_FUNC_MEMMEM): Separate performance from presence checks.
61624         * modules/memmem-simple: New file.
61625         * modules/memmem (Description): Tweak.
61626         * MODULES.html.sh (string handling): Mention new module.
61627         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
61628         addressed by memmem-simple.
61629         * NEWS: Document the difference.
61630
61631 2008-01-09  Eric Blake  <ebb9@byu.net>
61632
61633         Give gcc some memmem optimization hints.
61634         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
61635         (strcasestr): Declare as pure.
61636         * modules/memmem (Maintainer): Claim my implementation.
61637
61638 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61639
61640         Support AIX 6.1 and higher.
61641         * build-aux/config.libpath: Likewise.
61642         * build-aux/config.rpath: Likewise.
61643
61644 2008-01-08  Jim Meyering  <meyering@redhat.com>
61645             Bruno Haible  <bruno@clisp.org>
61646
61647         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
61648         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
61649         Reported by Peter Fales in
61650         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
61651
61652 2008-01-08  Bruno Haible  <bruno@clisp.org>
61653
61654         * modules/unictype/category-of (Depends-on): Add
61655         unictype/category-none.
61656         * modules/unictype/category-and-tests (Depends-on): Add
61657         unictype/category-{L,N,Lu,Nd}.
61658         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
61659         * modules/unictype/category-or-tests (Depends-on): Add
61660         unictype/category-{L,N}.
61661         * modules/unictype/category-name-tests (Depends-on): Add
61662         unictype/category-{Z,Nl}.
61663         Reported by Simon Josefsson.
61664
61665 2008-01-08  Bruno Haible  <bruno@clisp.org>
61666
61667         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
61668         convention better.
61669         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
61670         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
61671         Reported by Peter Miller <millerp@canb.auug.org.au>.
61672
61673 2008-01-08  Eric Blake  <ebb9@byu.net>
61674
61675         Rewrite memmem to guarantee linear complexity without malloc.
61676         * lib/memmem.c (memmem): Use Two-Way rather than
61677         Knuth-Morris-Pratt, to allow O(1) space usage.
61678         (critical_factorization, two_way_short_needle)
61679         (two_way_long_needle): New functions.
61680         (knuth_morris_pratt): Delete.
61681         * modules/memmem (Depends-on): No longer need malloca or stdbool.
61682         Add stdint.
61683         * tests/test-memmem.c (main): Add tests for periodic needle and
61684         sublinear performance.
61685         * doc/functions/memmem.texi (memmem): Document other deficiencies
61686         in cygwin and older glibc.
61687
61688 2008-01-08  Bruno Haible  <bruno@clisp.org>
61689
61690         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
61691         augmentation.
61692
61693 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
61694
61695         Add a configure time option: --disable-acl.
61696         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
61697         AC_ARG_ENABLE(acl).
61698
61699 2008-01-06  Simon Josefsson  <simon@josefsson.org>
61700
61701         * tests/test-localename.c: Don't include obsolete "setenv.h".
61702
61703         * modules/localename-tests (Depends-on): Need unsetenv.
61704
61705 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61706
61707         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
61708
61709 2008-01-06  Colin Watson  <cjwatson@debian.org>
61710
61711         * users.txt: Add man-db.
61712
61713 2008-01-07  Bruno Haible  <bruno@clisp.org>
61714
61715         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
61716         previous section name.
61717
61718 2008-01-07  Bruno Haible  <bruno@clisp.org>
61719
61720         * lib/progname.c (set_program_name): Don't strip off a leading
61721         "lt-" prefix outside a .libs directory.
61722         Suggested by Paul Eggert.
61723
61724 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
61725             Bruno Haible  <bruno@clisp.org>
61726
61727         Improve memory cleanup in 'relocatable' module.
61728         * lib/relocatable.h (compute_curr_prefix): Change return type to
61729         'char *'.
61730         * lib/relocatable.c (compute_curr_prefix): Change return type to
61731         'char *'. Free curr_installdir after use.
61732         (relocate): Free curr_prefix_better after use.
61733         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
61734
61735 2008-01-01  Bruno Haible  <bruno@clisp.org>
61736
61737         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
61738         failure on older glibc systems.
61739         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61740
61741 2008-01-05  Eric Blake  <ebb9@byu.net>
61742
61743         Avoid quadratic system memmem.
61744         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
61745         Reported by Ralf Wildenhues.
61746
61747         Fix memmem test for mingw.
61748         * modules/memmem-tests (configure.ac): Check for alarm.
61749         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
61750         it.
61751         * doc/functions/memmem.texi: New file.
61752         * doc/gnulib.texi (Function Substitutes): Add memmem.
61753         Reported by Bruno Haible.
61754
61755 2008-01-04  Bruno Haible  <bruno@clisp.org>
61756
61757         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
61758         Require gl_HEADER_STRINGS_H_DEFAULTS, not
61759         gl_HEADER_STRING_H_DEFAULTS.
61760
61761 2008-01-04  Eric Blake  <ebb9@byu.net>
61762
61763         Shorten duration of memmem test.
61764         * tests/test-memmem.c (main): Use alarm to declare failure if test
61765         is taking too long.
61766         Reported by Ralf Wildenhues.
61767
61768 2007-12-21  Simon Josefsson  <simon@josefsson.org>
61769
61770         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
61771         string, needed by strerror.
61772
61773 2008-01-03  Colin Watson  <cjwatson@debian.org>
61774             Bruno Haible  <bruno@clisp.org>
61775
61776         * doc/gnulib-tool.texi (Localization): New section.
61777
61778 2008-01-02  Bruno Haible  <bruno@clisp.org>
61779
61780         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
61781         variables to 'unsigned char *' type.
61782         Reported by Paul Eggert.
61783
61784 2008-01-02  Jim Meyering  <jim@meyering.net>
61785
61786         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
61787
61788 2007-12-31  Jim Meyering  <jim@meyering.net>
61789
61790         Avoid use of private FTS type name.
61791         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
61792
61793 2007-12-30  Karl Berry  <karl@gnu.org>
61794
61795         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
61796         work around defect in Texinfo and/or the standalone Info browser.
61797
61798 2007-12-30  Bruno Haible  <bruno@clisp.org>
61799
61800         Unify 5 copies of the KMP code.
61801         * lib/str-kmp.h: New file.
61802         * lib/c-strcasestr.c: Include str-kmp.h.
61803         (knuth_morris_pratt): Remove function.
61804         (c_strcasestr): Update.
61805         * lib/c-strstr.c: Include str-kmp.h.
61806         (knuth_morris_pratt): Remove function.
61807         (c_strcasestr): Update.
61808         * lib/mbscasestr.c: Include str-kmp.h.
61809         (knuth_morris_pratt_unibyte): Remove function.
61810         * lib/mbsstr.c: Include str-kmp.h.
61811         (knuth_morris_pratt_unibyte): Remove function.
61812         * lib/strcasestr.c: Include str-kmp.h.
61813         (knuth_morris_pratt): Remove function.
61814         (strcasestr): Update.
61815         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
61816         * modules/c-strstr (Files): Likewise.
61817         * modules/mbscasestr (Files): Likewise.
61818         * modules/mbsstr (Files): Likewise.
61819         * modules/strcasestr (Files): Likewise.
61820         Suggested by Paul Eggert.
61821
61822 2007-12-30  Bruno Haible  <bruno@clisp.org>
61823
61824         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
61825         defined.
61826
61827 2007-12-30  Bruno Haible  <bruno@clisp.org>
61828
61829         * lib/xmalloca.h: Include xalloc.h.
61830         (xnmalloca): New macro.
61831
61832 2007-12-30  Bruno Haible  <bruno@clisp.org>
61833
61834         * lib/malloca.h (nmalloca): New macro.
61835         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
61836         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
61837         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
61838         knuth_morris_pratt_multibyte): Likewise.
61839         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
61840         knuth_morris_pratt_multibyte): Likewise.
61841         * lib/memmem.c (knuth_morris_pratt): Likewise.
61842         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
61843
61844 2007-12-25  Bruno Haible  <bruno@clisp.org>
61845
61846         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
61847         * lib/glob.c: Don't include openat.h.
61848         (link_exists2_p): Add back the code that deals with the
61849         !GLOB_ALTDIRFUNC case.
61850         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
61851         let it do the filename concatenation.
61852         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
61853         * modules/glob (Depends-on): Remove openat.
61854
61855 2007-12-31  Bruno Haible  <bruno@clisp.org>
61856
61857         * modules/dirfd (License): Change to LGPLv2+.
61858         Approved by Jim Meyering.
61859
61860 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61861
61862         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
61863         when multiplying M by sizeof (size_t).
61864
61865 2007-12-10  Martin Lambers  <marlam@marlam.de>
61866
61867         Override getpagesize on mingw.
61868         * lib/getpagesize.c: New file.
61869         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
61870         * modules/getpagesize (Files): Add lib/getpagesize.c.
61871         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
61872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61873         REPLACE_GETPAGESIZE.
61874         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
61875
61876 2007-12-25  Bruno Haible  <bruno@clisp.org>
61877
61878         * modules/localcharset (Notice): New field.
61879         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
61880         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
61881
61882 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61883             Bruno Haible  <bruno@clisp.org>
61884
61885         Avoid using the syntax symbol() in formatted documentation.
61886         * MODULES.html.sh (func_module): When replacing symbol() with a
61887         hyperlink, remove the parentheses. Show an error if some remain.
61888         Recognize and render the '...' syntax.
61889         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
61890         Rework. Add paragraph about GCC's inlining.
61891         * doc/alloca.texi: Likewise.
61892         * doc/error.texi: Remove parentheses from symbol reference.
61893         * doc/gnulib-intro.texi: Likewise.
61894         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
61895         * modules/fnmatch (Description): Reword to say "the ... function".
61896         * modules/full-read (Description): Likewise.
61897         * modules/full-write (Description): Likewise.
61898         * modules/safe-read (Description): Likewise.
61899         * modules/safe-write (Description): Likewise.
61900         * modules/strchrnul (Description): Likewise.
61901         * modules/trim (Description): Likewise.
61902         * modules/error (Description): Remove parentheses from symbol
61903         references.
61904         * modules/verror (Description): Likewise.
61905         Reported by Karl Berry.
61906
61907 2007-12-25  Bruno Haible  <bruno@clisp.org>
61908
61909         Fixup after 2007-10-16 commit.
61910         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
61911
61912 2007-12-24  Bruno Haible  <bruno@clisp.org>
61913
61914         Make --enable-relocatable work with DESTDIR.
61915         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
61916         to compute installdir from destprog.
61917         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
61918         also set the RELOC_DESTDIR variable.
61919         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61920
61921 2007-12-24  Bruno Haible  <bruno@clisp.org>
61922
61923         Fix link error due to xalloc_die().
61924         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
61925         of xreadlink.
61926         * lib/relocwrapper.c: Update comments.
61927         * build-aux/install-reloc: Remove xreadlink.c from file list.
61928         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
61929         xreadlink.c.
61930         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61931
61932 2007-12-24  Bruno Haible  <bruno@clisp.org>
61933
61934         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
61935         * lib/setenv.h: Remove file.
61936         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
61937         lib/setenv.h.
61938         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
61939         (Depends-on): Add stdlib.
61940         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
61941         gl_FUNC_UNSETENV.
61942         (Include): Replace setenv.h with <stdlib.h>.
61943         * modules/unsetenv: New file.
61944         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
61945         * lib/unsetenv.c: Include <stdlib.h> first.
61946         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
61947         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
61948         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
61949         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
61950         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
61951         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61952         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
61953         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61954         * doc/functions/unsetenv.texi: Update.
61955         * modules/xsetenv (Depends-on): Add unsetenv.
61956         * modules/getdate (Depends-on): Likewise.
61957         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
61958         * lib/xsetenv.c: Don't include setenv.h.
61959         * lib/getdate.y: Likewise.
61960         * lib/relocwrapper.c: Likewise.
61961         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
61962         (Depends-on): Add stdlib.
61963         * NEWS: Mention the changes.
61964         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61965
61966 2007-12-23  Bruno Haible  <bruno@clisp.org>
61967
61968         * lib/memmem.c (memmem): Use lowercase variable names. Tab
61969         indentation.
61970
61971 2007-12-23  Bruno Haible  <bruno@clisp.org>
61972
61973         * lib/c-strcasestr.c: Add more comments.
61974         * lib/c-strstr.c: Likewise.
61975         * lib/mbscasestr.c: Likewise.
61976         * lib/mbsstr.c: Likewise.
61977         * lib/strcasestr.c: Likewise.
61978         * lib/memmem.c: Likewise.
61979
61980 2007-12-23  Bruno Haible  <bruno@clisp.org>
61981
61982         * tests/test-memmem.c: Include <string.h> first.
61983
61984 2007-12-22  Bruno Haible  <bruno@clisp.org>
61985
61986         * gnulib-tool (func_create_testdir): Change $auxdir while generating
61987         the contents of $testsbase.
61988         Reported by Ralf Wildenhues.
61989
61990 2007-12-22  Bruno Haible  <bruno@clisp.org>
61991
61992         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
61993         two variables local_ldadd_before, local_ldadd_last.
61994
61995 2007-12-20  Eric Blake  <ebb9@byu.net>
61996
61997         Work around circular library issue when cross-compiling.
61998         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
61999         that progname.o does not need to pull in rpl_memcmp.
62000
62001 2007-12-19  Eric Blake  <ebb9@byu.net>
62002
62003         Fix memmem to avoid O(n^2) worst-case complexity.
62004         * lib/memmem.c (knuth_morris_pratt): New function.
62005         (memmem): Use it if first few naive iterations fail.
62006         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
62007         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
62008         * modules/memchr (License): Likewise.
62009         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
62010         malloca.
62011         * tests/test-memmem.c: Rewrite, borrowing ideas from
62012         test-mbsstr1.c; the old version wouldn't even compile!
62013         * modules/memmem-tests: New file.
62014         * lib/string.in.h (rpl_memmem): Add declaration.
62015         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
62016         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
62017         REPLACE_MEMMEM.
62018
62019 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62020
62021         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
62022         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
62023         before any system include files, and undef after them all.  This
62024         should fix a problem on VMS reported by John E. Malmberg in
62025         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
62026
62027 2007-12-17  Eric Blake  <ebb9@byu.net>
62028
62029         Revert addition of verify, for BSD/OS.
62030         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
62031         can't handle large files, for the sake of obsolete platforms.
62032         * modules/fseeko (Depends-on): Remove verify.
62033         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
62034         * doc/functions/ftello.texi (ftello): Likewise.
62035         * doc/functions/fgetpos.texi (fgetpos): Likewise.
62036         Reported by Larry Jones.
62037
62038 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
62039
62040         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
62041         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
62042
62043 2007-12-17  Jim Meyering  <meyering@redhat.com>
62044
62045         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
62046         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
62047         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
62048         * modules/getcwd (Depends-on): Add openat.
62049         Reported by Petr Salinger.
62050
62051 2007-12-17  Bruno Haible  <bruno@clisp.org>
62052
62053         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
62054         avoid a segmentation fault of the configure test on x86_64 systems.
62055
62056 2007-12-15  Jim Meyering  <meyering@redhat.com>
62057
62058         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
62059
62060 2007-12-13  Eric Blake  <ebb9@byu.net>
62061
62062         Another fseek test.
62063         * tests/test-fseek.c (main): Also test ungetc handling.
62064         * tests/test-fseeko.c (main): Likewise.
62065         * modules/fseeko (Depends-on): Add verify.
62066         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
62067         large.
62068         Reported by Larry Jones.
62069
62070         Fix fseeko on mingw.
62071         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
62072         seek.
62073
62074         Beef up fseek tests.
62075         * tests/test-fseek.c (main): Also test eof handling.
62076         * tests/test-fseeko.c (main): Likewise.
62077         Reported by Larry Jones.
62078
62079 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
62080
62081         Fix fseeko on BSD-based platforms.
62082         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
62083         successful seek.
62084
62085 2007-12-12  Eric Blake  <ebb9@byu.net>
62086
62087         Allow circular dependency of separate libtests.a
62088         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
62089         when use_libtests.
62090
62091 2007-12-11  Eric Blake  <ebb9@byu.net>
62092
62093         Fix bug with -0.0L in previous patch.
62094         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
62095         * tests/test-isnan.c (main): Also test on zeroes.
62096         * tests/test-isnanf.c (main): Likewise.
62097         * tests/test-isnanl.h (main): Likewise.
62098
62099         Detect pseudo-denormals on x86 even when cross-compiling.
62100         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
62101         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
62102         invalid bit patterns that happen to satisfy ==.
62103
62104         Avoid link failures with separate libtests.a.
62105         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
62106         last, to satisfy circular dependencies.
62107
62108 2007-12-11  Eric Blake  <ebb9@byu.net>
62109         and Bruno Haible  <bruno@clisp.org>
62110
62111         Fix OpenBSD 4.0 <float.h> handling of long double.
62112         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
62113         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
62114         * doc/headers/float.texi (float.h): Document OpenBSD bug.
62115
62116 2007-12-11  Jim Meyering  <meyering@redhat.com>
62117
62118         * users.txt: Add libvirt.
62119
62120         Support versions of autoconf prior to 2.59c.
62121         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
62122         if it is not already defined.
62123
62124 2007-12-09  Bruno Haible  <bruno@clisp.org>
62125
62126         Let 'gnulib-tool --import' collect sources needed for the tests in
62127         tests/ rather than in lib/.
62128         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
62129         argument. If true, add rules to generate libtests.a, and put libtests.a
62130         into $(LDADD). Consider source files in subdirectories and set
62131         uses_subdirs.
62132         (func_emit_initmacro_start, func_emit_initmacro_end,
62133         func_emit_initmacro_done): Pass all arguments explicitly.
62134         (func_import): Determine two module lists main_modules,
62135         testsrelated_modules. Determine use_libtests. Determine two variables
62136         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
62137         instead of just sed_transform_lib_file. Determine two variables
62138         main_files and testsrelated_files. Compute 'files' as the union of
62139         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
62140         func_add_or_update. In the generated gnulib-comp.m4, collect the
62141         object files for tests/ in different variables than those for lib/.
62142         Substitute LIBTESTS_LIBDEPS.
62143         (func_create_testdir): Combine the uses_subdirs results from
62144         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
62145
62146 2007-12-09  Bruno Haible  <bruno@clisp.org>
62147
62148         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
62149         the build-aux directory.
62150
62151 2007-12-09  Bruno Haible  <bruno@clisp.org>
62152
62153         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
62154         introduced on 2006-09-09.
62155
62156 2007-12-07  Jim Meyering  <meyering@redhat.com>
62157
62158         Let these macros work also with autoconf-2.59.
62159         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
62160         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
62161         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62162
62163 2007-12-06  Jim Meyering  <meyering@redhat.com>
62164
62165         Avoid a configure-time syntax error in gl_FUNC_ACL.
62166         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
62167         function in each branch, before testing the cache variable.
62168
62169 2007-12-04  Eric Blake  <ebb9@byu.net>
62170
62171         Make scripts executable.
62172         * build-aux/config.guess: Add execute permissions.
62173         * build-aux/config.sub: Likewise.
62174         * build-aux/gendocs.sh: Likewise.
62175
62176         Fix frexp on mingw.
62177         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
62178         cross-compiling.
62179         * doc/functions/frexp.texi (frexp): Document the bug.
62180
62181         Make cygwin fseeko check more reliable.
62182         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
62183         version numbers, rather than unrelated feature check.
62184         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
62185         * doc/functions/ftello.texi (ftello): Likewise.
62186         Reported by Bruno Haible.
62187
62188         * m4/strerror.m4: Bump version number.
62189
62190 2007-12-03  Bruno Haible  <bruno@clisp.org>
62191
62192         * doc/functions/mprotect.texi: Mention the mingw problem.
62193
62194 2007-12-03  Eric Blake  <ebb9@byu.net>
62195
62196         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
62197         REPLACE_STRERROR is initialized before this macro.
62198
62199 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62200
62201         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
62202         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
62203         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
62204         put -lsec in even for programs other than 'ls'.  This fixes a problem
62205         for gettext reported by Bruno Haible in
62206         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
62207         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
62208         Add support for Solaris 10.  This isn't efficient, but should get the
62209         job done for now.
62210
62211 2007-12-03  James Youngman  <jay@gnu.org>
62212
62213         * doc/regexprops-generic.texi: change "an close-group" to "a
62214         close-group" and "illegal" to "not allowed".
62215
62216 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62217
62218         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
62219         pr_byname.h. Needed for the rare case when the maintainer has done
62220         "make maintainer-clean" in the source directory and then attempts a
62221         build outside the source directory.
62222         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
62223         scripts_byname.h.
62224
62225 2007-12-02  Martin Lambers <marlam@marlam.de>
62226             Bruno Haible  <bruno@clisp.org>
62227
62228         * lib/getpagesize.h: Remove file.
62229         * lib/unistd.in.h: Include declaration of getpagesize here.
62230         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
62231         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
62232         HAVE_SYS_PARAM_H.
62233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
62234         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62235         * modules/getpagesize (Files): Remove lib/getpagesize.h.
62236         (Depends-on): Add unistd.
62237         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62238         (Include): Use <unistd.h> instead of getpagesize.h.
62239         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
62240         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62241         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
62242         gl_GETPAGESIZE invocation, already handled by module dependency.
62243         * lib/pagealign_alloc.c: Don't include getpagesize.h.
62244
62245 2007-12-02  Bruno Haible  <bruno@clisp.org>
62246
62247         * modules/strings-tests: New file.
62248         * tests/test-strings.c: New file.
62249
62250         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
62251         * lib/strings.in.h: New file.
62252         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
62253         * m4/strings_h.m4: New file.
62254         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
62255         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
62256         * modules/strings: New file.
62257         * modules/string (Makefile.am): Update.
62258         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
62259         Reported by Karl Berry.
62260
62261 2007-12-01  Eric Blake  <ebb9@byu.net>
62262
62263         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
62264         accommodate fix in cygwin 1.5.25.
62265
62266 2007-12-01  Jim Meyering  <meyering@redhat.com>
62267
62268         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
62269         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
62270         that would inhibit utf8-optimization of a regexp containing line-
62271         or buffer-anchors, e.g., `^', `$'.
62272
62273 2007-11-30  Bruno Haible  <bruno@clisp.org>
62274
62275         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
62276         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
62277         glthread_recursive_lock_init.
62278         * lib/lock.c (glthread_recursive_lock_init)
62279         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
62280         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62281
62282 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
62283
62284         New function qset_acl, like set_acl but with syscall semantics.
62285         * lib/acl.h (qset_acl): New decl.
62286         * lib/acl.c (qset_acl): New function.
62287         (set_acl): Use new function.  Use more-consistent diagnostics.
62288
62289 2007-11-28  Jim Meyering  <meyering@redhat.com>
62290
62291         * modules/physmem (License): Change from GPL to LGPLv2+.
62292
62293 2007-11-26  Bruno Haible  <bruno@clisp.org>
62294
62295         * lib/vasnprintf.c (decode_long_double): Don't abort if the
62296         'long double' type has excess precision.
62297         Reported by Jim Meyering in
62298         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
62299
62300 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62301
62302         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
62303         Sync from <http://gnu.org/licenses>.
62304         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
62305         with license text from same location.
62306         * doc/maintain.texi, doc/standards.texi:  Sync from
62307         <http://savannah.gnu.org/projects/gnustandards>.
62308
62309 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
62310         and Jim Meyering  <meyering@redhat.com>
62311
62312         Adjust getdate' grammar to accept a slightly more regular language.
62313         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
62314         Before, the former was rejected.
62315         * lib/getdate.y (digits_to_date_time): New function, factored
62316         out of ...
62317         (number): ...here.  Just call digits_to_date_time.
62318         (hybrid): New non-terminal to handle an <unsigned number,
62319         signed relative offset> sequence consistently.
62320
62321 2007-11-18  Jim Meyering  <meyering@redhat.com>
62322
62323         Pull my changes from coreutils:
62324         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
62325         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
62326         use of $gnulib_tool_option_extras, so that it's separated from the
62327         preceding argument.
62328
62329         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
62330         * build-aux/bootstrap (cp_mark_as_generated): Create any required
62331         parent destination directories before copying a file into place.
62332
62333 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62334
62335         bootstrap: work also with 4-argument variant of AC_INIT
62336         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
62337
62338 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62339
62340         Port test-getaddrinfo to Solaris.
62341         Problem reported by Bruno Haible in
62342         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
62343         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
62344         explanation of setting 'hints'.
62345         Don't reject an implementation merely because it returns EAI_SERVICE.
62346         (EAI_SERVICE): Define to 0 if not defined.
62347
62348 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62349
62350         The license of gnu-make and posix-shell is now "GPLed build tool".
62351         * modules/gnu-make (License): Likewise.
62352         * modules/posix-shell (License): Likewise.
62353
62354         New module posix-shell, for determining a POSIX shell
62355         or perhaps something that is close enough to a POSIX shell.
62356         * m4/posix-shell.m4: New file.
62357         * modules/posix-shell: New file.
62358
62359         * MODULES.html.sh: Mention new module.
62360
62361         New module gnu-make, for determining whether we're using GNU Make.
62362         * m4/gnu-make.m4: New file.
62363         * modules/gnu-make: New file.
62364         * MODULES.html.sh: Mention new module.
62365
62366 2007-11-14  Jim Meyering  <meyering@redhat.com>
62367
62368         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
62369         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
62370         use this macro to create a function _definition_.
62371         Remove useless "#undef ARGMATCH_DIE".
62372
62373 2007-11-14  Bruno Haible  <bruno@clisp.org>
62374
62375         * lib/config.charset: Update for OpenBSD 4.1.
62376         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
62377
62378 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
62379
62380         Document 64-bit #if problems in stdint.texi.
62381         * doc/headers/stdint.texi (stdint.h): Mention problems with
62382         64-bit-#if, and how to work around them.
62383
62384         Don't insist on 'long long int' support in the preprocessor.  It
62385         breaks too many things.  For example, PRIdMAX still uses a 'long
62386         long int' format with the latest Sun compiler, even though
62387         HAVE_LONG_LONG_INT isn't defined due to that compiler's
62388         preprocessor problem.  This causes the latest coreutils to dump
62389         core on Solaris 10 sparc with the Sun C compiler.
62390         Instead, fix the 2007-10-16 problem in a different way, by evaluating
62391         the troublesome expressions at configure-time, not at #if-time.
62392         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
62393         preprocessor.
62394         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
62395         compile-time C checks, done at 'configure'-time.
62396         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
62397         * modules/inttypes (Makefile): Substitute the new symbols that
62398         gl_INTTYPES_H now generates.
62399         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
62400
62401 2007-11-12  Bruno Haible  <bruno@clisp.org>
62402
62403         Tests for Unicode character classification functions.
62404
62405         * modules/unictype/bidicategory-byname-tests: New file.
62406         * modules/unictype/bidicategory-name-tests: New file.
62407         * modules/unictype/bidicategory-of-tests: New file.
62408         * modules/unictype/bidicategory-test-tests: New file.
62409         * modules/unictype/block-list-tests: New file.
62410         * modules/unictype/block-of-tests: New file.
62411         * modules/unictype/block-test-tests: New file.
62412         * modules/unictype/category-C-tests: New file.
62413         * modules/unictype/category-Cc-tests: New file.
62414         * modules/unictype/category-Cf-tests: New file.
62415         * modules/unictype/category-Cn-tests: New file.
62416         * modules/unictype/category-Co-tests: New file.
62417         * modules/unictype/category-Cs-tests: New file.
62418         * modules/unictype/category-L-tests: New file.
62419         * modules/unictype/category-Ll-tests: New file.
62420         * modules/unictype/category-Lm-tests: New file.
62421         * modules/unictype/category-Lo-tests: New file.
62422         * modules/unictype/category-Lt-tests: New file.
62423         * modules/unictype/category-Lu-tests: New file.
62424         * modules/unictype/category-M-tests: New file.
62425         * modules/unictype/category-Mc-tests: New file.
62426         * modules/unictype/category-Me-tests: New file.
62427         * modules/unictype/category-Mn-tests: New file.
62428         * modules/unictype/category-N-tests: New file.
62429         * modules/unictype/category-Nd-tests: New file.
62430         * modules/unictype/category-Nl-tests: New file.
62431         * modules/unictype/category-No-tests: New file.
62432         * modules/unictype/category-P-tests: New file.
62433         * modules/unictype/category-Pc-tests: New file.
62434         * modules/unictype/category-Pd-tests: New file.
62435         * modules/unictype/category-Pe-tests: New file.
62436         * modules/unictype/category-Pf-tests: New file.
62437         * modules/unictype/category-Pi-tests: New file.
62438         * modules/unictype/category-Po-tests: New file.
62439         * modules/unictype/category-Ps-tests: New file.
62440         * modules/unictype/category-S-tests: New file.
62441         * modules/unictype/category-Sc-tests: New file.
62442         * modules/unictype/category-Sk-tests: New file.
62443         * modules/unictype/category-Sm-tests: New file.
62444         * modules/unictype/category-So-tests: New file.
62445         * modules/unictype/category-Z-tests: New file.
62446         * modules/unictype/category-Zl-tests: New file.
62447         * modules/unictype/category-Zp-tests: New file.
62448         * modules/unictype/category-Zs-tests: New file.
62449         * modules/unictype/category-and-not-tests: New file.
62450         * modules/unictype/category-and-tests: New file.
62451         * modules/unictype/category-byname-tests: New file.
62452         * modules/unictype/category-name-tests: New file.
62453         * modules/unictype/category-none-tests: New file.
62454         * modules/unictype/category-of-tests: New file.
62455         * modules/unictype/category-or-tests: New file.
62456         * modules/unictype/category-test-withtable-tests: New file.
62457         * modules/unictype/combining-class-tests: New file.
62458         * modules/unictype/ctype-alnum-tests: New file.
62459         * modules/unictype/ctype-alpha-tests: New file.
62460         * modules/unictype/ctype-blank-tests: New file.
62461         * modules/unictype/ctype-cntrl-tests: New file.
62462         * modules/unictype/ctype-digit-tests: New file.
62463         * modules/unictype/ctype-graph-tests: New file.
62464         * modules/unictype/ctype-lower-tests: New file.
62465         * modules/unictype/ctype-print-tests: New file.
62466         * modules/unictype/ctype-punct-tests: New file.
62467         * modules/unictype/ctype-space-tests: New file.
62468         * modules/unictype/ctype-upper-tests: New file.
62469         * modules/unictype/ctype-xdigit-tests: New file.
62470         * modules/unictype/decimal-digit-tests: New file.
62471         * modules/unictype/digit-tests: New file.
62472         * modules/unictype/mirror-tests: New file.
62473         * modules/unictype/numeric-tests: New file.
62474         * modules/unictype/property-alphabetic-tests: New file.
62475         * modules/unictype/property-ascii-hex-digit-tests: New file.
62476         * modules/unictype/property-bidi-arabic-digit-tests: New file.
62477         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
62478         * modules/unictype/property-bidi-block-separator-tests: New file.
62479         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
62480         * modules/unictype/property-bidi-common-separator-tests: New file.
62481         * modules/unictype/property-bidi-control-tests: New file.
62482         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
62483         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
62484         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
62485         * modules/unictype/property-bidi-european-digit-tests: New file.
62486         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
62487         * modules/unictype/property-bidi-left-to-right-tests: New file.
62488         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
62489         * modules/unictype/property-bidi-other-neutral-tests: New file.
62490         * modules/unictype/property-bidi-pdf-tests: New file.
62491         * modules/unictype/property-bidi-segment-separator-tests: New file.
62492         * modules/unictype/property-bidi-whitespace-tests: New file.
62493         * modules/unictype/property-byname-tests: New file.
62494         * modules/unictype/property-combining-tests: New file.
62495         * modules/unictype/property-composite-tests: New file.
62496         * modules/unictype/property-currency-symbol-tests: New file.
62497         * modules/unictype/property-dash-tests: New file.
62498         * modules/unictype/property-decimal-digit-tests: New file.
62499         * modules/unictype/property-default-ignorable-code-point-tests: New file.
62500         * modules/unictype/property-deprecated-tests: New file.
62501         * modules/unictype/property-diacritic-tests: New file.
62502         * modules/unictype/property-extender-tests: New file.
62503         * modules/unictype/property-format-control-tests: New file.
62504         * modules/unictype/property-grapheme-base-tests: New file.
62505         * modules/unictype/property-grapheme-extend-tests: New file.
62506         * modules/unictype/property-grapheme-link-tests: New file.
62507         * modules/unictype/property-hex-digit-tests: New file.
62508         * modules/unictype/property-hyphen-tests: New file.
62509         * modules/unictype/property-id-continue-tests: New file.
62510         * modules/unictype/property-id-start-tests: New file.
62511         * modules/unictype/property-ideographic-tests: New file.
62512         * modules/unictype/property-ids-binary-operator-tests: New file.
62513         * modules/unictype/property-ids-trinary-operator-tests: New file.
62514         * modules/unictype/property-ignorable-control-tests: New file.
62515         * modules/unictype/property-iso-control-tests: New file.
62516         * modules/unictype/property-join-control-tests: New file.
62517         * modules/unictype/property-left-of-pair-tests: New file.
62518         * modules/unictype/property-line-separator-tests: New file.
62519         * modules/unictype/property-logical-order-exception-tests: New file.
62520         * modules/unictype/property-lowercase-tests: New file.
62521         * modules/unictype/property-math-tests: New file.
62522         * modules/unictype/property-non-break-tests: New file.
62523         * modules/unictype/property-not-a-character-tests: New file.
62524         * modules/unictype/property-numeric-tests: New file.
62525         * modules/unictype/property-other-alphabetic-tests: New file.
62526         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
62527         * modules/unictype/property-other-grapheme-extend-tests: New file.
62528         * modules/unictype/property-other-id-continue-tests: New file.
62529         * modules/unictype/property-other-id-start-tests: New file.
62530         * modules/unictype/property-other-lowercase-tests: New file.
62531         * modules/unictype/property-other-math-tests: New file.
62532         * modules/unictype/property-other-uppercase-tests: New file.
62533         * modules/unictype/property-paired-punctuation-tests: New file.
62534         * modules/unictype/property-paragraph-separator-tests: New file.
62535         * modules/unictype/property-pattern-syntax-tests: New file.
62536         * modules/unictype/property-pattern-white-space-tests: New file.
62537         * modules/unictype/property-private-use-tests: New file.
62538         * modules/unictype/property-punctuation-tests: New file.
62539         * modules/unictype/property-quotation-mark-tests: New file.
62540         * modules/unictype/property-radical-tests: New file.
62541         * modules/unictype/property-sentence-terminal-tests: New file.
62542         * modules/unictype/property-soft-dotted-tests: New file.
62543         * modules/unictype/property-space-tests: New file.
62544         * modules/unictype/property-terminal-punctuation-tests: New file.
62545         * modules/unictype/property-test-tests: New file.
62546         * modules/unictype/property-titlecase-tests: New file.
62547         * modules/unictype/property-unassigned-code-value-tests: New file.
62548         * modules/unictype/property-unified-ideograph-tests: New file.
62549         * modules/unictype/property-uppercase-tests: New file.
62550         * modules/unictype/property-variation-selector-tests: New file.
62551         * modules/unictype/property-white-space-tests: New file.
62552         * modules/unictype/property-xid-continue-tests: New file.
62553         * modules/unictype/property-xid-start-tests: New file.
62554         * modules/unictype/property-zero-width-tests: New file.
62555         * modules/unictype/scripts-tests: New file.
62556         * modules/unictype/syntax-c-ident-tests: New file.
62557         * modules/unictype/syntax-c-whitespace-tests: New file.
62558         * modules/unictype/syntax-java-ident-tests: New file.
62559         * modules/unictype/syntax-java-whitespace-tests: New file.
62560         * tests/unictype/test-bidi_byname.c: New file.
62561         * tests/unictype/test-bidi_name.c: New file.
62562         * tests/unictype/test-bidi_of.c: New file.
62563         * tests/unictype/test-bidi_test.c: New file.
62564         * tests/unictype/test-block_list.c: New file.
62565         * tests/unictype/test-block_of.c: New file.
62566         * tests/unictype/test-block_test.c: New file.
62567         * tests/unictype/test-categ_and.c: New file.
62568         * tests/unictype/test-categ_and_not.c: New file.
62569         * tests/unictype/test-categ_byname.c: New file.
62570         * tests/unictype/test-categ_name.c: New file.
62571         * tests/unictype/test-categ_none.c: New file.
62572         * tests/unictype/test-categ_of.c: New file.
62573         * tests/unictype/test-categ_or.c: New file.
62574         * tests/unictype/test-categ_test_withtable.c: New file.
62575         * tests/unictype/test-combining.c: New file.
62576         * tests/unictype/test-decdigit.c: New file.
62577         * tests/unictype/test-digit.c: New file.
62578         * tests/unictype/test-mirror.c: New file.
62579         * tests/unictype/test-numeric.c: New file.
62580         * tests/unictype/test-pr_byname.c: New file.
62581         * tests/unictype/test-pr_test.c: New file.
62582         * tests/unictype/test-predicate-part1.h: New file.
62583         * tests/unictype/test-predicate-part2.h: New file.
62584         * tests/unictype/test-scripts.c: New file.
62585         * tests/unictype/test-sy_c_ident.c: New file.
62586         * tests/unictype/test-sy_java_ident.c: New file.
62587
62588         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
62589         for Unicode 5.0.0.
62590         * tests/unictype/test-categ_Cc.c: Likewise.
62591         * tests/unictype/test-categ_Cf.c: Likewise.
62592         * tests/unictype/test-categ_Cn.c: Likewise.
62593         * tests/unictype/test-categ_Co.c: Likewise.
62594         * tests/unictype/test-categ_Cs.c: Likewise.
62595         * tests/unictype/test-categ_L.c: Likewise.
62596         * tests/unictype/test-categ_Ll.c: Likewise.
62597         * tests/unictype/test-categ_Lm.c: Likewise.
62598         * tests/unictype/test-categ_Lo.c: Likewise.
62599         * tests/unictype/test-categ_Lt.c: Likewise.
62600         * tests/unictype/test-categ_Lu.c: Likewise.
62601         * tests/unictype/test-categ_M.c: Likewise.
62602         * tests/unictype/test-categ_Mc.c: Likewise.
62603         * tests/unictype/test-categ_Me.c: Likewise.
62604         * tests/unictype/test-categ_Mn.c: Likewise.
62605         * tests/unictype/test-categ_N.c: Likewise.
62606         * tests/unictype/test-categ_Nd.c: Likewise.
62607         * tests/unictype/test-categ_Nl.c: Likewise.
62608         * tests/unictype/test-categ_No.c: Likewise.
62609         * tests/unictype/test-categ_P.c: Likewise.
62610         * tests/unictype/test-categ_Pc.c: Likewise.
62611         * tests/unictype/test-categ_Pd.c: Likewise.
62612         * tests/unictype/test-categ_Pe.c: Likewise.
62613         * tests/unictype/test-categ_Pf.c: Likewise.
62614         * tests/unictype/test-categ_Pi.c: Likewise.
62615         * tests/unictype/test-categ_Po.c: Likewise.
62616         * tests/unictype/test-categ_Ps.c: Likewise.
62617         * tests/unictype/test-categ_S.c: Likewise.
62618         * tests/unictype/test-categ_Sc.c: Likewise.
62619         * tests/unictype/test-categ_Sk.c: Likewise.
62620         * tests/unictype/test-categ_Sm.c: Likewise.
62621         * tests/unictype/test-categ_So.c: Likewise.
62622         * tests/unictype/test-categ_Z.c: Likewise.
62623         * tests/unictype/test-categ_Zl.c: Likewise.
62624         * tests/unictype/test-categ_Zp.c: Likewise.
62625         * tests/unictype/test-categ_Zs.c: Likewise.
62626         * tests/unictype/test-ctype_alnum.c: Likewise.
62627         * tests/unictype/test-ctype_alpha.c: Likewise.
62628         * tests/unictype/test-ctype_blank.c: Likewise.
62629         * tests/unictype/test-ctype_cntrl.c: Likewise.
62630         * tests/unictype/test-ctype_digit.c: Likewise.
62631         * tests/unictype/test-ctype_graph.c: Likewise.
62632         * tests/unictype/test-ctype_lower.c: Likewise.
62633         * tests/unictype/test-ctype_print.c: Likewise.
62634         * tests/unictype/test-ctype_punct.c: Likewise.
62635         * tests/unictype/test-ctype_space.c: Likewise.
62636         * tests/unictype/test-ctype_upper.c: Likewise.
62637         * tests/unictype/test-ctype_xdigit.c: Likewise.
62638         * tests/unictype/test-decdigit.h: Likewise.
62639         * tests/unictype/test-digit.h: Likewise.
62640         * tests/unictype/test-numeric.h: Likewise.
62641         * tests/unictype/test-pr_alphabetic.c: Likewise.
62642         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
62643         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
62644         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
62645         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
62646         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
62647         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
62648         * tests/unictype/test-pr_bidi_control.c: Likewise.
62649         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
62650         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
62651         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
62652         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
62653         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
62654         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
62655         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
62656         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
62657         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
62658         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
62659         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
62660         * tests/unictype/test-pr_combining.c: Likewise.
62661         * tests/unictype/test-pr_composite.c: Likewise.
62662         * tests/unictype/test-pr_currency_symbol.c: Likewise.
62663         * tests/unictype/test-pr_dash.c: Likewise.
62664         * tests/unictype/test-pr_decimal_digit.c: Likewise.
62665         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
62666         * tests/unictype/test-pr_deprecated.c: Likewise.
62667         * tests/unictype/test-pr_diacritic.c: Likewise.
62668         * tests/unictype/test-pr_extender.c: Likewise.
62669         * tests/unictype/test-pr_format_control.c: Likewise.
62670         * tests/unictype/test-pr_grapheme_base.c: Likewise.
62671         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
62672         * tests/unictype/test-pr_grapheme_link.c: Likewise.
62673         * tests/unictype/test-pr_hex_digit.c: Likewise.
62674         * tests/unictype/test-pr_hyphen.c: Likewise.
62675         * tests/unictype/test-pr_id_continue.c: Likewise.
62676         * tests/unictype/test-pr_id_start.c: Likewise.
62677         * tests/unictype/test-pr_ideographic.c: Likewise.
62678         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
62679         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
62680         * tests/unictype/test-pr_ignorable_control.c: Likewise.
62681         * tests/unictype/test-pr_iso_control.c: Likewise.
62682         * tests/unictype/test-pr_join_control.c: Likewise.
62683         * tests/unictype/test-pr_left_of_pair.c: Likewise.
62684         * tests/unictype/test-pr_line_separator.c: Likewise.
62685         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
62686         * tests/unictype/test-pr_lowercase.c: Likewise.
62687         * tests/unictype/test-pr_math.c: Likewise.
62688         * tests/unictype/test-pr_non_break.c: Likewise.
62689         * tests/unictype/test-pr_not_a_character.c: Likewise.
62690         * tests/unictype/test-pr_numeric.c: Likewise.
62691         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
62692         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
62693         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
62694         * tests/unictype/test-pr_other_id_continue.c: Likewise.
62695         * tests/unictype/test-pr_other_id_start.c: Likewise.
62696         * tests/unictype/test-pr_other_lowercase.c: Likewise.
62697         * tests/unictype/test-pr_other_math.c: Likewise.
62698         * tests/unictype/test-pr_other_uppercase.c: Likewise.
62699         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
62700         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
62701         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
62702         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
62703         * tests/unictype/test-pr_private_use.c: Likewise.
62704         * tests/unictype/test-pr_punctuation.c: Likewise.
62705         * tests/unictype/test-pr_quotation_mark.c: Likewise.
62706         * tests/unictype/test-pr_radical.c: Likewise.
62707         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
62708         * tests/unictype/test-pr_soft_dotted.c: Likewise.
62709         * tests/unictype/test-pr_space.c: Likewise.
62710         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
62711         * tests/unictype/test-pr_titlecase.c: Likewise.
62712         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
62713         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
62714         * tests/unictype/test-pr_uppercase.c: Likewise.
62715         * tests/unictype/test-pr_variation_selector.c: Likewise.
62716         * tests/unictype/test-pr_white_space.c: Likewise.
62717         * tests/unictype/test-pr_xid_continue.c: Likewise.
62718         * tests/unictype/test-pr_xid_start.c: Likewise.
62719         * tests/unictype/test-pr_zero_width.c: Likewise.
62720         * tests/unictype/test-sy_c_whitespace.c: Likewise.
62721         * tests/unictype/test-sy_java_whitespace.c: Likewise.
62722
62723 2007-11-12  Bruno Haible  <bruno@clisp.org>
62724
62725         Unicode character classification functions.
62726         * lib/unictype.h: New file.
62727         * modules/unictype/base: New file.
62728         * modules/unictype/category-L: New file.
62729         * modules/unictype/category-Lu: New file.
62730         * modules/unictype/category-Ll: New file.
62731         * modules/unictype/category-Lt: New file.
62732         * modules/unictype/category-Lm: New file.
62733         * modules/unictype/category-Lo: New file.
62734         * modules/unictype/category-M: New file.
62735         * modules/unictype/category-Mn: New file.
62736         * modules/unictype/category-Mc: New file.
62737         * modules/unictype/category-Me: New file.
62738         * modules/unictype/category-N: New file.
62739         * modules/unictype/category-Nd: New file.
62740         * modules/unictype/category-Nl: New file.
62741         * modules/unictype/category-No: New file.
62742         * modules/unictype/category-P: New file.
62743         * modules/unictype/category-Pc: New file.
62744         * modules/unictype/category-Pd: New file.
62745         * modules/unictype/category-Ps: New file.
62746         * modules/unictype/category-Pe: New file.
62747         * modules/unictype/category-Pi: New file.
62748         * modules/unictype/category-Pf: New file.
62749         * modules/unictype/category-Po: New file.
62750         * modules/unictype/category-S: New file.
62751         * modules/unictype/category-Sm: New file.
62752         * modules/unictype/category-Sc: New file.
62753         * modules/unictype/category-Sk: New file.
62754         * modules/unictype/category-So: New file.
62755         * modules/unictype/category-Z: New file.
62756         * modules/unictype/category-Zs: New file.
62757         * modules/unictype/category-Zl: New file.
62758         * modules/unictype/category-Zp: New file.
62759         * modules/unictype/category-C: New file.
62760         * modules/unictype/category-Cc: New file.
62761         * modules/unictype/category-Cf: New file.
62762         * modules/unictype/category-Cs: New file.
62763         * modules/unictype/category-Co: New file.
62764         * modules/unictype/category-Cn: New file.
62765         * modules/unictype/category-or: New file.
62766         * modules/unictype/category-of: New file.
62767         * modules/unictype/category-test: New file.
62768         * modules/unictype/category-test-withtable: New file.
62769         * modules/unictype/category-byname: New file.
62770         * modules/unictype/category-none: New file.
62771         * modules/unictype/category-and: New file.
62772         * modules/unictype/category-and-not: New file.
62773         * modules/unictype/category-name: New file.
62774         * modules/unictype/combining-class: New file.
62775         * modules/unictype/category-all: New file.
62776         * modules/unictype/bidicategory-all: New file.
62777         * modules/unictype/bidicategory-byname: New file.
62778         * modules/unictype/bidicategory-name: New file.
62779         * modules/unictype/bidicategory-of: New file.
62780         * modules/unictype/bidicategory-test: New file.
62781         * modules/unictype/decimal-digit: New file.
62782         * modules/unictype/digit: New file.
62783         * modules/unictype/numeric: New file.
62784         * modules/unictype/mirror: New file.
62785         * modules/unictype/property-white-space: New file.
62786         * modules/unictype/property-alphabetic: New file.
62787         * modules/unictype/property-other-alphabetic: New file.
62788         * modules/unictype/property-not-a-character: New file.
62789         * modules/unictype/property-default-ignorable-code-point: New file.
62790         * modules/unictype/property-other-default-ignorable-code-point: New
62791         file.
62792         * modules/unictype/property-deprecated: New file.
62793         * modules/unictype/property-logical-order-exception: New file.
62794         * modules/unictype/property-variation-selector: New file.
62795         * modules/unictype/property-private-use: New file.
62796         * modules/unictype/property-unassigned-code-value: New file.
62797         * modules/unictype/property-uppercase: New file.
62798         * modules/unictype/property-other-uppercase: New file.
62799         * modules/unictype/property-lowercase: New file.
62800         * modules/unictype/property-other-lowercase: New file.
62801         * modules/unictype/property-titlecase: New file.
62802         * modules/unictype/property-soft-dotted: New file.
62803         * modules/unictype/property-id-start: New file.
62804         * modules/unictype/property-other-id-start: New file.
62805         * modules/unictype/property-id-continue: New file.
62806         * modules/unictype/property-other-id-continue: New file.
62807         * modules/unictype/property-xid-start: New file.
62808         * modules/unictype/property-xid-continue: New file.
62809         * modules/unictype/property-pattern-white-space: New file.
62810         * modules/unictype/property-pattern-syntax: New file.
62811         * modules/unictype/property-join-control: New file.
62812         * modules/unictype/property-grapheme-base: New file.
62813         * modules/unictype/property-grapheme-extend: New file.
62814         * modules/unictype/property-other-grapheme-extend: New file.
62815         * modules/unictype/property-grapheme-link: New file.
62816         * modules/unictype/property-bidi-control: New file.
62817         * modules/unictype/property-bidi-left-to-right: New file.
62818         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
62819         * modules/unictype/property-bidi-arabic-right-to-left: New file.
62820         * modules/unictype/property-bidi-european-digit: New file.
62821         * modules/unictype/property-bidi-eur-num-separator: New file.
62822         * modules/unictype/property-bidi-eur-num-terminator: New file.
62823         * modules/unictype/property-bidi-arabic-digit: New file.
62824         * modules/unictype/property-bidi-common-separator: New file.
62825         * modules/unictype/property-bidi-block-separator: New file.
62826         * modules/unictype/property-bidi-segment-separator: New file.
62827         * modules/unictype/property-bidi-whitespace: New file.
62828         * modules/unictype/property-bidi-non-spacing-mark: New file.
62829         * modules/unictype/property-bidi-boundary-neutral: New file.
62830         * modules/unictype/property-bidi-pdf: New file.
62831         * modules/unictype/property-bidi-embedding-or-override: New file.
62832         * modules/unictype/property-bidi-other-neutral: New file.
62833         * modules/unictype/property-hex-digit: New file.
62834         * modules/unictype/property-ascii-hex-digit: New file.
62835         * modules/unictype/property-ideographic: New file.
62836         * modules/unictype/property-unified-ideograph: New file.
62837         * modules/unictype/property-radical: New file.
62838         * modules/unictype/property-ids-binary-operator: New file.
62839         * modules/unictype/property-ids-trinary-operator: New file.
62840         * modules/unictype/property-zero-width: New file.
62841         * modules/unictype/property-space: New file.
62842         * modules/unictype/property-non-break: New file.
62843         * modules/unictype/property-iso-control: New file.
62844         * modules/unictype/property-format-control: New file.
62845         * modules/unictype/property-dash: New file.
62846         * modules/unictype/property-hyphen: New file.
62847         * modules/unictype/property-punctuation: New file.
62848         * modules/unictype/property-line-separator: New file.
62849         * modules/unictype/property-paragraph-separator: New file.
62850         * modules/unictype/property-quotation-mark: New file.
62851         * modules/unictype/property-sentence-terminal: New file.
62852         * modules/unictype/property-terminal-punctuation: New file.
62853         * modules/unictype/property-currency-symbol: New file.
62854         * modules/unictype/property-math: New file.
62855         * modules/unictype/property-other-math: New file.
62856         * modules/unictype/property-paired-punctuation: New file.
62857         * modules/unictype/property-left-of-pair: New file.
62858         * modules/unictype/property-combining: New file.
62859         * modules/unictype/property-composite: New file.
62860         * modules/unictype/property-decimal-digit: New file.
62861         * modules/unictype/property-numeric: New file.
62862         * modules/unictype/property-diacritic: New file.
62863         * modules/unictype/property-extender: New file.
62864         * modules/unictype/property-ignorable-control: New file.
62865         * modules/unictype/property-test: New file.
62866         * modules/unictype/property-byname: New file.
62867         * modules/unictype/property-all: New file.
62868         * modules/unictype/scripts: New file.
62869         * modules/unictype/scripts-all: New file.
62870         * modules/unictype/block-of: New file.
62871         * modules/unictype/block-test: New file.
62872         * modules/unictype/block-list: New file.
62873         * modules/unictype/block-all: New file.
62874         * modules/unictype/syntax-c-whitespace: New file.
62875         * modules/unictype/syntax-java-whitespace: New file.
62876         * modules/unictype/syntax-c-ident: New file.
62877         * modules/unictype/syntax-java-ident: New file.
62878         * modules/unictype/ctype-alnum: New file.
62879         * modules/unictype/ctype-alpha: New file.
62880         * modules/unictype/ctype-cntrl: New file.
62881         * modules/unictype/ctype-digit: New file.
62882         * modules/unictype/ctype-graph: New file.
62883         * modules/unictype/ctype-lower: New file.
62884         * modules/unictype/ctype-print: New file.
62885         * modules/unictype/ctype-punct: New file.
62886         * modules/unictype/ctype-space: New file.
62887         * modules/unictype/ctype-upper: New file.
62888         * modules/unictype/ctype-xdigit: New file.
62889         * modules/unictype/ctype-blank: New file.
62890         * lib/unictype/bidi_byname.c: New file.
62891         * lib/unictype/bidi_name.c: New file.
62892         * lib/unictype/bidi_of.c: New file.
62893         * lib/unictype/bidi_test.c: New file.
62894         * lib/unictype/bitmap.h: New file.
62895         * lib/unictype/block_test.c: New file.
62896         * lib/unictype/blocks.c: New file.
62897         * lib/unictype/categ_C.c: New file.
62898         * lib/unictype/categ_Cc.c: New file.
62899         * lib/unictype/categ_Cf.c: New file.
62900         * lib/unictype/categ_Cn.c: New file.
62901         * lib/unictype/categ_Co.c: New file.
62902         * lib/unictype/categ_Cs.c: New file.
62903         * lib/unictype/categ_L.c: New file.
62904         * lib/unictype/categ_Ll.c: New file.
62905         * lib/unictype/categ_Lm.c: New file.
62906         * lib/unictype/categ_Lo.c: New file.
62907         * lib/unictype/categ_Lt.c: New file.
62908         * lib/unictype/categ_Lu.c: New file.
62909         * lib/unictype/categ_M.c: New file.
62910         * lib/unictype/categ_Mc.c: New file.
62911         * lib/unictype/categ_Me.c: New file.
62912         * lib/unictype/categ_Mn.c: New file.
62913         * lib/unictype/categ_N.c: New file.
62914         * lib/unictype/categ_Nd.c: New file.
62915         * lib/unictype/categ_Nl.c: New file.
62916         * lib/unictype/categ_No.c: New file.
62917         * lib/unictype/categ_P.c: New file.
62918         * lib/unictype/categ_Pc.c: New file.
62919         * lib/unictype/categ_Pd.c: New file.
62920         * lib/unictype/categ_Pe.c: New file.
62921         * lib/unictype/categ_Pf.c: New file.
62922         * lib/unictype/categ_Pi.c: New file.
62923         * lib/unictype/categ_Po.c: New file.
62924         * lib/unictype/categ_Ps.c: New file.
62925         * lib/unictype/categ_S.c: New file.
62926         * lib/unictype/categ_Sc.c: New file.
62927         * lib/unictype/categ_Sk.c: New file.
62928         * lib/unictype/categ_Sm.c: New file.
62929         * lib/unictype/categ_So.c: New file.
62930         * lib/unictype/categ_Z.c: New file.
62931         * lib/unictype/categ_Zl.c: New file.
62932         * lib/unictype/categ_Zp.c: New file.
62933         * lib/unictype/categ_Zs.c: New file.
62934         * lib/unictype/categ_and.c: New file.
62935         * lib/unictype/categ_and_not.c: New file.
62936         * lib/unictype/categ_byname.c: New file.
62937         * lib/unictype/categ_name.c: New file.
62938         * lib/unictype/categ_none.c: New file.
62939         * lib/unictype/categ_of.c: New file.
62940         * lib/unictype/categ_or.c: New file.
62941         * lib/unictype/categ_test.c: New file.
62942         * lib/unictype/combining.c: New file.
62943         * lib/unictype/ctype_alnum.c: New file.
62944         * lib/unictype/ctype_alpha.c: New file.
62945         * lib/unictype/ctype_blank.c: New file.
62946         * lib/unictype/ctype_cntrl.c: New file.
62947         * lib/unictype/ctype_digit.c: New file.
62948         * lib/unictype/ctype_graph.c: New file.
62949         * lib/unictype/ctype_lower.c: New file.
62950         * lib/unictype/ctype_print.c: New file.
62951         * lib/unictype/ctype_punct.c: New file.
62952         * lib/unictype/ctype_space.c: New file.
62953         * lib/unictype/ctype_upper.c: New file.
62954         * lib/unictype/ctype_xdigit.c: New file.
62955         * lib/unictype/decdigit.c: New file.
62956         * lib/unictype/digit.c: New file.
62957         * lib/unictype/identsyntaxmap.h: New file.
62958         * lib/unictype/mirror.c: New file.
62959         * lib/unictype/numeric.c: New file.
62960         * lib/unictype/pr_alphabetic.c: New file.
62961         * lib/unictype/pr_ascii_hex_digit.c: New file.
62962         * lib/unictype/pr_bidi_arabic_digit.c: New file.
62963         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
62964         * lib/unictype/pr_bidi_block_separator.c: New file.
62965         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
62966         * lib/unictype/pr_bidi_common_separator.c: New file.
62967         * lib/unictype/pr_bidi_control.c: New file.
62968         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
62969         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
62970         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
62971         * lib/unictype/pr_bidi_european_digit.c: New file.
62972         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
62973         * lib/unictype/pr_bidi_left_to_right.c: New file.
62974         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
62975         * lib/unictype/pr_bidi_other_neutral.c: New file.
62976         * lib/unictype/pr_bidi_pdf.c: New file.
62977         * lib/unictype/pr_bidi_segment_separator.c: New file.
62978         * lib/unictype/pr_bidi_whitespace.c: New file.
62979         * lib/unictype/pr_byname.c: New file.
62980         * lib/unictype/pr_byname.gperf: New file.
62981         * lib/unictype/pr_combining.c: New file.
62982         * lib/unictype/pr_composite.c: New file.
62983         * lib/unictype/pr_currency_symbol.c: New file.
62984         * lib/unictype/pr_dash.c: New file.
62985         * lib/unictype/pr_decimal_digit.c: New file.
62986         * lib/unictype/pr_default_ignorable_code_point.c: New file.
62987         * lib/unictype/pr_deprecated.c: New file.
62988         * lib/unictype/pr_diacritic.c: New file.
62989         * lib/unictype/pr_extender.c: New file.
62990         * lib/unictype/pr_format_control.c: New file.
62991         * lib/unictype/pr_grapheme_base.c: New file.
62992         * lib/unictype/pr_grapheme_extend.c: New file.
62993         * lib/unictype/pr_grapheme_link.c: New file.
62994         * lib/unictype/pr_hex_digit.c: New file.
62995         * lib/unictype/pr_hyphen.c: New file.
62996         * lib/unictype/pr_id_continue.c: New file.
62997         * lib/unictype/pr_id_start.c: New file.
62998         * lib/unictype/pr_ideographic.c: New file.
62999         * lib/unictype/pr_ids_binary_operator.c: New file.
63000         * lib/unictype/pr_ids_trinary_operator.c: New file.
63001         * lib/unictype/pr_ignorable_control.c: New file.
63002         * lib/unictype/pr_iso_control.c: New file.
63003         * lib/unictype/pr_join_control.c: New file.
63004         * lib/unictype/pr_left_of_pair.c: New file.
63005         * lib/unictype/pr_line_separator.c: New file.
63006         * lib/unictype/pr_logical_order_exception.c: New file.
63007         * lib/unictype/pr_lowercase.c: New file.
63008         * lib/unictype/pr_math.c: New file.
63009         * lib/unictype/pr_non_break.c: New file.
63010         * lib/unictype/pr_not_a_character.c: New file.
63011         * lib/unictype/pr_numeric.c: New file.
63012         * lib/unictype/pr_other_alphabetic.c: New file.
63013         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
63014         * lib/unictype/pr_other_grapheme_extend.c: New file.
63015         * lib/unictype/pr_other_id_continue.c: New file.
63016         * lib/unictype/pr_other_id_start.c: New file.
63017         * lib/unictype/pr_other_lowercase.c: New file.
63018         * lib/unictype/pr_other_math.c: New file.
63019         * lib/unictype/pr_other_uppercase.c: New file.
63020         * lib/unictype/pr_paired_punctuation.c: New file.
63021         * lib/unictype/pr_paragraph_separator.c: New file.
63022         * lib/unictype/pr_pattern_syntax.c: New file.
63023         * lib/unictype/pr_pattern_white_space.c: New file.
63024         * lib/unictype/pr_private_use.c: New file.
63025         * lib/unictype/pr_punctuation.c: New file.
63026         * lib/unictype/pr_quotation_mark.c: New file.
63027         * lib/unictype/pr_radical.c: New file.
63028         * lib/unictype/pr_sentence_terminal.c: New file.
63029         * lib/unictype/pr_soft_dotted.c: New file.
63030         * lib/unictype/pr_space.c: New file.
63031         * lib/unictype/pr_terminal_punctuation.c: New file.
63032         * lib/unictype/pr_test.c: New file.
63033         * lib/unictype/pr_titlecase.c: New file.
63034         * lib/unictype/pr_unassigned_code_value.c: New file.
63035         * lib/unictype/pr_unified_ideograph.c: New file.
63036         * lib/unictype/pr_uppercase.c: New file.
63037         * lib/unictype/pr_variation_selector.c: New file.
63038         * lib/unictype/pr_white_space.c: New file.
63039         * lib/unictype/pr_xid_continue.c: New file.
63040         * lib/unictype/pr_xid_start.c: New file.
63041         * lib/unictype/pr_zero_width.c: New file.
63042         * lib/unictype/scripts.c: New file.
63043         * lib/unictype/sy_c_ident.c: New file.
63044         * lib/unictype/sy_c_whitespace.c: New file.
63045         * lib/unictype/sy_java_ident.c: New file.
63046         * lib/unictype/sy_java_whitespace.c: New file.
63047
63048         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
63049         Unicode 5.0.0.
63050         * lib/unictype/blocks.h: Likewise.
63051         * lib/unictype/categ_C.h: Likewise.
63052         * lib/unictype/categ_Cc.h: Likewise.
63053         * lib/unictype/categ_Cf.h: Likewise.
63054         * lib/unictype/categ_Cn.h: Likewise.
63055         * lib/unictype/categ_Co.h: Likewise.
63056         * lib/unictype/categ_Cs.h: Likewise.
63057         * lib/unictype/categ_L.h: Likewise.
63058         * lib/unictype/categ_Ll.h: Likewise.
63059         * lib/unictype/categ_Lm.h: Likewise.
63060         * lib/unictype/categ_Lo.h: Likewise.
63061         * lib/unictype/categ_Lt.h: Likewise.
63062         * lib/unictype/categ_Lu.h: Likewise.
63063         * lib/unictype/categ_M.h: Likewise.
63064         * lib/unictype/categ_Mc.h: Likewise.
63065         * lib/unictype/categ_Me.h: Likewise.
63066         * lib/unictype/categ_Mn.h: Likewise.
63067         * lib/unictype/categ_N.h: Likewise.
63068         * lib/unictype/categ_Nd.h: Likewise.
63069         * lib/unictype/categ_Nl.h: Likewise.
63070         * lib/unictype/categ_No.h: Likewise.
63071         * lib/unictype/categ_P.h: Likewise.
63072         * lib/unictype/categ_Pc.h: Likewise.
63073         * lib/unictype/categ_Pd.h: Likewise.
63074         * lib/unictype/categ_Pe.h: Likewise.
63075         * lib/unictype/categ_Pf.h: Likewise.
63076         * lib/unictype/categ_Pi.h: Likewise.
63077         * lib/unictype/categ_Po.h: Likewise.
63078         * lib/unictype/categ_Ps.h: Likewise.
63079         * lib/unictype/categ_S.h: Likewise.
63080         * lib/unictype/categ_Sc.h: Likewise.
63081         * lib/unictype/categ_Sk.h: Likewise.
63082         * lib/unictype/categ_Sm.h: Likewise.
63083         * lib/unictype/categ_So.h: Likewise.
63084         * lib/unictype/categ_Z.h: Likewise.
63085         * lib/unictype/categ_Zl.h: Likewise.
63086         * lib/unictype/categ_Zp.h: Likewise.
63087         * lib/unictype/categ_Zs.h: Likewise.
63088         * lib/unictype/categ_of.h: Likewise.
63089         * lib/unictype/combining.h: Likewise.
63090         * lib/unictype/ctype_alnum.h: Likewise.
63091         * lib/unictype/ctype_alpha.h: Likewise.
63092         * lib/unictype/ctype_blank.h: Likewise.
63093         * lib/unictype/ctype_cntrl.h: Likewise.
63094         * lib/unictype/ctype_digit.h: Likewise.
63095         * lib/unictype/ctype_graph.h: Likewise.
63096         * lib/unictype/ctype_lower.h: Likewise.
63097         * lib/unictype/ctype_print.h: Likewise.
63098         * lib/unictype/ctype_punct.h: Likewise.
63099         * lib/unictype/ctype_space.h: Likewise.
63100         * lib/unictype/ctype_upper.h: Likewise.
63101         * lib/unictype/ctype_xdigit.h: Likewise.
63102         * lib/unictype/decdigit.h: Likewise.
63103         * lib/unictype/digit.h: Likewise.
63104         * lib/unictype/mirror.h: Likewise.
63105         * lib/unictype/numeric.h: Likewise.
63106         * lib/unictype/pr_alphabetic.h: Likewise.
63107         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
63108         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
63109         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
63110         * lib/unictype/pr_bidi_block_separator.h: Likewise.
63111         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
63112         * lib/unictype/pr_bidi_common_separator.h: Likewise.
63113         * lib/unictype/pr_bidi_control.h: Likewise.
63114         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
63115         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
63116         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
63117         * lib/unictype/pr_bidi_european_digit.h: Likewise.
63118         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
63119         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
63120         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
63121         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
63122         * lib/unictype/pr_bidi_pdf.h: Likewise.
63123         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
63124         * lib/unictype/pr_bidi_whitespace.h: Likewise.
63125         * lib/unictype/pr_combining.h: Likewise.
63126         * lib/unictype/pr_composite.h: Likewise.
63127         * lib/unictype/pr_currency_symbol.h: Likewise.
63128         * lib/unictype/pr_dash.h: Likewise.
63129         * lib/unictype/pr_decimal_digit.h: Likewise.
63130         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
63131         * lib/unictype/pr_deprecated.h: Likewise.
63132         * lib/unictype/pr_diacritic.h: Likewise.
63133         * lib/unictype/pr_extender.h: Likewise.
63134         * lib/unictype/pr_format_control.h: Likewise.
63135         * lib/unictype/pr_grapheme_base.h: Likewise.
63136         * lib/unictype/pr_grapheme_extend.h: Likewise.
63137         * lib/unictype/pr_grapheme_link.h: Likewise.
63138         * lib/unictype/pr_hex_digit.h: Likewise.
63139         * lib/unictype/pr_hyphen.h: Likewise.
63140         * lib/unictype/pr_id_continue.h: Likewise.
63141         * lib/unictype/pr_id_start.h: Likewise.
63142         * lib/unictype/pr_ideographic.h: Likewise.
63143         * lib/unictype/pr_ids_binary_operator.h: Likewise.
63144         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
63145         * lib/unictype/pr_ignorable_control.h: Likewise.
63146         * lib/unictype/pr_iso_control.h: Likewise.
63147         * lib/unictype/pr_join_control.h: Likewise.
63148         * lib/unictype/pr_left_of_pair.h: Likewise.
63149         * lib/unictype/pr_line_separator.h: Likewise.
63150         * lib/unictype/pr_logical_order_exception.h: Likewise.
63151         * lib/unictype/pr_lowercase.h: Likewise.
63152         * lib/unictype/pr_math.h: Likewise.
63153         * lib/unictype/pr_non_break.h: Likewise.
63154         * lib/unictype/pr_not_a_character.h: Likewise.
63155         * lib/unictype/pr_numeric.h: Likewise.
63156         * lib/unictype/pr_other_alphabetic.h: Likewise.
63157         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
63158         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
63159         * lib/unictype/pr_other_id_continue.h: Likewise.
63160         * lib/unictype/pr_other_id_start.h: Likewise.
63161         * lib/unictype/pr_other_lowercase.h: Likewise.
63162         * lib/unictype/pr_other_math.h: Likewise.
63163         * lib/unictype/pr_other_uppercase.h: Likewise.
63164         * lib/unictype/pr_paired_punctuation.h: Likewise.
63165         * lib/unictype/pr_paragraph_separator.h: Likewise.
63166         * lib/unictype/pr_pattern_syntax.h: Likewise.
63167         * lib/unictype/pr_pattern_white_space.h: Likewise.
63168         * lib/unictype/pr_private_use.h: Likewise.
63169         * lib/unictype/pr_punctuation.h: Likewise.
63170         * lib/unictype/pr_quotation_mark.h: Likewise.
63171         * lib/unictype/pr_radical.h: Likewise.
63172         * lib/unictype/pr_sentence_terminal.h: Likewise.
63173         * lib/unictype/pr_soft_dotted.h: Likewise.
63174         * lib/unictype/pr_space.h: Likewise.
63175         * lib/unictype/pr_terminal_punctuation.h: Likewise.
63176         * lib/unictype/pr_titlecase.h: Likewise.
63177         * lib/unictype/pr_unassigned_code_value.h: Likewise.
63178         * lib/unictype/pr_unified_ideograph.h: Likewise.
63179         * lib/unictype/pr_uppercase.h: Likewise.
63180         * lib/unictype/pr_variation_selector.h: Likewise.
63181         * lib/unictype/pr_white_space.h: Likewise.
63182         * lib/unictype/pr_xid_continue.h: Likewise.
63183         * lib/unictype/pr_xid_start.h: Likewise.
63184         * lib/unictype/pr_zero_width.h: Likewise.
63185         * lib/unictype/scripts.h: Likewise.
63186         * lib/unictype/scripts_byname.gperf: Likewise.
63187         * lib/unictype/sy_c_ident.h: Likewise.
63188         * lib/unictype/sy_c_whitespace.h: Likewise.
63189         * lib/unictype/sy_java_ident.h: Likewise.
63190         * lib/unictype/sy_java_whitespace.h: Likewise.
63191
63192         * lib/unictype/Makefile: New file.
63193         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
63194         glibc.
63195         * lib/unictype/3level.h: New file, copied from glibc.
63196         * lib/unictype/3levelbit.h: New file.
63197
63198 2007-11-11  Bruno Haible  <bruno@clisp.org>
63199
63200         * modules/gperf: New file.
63201         * modules/iconv_open (Depends-on): Add it.
63202         (Makefile.am): Remove the GPERF definition.
63203
63204 2007-11-11  Bruno Haible  <bruno@clisp.org>
63205
63206         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
63207         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
63208
63209 2007-11-11  Bruno Haible  <bruno@clisp.org>
63210
63211         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
63212         (usage): Remove function.
63213
63214 2007-11-11  Bruno Haible  <bruno@clisp.org>
63215
63216         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
63217         gl_FUNC_CEILF_LIBS.
63218         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
63219         gl_FUNC_CEIL_LIBS.
63220         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
63221         gl_FUNC_CEILL_LIBS.
63222         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
63223         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
63224         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
63225
63226 2007-11-11  Bruno Haible  <bruno@clisp.org>
63227
63228         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
63229         roundf were declared but do not exist on functions.
63230         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
63231         roundl were declared but do not exist on functions.
63232         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
63233         HAVE_FLOORL_AND_CEILL, respectively.
63234         Needed for Sun C on Solaris 10.
63235
63236 2007-11-11  Bruno Haible  <bruno@clisp.org>
63237
63238         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
63239         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
63240         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
63241         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
63242         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
63243         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
63244         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
63245         HAVE_DECL_ROUNDF.
63246         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
63247         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
63248         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
63249         of HAVE_DECL_ROUND*.
63250         * modules/math (Makefile.am): Update.
63251
63252 2007-11-10  Bruno Haible  <bruno@clisp.org>
63253
63254         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
63255         ptrdiff_t as m4/intl.m4.
63256
63257 2007-11-10  Jim Meyering  <meyering@redhat.com>
63258
63259         Avoid link failure for the argmatch test.
63260         * tests/test-argmatch.c (usage): Define function to avoid a link
63261         failure: argmatch_die requires a usage function.
63262
63263 2007-11-09  Bruno Haible  <bruno@clisp.org>
63264
63265         * doc/functions/snprintf.texi: Mention BeOS deficiency.
63266         * doc/functions/vsnprintf.texi: Likewise.
63267         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
63268         with a size argument < 2.
63269
63270 2007-11-09  Bruno Haible  <bruno@clisp.org>
63271
63272         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
63273         buffer. Fixes an inefficiency introduced on 2007-11-03.
63274
63275 2007-11-09  Bruno Haible  <bruno@clisp.org>
63276
63277         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
63278         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
63279
63280 2007-11-08  Jim Meyering  <meyering@redhat.com>
63281
63282         Change cache variable name prefix "jm_" to "gl_" everywhere.
63283         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
63284         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
63285         * m4/uptime.m4: s/gl_/jm_/
63286
63287 2007-11-07  Bruno Haible  <bruno@clisp.org>
63288
63289         Update to GNU gettext 0.17.
63290         * m4/intl.m4: Update to GNU gettext 0.17.
63291         * m4/po.m4: Likewise.
63292         * modules/gettext (Files): Remove m4/ulonglong.m4.
63293         (configure.ac): Require gettext infrastructure from version 0.17.
63294
63295 2007-11-06  Bruno Haible  <bruno@clisp.org>
63296
63297         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
63298         symbolic values are not defined in a public header.
63299         * lib/freadable.c (freadable) [QNX]: Likewise.
63300         * lib/freadahead.c (freadahead) [QNX]: Likewise.
63301         * lib/freading.c (freading) [QNX]: Likewise.
63302         * lib/fseterr.c (fseterr) [QNX]: Likewise.
63303         * lib/fwritable.c (fwritable) [QNX]: Likewise.
63304         * lib/fwriting.c (fwriting) [QNX]: Likewise.
63305         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
63306         Reported by Alain Magloire.
63307
63308         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
63309
63310 2007-11-05  Bruno Haible  <bruno@clisp.org>
63311
63312         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
63313         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
63314         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
63315         Reported by Eric Blake.
63316
63317 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63318             Bruno Haible  <bruno@clisp.org>
63319
63320         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
63321         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
63322         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
63323         (malloc): Undefine also before including <stdlib.h>.
63324         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
63325         Needed on OSF/1 4.0.
63326
63327 2007-11-05  Jim Meyering  <meyering@redhat.com>
63328
63329         git-version-gen: sync from coreutils.
63330         * build-aux/git-version-gen: Add comments.
63331         Change the first '-' to '.' in the snapshot version string,
63332         e.g., 6.9-377-08144 -> 6.9.377-08144
63333         Remove first parameter.
63334         Don't declare a version "-dirty" merely because a time
63335         stamp has changed.
63336
63337 2007-11-04  Bruno Haible  <bruno@clisp.org>
63338
63339         * lib/lock.h: Protect all macro definitions containing an 'if'
63340         statement through a "do { ... } while (0)".
63341         * lib/tls.h: Likewise.
63342
63343 2007-11-04  Bruno Haible  <bruno@clisp.org>
63344
63345         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
63346
63347 2007-11-04  Bruno Haible  <bruno@clisp.org>
63348
63349         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
63350         * modules/fprintf-posix (Depends-on): Add nocrash.
63351         * modules/snprintf-posix (Depends-on): Likewise.
63352         * modules/sprintf-posix (Depends-on): Likewise.
63353         * modules/vasnprintf-posix (Depends-on): Likewise.
63354         * modules/vasprintf-posix (Depends-on): Likewise.
63355         * modules/vfprintf-posix (Depends-on): Likewise.
63356         * modules/vsnprintf-posix (Depends-on): Likewise.
63357         * modules/vsprintf-posix (Depends-on): Likewise.
63358         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63359         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63360         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63361         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63362         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63363         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63364         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63365
63366 2007-11-04  Bruno Haible  <bruno@clisp.org>
63367
63368         * modules/nocrash: New file.
63369         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
63370         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
63371
63372 2007-11-04  Bruno Haible  <bruno@clisp.org>
63373
63374         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
63375         precision handling.
63376         * tests/test-vasprintf-posix.c (test_function): Likewise.
63377         * tests/test-snprintf-posix.h (test_function): Likewise.
63378         * tests/test-sprintf-posix.h (test_function): Likewise.
63379
63380         Fix *printf behaviour for large precisions on mingw and BeOS.
63381         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
63382         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
63383         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
63384         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63385         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63386         gl_PRINTF_PRECISION and test its result. Invoke
63387         gl_PREREQ_VASNPRINTF_PRECISION.
63388         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63389         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63390         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63391         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63392         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63393         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63394         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63395         * doc/functions/fprintf.texi: Update.
63396         * doc/functions/printf.texi: Update.
63397         * doc/functions/snprintf.texi: Update.
63398         * doc/functions/sprintf.texi: Update.
63399         * doc/functions/vfprintf.texi: Update.
63400         * doc/functions/vprintf.texi: Update.
63401         * doc/functions/vsnprintf.texi: Update.
63402         * doc/functions/vsprintf.texi: Update.
63403
63404 2007-11-04  Bruno Haible  <bruno@clisp.org>
63405
63406         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
63407
63408 2007-11-04  Bruno Haible  <bruno@clisp.org>
63409
63410         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
63411         Reported by Sylvain Beucler <beuc@gnu.org>.
63412
63413 2007-11-03  Bruno Haible  <bruno@clisp.org>
63414
63415         * tests/test-fprintf-posix2.sh: New file.
63416         * tests/test-fprintf-posix2.c: New file.
63417         * modules/fprintf-posix-tests (Files): Add them.
63418         (TESTS): Add test-fprintf-posix2.sh.
63419         (configure.ac): Check for getrlimit and setrlimit.
63420         (check_PROGRAMS): Add test-fprintf-posix2.
63421
63422         * tests/test-printf-posix2.sh: New file.
63423         * tests/test-printf-posix2.c: New file.
63424         * modules/printf-posix-tests (Files): Add them.
63425         (TESTS): Add test-printf-posix2.sh.
63426         (configure.ac): Check for getrlimit and setrlimit.
63427         (check_PROGRAMS): Add test-printf-posix2.
63428
63429         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
63430         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
63431         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
63432         (decode_double): New function, copied from decode_long_double.
63433         (scale10_round_decimal_decoded): New function, extracted from
63434         scale10_round_decimal_long_double.
63435         (scale10_round_decimal_long_double): Use it.
63436         (scale10_round_decimal_double): New function.
63437         (floorlog10): New function.
63438         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
63439         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
63440         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63441         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63442         gl_PRINTF_ENOMEM and test its result. Invoke
63443         gl_PREREQ_VASNPRINTF_ENOMEM.
63444         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63445         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63446         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63447         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63448         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63449         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63450         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63451         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
63452         * modules/snprintf-posix (Depends-on): Likewise.
63453         * modules/sprintf-posix (Depends-on): Likewise.
63454         * modules/vasnprintf-posix (Depends-on): Likewise.
63455         * modules/vasprintf-posix (Depends-on): Likewise.
63456         * modules/vfprintf-posix (Depends-on): Likewise.
63457         * modules/vsnprintf-posix (Depends-on): Likewise.
63458         * modules/vsprintf-posix (Depends-on): Likewise.
63459         * doc/functions/fprintf.texi: Update.
63460         * doc/functions/printf.texi: Update.
63461         * doc/functions/snprintf.texi: Update.
63462         * doc/functions/sprintf.texi: Update.
63463         * doc/functions/vfprintf.texi: Update.
63464         * doc/functions/vprintf.texi: Update.
63465         * doc/functions/vsnprintf.texi: Update.
63466         * doc/functions/vsprintf.texi: Update.
63467
63468 2007-11-03  Bruno Haible  <bruno@clisp.org>
63469
63470         * modules/frexp-nolibm-tests: New file.
63471
63472         * modules/frexp-nolibm: New file.
63473         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
63474
63475 2007-11-03  Bruno Haible  <bruno@clisp.org>
63476
63477         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
63478         value is C99 compliant.
63479         Needed for OSF/1 5.1.
63480
63481 2007-11-03  Bruno Haible  <bruno@clisp.org>
63482
63483         Fix out-of-memory handling of vasnprintf.
63484         * lib/printf-parse.c: Include <errno.h>.
63485         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
63486         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
63487         is already set.
63488
63489 2007-11-02  Eric Blake  <ebb9@byu.net>
63490
63491         Fix tests on cygwin.
63492         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
63493
63494 2007-11-01  Bruno Haible  <bruno@clisp.org>
63495
63496         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
63497         warning.
63498         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
63499         needed for POSIX compatibility.
63500
63501 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63502
63503         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
63504         for compatibility with GNU.
63505
63506 2007-11-01  Bruno Haible  <bruno@clisp.org>
63507
63508         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
63509         (putenv): Renamed from rpl_putenv. Change argument type from
63510         'const char *' to 'char *'.
63511         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
63512         of defining putenv in config.h, just set REPLACE_PUTENV.
63513         * modules/putenv (Depends-on): Add stdlib.
63514         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63515         (Include): Use <stdlib.h>.
63516         * lib/stdlib.in.h (putenv): New declaration.
63517         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
63518         REPLACE_PUTENV.
63519         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
63520         REPLACE_PUTENV.
63521         Needed for MacOS X 10.5.0.
63522         Reported by Peter O'Gorman <peter@pogma.com>.
63523
63524 2007-11-01  Jim Meyering  <meyering@redhat.com>
63525
63526         Treat an empty date string exactly like "0".
63527         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
63528         if the remaining date string (to be parsed) is empty, use "0".
63529         Reported by Mischa Molhoek and discussed in this thread:
63530         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
63531
63532 2007-10-31  Bruno Haible  <bruno@clisp.org>
63533
63534         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
63535         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
63536         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
63537         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
63538         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
63539         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
63540
63541 2007-10-31  Bruno Haible  <bruno@clisp.org>
63542
63543         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
63544         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
63545         (AC_TYPE_LONG_LONG_INT): Use it.
63546         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
63547         it as well.
63548         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
63549         to m4/longlong.m4.
63550         * modules/stdint (Files): Remove m4/ulonglong.m4.
63551         * modules/strtoull (Files): Use m4/longlong.m4 instead of
63552         m4/ulonglong.m4.
63553         * modules/strtoumax (Files): Likewise.
63554
63555 2007-10-30  Bruno Haible  <bruno@clisp.org>
63556
63557         * modules/xvasprintf-posix: New file.
63558         Suggested by Eric Blake.
63559
63560 2007-10-30  Bruno Haible  <bruno@clisp.org>
63561
63562         * modules/xprintf-posix-tests: New file.
63563         * tests/test-xprintf-posix.sh: New file.
63564         * tests/test-xprintf-posix.c: New file.
63565         * tests/test-xfprintf-posix.c: New file.
63566
63567         * modules/xprintf-posix: New file.
63568
63569 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63570
63571         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
63572         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
63573         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
63574
63575 2007-10-29  Bruno Haible  <bruno@clisp.org>
63576
63577         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
63578         contain the special marker '_cv_'.
63579         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
63580         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
63581         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
63582         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
63583         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
63584         Reported by Ralf Wildenhues.
63585
63586 2007-10-29  Bruno Haible  <bruno@clisp.org>
63587
63588         * gnulib-tool (func_import): When --lgpl is not specified, set
63589         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
63590         GPLv3.
63591         Reported by Simon Josefsson.
63592
63593 2007-10-28  Bruno Haible  <bruno@clisp.org>
63594
63595         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
63596         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
63597         HAVE_DECL_ISFINITE.
63598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63599         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
63600         HAVE_DECL_ISFINITE.
63601
63602 2007-10-28  Bruno Haible  <bruno@clisp.org>
63603
63604         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
63605         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
63606
63607 2007-10-28  Bruno Haible  <bruno@clisp.org>
63608
63609         Fix link errors with Sun C 5.0 on Solaris 10.
63610         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
63611         function is declared but not present in the compiler's libm.
63612         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
63613         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
63614         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
63615         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
63616         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
63617         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
63618         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
63619         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63620         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
63621         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
63622         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
63623         HAVE_DECL_FLOORL.
63624
63625 2007-10-28  Bruno Haible  <bruno@clisp.org>
63626
63627         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
63628         gl_FUNC_FLOORL. Cache the result.
63629         (gl_FUNC_FLOORL): Use it.
63630         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
63631         gl_FUNC_CEILL. Cache the result.
63632         (gl_FUNC_CEILL): Use it.
63633
63634         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
63635         gl_FUNC_FLOOR. Cache the result.
63636         (gl_FUNC_FLOOR): Use it.
63637         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
63638         gl_FUNC_CEIL. Cache the result.
63639         (gl_FUNC_CEIL): Use it.
63640
63641         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
63642         gl_FUNC_FLOORF. Cache the result.
63643         (gl_FUNC_FLOORF): Use it.
63644         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
63645         gl_FUNC_CEILF. Cache the result.
63646         (gl_FUNC_CEILF): Use it.
63647
63648 2007-10-28  Bruno Haible  <bruno@clisp.org>
63649
63650         * gnulib-tool: Allow specifying the LGPL version number through
63651         --lgpl=2 or --lgpl=3.
63652         (func_usage): Document --lgpl with argument.
63653         Handle --lgpl=... arguments.
63654         (func_import): Recognize also gl_LGPL calls with an argument. When
63655         --lgpl=2 is used and the module's license is just LGPL, report an
63656         error. Set sed_transform_lib_file according to the lgpl variable. In
63657         the generated files, use --lgpl or gl_LGPL invocations with argument,
63658         if necessary.
63659         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
63660         an LGPv2+ license.
63661         * doc/gnulib-tool.texi (Modified imports): Update explanation of
63662         gl_LGPL macro.
63663
63664 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63665             Bruno Haible  <bruno@clisp.org>
63666
63667         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
63668         (u16_uctomb_aux): Likewise.
63669         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
63670         !HAVE_INLINE.
63671         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
63672
63673 2007-10-28  Bruno Haible  <bruno@clisp.org>
63674
63675         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
63676         Invoke AM_GETTEXT_OPTION if it exists.
63677         * modules/vasprintf: Likewise.
63678         * modules/verror: Likewise.
63679         * modules/xprintf: Likewise.
63680         * modules/xvasprintf: Likewise.
63681
63682 2007-10-27  Ben Pfaff  <blp@gnu.org>
63683
63684         * lib/math.in.h: Define isfinite macro and prototypes for
63685         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
63686         implementations.
63687         * m4/math_h.m4: New substitutions for isfinite module.
63688         * lib/isfinite.c: New file.
63689         * m4/isfinite.m4: New file.
63690         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
63691         * modules/isfinite: New file.
63692         * modules/isfinite-tests: New file.
63693         * tests/tests-isfinite.c: New file.
63694         * doc/functions/isfinite.texi: Mention isfinite module.
63695         * MODULES.html.sh: Mention new module.
63696
63697 2007-10-27  Ben Pfaff  <blp@gnu.org>
63698
63699         Ralf Wildenhues reported that Tru64 4.0D declares the round
63700         functions but does not have definitions.
63701         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
63702         cannot be found in any library, set the output variable to
63703         "missing" instead of "".
63704         * m4/round.m4: Also use our substitute if we cannot find round in
63705         any library, even if it is declared.
63706         * m4/roundf.m4: Likewise for roundf.
63707         * m4/roundl.m4: Likewise for roundl.
63708         * lib/math.in.h: Undefine roundf, round, roundl before defining
63709         their replacements, to allow for hypothetical systems where these
63710         may be defined as macros but not available in libraries.
63711
63712 2007-10-27  Bruno Haible  <bruno@clisp.org>
63713
63714         * doc/gnulib.texi: Invoke @firstparagraphindent.
63715         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
63716         changes in gnulib.
63717         (Source changes): New section.
63718
63719 2007-10-26  Bruno Haible  <bruno@clisp.org>
63720
63721         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
63722         borrowed from autoconf.
63723
63724 2007-10-26  Bruno Haible  <bruno@clisp.org>
63725
63726         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
63727         strerror returned the empty string. Needed on HP-UX 11.00.
63728
63729 2007-10-24  Micah Cowan  <micah@cowan.name>
63730
63731         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
63732         * build-aux/bootstrap: Remove support for now-unnecessary option,
63733         --cvs-user, and envvars CVS_USER, CVS_RSH.
63734
63735 2007-10-24  Jim Meyering  <meyering@redhat.com>
63736
63737         Avoid diagnostics from sha1sum when there is no cached checksum.
63738         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
63739         if the po.s1 file hasn't been created yet.
63740
63741         * build-aux/bootstrap: Sync from coreutils:
63742         2007-10-24  Jim Meyering  <meyering@redhat.com>
63743         Get gnulib from the git repository, not from an obsolete cvs one.
63744         * build-aux/bootstrap: Suggestion from Micah Cowan.
63745         2007-10-04  Jim Meyering  <jim@meyering.net>
63746         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
63747         (update_po_files): Work also when there are no .po files in po/.
63748
63749 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63750
63751         * README: Append ".git" to git and cg examples.
63752         Problem reported by Benoit Sigoure.
63753
63754 2007-10-23  Micah Cowan  <micah@cowan.name>
63755
63756         * users.txt: Add wget.
63757
63758 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63759
63760         Fix linking of some unistdio tests on FreeBSD.
63761         * modules/unistdio/u16-vsnprintf-tests
63762         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
63763         * modules/unistdio/u16-vsprintf-tests
63764         (test_u16_vsnprintf1_LDADD): Likewise.
63765         * modules/unistdio/u32-vsnprintf-tests
63766         (test_u32_vsnprintf1_LDADD): Likewise.
63767         * modules/unistdio/u32-vsprintf-tests
63768         (test_u32_vsprintf1_LDADD): Likewise.
63769         * modules/unistdio/u8-vsnprintf-tests
63770         (test_u8_vsnprintf1_LDADD): Likewise.
63771         * modules/unistdio/u8-vsprintf-tests
63772         (test_u8_vsprintf1_LDADD): Likewise.
63773         * modules/unistdio/ulc-vsnprintf-tests
63774         (test_ulc_vsnprintf1_LDADD): Likewise.
63775         * modules/unistdio/ulc-vsprintf-tests
63776         (test_ulc_vsprintf1_LDADD): Likewise.
63777
63778         Fix linking of some uniconv tests on FreeBSD.
63779         * modules/uniconv/u16-conv-from-enc-tests
63780         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
63781         * modules/uniconv/u16-conv-to-enc-tests
63782         (test_u16_conv_to_enc_LDADD): Likewise.
63783         * modules/uniconv/u16-strconv-from-enc-tests
63784         (test_u16_strconv_from_enc_LDADD): Likewise.
63785         * modules/uniconv/u16-strconv-to-enc-tests
63786         (test_u16_strconv_to_enc_LDADD): Likewise.
63787         * modules/uniconv/u32-conv-from-enc-tests
63788         (test_u32_conv_from_enc_LDADD): Likewise.
63789         * modules/uniconv/u32-conv-to-enc-tests
63790         (test_u32_conv_to_enc_LDADD): Likewise.
63791         * modules/uniconv/u32-strconv-from-enc-tests
63792         (test_u32_strconv_from_enc_LDADD): Likewise.
63793         * modules/uniconv/u32-strconv-to-enc-tests
63794         (test_u32_strconv_to_enc_LDADD): Likewise.
63795         * modules/uniconv/u8-conv-from-enc-tests
63796         (test_u8_conv_from_enc_LDADD): Likewise.
63797         * modules/uniconv/u8-conv-to-enc-tests
63798         (test_u8_conv_to_enc_LDADD): Likewise.
63799         * modules/uniconv/u8-strconv-from-enc-tests
63800         (test_u8_strconv_from_enc_LDADD): Likewise.
63801         * modules/uniconv/u8-strconv-to-enc-tests
63802         (test_u8_strconv_to_enc_LDADD): Likewise.
63803
63804 2007-10-22  Bruno Haible  <bruno@clisp.org>
63805
63806         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
63807         size.
63808
63809 2007-10-22  Eric Blake  <ebb9@byu.net>
63810
63811         Tweak x*printf documentation.
63812         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
63813         variable name and comments.
63814         Suggested by Bruno Haible.
63815
63816 2007-10-22  Bruno Haible  <bruno@clisp.org>
63817
63818         * lib/acl.c (copy_acl): Fix file name in comment.
63819
63820 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63821
63822         Fix Tru64 problem with stdbool.h.
63823         * lib/stdbool.in.h (false, true):
63824         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
63825         Don't declare as an enum in this situation; it runs afoul of Tru64.
63826         Problem reported by Steven M. Schweda in
63827         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
63828
63829 2007-10-22  Eric Blake  <ebb9@byu.net>
63830
63831         Also wrap vf?printf.
63832         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
63833         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
63834         (xvprintf, xvfprintf): New functions.
63835
63836 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63837
63838         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
63839         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
63840
63841         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
63842         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
63843
63844 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63845
63846         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
63847         by Bruno Haible.
63848
63849 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63850
63851         * lib/getloadavg.c
63852         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
63853         Undef `sys' after including sys/table.h, for Tru64 4.0D.
63854
63855         * tests/test-i-ring.c: Work for C89.
63856
63857 2007-10-22  Bruno Haible  <bruno@clisp.org>
63858
63859         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
63860         -1u, in preprocessor expression, so that we don't test for the bug
63861         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
63862         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
63863
63864 2007-10-22  Eric Blake  <ebb9@byu.net>
63865
63866         * tests/test-yesno.sh: Silence stderr during test.
63867
63868 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63869
63870         * modules/crypto/gc-camellia: New file.
63871
63872         * m4/gc-camellia.m4: New file.
63873
63874         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
63875
63876         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
63877
63878 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63879
63880         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
63881         --help to stdout.  Reported by sms@antinode.org (Steven
63882         M. Schweda).
63883
63884 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63885
63886         * users.txt: Fix link to libksba.
63887
63888 2007-10-21  Ben Pfaff  <blp@gnu.org>
63889
63890         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
63891         round.c roundf implementation that depends on floorf and ceilf to
63892         be tested unconditionally.
63893
63894 2007-10-21  Ben Pfaff  <blp@gnu.org>
63895
63896         * m4/check-libm-func.m4: Removed.
63897         * m4/check-math-lib.m4: New file.
63898         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
63899         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
63900         definition and lack of AC_LIBOBJ([roundf]).
63901         * m4/roundl.m4: Ditto, and similarly for roundl.
63902         * modules/round: Reference new m4 file.
63903         * modules/roundf: Ditto.
63904         * modules/roundl: Ditto.
63905         * tests/test-round2.c (main): Use ROUND instead of round.
63906         Bug report from Bruno Haible.
63907
63908 2007-10-21  Bruno Haible  <bruno@clisp.org>
63909
63910         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
63911         context.
63912
63913 2007-10-21  Bruno Haible  <bruno@clisp.org>
63914
63915         * tests/test-wcwidth.c (main): Allow negative result for some control
63916         characters.
63917
63918         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
63919         Needed on OSF/1 5.1.
63920
63921 2007-10-21  Bruno Haible  <bruno@clisp.org>
63922
63923         * tests/test-floorf1.c: Include isnanf.h.
63924         (main): Use isnanf() instead of isnan().
63925         * tests/test-ceilf1.c: Include isnanf.h.
63926         (main): Use isnanf() instead of isnan().
63927         * tests/test-truncf1.c: Include isnanf.h.
63928         (main): Use isnanf() instead of isnan().
63929         * tests/test-roundf1.c: Include isnanf.h.
63930         (main): Use isnanf() instead of isnan().
63931
63932 2007-10-21  Eric Blake  <ebb9@byu.net>
63933
63934         * users.txt: Update URL for m4.
63935
63936 2007-10-21  Bruno Haible  <bruno@clisp.org>
63937
63938         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
63939
63940 2007-10-21  Bruno Haible  <bruno@clisp.org>
63941
63942         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
63943         Git's management files if the CVS files are not present.
63944
63945 2007-10-20  Bruno Haible  <bruno@clisp.org>
63946
63947         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
63948         gcc-3.4.x.
63949
63950 2007-10-20  Ben Pfaff  <blp@gnu.org>
63951
63952         * lib/math.in.h: Declare round, roundf, roundl if we are providing
63953         implementations.
63954         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
63955         * lib/round.c: New file.
63956         * lib/roundf.c: New file.
63957         * lib/roundl.c: New file.
63958         * m4/round.m4: New file.
63959         * m4/roundf.m4: New file.
63960         * m4/roundl.m4: New file.
63961         * m4/check-libm-func-m4: New file.
63962         * modules/math: Replace round, roundf, roundl related @VARS@ in
63963         math.in.h.
63964         * modules/round: New file.
63965         * modules/round-tests: New file.
63966         * modules/roundf: New file.
63967         * modules/roundf-tests: New file.
63968         * modules/roundl: New file.
63969         * modules/roundl-tests: New file.
63970         * tests/test-round1.c: New file.
63971         * tests/test-round2.c: New file.
63972         * tests/test-roundf1.c: New file.
63973         * tests/test-roundf2.c: New file.
63974         * tests/test-roundl.c: New file.
63975         * doc/functions/round.texi: Mention round module.
63976         * doc/functions/roundf.texi: Mention roundf module.
63977         * doc/functions/roundl.texi: Mention roundl module.
63978         * MODULES.html.sh: Mention new modules.
63979         Thanks to Bruno Haible for suggestions.
63980
63981 2007-10-20  Jim Meyering  <meyering@redhat.com>
63982
63983         * lib/xprintf.c: Include <config.h> unconditionally.
63984
63985         Change xprintf's license to GPL.
63986         * modules/xprintf (License): s/LGPL/GPL/, since this module
63987         depends on modules (exit and exitfail) which are GPL.
63988         Suggestion from Bruno Haible.
63989
63990         xprintf fixes.
63991         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
63992         Use a clearer diagnostic.
63993         Patch from Bruno Haible.
63994
63995 2007-10-20  Bruno Haible  <bruno@clisp.org>
63996
63997         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
63998         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
63999         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64000
64001 2007-10-20  Bruno Haible  <bruno@clisp.org>
64002
64003         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
64004         precision in the comparison result > x - 1 or similar.
64005         * tests/test-ceilf2.c (correct_result_p): Likewise.
64006         * tests/test-truncf2.c (correct_result_p): Likewise.
64007         * tests/test-trunc2.c (correct_result_p): Likewise.
64008         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64009
64010 2007-10-20  Bruno Haible  <bruno@clisp.org>
64011
64012         * modules/ceil: New file.
64013         * m4/ceil.m4: New file.
64014         * doc/functions/ceil.texi: Mention the 'ceil' module.
64015
64016 2007-10-20  Bruno Haible  <bruno@clisp.org>
64017
64018         * modules/floor: New file.
64019         * m4/floor.m4: New file.
64020         * doc/functions/floor.texi: Mention the 'floor' module.
64021
64022 2007-10-20  Bruno Haible  <bruno@clisp.org>
64023
64024         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
64025         of %a.
64026         * modules/floorf-tests (Depends-on): Likewise.
64027         * modules/truncf-tests (Depends-on): Likewise.
64028         * modules/trunc-tests (Depends-on): Likewise.
64029         Reported by Ben Pfaff.
64030
64031 2007-10-19  Jim Meyering  <meyering@redhat.com>
64032
64033         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
64034         Don't bother testing specific errno values.  Just test ferror.
64035
64036         New module: xprintf
64037         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
64038
64039 2007-10-19  Bruno Haible  <bruno@clisp.org>
64040
64041         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
64042         syntax.
64043         * modules/javaexec (Makefile.am): Likewise.
64044         * modules/relocatable-prog (Makefile.am): Likewise.
64045         Suggested by Jim Meyering.
64046
64047 2007-10-18  Bruno Haible  <bruno@clisp.org>
64048
64049         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
64050         Reported by Jim Meyering.
64051
64052 2007-10-18  Eric Blake  <ebb9@byu.net>
64053
64054         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
64055
64056 2007-10-18  Bruno Haible  <bruno@clisp.org>
64057
64058         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
64059         the format string into writable memory. Needed in Fortify conditions.
64060
64061 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
64062             Bruno Haible  <bruno@clisp.org>
64063
64064         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
64065         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
64066         * modules/trim (Depends-on): Add mbchar.
64067         (configure.ac): Add gl_FUNC_MBRTOWC.
64068         (Makefile.am): Augment lib_SOURCES.
64069
64070 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64071
64072         Modify glob.c to use fstatat and dirfd, to simplify it.
64073         Suggested by Eric Blake.
64074         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
64075         Don't include <stdbool.h>; not used.
64076         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
64077         (link_exists_p): Simplify implementation, since we can now assume
64078         dirfd and fstatat.
64079         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
64080
64081 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64082
64083         * gnulib-tool (func_get_dependencies): Fix sed script to
64084         match only tests.
64085
64086 2007-10-17  Bruno Haible  <bruno@clisp.org>
64087
64088         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
64089         allow locale names without encoding suffix.
64090         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
64091         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64092
64093 2007-10-16  Bruno Haible  <bruno@clisp.org>
64094
64095         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
64096         * lib/getgroups.c (getgroups): Likewise.
64097         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
64098
64099 2007-10-16  Bruno Haible  <bruno@clisp.org>
64100
64101         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
64102         * modules/malloc-posix (License): Likewise.
64103         * modules/realloc-posix (License): Likewise.
64104         * modules/calloc-posix (License): Likewise.
64105         * modules/intprops (License): Change from GPL to LGPL, with
64106         Paul Eggert's approval.
64107
64108 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64109
64110         Merge glibc changes into lib/glob.c.
64111
64112         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
64113         2007-10-15 04:59:03 UTC.  Here are the changes:
64114
64115         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
64116
64117         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
64118
64119         * lib/glob.c: Add some branch prediction throughout.
64120
64121         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
64122
64123         [BZ #5103]
64124         * lib/glob.c (glob): Recognize patterns starting \/.
64125
64126         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
64127
64128         [BZ #3996]
64129         * lib/glob.c (attribute_hidden): Define if not defined.
64130         (glob): Unescape dirname, filename or username when needed and not
64131         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
64132         is NULL.  Handle unescaped [ in pattern without closing ].
64133         Don't pass GLOB_CHECK down to recursive glob for directories.
64134         (__glob_pattern_type): New function.
64135         (__glob_pattern_p): Implement using __glob_pattern_type.
64136         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
64137         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
64138         Remove unreachable code.
64139
64140         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
64141
64142         * lib/glob.c (glob_in_dir): Add some comments and asserts to
64143         explain why there are no leaks.
64144
64145         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
64146
64147         [BZ #3253]
64148         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
64149         time, rather allocate increasingly bigger arrays of pointers, if
64150         possible with alloca, if too large with malloc.
64151
64152 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64153
64154         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
64155         Problem reported by H.Merijn Brand in
64156         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
64157         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
64158         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
64159
64160 2007-10-15  Bruno Haible  <bruno@clisp.org>
64161
64162         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
64163         with explicit rpl_ prefix.
64164         * lib/fopen.c (fopen): Likewise.
64165         * lib/freopen.c (freopen): Likewise.
64166         * lib/iconv.c (iconv): Likewise.
64167         * lib/iconv_close.c (iconv_close): Likewise.
64168
64169 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64170
64171         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
64172
64173 2007-10-15  Bruno Haible  <bruno@clisp.org>
64174
64175         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
64176         <stddef.h> instead of <stdlib.h> since we only need NULL.
64177         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64178
64179 2007-10-15  Bruno Haible  <bruno@clisp.org>
64180
64181         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
64182         Replace paragraph talking about LIBOBJS.
64183         Reported by Colin Watson <cjwatson@debian.org>.
64184
64185 2007-10-15  Bruno Haible  <bruno@clisp.org>
64186
64187         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
64188         <stdlib.h> before using NULL.
64189
64190 2007-10-15  Simon Josefsson  <simon@josefsson.org>
64191
64192         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
64193         Reported by Albert Chin <china@thewrittenword.com>.
64194
64195 2007-10-14  Bruno Haible  <bruno@clisp.org>
64196
64197         * modules/iconv_open-utf-tests: New file.
64198         * tests/test-iconv-utf.c: New file.
64199
64200         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
64201         * modules/iconv_open-utf: New file.
64202         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
64203         (iconv, iconv_close): New declarations.
64204         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
64205         be defined.
64206         (iconv_open): Add special handling of conversion between UTF-8 and
64207         UTF-{16,32}{BE,LE}.
64208         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
64209         * lib/iconv_close.c: New file.
64210         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
64211         gl_FUNC_ICONV_OPEN.
64212         (gl_FUNC_ICONV_OPEN): Use it.
64213         (gl_FUNC_ICONV_OPEN_UTF): New macro.
64214         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
64215         and REPLACE_ICONV_UTF.
64216         * modules/iconv_open (Depends-on): Add c-strcase.
64217         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
64218         ICONV_CONST.
64219         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
64220
64221 2007-10-13  Albert Chin  <china@thewrittenword.com>
64222             Bruno Haible  <bruno@clisp.org>
64223
64224         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
64225         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
64226
64227 2007-10-13  Bruno Haible  <bruno@clisp.org>
64228
64229         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
64230         defined, use the ISO C99 inline semantics.
64231         * lib/argp.h (ARGP_EI): Likewise.
64232
64233 2007-10-13  Bruno Haible  <bruno@clisp.org>
64234
64235         Handle 'inline' change in gcc 4.3.0.
64236         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
64237         argp_fmtstream_write, argp_fmtstream_set_lmargin,
64238         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
64239         argp_fmtstream_point): Disable 'extern' declaration if the function
64240         definition is going to be provided inline.
64241         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
64242         semantics, not the ISO C99 inline semantics.
64243         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
64244         'extern' declaration if the function definition is going to be provided
64245         inline.
64246         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
64247         the GNU C inline semantics, not the ISO C99 inline semantics. With
64248         GCC 4.2, avoid a warning.
64249
64250 2007-10-13  Bruno Haible  <bruno@clisp.org>
64251
64252         * lib/freading.h (freading): Enable the use of __freading for
64253         glibc >= 2.7.
64254         * lib/freading.c (freading): Likewise.
64255
64256 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64257
64258         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
64259         "warning: C99 inline functions are not supported; using GNU89".
64260
64261 2007-10-12  Bruno Haible  <bruno@clisp.org>
64262
64263         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
64264         of 2.
64265         * tests/test-ceilf2.c: New file.
64266         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
64267
64268         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
64269         * modules/ceilf-tests: Update.
64270
64271 2007-10-12  Bruno Haible  <bruno@clisp.org>
64272
64273         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
64274         of 2.
64275         * tests/test-floorf2.c: New file.
64276         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
64277
64278         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
64279         * modules/floorf-tests: Update.
64280
64281 2007-10-12  Bruno Haible  <bruno@clisp.org>
64282
64283         * tests/test-trunc2.c: New file.
64284         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
64285
64286         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
64287         * modules/trunc-tests: Update.
64288
64289 2007-10-12  Bruno Haible  <bruno@clisp.org>
64290
64291         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
64292         of 2.
64293         * tests/test-truncf2.c: New file.
64294         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
64295
64296         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
64297         * modules/truncf-tests: Update.
64298
64299 2007-10-11  Eric Blake  <ebb9@byu.net>
64300
64301         Don't claim strerror is broken on Interix.
64302         * doc/functions/strerror.texi (strerror): Known broken systems are
64303         now Solaris 8, and not Interix.
64304         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
64305         Interix on cross-compile.
64306         Reported by Martin Koeppe in
64307         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
64308
64309 2007-10-11  Bruno Haible  <bruno@clisp.org>
64310
64311         * modules/i-ring-tests: New file.
64312         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
64313         instead of assert.
64314
64315 2007-10-11  Bruno Haible  <bruno@clisp.org>
64316
64317         * modules/filenamecat-tests: New file.
64318         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
64319         * lib/filenamecat.c: Remove test code.
64320
64321 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64322
64323         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
64324
64325         * lib/strerror.c: Include <string.h> always, to test interface,
64326         and to remove the need for the dummy.
64327         Include intprops.h to compute width instead of doing it ourselves
64328         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
64329         (strerror): Define it to return NULL if there's no system strerror.
64330         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
64331         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
64332         ancient pre-strerror Unix systems well any more.  Saying "unknown
64333         system error" is enough.
64334         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
64335         simpler strerror.c implementation.
64336         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
64337         Simplify the tests to reflect the simpler strerror implementation.
64338         * modules/strerror (Depends-on): Add intprops.
64339
64340 2007-10-09  Eric Blake  <ebb9@byu.net>
64341
64342         Silence test-fpending.
64343         * modules/fpending-tests (Files): Add wrapper script.
64344         * tests/test-fpending.sh: New file.
64345
64346 2007-10-09  Bruno Haible  <bruno@clisp.org>
64347
64348         * MODULES.html.sh (func_module): Don't create a hyperlink for
64349         function names like 'printf_frexp'.
64350         (Misc): Add crc, memxor.
64351         (Characteristics of floating types): New section.
64352         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
64353         isnanf-nolibm, signbit, trunc, truncf, truncl.
64354         (Enhancements for ISO C 99 functions): New subsection Input/output.
64355         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
64356         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
64357         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
64358         (Compatibility checks for POSIX:2001 functions): Add clock-time.
64359         (Enhancements for POSIX:2001 functions): Add chdir-long.
64360         (File system functions): Add areadlink, chdir-safer, read-file.
64361         Remove cycle-check.
64362         (File system as inode set): New section.
64363         (Date and time): Add gethrxtime.
64364         (Multithreading): Add openmp.
64365         (Internationalization functions): Add localename.
64366         (Unicode string functions): Add unistr/u*-mbsnlen.
64367         (Support for maintaining and releasing projects): Add git-version-gen.
64368         (Lone files): Remove directories.
64369
64370 2007-10-08  Ben Pfaff  <blp@gnu.org>
64371
64372         * lib/xmalloca.h: Fix typo in comment.
64373
64374 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64375
64376         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
64377         when avoiding problems with integer overflow.  Use a portable test
64378         instead.
64379
64380 2007-10-08  Simon Josefsson  <simon@josefsson.org>
64381
64382         * modules/dummy (License): Change to LGPLv2+.
64383         * modules/float (License): Likewise
64384         * modules/realloc (License): Likewise
64385         * modules/stdlib (License): Likewise
64386
64387 2007-10-07  Bruno Haible  <bruno@clisp.org>
64388
64389         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
64390         * floor.c (TWO_MANT_DIG): Likewise.
64391         * ceil.c (TWO_MANT_DIG): Likewise.
64392         Reported by Ben Pfaff.
64393
64394 2007-10-07  Bruno Haible  <bruno@clisp.org>
64395
64396         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
64397         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
64398         * lib/frexp.c (FUNC): Likewise.
64399         * lib/printf-frexp.h (printf_frexp): Likewise.
64400         * lib/printf-frexpl.h (printf_frexpl): Likewise.
64401         * lib/printf-frexp.c (FUNC): Likewise.
64402         Suggested by Jim Meyering.
64403
64404 2007-10-07  Jim Meyering  <meyering@redhat.com>
64405
64406         Make xnanosleep's integer overflow test more robust.
64407         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
64408         so that gcc-4.3.0 doesn't optimize away this test for overflow.
64409
64410 2007-10-07  Bruno Haible  <bruno@clisp.org>
64411
64412         * NEWS: Mention the license change.
64413
64414         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
64415         abbreviations in the modules files.
64416
64417         Change copyright notice from GPLv2+ to GPLv3+.
64418         * README: Change copyright notice.
64419         * MODULES.html.sh: Likewise.
64420         * build-aux/bootstrap.conf: Likewise.
64421         * build-aux/config.libpath: Likewise.
64422         * build-aux/csharpcomp.sh.in: Likewise.
64423         * build-aux/csharpexec.sh.in: Likewise.
64424         * build-aux/install-reloc: Likewise.
64425         * build-aux/javacomp.sh.in: Likewise.
64426         * build-aux/javaexec.sh.in: Likewise.
64427         * build-aux/ldd.sh.in: Likewise.
64428         * build-aux/reloc-ldflags: Likewise.
64429         * build-aux/relocatable.sh.in: Likewise.
64430         * build-aux/x-to-1.in: Likewise.
64431         * check-module: Likewise.
64432         * config/srclistvars.sh: Likewise.
64433         * gnulib-tool: Likewise.
64434         * lib/acl-internal.h: Likewise.
64435         * lib/acl.c: Likewise.
64436         * lib/acl.h: Likewise.
64437         * lib/acl_entries.c: Likewise.
64438         * lib/areadlink-with-size.c: Likewise.
64439         * lib/areadlink.c: Likewise.
64440         * lib/areadlink.h: Likewise.
64441         * lib/argmatch.c: Likewise.
64442         * lib/argmatch.h: Likewise.
64443         * lib/argp-ba.c: Likewise.
64444         * lib/argp-eexst.c: Likewise.
64445         * lib/argp-fmtstream.c: Likewise.
64446         * lib/argp-fmtstream.h: Likewise.
64447         * lib/argp-fs-xinl.c: Likewise.
64448         * lib/argp-help.c: Likewise.
64449         * lib/argp-namefrob.h: Likewise.
64450         * lib/argp-parse.c: Likewise.
64451         * lib/argp-pin.c: Likewise.
64452         * lib/argp-pv.c: Likewise.
64453         * lib/argp-pvh.c: Likewise.
64454         * lib/argp-xinl.c: Likewise.
64455         * lib/argp.h: Likewise.
64456         * lib/at-func.c: Likewise.
64457         * lib/atanl.c: Likewise.
64458         * lib/backupfile.c: Likewise.
64459         * lib/backupfile.h: Likewise.
64460         * lib/basename.c: Likewise.
64461         * lib/binary-io.h: Likewise.
64462         * lib/byteswap.in.h: Likewise.
64463         * lib/c-stack.c: Likewise.
64464         * lib/c-stack.h: Likewise.
64465         * lib/c-strcasestr.c: Likewise.
64466         * lib/c-strcasestr.h: Likewise.
64467         * lib/c-strstr.c: Likewise.
64468         * lib/c-strstr.h: Likewise.
64469         * lib/c-strtod.c: Likewise.
64470         * lib/calloc.c: Likewise.
64471         * lib/canon-host.c: Likewise.
64472         * lib/canon-host.h: Likewise.
64473         * lib/canonicalize-lgpl.c: Likewise.
64474         * lib/canonicalize.c: Likewise.
64475         * lib/canonicalize.h: Likewise.
64476         * lib/ceil.c: Likewise.
64477         * lib/ceilf.c: Likewise.
64478         * lib/ceill.c: Likewise.
64479         * lib/chdir-long.c: Likewise.
64480         * lib/chdir-long.h: Likewise.
64481         * lib/chdir-safer.c: Likewise.
64482         * lib/chdir-safer.h: Likewise.
64483         * lib/chown.c: Likewise.
64484         * lib/classpath.c: Likewise.
64485         * lib/classpath.h: Likewise.
64486         * lib/clean-temp.c: Likewise.
64487         * lib/clean-temp.h: Likewise.
64488         * lib/cloexec.c: Likewise.
64489         * lib/close-stream.c: Likewise.
64490         * lib/closein.c: Likewise.
64491         * lib/closein.h: Likewise.
64492         * lib/closeout.c: Likewise.
64493         * lib/closeout.h: Likewise.
64494         * lib/concat-filename.c: Likewise.
64495         * lib/copy-file.c: Likewise.
64496         * lib/copy-file.h: Likewise.
64497         * lib/count-one-bits.h: Likewise.
64498         * lib/crc.c: Likewise.
64499         * lib/crc.h: Likewise.
64500         * lib/creat-safer.c: Likewise.
64501         * lib/csharpcomp.c: Likewise.
64502         * lib/csharpcomp.h: Likewise.
64503         * lib/csharpexec.c: Likewise.
64504         * lib/csharpexec.h: Likewise.
64505         * lib/cycle-check.c: Likewise.
64506         * lib/cycle-check.h: Likewise.
64507         * lib/diacrit.c: Likewise.
64508         * lib/diacrit.h: Likewise.
64509         * lib/diffseq.h: Likewise.
64510         * lib/dirchownmod.c: Likewise.
64511         * lib/dirent.in.h: Likewise.
64512         * lib/dirfd.c: Likewise.
64513         * lib/dirfd.h: Likewise.
64514         * lib/dirname.c: Likewise.
64515         * lib/dirname.h: Likewise.
64516         * lib/dummy.c: Likewise.
64517         * lib/dup-safer.c: Likewise.
64518         * lib/dup2.c: Likewise.
64519         * lib/eealloc.h: Likewise.
64520         * lib/error.c: Likewise.
64521         * lib/error.h: Likewise.
64522         * lib/euidaccess.c: Likewise.
64523         * lib/exclude.c: Likewise.
64524         * lib/exclude.h: Likewise.
64525         * lib/execute.c: Likewise.
64526         * lib/execute.h: Likewise.
64527         * lib/exitfail.c: Likewise.
64528         * lib/exitfail.h: Likewise.
64529         * lib/expl.c: Likewise.
64530         * lib/fatal-signal.c: Likewise.
64531         * lib/fatal-signal.h: Likewise.
64532         * lib/fbufmode.c: Likewise.
64533         * lib/fbufmode.h: Likewise.
64534         * lib/fchdir.c: Likewise.
64535         * lib/fchmodat.c: Likewise.
64536         * lib/fchownat.c: Likewise.
64537         * lib/fcntl--.h: Likewise.
64538         * lib/fcntl-safer.h: Likewise.
64539         * lib/fcntl.in.h: Likewise.
64540         * lib/fd-safer.c: Likewise.
64541         * lib/fflush.c: Likewise.
64542         * lib/file-has-acl.c: Likewise.
64543         * lib/file-set.c: Likewise.
64544         * lib/file-type.c: Likewise.
64545         * lib/file-type.h: Likewise.
64546         * lib/fileblocks.c: Likewise.
64547         * lib/filemode.c: Likewise.
64548         * lib/filemode.h: Likewise.
64549         * lib/filename.h: Likewise.
64550         * lib/filenamecat.c: Likewise.
64551         * lib/filenamecat.h: Likewise.
64552         * lib/findprog.c: Likewise.
64553         * lib/findprog.h: Likewise.
64554         * lib/float.in.h: Likewise.
64555         * lib/floor.c: Likewise.
64556         * lib/floorf.c: Likewise.
64557         * lib/floorl.c: Likewise.
64558         * lib/fopen-safer.c: Likewise.
64559         * lib/fopen.c: Likewise.
64560         * lib/fpending.c: Likewise.
64561         * lib/fpending.h: Likewise.
64562         * lib/fprintf.c: Likewise.
64563         * lib/fprintftime.h: Likewise.
64564         * lib/fpucw.h: Likewise.
64565         * lib/fpurge.c: Likewise.
64566         * lib/fpurge.h: Likewise.
64567         * lib/freadable.c: Likewise.
64568         * lib/freadable.h: Likewise.
64569         * lib/freadahead.c: Likewise.
64570         * lib/freadahead.h: Likewise.
64571         * lib/freading.c: Likewise.
64572         * lib/freading.h: Likewise.
64573         * lib/free.c: Likewise.
64574         * lib/freopen.c: Likewise.
64575         * lib/frexp.c: Likewise.
64576         * lib/frexpl.c: Likewise.
64577         * lib/fseek.c: Likewise.
64578         * lib/fseterr.c: Likewise.
64579         * lib/fseterr.h: Likewise.
64580         * lib/fstatat.c: Likewise.
64581         * lib/fstrcmp.c: Likewise.
64582         * lib/fstrcmp.h: Likewise.
64583         * lib/fsusage.c: Likewise.
64584         * lib/fsusage.h: Likewise.
64585         * lib/ftell.c: Likewise.
64586         * lib/ftello.c: Likewise.
64587         * lib/fts-cycle.c: Likewise.
64588         * lib/fts.c: Likewise.
64589         * lib/fts_.h: Likewise.
64590         * lib/full-read.c: Likewise.
64591         * lib/full-read.h: Likewise.
64592         * lib/full-write.c: Likewise.
64593         * lib/full-write.h: Likewise.
64594         * lib/fwritable.c: Likewise.
64595         * lib/fwritable.h: Likewise.
64596         * lib/fwriteerror.c: Likewise.
64597         * lib/fwriteerror.h: Likewise.
64598         * lib/fwriting.c: Likewise.
64599         * lib/fwriting.h: Likewise.
64600         * lib/gcd.c: Likewise.
64601         * lib/gcd.h: Likewise.
64602         * lib/getcwd.c: Likewise.
64603         * lib/getdate.h: Likewise.
64604         * lib/getdate.y: Likewise.
64605         * lib/getdomainname.c: Likewise.
64606         * lib/getdomainname.h: Likewise.
64607         * lib/getgroups.c: Likewise.
64608         * lib/gethostname.c: Likewise.
64609         * lib/gethrxtime.c: Likewise.
64610         * lib/gethrxtime.h: Likewise.
64611         * lib/getloadavg.c: Likewise.
64612         * lib/getndelim2.c: Likewise.
64613         * lib/getndelim2.h: Likewise.
64614         * lib/getnline.c: Likewise.
64615         * lib/getnline.h: Likewise.
64616         * lib/getopt.c: Likewise.
64617         * lib/getopt.in.h: Likewise.
64618         * lib/getopt1.c: Likewise.
64619         * lib/getopt_int.h: Likewise.
64620         * lib/getpagesize.h: Likewise.
64621         * lib/getsubopt.c: Likewise.
64622         * lib/gettime.c: Likewise.
64623         * lib/getugroups.c: Likewise.
64624         * lib/getugroups.h: Likewise.
64625         * lib/getusershell.c: Likewise.
64626         * lib/gl_anyavltree_list1.h: Likewise.
64627         * lib/gl_anyavltree_list2.h: Likewise.
64628         * lib/gl_anyhash_list1.h: Likewise.
64629         * lib/gl_anyhash_list2.h: Likewise.
64630         * lib/gl_anylinked_list1.h: Likewise.
64631         * lib/gl_anylinked_list2.h: Likewise.
64632         * lib/gl_anyrbtree_list1.h: Likewise.
64633         * lib/gl_anyrbtree_list2.h: Likewise.
64634         * lib/gl_anytree_list1.h: Likewise.
64635         * lib/gl_anytree_list2.h: Likewise.
64636         * lib/gl_anytree_oset.h: Likewise.
64637         * lib/gl_anytreehash_list1.h: Likewise.
64638         * lib/gl_anytreehash_list2.h: Likewise.
64639         * lib/gl_array_list.c: Likewise.
64640         * lib/gl_array_list.h: Likewise.
64641         * lib/gl_array_oset.c: Likewise.
64642         * lib/gl_array_oset.h: Likewise.
64643         * lib/gl_avltree_list.c: Likewise.
64644         * lib/gl_avltree_list.h: Likewise.
64645         * lib/gl_avltree_oset.c: Likewise.
64646         * lib/gl_avltree_oset.h: Likewise.
64647         * lib/gl_avltreehash_list.c: Likewise.
64648         * lib/gl_avltreehash_list.h: Likewise.
64649         * lib/gl_carray_list.c: Likewise.
64650         * lib/gl_carray_list.h: Likewise.
64651         * lib/gl_linked_list.c: Likewise.
64652         * lib/gl_linked_list.h: Likewise.
64653         * lib/gl_linkedhash_list.c: Likewise.
64654         * lib/gl_linkedhash_list.h: Likewise.
64655         * lib/gl_list.c: Likewise.
64656         * lib/gl_list.h: Likewise.
64657         * lib/gl_oset.c: Likewise.
64658         * lib/gl_oset.h: Likewise.
64659         * lib/gl_rbtree_list.c: Likewise.
64660         * lib/gl_rbtree_list.h: Likewise.
64661         * lib/gl_rbtree_oset.c: Likewise.
64662         * lib/gl_rbtree_oset.h: Likewise.
64663         * lib/gl_rbtreehash_list.c: Likewise.
64664         * lib/gl_rbtreehash_list.h: Likewise.
64665         * lib/gl_sublist.c: Likewise.
64666         * lib/gl_sublist.h: Likewise.
64667         * lib/group-member.c: Likewise.
64668         * lib/group-member.h: Likewise.
64669         * lib/hard-locale.c: Likewise.
64670         * lib/hard-locale.h: Likewise.
64671         * lib/hash-pjw.c: Likewise.
64672         * lib/hash-pjw.h: Likewise.
64673         * lib/hash-triple.c: Likewise.
64674         * lib/hash.c: Likewise.
64675         * lib/hash.h: Likewise.
64676         * lib/human.c: Likewise.
64677         * lib/human.h: Likewise.
64678         * lib/i-ring.c: Likewise.
64679         * lib/i-ring.h: Likewise.
64680         * lib/idcache.c: Likewise.
64681         * lib/imaxabs.c: Likewise.
64682         * lib/imaxdiv.c: Likewise.
64683         * lib/inet_pton.c: Likewise.
64684         * lib/inet_pton.h: Likewise.
64685         * lib/intprops.h: Likewise.
64686         * lib/inttostr.c: Likewise.
64687         * lib/inttostr.h: Likewise.
64688         * lib/inttypes.in.h: Likewise.
64689         * lib/isapipe.c: Likewise.
64690         * lib/isdir.c: Likewise.
64691         * lib/isnan.c: Likewise.
64692         * lib/isnan.h: Likewise.
64693         * lib/isnanf.c: Likewise.
64694         * lib/isnanf.h: Likewise.
64695         * lib/isnanl-nolibm.h: Likewise.
64696         * lib/isnanl.c: Likewise.
64697         * lib/isnanl.h: Likewise.
64698         * lib/javacomp.c: Likewise.
64699         * lib/javacomp.h: Likewise.
64700         * lib/javaexec.c: Likewise.
64701         * lib/javaexec.h: Likewise.
64702         * lib/javaversion.c: Likewise.
64703         * lib/javaversion.h: Likewise.
64704         * lib/javaversion.java: Likewise.
64705         * lib/lbrkprop.h: Likewise.
64706         * lib/lchmod.h: Likewise.
64707         * lib/lchown.c: Likewise.
64708         * lib/ldexpl.c: Likewise.
64709         * lib/linebreak.c: Likewise.
64710         * lib/linebreak.h: Likewise.
64711         * lib/linebuffer.c: Likewise.
64712         * lib/linebuffer.h: Likewise.
64713         * lib/locale.in.h: Likewise.
64714         * lib/logl.c: Likewise.
64715         * lib/long-options.c: Likewise.
64716         * lib/long-options.h: Likewise.
64717         * lib/lstat.c: Likewise.
64718         * lib/lstat.h: Likewise.
64719         * lib/math.in.h: Likewise.
64720         * lib/mbchar.c: Likewise.
64721         * lib/mbchar.h: Likewise.
64722         * lib/mbfile.h: Likewise.
64723         * lib/mbiter.h: Likewise.
64724         * lib/mbscasecmp.c: Likewise.
64725         * lib/mbscasestr.c: Likewise.
64726         * lib/mbschr.c: Likewise.
64727         * lib/mbscspn.c: Likewise.
64728         * lib/mbslen.c: Likewise.
64729         * lib/mbsncasecmp.c: Likewise.
64730         * lib/mbsnlen.c: Likewise.
64731         * lib/mbspbrk.c: Likewise.
64732         * lib/mbspcasecmp.c: Likewise.
64733         * lib/mbsrchr.c: Likewise.
64734         * lib/mbssep.c: Likewise.
64735         * lib/mbsspn.c: Likewise.
64736         * lib/mbsstr.c: Likewise.
64737         * lib/mbstok_r.c: Likewise.
64738         * lib/mbswidth.c: Likewise.
64739         * lib/mbswidth.h: Likewise.
64740         * lib/mbuiter.h: Likewise.
64741         * lib/memcasecmp.c: Likewise.
64742         * lib/memcasecmp.h: Likewise.
64743         * lib/memchr.c: Likewise.
64744         * lib/memcmp.c: Likewise.
64745         * lib/memcoll.c: Likewise.
64746         * lib/memcoll.h: Likewise.
64747         * lib/memcpy.c: Likewise.
64748         * lib/memrchr.c: Likewise.
64749         * lib/mkancesdirs.c: Likewise.
64750         * lib/mkdir-p.c: Likewise.
64751         * lib/mkdir-p.h: Likewise.
64752         * lib/mkdir.c: Likewise.
64753         * lib/mkdirat.c: Likewise.
64754         * lib/mkdtemp.c: Likewise.
64755         * lib/mkstemp-safer.c: Likewise.
64756         * lib/mkstemp.c: Likewise.
64757         * lib/modechange.c: Likewise.
64758         * lib/modechange.h: Likewise.
64759         * lib/mountlist.c: Likewise.
64760         * lib/mountlist.h: Likewise.
64761         * lib/mpsort.c: Likewise.
64762         * lib/nanosleep.c: Likewise.
64763         * lib/obstack.c: Likewise.
64764         * lib/obstack.h: Likewise.
64765         * lib/open-safer.c: Likewise.
64766         * lib/open.c: Likewise.
64767         * lib/openat-die.c: Likewise.
64768         * lib/openat-priv.h: Likewise.
64769         * lib/openat-proc.c: Likewise.
64770         * lib/openat.c: Likewise.
64771         * lib/openat.h: Likewise.
64772         * lib/pagealign_alloc.c: Likewise.
64773         * lib/pagealign_alloc.h: Likewise.
64774         * lib/physmem.c: Likewise.
64775         * lib/physmem.h: Likewise.
64776         * lib/pipe-safer.c: Likewise.
64777         * lib/pipe.c: Likewise.
64778         * lib/pipe.h: Likewise.
64779         * lib/posixtm.c: Likewise.
64780         * lib/posixtm.h: Likewise.
64781         * lib/posixver.c: Likewise.
64782         * lib/printf-frexp.c: Likewise.
64783         * lib/printf-frexp.h: Likewise.
64784         * lib/printf-frexpl.c: Likewise.
64785         * lib/printf-frexpl.h: Likewise.
64786         * lib/printf.c: Likewise.
64787         * lib/progname.c: Likewise.
64788         * lib/progname.h: Likewise.
64789         * lib/progreloc.c: Likewise.
64790         * lib/putenv.c: Likewise.
64791         * lib/quote.c: Likewise.
64792         * lib/quote.h: Likewise.
64793         * lib/quotearg.c: Likewise.
64794         * lib/quotearg.h: Likewise.
64795         * lib/raise.c: Likewise.
64796         * lib/readline.c: Likewise.
64797         * lib/readline.h: Likewise.
64798         * lib/readlink.c: Likewise.
64799         * lib/readtokens.c: Likewise.
64800         * lib/readtokens.h: Likewise.
64801         * lib/readtokens0.c: Likewise.
64802         * lib/readtokens0.h: Likewise.
64803         * lib/readutmp.c: Likewise.
64804         * lib/readutmp.h: Likewise.
64805         * lib/realloc.c: Likewise.
64806         * lib/relocwrapper.c: Likewise.
64807         * lib/rename-dest-slash.c: Likewise.
64808         * lib/rename.c: Likewise.
64809         * lib/rmdir.c: Likewise.
64810         * lib/rpmatch.c: Likewise.
64811         * lib/safe-read.c: Likewise.
64812         * lib/safe-read.h: Likewise.
64813         * lib/safe-write.c: Likewise.
64814         * lib/safe-write.h: Likewise.
64815         * lib/same-inode.h: Likewise.
64816         * lib/same.c: Likewise.
64817         * lib/same.h: Likewise.
64818         * lib/save-cwd.c: Likewise.
64819         * lib/save-cwd.h: Likewise.
64820         * lib/savedir.c: Likewise.
64821         * lib/savedir.h: Likewise.
64822         * lib/savewd.c: Likewise.
64823         * lib/savewd.h: Likewise.
64824         * lib/search.in.h: Likewise.
64825         * lib/setenv.c: Likewise.
64826         * lib/setenv.h: Likewise.
64827         * lib/settime.c: Likewise.
64828         * lib/sh-quote.c: Likewise.
64829         * lib/sh-quote.h: Likewise.
64830         * lib/sig2str.c: Likewise.
64831         * lib/sig2str.h: Likewise.
64832         * lib/signal.in.h: Likewise.
64833         * lib/signbitd.c: Likewise.
64834         * lib/signbitf.c: Likewise.
64835         * lib/signbitl.c: Likewise.
64836         * lib/sigprocmask.c: Likewise.
64837         * lib/sincosl.c: Likewise.
64838         * lib/sleep.c: Likewise.
64839         * lib/sprintf.c: Likewise.
64840         * lib/sqrtl.c: Likewise.
64841         * lib/stat-time.h: Likewise.
64842         * lib/stdio--.h: Likewise.
64843         * lib/stdio-safer.h: Likewise.
64844         * lib/stdlib--.h: Likewise.
64845         * lib/stdlib-safer.h: Likewise.
64846         * lib/stdlib.in.h: Likewise.
64847         * lib/stpcpy.c: Likewise.
64848         * lib/stpncpy.c: Likewise.
64849         * lib/strchrnul.c: Likewise.
64850         * lib/strcspn.c: Likewise.
64851         * lib/strerror.c: Likewise.
64852         * lib/strftime.c: Likewise.
64853         * lib/strftime.h: Likewise.
64854         * lib/striconveh.c: Likewise.
64855         * lib/striconveh.h: Likewise.
64856         * lib/striconveha.c: Likewise.
64857         * lib/striconveha.h: Likewise.
64858         * lib/stripslash.c: Likewise.
64859         * lib/strnlen1.c: Likewise.
64860         * lib/strnlen1.h: Likewise.
64861         * lib/strtod.c: Likewise.
64862         * lib/strtoimax.c: Likewise.
64863         * lib/strtok_r.c: Likewise.
64864         * lib/strtol.c: Likewise.
64865         * lib/strtoll.c: Likewise.
64866         * lib/strtoul.c: Likewise.
64867         * lib/strtoull.c: Likewise.
64868         * lib/sysexits.in.h: Likewise.
64869         * lib/tempname.c: Likewise.
64870         * lib/tempname.h: Likewise.
64871         * lib/timespec.h: Likewise.
64872         * lib/tls.c: Likewise.
64873         * lib/tls.h: Likewise.
64874         * lib/tmpdir.c: Likewise.
64875         * lib/tmpdir.h: Likewise.
64876         * lib/tmpfile-safer.c: Likewise.
64877         * lib/tmpfile.c: Likewise.
64878         * lib/trigl.c: Likewise.
64879         * lib/trigl.h: Likewise.
64880         * lib/trim.c: Likewise.
64881         * lib/trim.h: Likewise.
64882         * lib/trunc.c: Likewise.
64883         * lib/truncf.c: Likewise.
64884         * lib/truncl.c: Likewise.
64885         * lib/tsearch.c: Likewise.
64886         * lib/unicodeio.c: Likewise.
64887         * lib/unicodeio.h: Likewise.
64888         * lib/unistd--.h: Likewise.
64889         * lib/unistd-safer.h: Likewise.
64890         * lib/unistdio/ulc-fprintf.c: Likewise.
64891         * lib/unistdio/ulc-vfprintf.c: Likewise.
64892         * lib/unlinkdir.c: Likewise.
64893         * lib/unlinkdir.h: Likewise.
64894         * lib/unlocked-io.h: Likewise.
64895         * lib/unsetenv.c: Likewise.
64896         * lib/userspec.c: Likewise.
64897         * lib/utime.c: Likewise.
64898         * lib/utimecmp.c: Likewise.
64899         * lib/utimecmp.h: Likewise.
64900         * lib/utimens.c: Likewise.
64901         * lib/verify.h: Likewise.
64902         * lib/verror.c: Likewise.
64903         * lib/verror.h: Likewise.
64904         * lib/version-etc-fsf.c: Likewise.
64905         * lib/version-etc.c: Likewise.
64906         * lib/version-etc.h: Likewise.
64907         * lib/vfprintf.c: Likewise.
64908         * lib/vprintf.c: Likewise.
64909         * lib/vsprintf.c: Likewise.
64910         * lib/w32spawn.h: Likewise.
64911         * lib/wait-process.c: Likewise.
64912         * lib/wait-process.h: Likewise.
64913         * lib/wcwidth.c: Likewise.
64914         * lib/write-any-file.c: Likewise.
64915         * lib/xalloc-die.c: Likewise.
64916         * lib/xalloc.h: Likewise.
64917         * lib/xasprintf.c: Likewise.
64918         * lib/xgetcwd.c: Likewise.
64919         * lib/xgetcwd.h: Likewise.
64920         * lib/xgetdomainname.c: Likewise.
64921         * lib/xgetdomainname.h: Likewise.
64922         * lib/xgethostname.c: Likewise.
64923         * lib/xmalloc.c: Likewise.
64924         * lib/xmalloca.c: Likewise.
64925         * lib/xmalloca.h: Likewise.
64926         * lib/xmemcoll.c: Likewise.
64927         * lib/xnanosleep.c: Likewise.
64928         * lib/xreadlink.c: Likewise.
64929         * lib/xreadlink.h: Likewise.
64930         * lib/xsetenv.c: Likewise.
64931         * lib/xsetenv.h: Likewise.
64932         * lib/xstriconv.c: Likewise.
64933         * lib/xstriconv.h: Likewise.
64934         * lib/xstrndup.c: Likewise.
64935         * lib/xstrndup.h: Likewise.
64936         * lib/xstrtod.c: Likewise.
64937         * lib/xstrtod.h: Likewise.
64938         * lib/xstrtol-error.c: Likewise.
64939         * lib/xstrtol.c: Likewise.
64940         * lib/xstrtol.h: Likewise.
64941         * lib/xtime.h: Likewise.
64942         * lib/xvasprintf.c: Likewise.
64943         * lib/xvasprintf.h: Likewise.
64944         * lib/yesno.c: Likewise.
64945         * lib/yesno.h: Likewise.
64946         * posix-modules: Likewise.
64947         * tests/test-alloca-opt.c: Likewise.
64948         * tests/test-arcfour.c: Likewise.
64949         * tests/test-arctwo.c: Likewise.
64950         * tests/test-argmatch.c: Likewise.
64951         * tests/test-argp-2.sh: Likewise.
64952         * tests/test-argp.c: Likewise.
64953         * tests/test-arpa_inet.c: Likewise.
64954         * tests/test-array_list.c: Likewise.
64955         * tests/test-array_oset.c: Likewise.
64956         * tests/test-atexit.c: Likewise.
64957         * tests/test-avltree_list.c: Likewise.
64958         * tests/test-avltree_oset.c: Likewise.
64959         * tests/test-avltreehash_list.c: Likewise.
64960         * tests/test-base64.c: Likewise.
64961         * tests/test-binary-io.c: Likewise.
64962         * tests/test-byteswap.c: Likewise.
64963         * tests/test-c-ctype.c: Likewise.
64964         * tests/test-c-strcasecmp.c: Likewise.
64965         * tests/test-c-strcasestr.c: Likewise.
64966         * tests/test-c-strncasecmp.c: Likewise.
64967         * tests/test-c-strstr.c: Likewise.
64968         * tests/test-canonicalize-lgpl.c: Likewise.
64969         * tests/test-canonicalize.c: Likewise.
64970         * tests/test-carray_list.c: Likewise.
64971         * tests/test-ceilf.c: Likewise.
64972         * tests/test-ceill.c: Likewise.
64973         * tests/test-count-one-bits.c: Likewise.
64974         * tests/test-crc.c: Likewise.
64975         * tests/test-dirname.c: Likewise.
64976         * tests/test-fbufmode.c: Likewise.
64977         * tests/test-fcntl.c: Likewise.
64978         * tests/test-fflush.c: Likewise.
64979         * tests/test-floorf.c: Likewise.
64980         * tests/test-floorl.c: Likewise.
64981         * tests/test-fopen.c: Likewise.
64982         * tests/test-fprintf-posix.c: Likewise.
64983         * tests/test-fprintf-posix.h: Likewise.
64984         * tests/test-fpurge.c: Likewise.
64985         * tests/test-freadable.c: Likewise.
64986         * tests/test-freadahead.c: Likewise.
64987         * tests/test-freading.c: Likewise.
64988         * tests/test-freopen.c: Likewise.
64989         * tests/test-frexp.c: Likewise.
64990         * tests/test-frexpl.c: Likewise.
64991         * tests/test-fseek.c: Likewise.
64992         * tests/test-fseeko.c: Likewise.
64993         * tests/test-fseterr.c: Likewise.
64994         * tests/test-fstrcmp.c: Likewise.
64995         * tests/test-ftell.c: Likewise.
64996         * tests/test-ftello.c: Likewise.
64997         * tests/test-fwritable.c: Likewise.
64998         * tests/test-fwriting.c: Likewise.
64999         * tests/test-getaddrinfo.c: Likewise.
65000         * tests/test-getpass.c: Likewise.
65001         * tests/test-gettimeofday.c: Likewise.
65002         * tests/test-hmac-md5.c: Likewise.
65003         * tests/test-hmac-sha1.c: Likewise.
65004         * tests/test-iconv.c: Likewise.
65005         * tests/test-iconvme.c: Likewise.
65006         * tests/test-inttypes.c: Likewise.
65007         * tests/test-isnan.c: Likewise.
65008         * tests/test-isnanf.c: Likewise.
65009         * tests/test-isnanl-nolibm.c: Likewise.
65010         * tests/test-isnanl.c: Likewise.
65011         * tests/test-isnanl.h: Likewise.
65012         * tests/test-ldexpl.c: Likewise.
65013         * tests/test-linked_list.c: Likewise.
65014         * tests/test-linkedhash_list.c: Likewise.
65015         * tests/test-locale.c: Likewise.
65016         * tests/test-localename.c: Likewise.
65017         * tests/test-lock.c: Likewise.
65018         * tests/test-lseek.c: Likewise.
65019         * tests/test-malloca.c: Likewise.
65020         * tests/test-math.c: Likewise.
65021         * tests/test-mbscasecmp.c: Likewise.
65022         * tests/test-mbscasestr1.c: Likewise.
65023         * tests/test-mbscasestr2.c: Likewise.
65024         * tests/test-mbscasestr3.c: Likewise.
65025         * tests/test-mbscasestr4.c: Likewise.
65026         * tests/test-mbschr.c: Likewise.
65027         * tests/test-mbscspn.c: Likewise.
65028         * tests/test-mbsncasecmp.c: Likewise.
65029         * tests/test-mbspbrk.c: Likewise.
65030         * tests/test-mbspcasecmp.c: Likewise.
65031         * tests/test-mbsrchr.c: Likewise.
65032         * tests/test-mbsspn.c: Likewise.
65033         * tests/test-mbsstr1.c: Likewise.
65034         * tests/test-mbsstr2.c: Likewise.
65035         * tests/test-mbsstr3.c: Likewise.
65036         * tests/test-md5.c: Likewise.
65037         * tests/test-memmem.c: Likewise.
65038         * tests/test-netinet_in.c: Likewise.
65039         * tests/test-open.c: Likewise.
65040         * tests/test-printf-frexp.c: Likewise.
65041         * tests/test-printf-frexpl.c: Likewise.
65042         * tests/test-printf-posix.c: Likewise.
65043         * tests/test-printf-posix.h: Likewise.
65044         * tests/test-rbtree_list.c: Likewise.
65045         * tests/test-rbtree_oset.c: Likewise.
65046         * tests/test-rbtreehash_list.c: Likewise.
65047         * tests/test-read-file.c: Likewise.
65048         * tests/test-rijndael.c: Likewise.
65049         * tests/test-search.c: Likewise.
65050         * tests/test-signbit.c: Likewise.
65051         * tests/test-sleep.c: Likewise.
65052         * tests/test-snprintf-posix.c: Likewise.
65053         * tests/test-snprintf-posix.h: Likewise.
65054         * tests/test-snprintf.c: Likewise.
65055         * tests/test-sprintf-posix.c: Likewise.
65056         * tests/test-sprintf-posix.h: Likewise.
65057         * tests/test-stat-time.c: Likewise.
65058         * tests/test-stdbool.c: Likewise.
65059         * tests/test-stdint.c: Likewise.
65060         * tests/test-stdio.c: Likewise.
65061         * tests/test-stdlib.c: Likewise.
65062         * tests/test-stpncpy.c: Likewise.
65063         * tests/test-strcasestr.c: Likewise.
65064         * tests/test-striconv.c: Likewise.
65065         * tests/test-striconveh.c: Likewise.
65066         * tests/test-striconveha.c: Likewise.
65067         * tests/test-string.c: Likewise.
65068         * tests/test-sys_select.c: Likewise.
65069         * tests/test-sys_socket.c: Likewise.
65070         * tests/test-sys_stat.c: Likewise.
65071         * tests/test-sys_time.c: Likewise.
65072         * tests/test-sysexits.c: Likewise.
65073         * tests/test-time.c: Likewise.
65074         * tests/test-tls.c: Likewise.
65075         * tests/test-trunc.c: Likewise.
65076         * tests/test-truncf.c: Likewise.
65077         * tests/test-truncl.c: Likewise.
65078         * tests/test-unistd.c: Likewise.
65079         * tests/test-vasnprintf-posix.c: Likewise.
65080         * tests/test-vasnprintf-posix2.c: Likewise.
65081         * tests/test-vasnprintf.c: Likewise.
65082         * tests/test-vasprintf-posix.c: Likewise.
65083         * tests/test-vasprintf.c: Likewise.
65084         * tests/test-verify.c: Likewise.
65085         * tests/test-vfprintf-posix.c: Likewise.
65086         * tests/test-vprintf-posix.c: Likewise.
65087         * tests/test-vsnprintf-posix.c: Likewise.
65088         * tests/test-vsnprintf.c: Likewise.
65089         * tests/test-vsprintf-posix.c: Likewise.
65090         * tests/test-wchar.c: Likewise.
65091         * tests/test-wctype.c: Likewise.
65092         * tests/test-wcwidth.c: Likewise.
65093         * tests/test-xstrtol.c: Likewise.
65094         * tests/test-xvasprintf.c: Likewise.
65095         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
65096         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
65097         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65098         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65099         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65100         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
65101         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65102         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65103         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65104         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
65105         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65106         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65107         * tests/uniname/test-uninames.c: Likewise.
65108         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
65109         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
65110         * tests/unistdio/test-u16-printf1.h: Likewise.
65111         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
65112         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
65113         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
65114         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
65115         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
65116         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
65117         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
65118         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
65119         * tests/unistdio/test-u32-printf1.h: Likewise.
65120         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
65121         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
65122         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
65123         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
65124         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
65125         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
65126         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
65127         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
65128         * tests/unistdio/test-u8-printf1.h: Likewise.
65129         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
65130         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
65131         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
65132         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
65133         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
65134         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
65135         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
65136         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
65137         * tests/unistdio/test-ulc-printf1.h: Likewise.
65138         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
65139         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
65140         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
65141         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
65142         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
65143         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
65144         * tests/uniwidth/test-u16-strwidth.c: Likewise.
65145         * tests/uniwidth/test-u16-width.c: Likewise.
65146         * tests/uniwidth/test-u32-strwidth.c: Likewise.
65147         * tests/uniwidth/test-u32-width.c: Likewise.
65148         * tests/uniwidth/test-u8-strwidth.c: Likewise.
65149         * tests/uniwidth/test-u8-width.c: Likewise.
65150         * tests/uniwidth/test-uc_width.c: Likewise.
65151         * config/srclist-update: Likewise.
65152         (fixlicense): Update to GPLv3+.
65153
65154         Change copyright notice from LGPLv2.1+ to LGPLv3+.
65155         * tests/test-tsearch.c: Change copyright notice.
65156
65157         Change copyright notice from LGPLv2.0+ to LGPLv3+.
65158         * lib/c-strcaseeq.h: Change copyright notice.
65159         * lib/streq.h: Likewise.
65160         * lib/uniconv.h: Likewise.
65161         * lib/uniconv/u-conv-from-enc.h: Likewise.
65162         * lib/uniconv/u-conv-to-enc.h: Likewise.
65163         * lib/uniconv/u-strconv-from-enc.h: Likewise.
65164         * lib/uniconv/u-strconv-to-enc.h: Likewise.
65165         * lib/uniconv/u16-conv-from-enc.c: Likewise.
65166         * lib/uniconv/u16-conv-to-enc.c: Likewise.
65167         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
65168         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
65169         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
65170         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
65171         * lib/uniconv/u32-conv-from-enc.c: Likewise.
65172         * lib/uniconv/u32-conv-to-enc.c: Likewise.
65173         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
65174         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
65175         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
65176         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
65177         * lib/uniconv/u8-conv-from-enc.c: Likewise.
65178         * lib/uniconv/u8-conv-to-enc.c: Likewise.
65179         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
65180         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
65181         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
65182         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
65183         * lib/uniname.h: Likewise.
65184         * lib/uniname/uniname.c: Likewise.
65185         * lib/unistdio.h: Likewise.
65186         * lib/unistdio/u-asnprintf.h: Likewise.
65187         * lib/unistdio/u-asprintf.h: Likewise.
65188         * lib/unistdio/u-printf-args.c: Likewise.
65189         * lib/unistdio/u-printf-args.h: Likewise.
65190         * lib/unistdio/u-printf-parse.h: Likewise.
65191         * lib/unistdio/u-snprintf.h: Likewise.
65192         * lib/unistdio/u-sprintf.h: Likewise.
65193         * lib/unistdio/u-vasprintf.h: Likewise.
65194         * lib/unistdio/u-vsnprintf.h: Likewise.
65195         * lib/unistdio/u-vsprintf.h: Likewise.
65196         * lib/unistdio/u16-asnprintf.c: Likewise.
65197         * lib/unistdio/u16-asprintf.c: Likewise.
65198         * lib/unistdio/u16-printf-parse.c: Likewise.
65199         * lib/unistdio/u16-snprintf.c: Likewise.
65200         * lib/unistdio/u16-sprintf.c: Likewise.
65201         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
65202         * lib/unistdio/u16-u16-asprintf.c: Likewise.
65203         * lib/unistdio/u16-u16-snprintf.c: Likewise.
65204         * lib/unistdio/u16-u16-sprintf.c: Likewise.
65205         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
65206         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
65207         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
65208         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
65209         * lib/unistdio/u16-vasnprintf.c: Likewise.
65210         * lib/unistdio/u16-vasprintf.c: Likewise.
65211         * lib/unistdio/u16-vsnprintf.c: Likewise.
65212         * lib/unistdio/u16-vsprintf.c: Likewise.
65213         * lib/unistdio/u32-asnprintf.c: Likewise.
65214         * lib/unistdio/u32-asprintf.c: Likewise.
65215         * lib/unistdio/u32-printf-parse.c: Likewise.
65216         * lib/unistdio/u32-snprintf.c: Likewise.
65217         * lib/unistdio/u32-sprintf.c: Likewise.
65218         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
65219         * lib/unistdio/u32-u32-asprintf.c: Likewise.
65220         * lib/unistdio/u32-u32-snprintf.c: Likewise.
65221         * lib/unistdio/u32-u32-sprintf.c: Likewise.
65222         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
65223         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
65224         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
65225         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
65226         * lib/unistdio/u32-vasnprintf.c: Likewise.
65227         * lib/unistdio/u32-vasprintf.c: Likewise.
65228         * lib/unistdio/u32-vsnprintf.c: Likewise.
65229         * lib/unistdio/u32-vsprintf.c: Likewise.
65230         * lib/unistdio/u8-asnprintf.c: Likewise.
65231         * lib/unistdio/u8-asprintf.c: Likewise.
65232         * lib/unistdio/u8-printf-parse.c: Likewise.
65233         * lib/unistdio/u8-snprintf.c: Likewise.
65234         * lib/unistdio/u8-sprintf.c: Likewise.
65235         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
65236         * lib/unistdio/u8-u8-asprintf.c: Likewise.
65237         * lib/unistdio/u8-u8-snprintf.c: Likewise.
65238         * lib/unistdio/u8-u8-sprintf.c: Likewise.
65239         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
65240         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
65241         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
65242         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
65243         * lib/unistdio/u8-vasnprintf.c: Likewise.
65244         * lib/unistdio/u8-vasprintf.c: Likewise.
65245         * lib/unistdio/u8-vsnprintf.c: Likewise.
65246         * lib/unistdio/u8-vsprintf.c: Likewise.
65247         * lib/unistdio/ulc-asnprintf.c: Likewise.
65248         * lib/unistdio/ulc-asprintf.c: Likewise.
65249         * lib/unistdio/ulc-printf-parse.c: Likewise.
65250         * lib/unistdio/ulc-snprintf.c: Likewise.
65251         * lib/unistdio/ulc-sprintf.c: Likewise.
65252         * lib/unistdio/ulc-vasnprintf.c: Likewise.
65253         * lib/unistdio/ulc-vasprintf.c: Likewise.
65254         * lib/unistdio/ulc-vsnprintf.c: Likewise.
65255         * lib/unistdio/ulc-vsprintf.c: Likewise.
65256         * lib/unistr.h: Likewise.
65257         * lib/unistr/u-cpy-alloc.h: Likewise.
65258         * lib/unistr/u-cpy.h: Likewise.
65259         * lib/unistr/u-endswith.h: Likewise.
65260         * lib/unistr/u-move.h: Likewise.
65261         * lib/unistr/u-set.h: Likewise.
65262         * lib/unistr/u-startswith.h: Likewise.
65263         * lib/unistr/u-stpcpy.h: Likewise.
65264         * lib/unistr/u-stpncpy.h: Likewise.
65265         * lib/unistr/u-strcat.h: Likewise.
65266         * lib/unistr/u-strcpy.h: Likewise.
65267         * lib/unistr/u-strcspn.h: Likewise.
65268         * lib/unistr/u-strdup.h: Likewise.
65269         * lib/unistr/u-strlen.h: Likewise.
65270         * lib/unistr/u-strncat.h: Likewise.
65271         * lib/unistr/u-strncpy.h: Likewise.
65272         * lib/unistr/u-strnlen.h: Likewise.
65273         * lib/unistr/u-strpbrk.h: Likewise.
65274         * lib/unistr/u-strspn.h: Likewise.
65275         * lib/unistr/u-strstr.h: Likewise.
65276         * lib/unistr/u-strtok.h: Likewise.
65277         * lib/unistr/u16-check.c: Likewise.
65278         * lib/unistr/u16-chr.c: Likewise.
65279         * lib/unistr/u16-cmp.c: Likewise.
65280         * lib/unistr/u16-cpy-alloc.c: Likewise.
65281         * lib/unistr/u16-cpy.c: Likewise.
65282         * lib/unistr/u16-endswith.c: Likewise.
65283         * lib/unistr/u16-mblen.c: Likewise.
65284         * lib/unistr/u16-mbsnlen.c: Likewise.
65285         * lib/unistr/u16-mbtouc-aux.c: Likewise.
65286         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
65287         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
65288         * lib/unistr/u16-mbtouc.c: Likewise.
65289         * lib/unistr/u16-mbtoucr.c: Likewise.
65290         * lib/unistr/u16-move.c: Likewise.
65291         * lib/unistr/u16-next.c: Likewise.
65292         * lib/unistr/u16-prev.c: Likewise.
65293         * lib/unistr/u16-set.c: Likewise.
65294         * lib/unistr/u16-startswith.c: Likewise.
65295         * lib/unistr/u16-stpcpy.c: Likewise.
65296         * lib/unistr/u16-stpncpy.c: Likewise.
65297         * lib/unistr/u16-strcat.c: Likewise.
65298         * lib/unistr/u16-strchr.c: Likewise.
65299         * lib/unistr/u16-strcmp.c: Likewise.
65300         * lib/unistr/u16-strcpy.c: Likewise.
65301         * lib/unistr/u16-strcspn.c: Likewise.
65302         * lib/unistr/u16-strdup.c: Likewise.
65303         * lib/unistr/u16-strlen.c: Likewise.
65304         * lib/unistr/u16-strmblen.c: Likewise.
65305         * lib/unistr/u16-strmbtouc.c: Likewise.
65306         * lib/unistr/u16-strncat.c: Likewise.
65307         * lib/unistr/u16-strncmp.c: Likewise.
65308         * lib/unistr/u16-strncpy.c: Likewise.
65309         * lib/unistr/u16-strnlen.c: Likewise.
65310         * lib/unistr/u16-strpbrk.c: Likewise.
65311         * lib/unistr/u16-strrchr.c: Likewise.
65312         * lib/unistr/u16-strspn.c: Likewise.
65313         * lib/unistr/u16-strstr.c: Likewise.
65314         * lib/unistr/u16-strtok.c: Likewise.
65315         * lib/unistr/u16-to-u32.c: Likewise.
65316         * lib/unistr/u16-to-u8.c: Likewise.
65317         * lib/unistr/u16-uctomb-aux.c: Likewise.
65318         * lib/unistr/u16-uctomb.c: Likewise.
65319         * lib/unistr/u32-check.c: Likewise.
65320         * lib/unistr/u32-chr.c: Likewise.
65321         * lib/unistr/u32-cmp.c: Likewise.
65322         * lib/unistr/u32-cpy-alloc.c: Likewise.
65323         * lib/unistr/u32-cpy.c: Likewise.
65324         * lib/unistr/u32-endswith.c: Likewise.
65325         * lib/unistr/u32-mblen.c: Likewise.
65326         * lib/unistr/u32-mbsnlen.c: Likewise.
65327         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
65328         * lib/unistr/u32-mbtouc.c: Likewise.
65329         * lib/unistr/u32-mbtoucr.c: Likewise.
65330         * lib/unistr/u32-move.c: Likewise.
65331         * lib/unistr/u32-next.c: Likewise.
65332         * lib/unistr/u32-prev.c: Likewise.
65333         * lib/unistr/u32-set.c: Likewise.
65334         * lib/unistr/u32-startswith.c: Likewise.
65335         * lib/unistr/u32-stpcpy.c: Likewise.
65336         * lib/unistr/u32-stpncpy.c: Likewise.
65337         * lib/unistr/u32-strcat.c: Likewise.
65338         * lib/unistr/u32-strchr.c: Likewise.
65339         * lib/unistr/u32-strcmp.c: Likewise.
65340         * lib/unistr/u32-strcpy.c: Likewise.
65341         * lib/unistr/u32-strcspn.c: Likewise.
65342         * lib/unistr/u32-strdup.c: Likewise.
65343         * lib/unistr/u32-strlen.c: Likewise.
65344         * lib/unistr/u32-strmblen.c: Likewise.
65345         * lib/unistr/u32-strmbtouc.c: Likewise.
65346         * lib/unistr/u32-strncat.c: Likewise.
65347         * lib/unistr/u32-strncmp.c: Likewise.
65348         * lib/unistr/u32-strncpy.c: Likewise.
65349         * lib/unistr/u32-strnlen.c: Likewise.
65350         * lib/unistr/u32-strpbrk.c: Likewise.
65351         * lib/unistr/u32-strrchr.c: Likewise.
65352         * lib/unistr/u32-strspn.c: Likewise.
65353         * lib/unistr/u32-strstr.c: Likewise.
65354         * lib/unistr/u32-strtok.c: Likewise.
65355         * lib/unistr/u32-to-u16.c: Likewise.
65356         * lib/unistr/u32-to-u8.c: Likewise.
65357         * lib/unistr/u32-uctomb.c: Likewise.
65358         * lib/unistr/u8-check.c: Likewise.
65359         * lib/unistr/u8-chr.c: Likewise.
65360         * lib/unistr/u8-cmp.c: Likewise.
65361         * lib/unistr/u8-cpy-alloc.c: Likewise.
65362         * lib/unistr/u8-cpy.c: Likewise.
65363         * lib/unistr/u8-endswith.c: Likewise.
65364         * lib/unistr/u8-mblen.c: Likewise.
65365         * lib/unistr/u8-mbsnlen.c: Likewise.
65366         * lib/unistr/u8-mbtouc-aux.c: Likewise.
65367         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
65368         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
65369         * lib/unistr/u8-mbtouc.c: Likewise.
65370         * lib/unistr/u8-mbtoucr.c: Likewise.
65371         * lib/unistr/u8-move.c: Likewise.
65372         * lib/unistr/u8-next.c: Likewise.
65373         * lib/unistr/u8-prev.c: Likewise.
65374         * lib/unistr/u8-set.c: Likewise.
65375         * lib/unistr/u8-startswith.c: Likewise.
65376         * lib/unistr/u8-stpcpy.c: Likewise.
65377         * lib/unistr/u8-stpncpy.c: Likewise.
65378         * lib/unistr/u8-strcat.c: Likewise.
65379         * lib/unistr/u8-strchr.c: Likewise.
65380         * lib/unistr/u8-strcmp.c: Likewise.
65381         * lib/unistr/u8-strcpy.c: Likewise.
65382         * lib/unistr/u8-strcspn.c: Likewise.
65383         * lib/unistr/u8-strdup.c: Likewise.
65384         * lib/unistr/u8-strlen.c: Likewise.
65385         * lib/unistr/u8-strmblen.c: Likewise.
65386         * lib/unistr/u8-strmbtouc.c: Likewise.
65387         * lib/unistr/u8-strncat.c: Likewise.
65388         * lib/unistr/u8-strncmp.c: Likewise.
65389         * lib/unistr/u8-strncpy.c: Likewise.
65390         * lib/unistr/u8-strnlen.c: Likewise.
65391         * lib/unistr/u8-strpbrk.c: Likewise.
65392         * lib/unistr/u8-strrchr.c: Likewise.
65393         * lib/unistr/u8-strspn.c: Likewise.
65394         * lib/unistr/u8-strstr.c: Likewise.
65395         * lib/unistr/u8-strtok.c: Likewise.
65396         * lib/unistr/u8-to-u16.c: Likewise.
65397         * lib/unistr/u8-to-u32.c: Likewise.
65398         * lib/unistr/u8-uctomb-aux.c: Likewise.
65399         * lib/unistr/u8-uctomb.c: Likewise.
65400         * lib/unitypes.h: Likewise.
65401         * lib/uniwidth.h: Likewise.
65402         * lib/uniwidth/cjk.h: Likewise.
65403         * lib/uniwidth/u16-strwidth.c: Likewise.
65404         * lib/uniwidth/u16-width.c: Likewise.
65405         * lib/uniwidth/u32-strwidth.c: Likewise.
65406         * lib/uniwidth/u32-width.c: Likewise.
65407         * lib/uniwidth/u8-strwidth.c: Likewise.
65408         * lib/uniwidth/u8-width.c: Likewise.
65409         * lib/uniwidth/width.c: Likewise.
65410
65411 2007-10-07  Bruno Haible  <bruno@clisp.org>
65412
65413         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
65414         The file is still under LGPL (see modules/inttypes).
65415
65416 2007-10-06  Bruno Haible  <bruno@clisp.org>
65417
65418         * modules/trunc (Dependencies): Add 'extensions'.
65419         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
65420         Reported by Ben Pfaff <blp@gnu.org>.
65421
65422 2007-10-06  Bruno Haible  <bruno@clisp.org>
65423
65424         * modules/freopen-tests: New file.
65425         * tests/test-freopen.c: New file.
65426
65427         * modules/fopen-tests: New file.
65428         * tests/test-fopen.c: New file.
65429
65430         * modules/fopen: New file.
65431         * lib/fopen.c: New file.
65432         * m4/fopen.m4: New file.
65433         * modules/freopen: New file.
65434         * lib/freopen.c: New file.
65435         * m4/freopen.m4: New file.
65436         * lib/stdio.in.h (fopen, freopen): New declarations.
65437         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
65438         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65439         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
65440         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65441         * doc/functions/fopen.texi: Mention the 'fopen' module.
65442         * doc/functions/freopen.texi: Mention the 'freopen' module.
65443
65444 2007-10-06  Bruno Haible  <bruno@clisp.org>
65445
65446         * modules/open-tests: New file.
65447         * tests/test-open.c: New file.
65448
65449         * modules/open: New file.
65450         * lib/open.c: New file.
65451         * m4/open.m4: New file.
65452         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
65453         lib/open.c does.
65454         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
65455         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
65456         macros.
65457         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
65458         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
65459         REPLACE_OPEN.
65460         * doc/functions/open.texi: Mention the 'open' module.
65461
65462 2007-10-04  Bruno Haible  <bruno@clisp.org>
65463
65464         * modules/ceill-tests: New file.
65465         * tests/test-ceill.c: New file.
65466
65467         * modules/ceill: New file.
65468         * lib/ceill.c: Replace entire file.
65469         * m4/ceill.m4: New file.
65470         * lib/math.in.h (ceill): Replace declaration.
65471         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
65472         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
65473         * doc/functions/ceill.texi: Mention the 'ceill' module.
65474         * modules/mathl (Files): Remove lib/ceill.c.
65475         (Depends-on): Add ceill.
65476
65477 2007-10-04  Bruno Haible  <bruno@clisp.org>
65478
65479         * modules/ceilf-tests: New file.
65480         * tests/test-ceilf.c: New file.
65481
65482         * modules/ceilf: New file.
65483         * lib/ceil.c: New file.
65484         * lib/ceilf.c: New file.
65485         * m4/ceilf.m4: New file.
65486         * lib/math.in.h (ceilf): New declaration.
65487         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
65488         HAVE_DECL_CEILF.
65489         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
65490         HAVE_DECL_CEILF.
65491         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
65492
65493 2007-10-04  Bruno Haible  <bruno@clisp.org>
65494
65495         * modules/floorl-tests: New file.
65496         * tests/test-floorl.c: New file.
65497
65498         * modules/floorl: New file.
65499         * lib/floorl.c: Replace entire file.
65500         * m4/floorl.m4: New file.
65501         * lib/math.in.h (floorl): Replace declaration.
65502         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
65503         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
65504         * doc/functions/floorl.texi: Mention the 'floorl' module.
65505         * modules/mathl (Files): Remove lib/floorl.c.
65506         (Depends-on): Add floorl.
65507
65508 2007-10-04  Bruno Haible  <bruno@clisp.org>
65509
65510         * modules/floorf-tests: New file.
65511         * tests/test-floorf.c: New file.
65512
65513         * modules/floorf: New file.
65514         * lib/floor.c: New file.
65515         * lib/floorf.c: New file.
65516         * m4/floorf.m4: New file.
65517         * lib/math.in.h (floorf): New declaration.
65518         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
65519         HAVE_DECL_FLOORF.
65520         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
65521         HAVE_DECL_FLOORF.
65522         * doc/functions/floorf.texi: Mention the 'floorf' module.
65523
65524 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
65525             Bruno Haible  <bruno@clisp.org>
65526
65527         Advertise for the Git server instead of the CVS server.
65528         * doc/gnulib-intro.texi (Steady Development): Mention the Git
65529         repository instead of the CVS one.
65530         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
65531         about all VCS systems generically.
65532         * doc/gnulib.texi (Introduction): Capitalize `Git'.
65533
65534 2007-10-04  Bruno Haible  <bruno@clisp.org>
65535
65536         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
65537         means.
65538         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
65539
65540 2007-10-04  Bruno Haible  <bruno@clisp.org>
65541
65542         * modules/truncl-tests: New file.
65543         * tests/test-truncl.c: New file.
65544
65545         * modules/truncl: New file.
65546         * lib/truncl.c: New file.
65547         * m4/truncl.m4: New file.
65548         * lib/math.in.h (truncl): New declaration.
65549         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
65550         HAVE_DECL_TRUNCL.
65551         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
65552         HAVE_DECL_TRUNCL.
65553         * doc/functions/truncl.texi: Mention the 'truncl' module.
65554
65555 2007-10-04  Bruno Haible  <bruno@clisp.org>
65556
65557         * modules/truncf-tests: New file.
65558         * tests/test-truncf.c: New file.
65559
65560         * modules/truncf: New file.
65561         * lib/trunc.c: Make paramerizable through USE_* macros.
65562         * lib/truncf.c: New file.
65563         * m4/truncf.m4: New file.
65564         * lib/math.in.h (truncf): New declaration.
65565         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
65566         HAVE_DECL_TRUNCF.
65567         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
65568         HAVE_DECL_TRUNCF.
65569         * doc/functions/truncf.texi: Mention the 'truncf' module.
65570
65571 2007-10-03  Bruno Haible  <bruno@clisp.org>
65572
65573         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
65574         augmentation also for tests modules.
65575         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
65576         * modules/atexit-tests (Makefile.am): Likewise.
65577         * modules/binary-io-tests (Makefile.am): Likewise.
65578         * modules/c-strcase-tests (Makefile.am): Likewise.
65579         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
65580         * modules/canonicalize-tests (Makefile.am): Likewise.
65581         * modules/closein-tests (Makefile.am): Likewise.
65582         * modules/fprintf-posix-tests (Makefile.am): Likewise.
65583         * modules/freadahead-tests (Makefile.am): Likewise.
65584         * modules/fseek-tests (Makefile.am): Likewise.
65585         * modules/fseeko-tests (Makefile.am): Likewise.
65586         * modules/ftell-tests (Makefile.am): Likewise.
65587         * modules/ftello-tests (Makefile.am): Likewise.
65588         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
65589         * modules/isnanl-tests (Makefile.am): Likewise.
65590         * modules/lseek-tests (Makefile.am): Likewise.
65591         * modules/mbscasecmp-tests (Makefile.am): Likewise.
65592         * modules/mbscasestr-tests (Makefile.am): Likewise.
65593         * modules/mbschr-tests (Makefile.am): Likewise.
65594         * modules/mbscspn-tests (Makefile.am): Likewise.
65595         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
65596         * modules/mbspbrk-tests (Makefile.am): Likewise.
65597         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
65598         * modules/mbsrchr-tests (Makefile.am): Likewise.
65599         * modules/mbsspn-tests (Makefile.am): Likewise.
65600         * modules/mbsstr-tests (Makefile.am): Likewise.
65601         * modules/printf-posix-tests (Makefile.am): Likewise.
65602         * modules/snprintf-posix-tests (Makefile.am): Likewise.
65603         * modules/sprintf-posix-tests (Makefile.am): Likewise.
65604         * modules/tsearch-tests (Makefile.am): Likewise.
65605         * modules/uniname/uniname-tests (Makefile.am): Likewise.
65606         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
65607         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
65608         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
65609         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
65610         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
65611         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
65612         * modules/vprintf-posix-tests (Makefile.am): Likewise.
65613         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
65614         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
65615         * modules/xstrtoimax-tests (Makefile.am): Likewise.
65616         * modules/xstrtol-tests (Makefile.am): Likewise.
65617         * modules/xstrtoumax-tests (Makefile.am): Likewise.
65618         * modules/yesno-tests (Makefile.am): Likewise.
65619
65620 2007-10-03  Bruno Haible  <bruno@clisp.org>
65621
65622         * modules/trunc-tests: New file.
65623         * tests/test-trunc.c: New file.
65624
65625         * modules/trunc: New file.
65626         * lib/trunc.c: New file.
65627         * m4/trunc.m4: New file.
65628         * lib/math.in.h (trunc): New declaration.
65629         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
65630         HAVE_DECL_TRUNC.
65631         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
65632         HAVE_DECL_TRUNC.
65633         * doc/functions/trunc.texi: Mention the 'trunc' module.
65634
65635 2007-10-03  Bruno Haible  <bruno@clisp.org>
65636
65637         * tests/test-fpending.c: New file, mostly copied
65638         from coreutils/lib/t-fpending.c.
65639         * modules/fpending-tests: New file.
65640
65641 2007-10-03  Bruno Haible  <bruno@clisp.org>
65642
65643         Port the stdio extensions to QNX (untested).
65644         * lib/fseterr.c (fseterr): Add support for QNX.
65645         * lib/fbufmode.c (fbufmode): Likewise.
65646         * lib/freadable.c (freadable): Likewise.
65647         * lib/fwritable.c (fwritable): Likewise.
65648         * lib/freading.c (freading): Likewise.
65649         * lib/fwriting.c (fwriting): Likewise.
65650         * lib/freadahead.c (freadahed): Likewise.
65651         * lib/fpurge.c (fpurge): Likewise.
65652         * lib/fseeko.c (rpl_fseeko): Likewise.
65653
65654 2007-10-03  Bruno Haible  <bruno@clisp.org>
65655             Jim Meyering  <jim@meyering.net>
65656             Eric Blake  <ebb9@byu.net>
65657
65658         * doc/relocatable.texi: Use @command instead of @program.
65659
65660 2007-10-02  Jim Meyering  <jim@meyering.net>
65661
65662         Perform one more "_.h" -> ".in.h" substitution.
65663         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
65664         instead of unistd_.h here, too.
65665
65666 2007-10-01  Bruno Haible  <bruno@clisp.org>
65667
65668         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
65669         Needed for the alloca-opt module.
65670
65671 2007-09-30  Bruno Haible  <bruno@clisp.org>
65672
65673         * lib/alloca.in.h: Renamed from lib/alloca_.h.
65674         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
65675         alloca_.h.
65676         * lib/argz.in.h: Renamed from lib/argz_.h.
65677         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
65678         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
65679         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
65680         byteswap_.h.
65681         * lib/dirent.in.h: Renamed from lib/dirent_.h.
65682         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
65683         dirent_.h.
65684         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
65685         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
65686         fcntl_.h.
65687         * lib/float.in.h: Renamed from lib/float_.h.
65688         * modules/float (Files, Makefile.am): Use float.in.h instead of
65689         float_.h.
65690         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
65691         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
65692         fnmatch_.h.
65693         * lib/getopt.in.h: Renamed from lib/getopt_.h.
65694         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
65695         getopt_.h.
65696         * lib/glob.in.h: Renamed from lib/glob_.h.
65697         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
65698         * lib/iconv.in.h: Renamed from lib/iconv_.h.
65699         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
65700         iconv_.h.
65701         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
65702         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
65703         inttypes_.h.
65704         * lib/locale.in.h: Renamed from lib/locale_.h.
65705         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
65706         locale_.h.
65707         * lib/math.in.h: Renamed from lib/math_.h.
65708         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
65709         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
65710         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
65711         of netinet_in_.h. Add dependency.
65712         * lib/poll.in.h: Renamed from lib/poll_.h.
65713         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
65714         * lib/search.in.h: Renamed from lib/search_.h.
65715         * modules/search (Files, Makefile.am): Use search.in.h instead of
65716         search_.h.
65717         * lib/signal.in.h: Renamed from lib/signal_.h.
65718         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
65719         _signal.h.
65720         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
65721         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
65722         stdbool_.h.
65723         * lib/stdint.in.h: Renamed from lib/stdint_.h.
65724         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
65725         stdint_.h.
65726         * lib/stdio.in.h: Renamed from lib/stdio_.h.
65727         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
65728         stdio_.h.
65729         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
65730         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
65731         stdlib_.h.
65732         * lib/string.in.h: Renamed from lib/string_.h.
65733         * modules/string (Files, Makefile.am): Use string.in.h instead of
65734         string_.h.
65735         * doc/gnulib-tool.texi (Initial import): Update.
65736         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
65737         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
65738         of sys_select_.h. Add dependency.
65739         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
65740         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
65741         of sys_socket_.h.
65742         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
65743         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
65744         sys_stat_.h.
65745         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
65746         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
65747         sys_time_.h.
65748         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
65749         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
65750         sysexits_.h.
65751         * lib/time.in.h: Renamed from lib/time_.h.
65752         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
65753         * lib/unistd.in.h: Renamed from lib/unistd_.h.
65754         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
65755         unistd_.h.
65756         * lib/wchar.in.h: Renamed from lib/wchar_.h.
65757         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
65758         wchar_.h.
65759         * lib/wctype.in.h: Renamed from lib/wctype_.h.
65760         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
65761         wctype_.h.
65762         * build-aux/bootstrap (slurp): Update.
65763         * lib/.cppi-disable: Update.
65764
65765 2007-09-30  Bruno Haible  <bruno@clisp.org>
65766
65767         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
65768         Needed on BeOS.
65769
65770 2007-09-30  Bruno Haible  <bruno@clisp.org>
65771
65772         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
65773
65774 2007-09-29  Bruno Haible  <bruno@clisp.org>
65775
65776         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
65777
65778 2007-09-29  Bruno Haible  <bruno@clisp.org>
65779
65780         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
65781         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
65782         * build-aux/install-reloc: Compile also areadlink.c.
65783         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
65784
65785 2007-09-29  Bruno Haible  <bruno@clisp.org>
65786
65787         * gnulib-tool (func_emit_initmacro_done): Indentation.
65788
65789 2007-09-29  Bruno Haible  <bruno@clisp.org>
65790
65791         * README: Add CVS checkout update instructions.
65792         Info from Bob Proulx <bob@proulx.com>.
65793
65794 2007-09-28  Eric Blake  <ebb9@byu.net>
65795
65796         Provide move-if-change.
65797         * build-aux/move-if-change: New file, based on best practice
65798         rather than any canonical upstream location.
65799
65800 2007-09-28  Jim Meyering  <jim@meyering.net>
65801
65802         Fix canonicalize loop-detection corner case.
65803         Do not attempt to stat the symlink values stored via seen_triple.
65804         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
65805         on linux-2.6.18, (but not 2.6.22).
65806         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
65807         triple_compare.  The former compares dev,ino,filename, while the latter
65808         would actually stat dirname(filename) when dev and ino were equal.
65809         * lib/hash-triple.c: Install <string.h>.
65810         (STREQ): Define.
65811         (triple_compare_ino_str): New function.
65812         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
65813
65814 2007-09-28  Eric Blake  <ebb9@byu.net>
65815
65816         Enforce that AC_REPLACE_FUNCS files exist.
65817         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
65818         override check for typos.
65819
65820         Fix test-closein on Solaris 10.
65821         * tests/test-closein.c (main): Don't assume stdin can be inherited
65822         closed on all systems.
65823         * tests/test-closein.sh: Likewise.
65824         Reported by Piotr Tarnowski.
65825
65826 2007-09-28  Jim Meyering  <jim@meyering.net>
65827
65828         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
65829
65830 2007-09-27  Jim Meyering  <jim@meyering.net>
65831
65832         canonicalize: Avoid a false-positive cycle failure.
65833         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
65834         Sort.  Remove cycle-check.
65835         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
65836         not cycle-check.h.
65837         (seen_triple): New function.
65838         (canonicalize_filename_mode): Use it instead of cycle-check.
65839         * tests/test-canonicalize.c: Add a test for this bug.
65840         * tests/test-canonicalize.sh: Set up and run the test.
65841
65842         New module, file-set, from coreutils.
65843         * modules/file-set: Define it.
65844         * lib/file-set.c, lib/file-set.h: Implement.
65845
65846         New module, hash-triple, from coreutils.
65847         * modules/hash-triple: Define it.
65848         * lib/hash-triple.c, lib/hash-triple.h: Implement.
65849
65850 2007-09-25  Eric Blake  <ebb9@byu.net>
65851
65852         Fix strerror on Interix.
65853         * lib/string_.h (strerror): Declare replacement.
65854         * doc/functions/strerror.texi (strerror): Document the Interix
65855         shortcoming.
65856         * modules/string (Makefile.am): Support new hooks.
65857         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
65858         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
65859         gl_FUNC_STRERROR_SEPARATE.
65860         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
65861         * lib/strerror.c (rpl_strerror): Provide replacement.
65862         * modules/strerror (Depends-on): Add string.
65863         (configure.ac): Detect use of module.
65864         * tests/test-strerror.c: New file.
65865         * modules/strerror-tests: New test module.
65866         * modules/argp (Depends-on): Add strerror.
65867         * modules/error (Depends-on): Likewise.
65868         Reported by Martin Koeppe.
65869
65870 2007-09-24  Bruno Haible  <bruno@clisp.org>
65871
65872         * README: Update git instructions.
65873
65874 2007-09-24  Eric Blake  <ebb9@byu.net>
65875
65876         Revert fpending breakage from 2007-09-08.
65877         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
65878         __fpending.c.
65879
65880 2007-09-24  Jim Meyering  <jim@meyering.net>
65881
65882         filenamecat.c: Add a test.
65883         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
65884         showing how the function works when DIR is the empty string.
65885
65886 2007-09-21  Simon Josefsson  <simon@josefsson.org>
65887
65888         * tests/test-canonicalize.sh: Turn on executable bit.
65889
65890 2007-09-19  Eric Blake  <ebb9@byu.net>
65891
65892         * README: Update CVS instructions.
65893
65894 2007-09-18  Bruno Haible  <bruno@clisp.org>
65895
65896         * modules/areadlink: New file.
65897         * lib/areadlink.h (areadlink): New declaration.
65898         * lib/areadlink.c: New file, based on lib/xreadlink.c.
65899
65900 2007-09-17  Jim Meyering  <jim@meyering.net>
65901
65902         * lib/savewd.c (ESTALE) [!defined]: Define.
65903         Reported to be required on Interix by Martin Koeppe.
65904
65905 2007-09-17  Bruno Haible  <bruno@clisp.org>
65906
65907         * gnulib-tool (func_version): Use $version.
65908
65909 2007-09-16  Bruno Haible  <bruno@clisp.org>
65910
65911         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
65912         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
65913         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
65914         Reported by Greg Schafer <gschafer@zip.com.au>.
65915
65916 2007-09-15  Bruno Haible  <bruno@clisp.org>
65917
65918         * gnulib-tool (sed): Try a little harder to make bash understand the
65919         alias.
65920         Reported by Bruce Korb <bruce.korb@gmail.com>.
65921
65922 2007-09-13  Eric Blake  <ebb9@byu.net>
65923
65924         * ChangeLog: Remove conflict markers.
65925
65926 2007-09-13  Simon Josefsson  <simon@josefsson.org>
65927
65928         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
65929         Reported by Bruno Haible <bruno@clisp.org>.
65930
65931 2007-09-12  Bruno Haible  <bruno@clisp.org>
65932
65933         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
65934         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
65935         is not defined.
65936
65937 2007-09-12  Eric Blake  <ebb9@byu.net>
65938
65939         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
65940         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
65941         Autoconf definition.
65942         * modules/euidaccess (Depends-on): Add extensions, for
65943         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
65944         * modules/fnmatch (Depends-on): Likewise.
65945         * modules/getaddrinfo (Depends-on): Likewise.
65946         * modules/getdelim (Depends-on): Likewise.
65947         * modules/getline (Depends-on): Likewise.
65948         * modules/getsubopt (Depends-on): Likewise.
65949         * modules/gettext (Depends-on): Likewise.
65950         * modules/group-member (Depends-on): Likewise.
65951         * modules/mbchar (Depends-on): Likewise.
65952         * modules/memmem (Depends-on): Likewise.
65953         * modules/mempcpy (Depends-on): Likewise.
65954         * modules/memrchr (Depends-on): Likewise.
65955         * modules/pagealign_alloc (Depends-on): Likewise.
65956         * modules/readutmp (Depends-on): Likewise.
65957         * modules/stpcpy (Depends-on): Likewise.
65958         * modules/stpncpy (Depends-on): Likewise.
65959         * modules/strchrnul (Depends-on): Likewise.
65960         * modules/strndup (Depends-on): Likewise.
65961         * modules/strsep (Depends-on): Likewise.
65962         * modules/strverscmp (Depends-on): Likewise.
65963         * modules/vasprintf (Depends-on): Likewise.
65964         * modules/wcwidth (Depends-on): Likewise.
65965         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
65966         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
65967         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
65968         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
65969         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
65970         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65971         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
65972         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65973         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
65974         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
65975         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
65976         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65977         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65978         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
65979         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
65980         * m4/readutmp.m4 (gl_READUTMP): Likewise.
65981         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65982         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65983         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65984         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65985         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65986         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65987         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65988         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
65989         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
65990         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65991         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
65992         so that lock.m4 can be used in gettext without extensions module.
65993
65994 2007-09-11  Bruno Haible  <bruno@clisp.org>
65995
65996         * m4/isc-posix.m4: Remove file.
65997         Suggested by Eric Blake.
65998
65999 2007-09-11  Eric Blake  <ebb9@byu.net>
66000
66001         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
66002
66003 2007-09-10  Bruno Haible  <bruno@clisp.org>
66004
66005         * posix-modules: Fix typo in error message.
66006         Reported by Matt <mkraai@beckman.com>.
66007
66008 2007-09-09  Bruno Haible  <bruno@clisp.org>
66009
66010         * doc/functions/getdelim.texi: Update list of platforms lacking the
66011         function.
66012         * doc/functions/getline.texi: Likewise.
66013
66014 2007-09-09  Jim Meyering  <jim@meyering.net>
66015
66016         * lib/hash.c (hash_initialize): Detect calloc failure.
66017         Reported by Bruno Haible.
66018
66019 2007-09-09  Bruno Haible  <bruno@clisp.org>
66020
66021         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
66022         malloc or realloc fails.
66023
66024 2007-09-09  Bruno Haible  <bruno@clisp.org>
66025
66026         * modules/getcwd (Depends-on): Add malloc-posix.
66027         * modules/glob (Depends-on): Likewise.
66028         * modules/putenv (Depends-on): Likewise.
66029         * modules/strdup (Depends-on): Likewise.
66030         * modules/getdelim (Depends-on): Add realloc-posix.
66031         * modules/read-file (Depends-on): Likewise.
66032
66033 2007-09-09  Bruno Haible  <bruno@clisp.org>
66034
66035         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
66036         (gl_FUNC_MALLOC_POSIX): Require it.
66037         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
66038         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
66039         * modules/realloc (Files): Add m4/malloc.m4.
66040         * modules/calloc (Files): Likewise.
66041
66042 2007-09-09  Bruno Haible  <bruno@clisp.org>
66043
66044         * modules/malloc-posix: New file.
66045         * modules/malloc (Depends-on): Add malloc-posix.
66046         * lib/malloc.c: Include errno.h.
66047         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
66048         and a POSIX-compatible malloc into a single function. Set ENOMEM
66049         when returning NULL.
66050         * m4/malloc.m4: New file.
66051         * doc/functions/malloc.texi: Mention the malloc-posix module.
66052         * lib/stdlib_.h (malloc): New declaration.
66053         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66054         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
66055         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
66056         and HAVE_MALLOC_POSIX.
66057
66058 2007-09-09  Bruno Haible  <bruno@clisp.org>
66059
66060         * modules/realloc-posix: New file.
66061         * modules/realloc (Depends-on): Add realloc-posix.
66062         * lib/realloc.c: Include errno.h.
66063         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
66064         and a POSIX-compatible realloc into a single function. Set ENOMEM
66065         when returning NULL.
66066         * m4/realloc.m4: New file.
66067         * doc/functions/realloc.texi: Mention the realloc-posix module.
66068         * lib/stdlib_.h (realloc): New declaration.
66069         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66070         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
66071         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
66072         and HAVE_REALLOC_POSIX.
66073
66074 2007-09-09  Bruno Haible  <bruno@clisp.org>
66075
66076         * modules/calloc-posix: New file.
66077         * modules/calloc (Depends-on): Add calloc-posix.
66078         * lib/calloc.c: Include errno.h.
66079         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
66080         and a POSIX-compatible calloc into a single function. Set ENOMEM
66081         when returning NULL.
66082         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
66083         * doc/functions/calloc.texi: Mention the calloc-posix module.
66084         * lib/stdlib_.h (calloc): New declaration.
66085         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66086         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
66087         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
66088         and HAVE_CALLOC_POSIX.
66089
66090 2007-09-09  Bruno Haible  <bruno@clisp.org>
66091
66092         Allow for modules to show an arbitrary notice.
66093         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
66094         * gnulib-tool: New option --extract-notice.
66095         (func_usage): Document it.
66096         (sed_extract_prog): Update.
66097         (func_get_notice): New function.
66098         (func_modules_notice): New function.
66099         (func_import, func_create_testdir): Invoke it.
66100         Suggested by Jim Meyering.
66101
66102 2007-09-09  Bruno Haible  <bruno@clisp.org>
66103
66104         * gnulib-tool: New options --verbose, --quiet.
66105         (func_usage): Document them.
66106         (verbose): New variable.
66107         (func_execute_command): New function.
66108         (func_import): Don't show the module list and the file list if
66109         $verbose < 0.
66110         (func_create_testdir): Likewise. Use func_execute_command.
66111         (func_create_megatestdir): Use func_execute_command.
66112
66113 2007-09-08  Bruno Haible  <bruno@clisp.org>
66114
66115         * gnulib-tool (func_import): Prefer rsync over wget when available,
66116         for fetching the PO files.
66117
66118 2007-09-08  Bruno Haible  <bruno@clisp.org>
66119
66120         * posix-modules: New file. Portions copied from gnulib-tool.
66121         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
66122
66123 2007-09-08  Jim Meyering  <jim@meyering.net>
66124
66125         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
66126         * lib/fpending.h: Rename from __fpending.h.
66127         * lib/fpending.c: Rename from __fpending.c.
66128         Include "fpending.h", not "__fpending.h".
66129         * lib/__fpending.h, lib/__fpending.c: Remove files.
66130         * modules/fpending (Files): Reflect new file names.
66131         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
66132
66133 2007-09-08  Bruno Haible  <bruno@clisp.org>
66134
66135         * m4/inttypes-h.m4: Remove stub file.
66136
66137 2007-09-07  Simon Josefsson  <simon@josefsson.org>
66138
66139         * doc/headers/stdint.texi: Discuss #include_next issue.
66140
66141 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66142
66143         * build-aux/bootstrap: Remove obsolete comment about wget --help.
66144
66145 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66146
66147         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
66148         in variable name.
66149
66150 2007-09-03  Jim Meyering  <jim@meyering.net>
66151
66152         New module: git-version-gen.
66153         * modules/git-version-gen: New file.
66154
66155         Import changes from coreutils for bootstrap script.
66156
66157         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
66158
66159         bootstrap: uses rsync to download the .po files
66160         * build-aux/bootstrap (po_download_command_format): New global.
66161         (download_po_files): Use rsync.
66162         (update_po_files): Don't remove .po files after download,
66163         so future rsync runs can take advantage of the copies.
66164
66165         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
66166
66167         Solve the unnecessary-.po-file-regeneration problem once and for all.
66168         * build-aux/bootstrap (download_po_files): New function, renamed from
66169         get_translations.  Now, downloads, but doesn't update LINGUAS.
66170         (update_po_files): New function.
66171
66172         bootstrap: Ignore more.
66173         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
66174         uniwidth to e.g., lib/.gitignore.
66175         (slurp): Handle the sys_stat_.h -> sys mapping, too.
66176
66177         * build-aux/bootstrap: New setting: vc_ignore.
66178         (insert_sorted_if_absent): Create $file if absent.
66179         Adapt to new, possibly empty, list: $vc_ignore.
66180
66181         bootstrap: generate more ignorable names
66182         * build-aux/bootstrap (slurp): When generating ignorable names,
66183         also map .sin to .sed, .gperf to .c, and .y to .c.
66184
66185 2007-09-03  Jim Meyering  <jim@meyering.net>
66186
66187         * build-aux/git-version-gen: New file, from coreutils.  For details, see
66188         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
66189
66190 2007-09-02  Bruno Haible  <bruno@clisp.org>
66191
66192         Fix mis-recognition of 'mcs' on QNX 6.
66193         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
66194         output contains the string "Mono".
66195         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
66196         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
66197
66198 2007-09-01  Bruno Haible  <bruno@clisp.org>
66199
66200         Fix collision between uniwidth/* and linebreak modules.
66201         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
66202         u32_width): Remove declarations.
66203         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
66204         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
66205         streq3, streq2, streq1, streq0): Remove functions.
66206         (STREQ): Remove macro.
66207         (is_cjk_encoding): Remove function.
66208         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
66209         (uc_width, u8_width, u16_width, u32_width): Remove functions.
66210         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
66211         * NEWS: Document the change.
66212
66213 2007-09-01  Bruno Haible  <bruno@clisp.org>
66214
66215         * lib/streq.h: Add double-inclusion guard.
66216
66217 2007-09-01  Karl Berry  <karl@gnu.org>
66218
66219         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
66220
66221 2007-08-28  Jim Meyering  <jim@meyering.net>
66222
66223         Rename mreadlink_with_size to areadlink_with_size.
66224         * NEWS: Document the change.
66225         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
66226         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
66227         * lib/mreadlink.h: Rename this to...
66228         * lib/areadlink.h: ...this.
66229         * modules/mreadlink-with-size: Rename this to...
66230         * modules/areadlink-with-size: ...this.
66231         * lib/canonicalize.c: Reflect the renaming.
66232         * modules/canonicalize: Likewise.
66233
66234 2007-08-26  Bruno Haible  <bruno@clisp.org>
66235
66236         * gnulib-tool (func_import): When deciding which files to remove,
66237         consider also dangling symbolic links.
66238         Reported by Eric Blake.
66239
66240 2007-08-26  Bruno Haible  <bruno@clisp.org>
66241
66242         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
66243
66244 2007-08-23  Simon Josefsson  <simon@josefsson.org>
66245
66246         * lib/readline.c: Don't include getline.h, the prototype is now
66247         found in stdio.h.
66248
66249 2007-08-23  Jim Meyering  <jim@meyering.net>
66250
66251         Getdelim touchup.
66252         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
66253         around the funlockfile call, since funlockfile never sets errno.
66254         Don't set errno upon failed realloc.
66255
66256 2007-08-22  Eric Blake  <ebb9@byu.net>
66257
66258         Getline touchups.
66259         * lib/getdelim.c (getdelim): Revert regression that required *n to
66260         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
66261         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
66262         getdelim, rather than whether implementation is missing.
66263         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
66264         * lib/stdio_.h (getline): Also declare if replacement is
66265         required.
66266         * doc/functions/getdelim.texi: New file.
66267         * doc/functions/getline.texi: Likewise.
66268         * doc/gnulib.texi (Function Substitutes): Add new files.
66269         Reported by Bruno Haible.
66270
66271 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
66272
66273         * users.txt: Add Guile.
66274
66275 2007-08-22  Eric Blake  <ebb9@byu.net>
66276
66277         * tests/test-getdelim.c (main): Use remove, not unlink.
66278         * tests/test-getline.c (main): Likewise.
66279
66280         Move getline and getdelim into stdio.h, per POSIX 200x.
66281         * modules/getline (Files): Remove getline.h.
66282         (Depends-on): Add stdio.
66283         (configure.ac): Add module indicator.
66284         * modules/getdelim (Files): Remove getdelim.h.
66285         (Depends-on): Add stdio.
66286         (configure.ac): Add module indicator.
66287         * modules/stdio (Makefile.am): Work with new indicators.
66288         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
66289         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
66290         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66291         * lib/getdelim.h: Delete.
66292         * lib/getline.h: Delete.
66293         * lib/stdio_.h (getdelim, getline): Declare.
66294         * modules/getdelim-tests: New module.
66295         * modules/getline-tests: Likewise.
66296         * tests/test-getdelim.c: New file.
66297         * tests/test-getline.c: Likewise.
66298         * NEWS: Document the change.
66299         * lib/getline.c: Update choice of header.
66300         * lib/csharpcomp.c: Likewise.
66301         * lib/getpass.c: Likewise.
66302         * lib/javacomp.c: Likewise.
66303         * lib/javaversion.c: Likewise.
66304         * lib/yesno.c: Likewise.
66305         * lib/getdelim.c: Likewise.
66306         (getdelim): Set errno on failure, and avoid memory leak.
66307
66308 2007-08-19  Bruno Haible  <bruno@clisp.org>
66309
66310         * modules/closein (Depends-on): Add freadahead.
66311         * lib/closein.c: Include freadahead.h.
66312         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
66313         is zero.
66314
66315 2007-08-19  Bruno Haible  <bruno@clisp.org>
66316
66317         * modules/freadahead-tests: New file.
66318         * tests/test-freadahead.sh: New file.
66319         * tests/test-freadahead.c: New file.
66320
66321         * modules/freadahead: New file.
66322         * lib/freadahead.h: New file.
66323         * lib/freadahead.c: New file.
66324         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
66325         fbufmode, fpurge, freadable, fwritable.
66326
66327 2007-08-19  Eric Blake  <ebb9@byu.net>
66328
66329         Test yesno in combination with closein.
66330         * lib/yesno.c (yesno): Document use of stdin.
66331         * modules/yesno-tests (Files): New module.
66332         * tests/test-yesno.c (main): New file.
66333         * tests/test-yesno.sh: Likewise.
66334
66335 2007-08-19  Bruno Haible  <bruno@clisp.org>
66336
66337         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
66338         * lib/fseeko.c (rpl_fseeko): Likewise.
66339         * lib/fseterr.c (fseterr): Likewise.
66340
66341 2007-08-19  Bruno Haible  <bruno@clisp.org>
66342
66343         * tests/test-lseek.c (main): Disable a test for BeOS.
66344         * doc/functions/lseek.texi: Document the BeOS bug.
66345
66346 2007-08-19  Bruno Haible  <bruno@clisp.org>
66347             Eric Blake  <ebb9@byu.net>
66348
66349         * lib/lseek.c: Include <sys/stat.h>.
66350         (rpl_lseek): Add workaround code also for Unix platforms.
66351         Needed for BeOS.
66352         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
66353         * doc/functions/lseek.texi: Document BeOS definiency.
66354
66355 2007-08-18  Bruno Haible  <bruno@clisp.org>
66356
66357         * modules/fstrcmp-tests: New file.
66358         * tests/test-fstrcmp.c: New file.
66359
66360 2007-08-18  Bruno Haible  <bruno@clisp.org>
66361
66362         * modules/fstrcmp: New file, from GNU gettext with modifications.
66363         * lib/fstrcmp.h: New file, from GNU gettext.
66364         * lib/fstrcmp.c: New file, from GNU gettext.
66365         * MODULES.html.sh (String handling): Add fstrcmp.
66366
66367 2007-08-18  Bruno Haible  <bruno@clisp.org>
66368
66369         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
66370         'bool'.
66371         (diag, compareseq): Remove const from the ctxt argument.
66372         (USE_HEURISTIC): Undefine at the end.
66373
66374 2007-08-18  Jim Meyering  <jim@meyering.net>
66375
66376         New file: lib/idcache.h
66377         * NEWS: Mention the addition.
66378         * modules/idcache (Files): Add lib/idcache.h
66379         * lib/idcache.c: Include "idcache.h".
66380         Don't include <sys/types.h>.
66381         Add a FIXME comment.
66382         Move file-scoped "static" declarations to the top.
66383         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
66384
66385 2007-08-17  Bruno Haible  <bruno@clisp.org>
66386         and Paul Eggert  <eggert@cs.ucla.edu>
66387
66388         * MODULES.html.sh: Add diffseq.
66389         * modules/diffseq: New file.
66390         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
66391         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
66392
66393 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66394
66395         Import changes from coreutils for bootstrap script.
66396
66397         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
66398
66399         * build-aux/bootstrap (slurp): Work even in environments where
66400         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
66401         current code does not slurp files whose names start with ".", and
66402         this looks like it might be a troublesome area.
66403
66404         2007-07-11  Jim Meyering  <jim@meyering.net>
66405
66406         If there's a GPL vN copyright comment, require that N == 3.
66407
66408         2007-07-08  Jim Meyering  <jim@meyering.net>
66409
66410         Run the coreutils-specific code only if tests/Makefile.am.in exists.
66411         * build-aux/bootstrap (mam_template): Move definition out of loop.
66412
66413         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
66414
66415         * build-aux/bootstrap (symlink_to_dir): Rename function from
66416         symlink_to_gnulib.  Add a directory parameter.  Update all
66417         callers.
66418         (cp_mark_as_generated): Also check for -- and link to -- files in
66419         gl/.
66420
66421         2007-07-08  Jim Meyering  <jim@meyering.net>
66422
66423         Adapt to deeper hierarchy in gnulib.
66424         * build-aux/bootstrap (symlink_to_dir): If the destination
66425         directory doesn't exist, create it. This is required at least for
66426         "lib/uniwidth/cjk.h".
66427
66428         2007-05-15  Jim Meyering  <jim@meyering.net>
66429
66430         * build-aux/bootstrap: Now that generated Makefile.am files
66431         are no longer under version control, they must be created at
66432         bootstrap time.
66433
66434 2007-08-14  Ben Pfaff  <blp@gnu.org>
66435
66436         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
66437
66438 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66439
66440         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
66441         given the changes below.
66442         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
66443         even on hosts that have padding bits beyond the supported 64.
66444
66445 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66446
66447         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
66448         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
66449         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
66450         depends on it.
66451         (xstrtol_error): Remove.
66452         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
66453         but with a different signature.
66454         (ATTRIBUTE_NORETURN, __attribute__): New macros.
66455         * lib/xstrtol-error.c: Include exitfail.h.
66456         (xstrtol_fatal): New function, with a different signature from the
66457         old xstrtol_error, so that the caller need not worry about passing
66458         in an exit status, or about storage management of the option argument.
66459         (xstrtol_error): Now a static function.  Redo signature to
66460         implement xstrtol_fatal.  Output the correct number of hyphens in
66461         front of the option so that the caller need not worry about
66462         storage management.
66463         (N_): New macro.
66464         (_): Remove; not used now.
66465         * modules/xstrtol: Depend on getopt.
66466         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
66467         of old STRTOL_FATAL_ERROR macro.
66468         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
66469         of test program.
66470         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
66471         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
66472
66473 2007-08-08  Eric Blake  <ebb9@byu.net>
66474
66475         * lib/xstrtol-error.c: Add missing include.
66476
66477         Move xstrtol messages into gnulib domain, when --pobase is used.
66478         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
66479         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
66480         * modules/xstrtol (Files): Distribute new file.
66481         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
66482         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
66483         * tests/test-xstrtol.c: ...into new file.
66484         * tests/test-xstrtoul.c: Also test xstrtoul.
66485         * tests/test-xstrtoimax.c: Also test xstrtoimax.
66486         * tests/test-xstrtoumax.c: Also test xstrtoumax.
66487         * tests/test-xstrtol.sh: Drive the tests.
66488         * tests/test-xstrtoimax.sh: Likewise.
66489         * tests/test-xstrtoumax.sh: Likewise.
66490         * modules/xstrtol-tests: New module.
66491         * modules/xstrtoimax-tests: Likewise.
66492         * modules/xstrtoumax-tests: Likewise.
66493
66494 2007-08-08  Jim Meyering  <jim@meyering.net>
66495
66496         New function: mfile_name_concat.
66497         * lib/filenamecat.c (mfile_name_concat): New function, just like
66498         file_name_concat, but return NULL upon failure rather than exiting
66499         with a diagnostic.
66500         * lib/filenamecat.h: Declare it.
66501
66502 2007-08-07  Bruno Haible  <bruno@clisp.org>
66503
66504         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
66505         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
66506         warning from gcc.
66507         Reported by Eric Blake.
66508
66509 2007-08-07  Simon Josefsson  <simon@josefsson.org>
66510
66511         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
66512         * modules/crypto/arcfour (License): Likewise.
66513         * modules/crypto/des-tests (License): Likewise.
66514         * modules/crypto/gc-arctwo-tests (License): Likewise.
66515         * modules/crypto/gc-des-tests (License): Likewise.
66516         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
66517         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
66518         * modules/crypto/gc-md2-tests (License): Likewise.
66519         * modules/crypto/gc-md4-tests (License): Likewise.
66520         * modules/crypto/gc-md5-tests (License): Likewise.
66521         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
66522         * modules/crypto/gc-rijndael-tests (License): Likewise.
66523         * modules/crypto/gc-sha1-tests (License): Likewise.
66524         * modules/crypto/gc-tests (License): Likewise.
66525         * modules/crypto/hmac-md5 (License): Likewise.
66526         * modules/crypto/hmac-sha1 (License): Likewise.
66527         * modules/crypto/md2-tests (License): Likewise.
66528         * modules/crypto/md4-tests (License): Likewise.
66529         * modules/crypto/md5 (License): Likewise.
66530         * modules/crypto/rijndael (License): Likewise.
66531         * modules/crypto/sha1 (License): Likewise.
66532         * modules/memxor (License): Likewise.
66533
66534 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
66535         and Bruno Haible  <bruno@clisp.org>
66536
66537         * NEWS: Describe interface changes to human, xstrtol.
66538         * lib/human.h: Include <xstrtol.h>.
66539         (human_options): Return enum strtol_error, not int.  Remove
66540         bool arg; take int * instead.
66541         * lib/human.c: Don't include "gettext.h".
66542         (_): Remove; no longer used.
66543         Don't include <xstrtol.h>, since human.h does it.
66544         (human_options): Adjust to abovementioned interface changes.
66545         Do not report error to stderr; that's now the caller's
66546         responsibility.
66547         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
66548         interface change.
66549         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
66550         Str, Argument_type_string.  All uses changed.  Put " argument"
66551         in diagnostics to make them clearer.  Change wording of suffix
66552         message for clarity.
66553         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
66554         Argument_type_string.
66555         (STRTOL_FATAL_WARN): Remove; no longer used.
66556         * modules/human (Depends-on): Remove gettext-h.
66557
66558 2007-08-06  Simon Josefsson  <simon@josefsson.org>
66559
66560         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
66561
66562 2007-07-31  Bruno Haible  <bruno@clisp.org>
66563
66564         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
66565         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
66566         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
66567
66568 2007-07-31  Bruno Haible  <bruno@clisp.org>
66569
66570         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
66571         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
66572
66573 2007-07-30  Bruno Haible  <bruno@clisp.org>
66574
66575         * modules/base64 (License): Use the synonymous term "LGPLv2+".
66576         * modules/c-ctype (License): Likewise.
66577         * modules/c-strcase (License): Likewise.
66578         * modules/check-version (License): Likewise.
66579         * modules/iconv (License): Likewise.
66580         * modules/iconv_open (License): Likewise.
66581         * modules/read-file (License): Likewise.
66582         * modules/striconv (License): Likewise.
66583         * modules/strverscmp (License): Likewise.
66584         * modules/vasprintf (License): Likewise.
66585         * modules/crypto/des (License): Likewise.
66586         * modules/crypto/gc (License): Likewise.
66587         * modules/crypto/gc-arcfour (License): Likewise.
66588         * modules/crypto/gc-arctwo (License): Likewise.
66589         * modules/crypto/gc-des (License): Likewise.
66590         * modules/crypto/gc-hmac-md5 (License): Likewise.
66591         * modules/crypto/gc-hmac-sha1 (License): Likewise.
66592         * modules/crypto/gc-md2 (License): Likewise.
66593         * modules/crypto/gc-md4 (License): Likewise.
66594         * modules/crypto/gc-md5 (License): Likewise.
66595         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
66596         * modules/crypto/gc-random (License): Likewise.
66597         * modules/crypto/gc-rijndael (License): Likewise.
66598         * modules/crypto/gc-sha1 (License): Likewise.
66599         * modules/crypto/md2 (License): Likewise.
66600         * modules/crypto/md4 (License): Likewise.
66601
66602 2007-07-30  Jim Meyering  <jim@meyering.net>
66603
66604         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
66605         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
66606         it has valid stat data.  This bug would cause du not to count the
66607         sizes of inaccessible directories.
66608         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
66609         in <http://bugzilla.redhat.com/250077>.
66610
66611 2007-07-25  Peter O'Gorman  <peter@pogma.com>
66612             Bruno Haible  <bruno@clisp.org>
66613
66614         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
66615         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
66616         #include_next, gives a diagnostic about it, but reports no error in
66617         the exit code.
66618         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
66619
66620 2007-07-24  Ben Pfaff  <blp@gnu.org>
66621
66622         Improve name: "count-one-bits" is better than "popcount".
66623         * MODULES.html.sh: Update name.
66624         * lib/popcount.h: Renamed lib/count-one-bits.h.
66625         (popcount): Renamed count_one_bits.
66626         (popcountl): Renamed count_one_bits_l.
66627         (popcountll): Renamed count_one_bits_ll.
66628         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
66629         * modules/popcount: Renamed module/count-one-bits.
66630         * modules/popcount-tests: Renamed module/count-one-bits-tests.
66631         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
66632
66633 2007-07-23  Ben Pfaff  <blp@gnu.org>
66634
66635         * lib/popcount.h (popcount32): Reduce size of constants, to allow
66636         better code generation, and add U to large constants to avoid
66637         warnings, in non-GCC case.
66638         Suggested by Bruno Haible.
66639
66640 2007-07-23  Ben Pfaff  <blp@gnu.org>
66641
66642         * lib/popcount.h: Use verify_true instead of if...abort.
66643         * modules/popcount: Depend on verify module.
66644         Suggested by Jim Meyering.
66645
66646 2007-07-23  Bruno Haible  <bruno@clisp.org>
66647
66648         * gnulib-tool (func_import): Create a .cvsignore file also when the
66649         directory is not yet in CVS but the toplevel directory is. When
66650         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
66651         Reported by Karl Berry.
66652
66653 2007-07-22  Ben Pfaff  <blp@gnu.org>
66654
66655         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
66656         case.
66657         Suggested by Eric Blake.
66658
66659 2007-07-22  Ben Pfaff  <blp@gnu.org>
66660
66661         New module: popcount.
66662         * MODULES.html.sh: Add popcount.
66663         * modules/popcount: New file.
66664         * modules/popcount-tests: New file.
66665         * tests/test-popcount.c: New file.
66666         * lib/popcount.h: New file.
66667         * m4/popcount.m4: New file.
66668
66669 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66670
66671         * build-aux/announce-gen: Update to GPLv3.
66672
66673         * build-aux/config.guess: Update from config.
66674
66675 2007-07-21  Bruno Haible  <bruno@clisp.org>
66676
66677         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
66678         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
66679
66680 2007-07-20  Jim Meyering  <jim@meyering.net>
66681
66682         * check-module: Diagnose a self-dependency.
66683
66684 2007-07-19  Bruno Haible  <bruno@clisp.org>
66685
66686         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
66687         empty.
66688         Reported by Eric Blake.
66689
66690 2007-07-18  Bruno Haible  <bruno@clisp.org>
66691
66692         * gnulib-tool: New options --po-base, --po-domain.
66693         (func_usage): Document them.
66694         (pobase, po_domain): New variables.
66695         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
66696         DEFAULT_TEXT_DOMAIN.
66697         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
66698         (func_import): Consider pobase and po_domain. Create a po/ directory.
66699         (func_create_testdir): Set pobase and po_domain to empty.
66700         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
66701         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
66702
66703 2007-07-18  Bruno Haible  <bruno@clisp.org>
66704
66705         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66706         EXTRA_DIST augmentation for files in build-aux/.
66707
66708 2007-07-16  Bruno Haible  <bruno@clisp.org>
66709
66710         * modules/lseek (License): Use the synonymous term "LGPLv2+".
66711         * modules/getdelim (License): Likewise.
66712
66713 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66714
66715         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
66716         * modules/d-type (License): Likewise.
66717         * modules/extensions (License): Likewise.
66718         * modules/fnmatch (License): Likewise.
66719         * modules/fseeko (License): Likewise.
66720         * modules/getaddrinfo (License): Likewise.
66721         * modules/getline (License): Likewise.
66722         * modules/getlogin_r (License): Likewise.
66723         * modules/getpass (License): Likewise.
66724         * modules/gettimeofday (License): Likewise.
66725         * modules/glob (License): Likewise.
66726         * modules/inet_ntop (License): Likewise.
66727         * modules/malloc (License): Likewise.
66728         * modules/malloca (License): Likewise.
66729         * modules/memmem (License): Likewise.
66730         * modules/mempcpy (License): Likewise.
66731         * modules/memset (License): Likewise.
66732         * modules/minmax (License): Likewise.
66733         * modules/mktime (License): Likewise.
66734         * modules/netinet_in (License): Likewise.
66735         * modules/pathmax (License): Likewise.
66736         * modules/poll (License): Likewise.
66737         * modules/regex (License): Likewise.
66738         * modules/snprintf (License): Likewise.
66739         * modules/stdbool (License): Likewise.
66740         * modules/stdint (License): Likewise.
66741         * modules/stdio (License): Likewise.
66742         * modules/strcase (License): Likewise.
66743         * modules/strcasestr (License): Likewise.
66744         * modules/strdup (License): Likewise.
66745         * modules/string (License): Likewise.
66746         * modules/strndup (License): Likewise.
66747         * modules/strnlen (License): Likewise.
66748         * modules/strpbrk (License): Likewise.
66749         * modules/strptime (License): Likewise.
66750         * modules/strsep (License): Likewise.
66751         * modules/sys_select (License): Likewise.
66752         * modules/sys_socket (License): Likewise.
66753         * modules/sys_stat (License): Likewise.
66754         * modules/sys_time (License): Likewise.
66755         * modules/time (License): Likewise.
66756         * modules/time_r (License): Likewise.
66757         * modules/timegm (License): Likewise.
66758         * modules/unistd (License): Likewise.
66759         * modules/vsnprintf (License): Likewise.
66760         * modules/wctype (License): Likewise.
66761
66762 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66763
66764         * modules/argz (License): LGPLv2+.
66765
66766 2007-07-15  Karl Berry  <karl@gnu.org>
66767
66768         * doc/gnulib.texi: revise node structure per new fdl.texi.
66769
66770 2007-07-14  Bruno Haible  <bruno@clisp.org>
66771
66772         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
66773         the output file.
66774         * lib/uniname/uninames.h: Regenerated.
66775
66776 2007-07-14  Karl Berry  <karl@gnu.org>
66777
66778         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
66779         omitting sectioning and index commands.
66780
66781 2007-07-13  Bruno Haible  <bruno@clisp.org>
66782
66783         New gnulib-tool option --more-symlinks.
66784         * gnulib-tool (func_usage): Document --more-symlinks.
66785         (do_copyrights): New variable.
66786         Recognize option --more-symlinks.
66787         (func_import): Don't add a copyright notice transform to
66788         sed_transform_lib_file if do_copyrights is empty.
66789
66790 2007-07-13  Bruno Haible  <bruno@clisp.org>
66791
66792         * lib/vasnprintf.c (decimal_point_char): Define also if
66793         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
66794         && !NEED_PRINTF_DIRECTIVE_A.
66795         Reported by Clemens Koller <clemens.koller@anagramm.de> via
66796         Gary V. Vaughan <gary@gnu.org>.
66797
66798 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
66799
66800         * lib/inttypes_.h: Undo previous change, since it was fixed
66801         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
66802
66803 2007-07-13  Bruno Haible  <bruno@clisp.org>
66804
66805         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
66806         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
66807
66808 2007-07-13  Jim Meyering  <jim@meyering.net>
66809
66810         df: Don't fail for Tru64's "file-on-file mount".
66811         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
66812         so we fall through and use statfs instead.  Details here:
66813         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
66814         Reported by Albert Chin.
66815
66816 2007-07-13  Bruno Haible  <bruno@clisp.org>
66817
66818         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
66819         * modules/configmake (License): Likewise.
66820         * modules/gettext (License): Likewise.
66821         * modules/gettext-h (License): Likewise.
66822         * modules/include_next (License): Likewise.
66823         * modules/link-warning (License): Likewise.
66824         * modules/localcharset (License): Likewise.
66825         * modules/localename (License): Likewise.
66826         * modules/lock (License): Likewise.
66827         * modules/relocatable-lib-lgpl (License): Likewise.
66828         * modules/size_max (License): Likewise.
66829         * modules/vasnprintf (License): Likewise.
66830         * modules/wchar (License): Likewise.
66831         * modules/xsize (License): Likewise.
66832
66833 2007-07-13  Bruno Haible  <bruno@clisp.org>
66834
66835         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
66836         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
66837
66838 2007-07-12  Bruno Haible  <bruno@clisp.org>
66839
66840         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
66841         in the modules files.
66842
66843 2007-07-11  Karl Berry  <karl@gnu.org>
66844
66845         * MODULES.html.sh (func_module): use
66846          sed -e '\|^'"${includefile}"'$|d'
66847          instead of /.../d, to avoid errors on $includefile's containing /.
66848
66849 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66850
66851         * gnulib-tool (func_import): Avoid duplication of --avoid
66852         statements
66853         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
66854         names to `_' in variable names.
66855
66856 2007-07-10  Eric Blake  <ebb9@byu.net>
66857
66858         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
66859         * NEWS: Document this change.
66860
66861 2007-07-08  Bruno Haible  <bruno@clisp.org>
66862
66863         Update to Unicode 5.0.
66864         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
66865         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
66866         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
66867         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
66868         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
66869         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
66870         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
66871         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
66872         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
66873         U+10A3F, U+1D242..U+1D244.
66874         (nonspacing_table_ind): Update.
66875         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
66876         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
66877
66878 2007-07-08  Bruno Haible  <bruno@clisp.org>
66879
66880         Update to Unicode 5.0.
66881         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
66882         code transform. Extend the name index field of unicode_name_to_code and
66883         unicode_code_to_name from 16 to 24 bits.
66884         * lib/uniname/uniname.c (unicode_character_name,
66885         unicode_name_character): Add the range 0x12xxx to the code transform.
66886         * lib/uniname/uninames.h: Regenerated.
66887         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
66888
66889 2007-07-07  Bruno Haible  <bruno@clisp.org>
66890
66891         * modules/wcwidth-tests: New file.
66892         * tests/test-wcwidth.c: New file.
66893
66894         Work around MacOS X wcwidth() bug.
66895         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
66896         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
66897         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
66898         original wcwidth in non-UTF-8 locales.
66899         * modules/wcwidth (Depends-on): Add localcharset, streq,
66900         uniwidth/width.
66901         * doc/functions/wcwidth.texi: Update.
66902
66903 2007-07-07  Bruno Haible  <bruno@clisp.org>
66904
66905         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
66906         (wcwidth): New declaration.
66907         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
66908         macros.
66909         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
66910         here. Prepare for creating <wchar.h> unconditionally.
66911         * modules/wchar (Depends-on): Add link-warning.
66912         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
66913         REPLACE_WCWIDTH, and GL_LINK_WARNING.
66914         * lib/wcwidth.h: Remove file.
66915         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
66916         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
66917         * modules/wcwidth (Files): Remove lib/wcwidth.h.
66918         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
66919         (Include): Replace wcwidth.h with <wchar.h>.
66920         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
66921         * lib/mbchar.h: Don't include wcwidth.h.
66922         * lib/mbswidth.c: Likewise.
66923         * NEWS: Mention the change.
66924
66925 2007-07-07  Bruno Haible  <bruno@clisp.org>
66926
66927         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
66928         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
66929         definition with an external declaration.
66930         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
66931         defined as a function. Remove AC_C_INLINE requirement.
66932         * modules/wcwidth (Files): Add lib/wcwidth.c.
66933         (Makefile.am): Remove redundant statement.
66934
66935 2007-07-07  Bruno Haible  <bruno@clisp.org>
66936
66937         * MODULES.html.sh (Unicode string functions): Add the new modules.
66938
66939         * tests/uniwidth/test-u32-strwidth.c: New file.
66940         * modules/uniwidth/u32-strwidth-tests: New file.
66941
66942         * lib/uniwidth/u32-strwidth.c: New file.
66943         * modules/uniwidth/u32-strwidth: New file.
66944
66945         * tests/uniwidth/test-u16-strwidth.c: New file.
66946         * modules/uniwidth/u16-strwidth-tests: New file.
66947
66948         * lib/uniwidth/u16-strwidth.c: New file.
66949         * modules/uniwidth/u16-strwidth: New file.
66950
66951         * tests/uniwidth/test-u8-strwidth.c: New file.
66952         * modules/uniwidth/u8-strwidth-tests: New file.
66953
66954         * lib/uniwidth/u8-strwidth.c: New file.
66955         * modules/uniwidth/u8-strwidth: New file.
66956
66957         * tests/uniwidth/test-u32-width.c: New file.
66958         * modules/uniwidth/u32-width-tests: New file.
66959
66960         * lib/uniwidth/u32-width.c: New file.
66961         * modules/uniwidth/u32-width: New file.
66962
66963         * tests/uniwidth/test-u16-width.c: New file.
66964         * modules/uniwidth/u16-width-tests: New file.
66965
66966         * lib/uniwidth/u16-width.c: New file.
66967         * modules/uniwidth/u16-width: New file.
66968
66969         * tests/uniwidth/test-u8-width.c: New file.
66970         * modules/uniwidth/u8-width-tests: New file.
66971
66972         * lib/uniwidth/u8-width.c: New file.
66973         * modules/uniwidth/u8-width: New file.
66974
66975         * tests/uniwidth/test-uc_width.c: New file.
66976         * modules/uniwidth/width-tests: New file.
66977
66978         * lib/uniwidth/width.c: New file, from GNU libiconv.
66979         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
66980         * modules/uniwidth/width: New file.
66981
66982         * lib/uniwidth.h: New file, from GNU libiconv.
66983         * modules/uniwidth/base: New file.
66984
66985 2007-07-07  Bruno Haible  <bruno@clisp.org>
66986
66987         * lib/uniname.h: New file, from GNU gettext.
66988         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
66989         * lib/uniname/uninames.h: New file, from GNU gettext.
66990         * lib/uniname/uniname.c: New file, from GNU gettext.
66991         * tests/uniname/test-uninames.sh: New file.
66992         * tests/uniname/test-uninames.c: New file, from GNU gettext.
66993         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
66994         * modules/uniname/base: New file.
66995         * modules/uniname/uniname: New file.
66996         * modules/uniname/uniname-tests: New file.
66997         * MODULES.html.sh (Unicode string functions): Add the new modules.
66998
66999 2007-07-06  Bruno Haible  <bruno@clisp.org>
67000
67001         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
67002
67003 2007-07-06  Bruno Haible  <bruno@clisp.org>
67004
67005         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
67006         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
67007         includes <cygwin/sys_time.h> which includes <sys/select.h> which
67008         include <sys/time.h>.
67009         Reported by Eric Blake.
67010
67011 2007-07-06  Eric Blake  <ebb9@byu.net>
67012
67013         Fix testing canonicalize on cygwin.
67014         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67015         Revert patch from 2007-06-19.
67016         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
67017         canonicalize module is also in use.
67018         * tests/test-canonicalize.c: New file.
67019         * tests/test-canonicalize.sh: Likewise.
67020         * modules/canonicalize-tests: Likewise.
67021
67022 2007-07-06  Jim Meyering  <jim@meyering.net>
67023
67024         * lib/getugroups.c (getugroups): Detect getgrent failure.
67025         Adjust comment to reflect reality: this function may return -1.
67026
67027 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
67028
67029         * build-aux/bootstrap (TP_URL,get_translations): Update to use
67030         the new TP address.
67031         (usage): Fix typo
67032         (gnulib_mk): New variable.
67033
67034 2007-07-05  Jim Meyering  <jim@meyering.net>
67035
67036         Don't let endgrent clobber errno, no matter how improbable.
67037         * lib/getugroups.c (getugroups): Save and restore errno around
67038         endgrent call.
67039
67040         Close the group DB even when failing with 2^31 or more members.
67041         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
67042
67043 2007-07-04  Jim Meyering  <jim@meyering.net>
67044
67045         * lib/getugroups.h: New file.
67046         * lib/getugroups.c: Include "getugroups.h".
67047         Remove uses of "register" keyword.
67048         Move local variable, "cp", down into scope where used.
67049         Give "username" parameter the "const" attribute.
67050         * modules/getugroups (Files): Add lib/getugroups.h
67051
67052 2007-07-04  Karl Berry  <karl@gnu.org>
67053
67054         * MODULES.html.sh (func_all_modules): Complete rename of
67055         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
67056
67057 2007-07-02  Bruno Haible  <bruno@clisp.org>
67058
67059         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
67060         mode, when inttypes.h comes from gnulib.
67061         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
67062
67063 2007-07-02  Simon Josefsson  <simon@josefsson.org>
67064
67065         * NEWS: Mention lgpl module name change.
67066
67067         * modules/lgpl-2.1: Renamed from lgpl.
67068
67069         * NEWS: Mention gpl module name change.
67070
67071         * modules/gpl-3.0: New file, based on gpl-2.0.
67072
67073         * modules/gpl-2.0: Renamed from gpl.
67074
67075         * modules/gpl: Fix filename, doc/gpl.texi is now found at
67076         doc/gpl-2.0.texi.
67077
67078 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67079
67080         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
67081         #define __STDC_LIMIT_MACROS temporarily while including
67082         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
67083         Problem reported by Joel E. Denny in
67084         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
67085
67086 2007-07-01  Bruno Haible  <bruno@clisp.org>
67087
67088         * lib/unistdio.h: New file.
67089         * lib/unistdio/u-asnprintf.h: New file.
67090         * lib/unistdio/u-asprintf.h: New file.
67091         * lib/unistdio/u-printf-args.c: New file.
67092         * lib/unistdio/u-printf-args.h: New file.
67093         * lib/unistdio/u-printf-parse.h: New file.
67094         * lib/unistdio/u-snprintf.h: New file.
67095         * lib/unistdio/u-sprintf.h: New file.
67096         * lib/unistdio/u-vasprintf.h: New file.
67097         * lib/unistdio/u-vsnprintf.h: New file.
67098         * lib/unistdio/u-vsprintf.h: New file.
67099         * lib/unistdio/ulc-asnprintf.c: New file.
67100         * lib/unistdio/ulc-asprintf.c: New file.
67101         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
67102         * lib/unistdio/ulc-printf-parse.c: New file.
67103         * lib/unistdio/ulc-snprintf.c: New file.
67104         * lib/unistdio/ulc-sprintf.c: New file.
67105         * lib/unistdio/ulc-vasnprintf.c: New file.
67106         * lib/unistdio/ulc-vasprintf.c: New file.
67107         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
67108         * lib/unistdio/ulc-vsnprintf.c: New file.
67109         * lib/unistdio/ulc-vsprintf.c: New file.
67110         * lib/unistdio/u8-asnprintf.c: New file.
67111         * lib/unistdio/u8-asprintf.c: New file.
67112         * lib/unistdio/u8-printf-parse.c: New file.
67113         * lib/unistdio/u8-snprintf.c: New file.
67114         * lib/unistdio/u8-sprintf.c: New file.
67115         * lib/unistdio/u8-vasnprintf.c: New file.
67116         * lib/unistdio/u8-vasprintf.c: New file.
67117         * lib/unistdio/u8-vsnprintf.c: New file.
67118         * lib/unistdio/u8-vsprintf.c: New file.
67119         * lib/unistdio/u8-u8-asnprintf.c: New file.
67120         * lib/unistdio/u8-u8-asprintf.c: New file.
67121         * lib/unistdio/u8-u8-snprintf.c: New file.
67122         * lib/unistdio/u8-u8-sprintf.c: New file.
67123         * lib/unistdio/u8-u8-vasnprintf.c: New file.
67124         * lib/unistdio/u8-u8-vasprintf.c: New file.
67125         * lib/unistdio/u8-u8-vsnprintf.c: New file.
67126         * lib/unistdio/u8-u8-vsprintf.c: New file.
67127         * lib/unistdio/u16-asnprintf.c: New file.
67128         * lib/unistdio/u16-asprintf.c: New file.
67129         * lib/unistdio/u16-printf-parse.c: New file.
67130         * lib/unistdio/u16-snprintf.c: New file.
67131         * lib/unistdio/u16-sprintf.c: New file.
67132         * lib/unistdio/u16-vasnprintf.c: New file.
67133         * lib/unistdio/u16-vasprintf.c: New file.
67134         * lib/unistdio/u16-vsnprintf.c: New file.
67135         * lib/unistdio/u16-vsprintf.c: New file.
67136         * lib/unistdio/u16-u16-asnprintf.c: New file.
67137         * lib/unistdio/u16-u16-asprintf.c: New file.
67138         * lib/unistdio/u16-u16-snprintf.c: New file.
67139         * lib/unistdio/u16-u16-sprintf.c: New file.
67140         * lib/unistdio/u16-u16-vasnprintf.c: New file.
67141         * lib/unistdio/u16-u16-vasprintf.c: New file.
67142         * lib/unistdio/u16-u16-vsnprintf.c: New file.
67143         * lib/unistdio/u16-u16-vsprintf.c: New file.
67144         * lib/unistdio/u32-asnprintf.c: New file.
67145         * lib/unistdio/u32-asprintf.c: New file.
67146         * lib/unistdio/u32-printf-parse.c: New file.
67147         * lib/unistdio/u32-snprintf.c: New file.
67148         * lib/unistdio/u32-sprintf.c: New file.
67149         * lib/unistdio/u32-vasnprintf.c: New file.
67150         * lib/unistdio/u32-vasprintf.c: New file.
67151         * lib/unistdio/u32-vsnprintf.c: New file.
67152         * lib/unistdio/u32-vsprintf.c: New file.
67153         * lib/unistdio/u32-u32-asnprintf.c: New file.
67154         * lib/unistdio/u32-u32-asprintf.c: New file.
67155         * lib/unistdio/u32-u32-snprintf.c: New file.
67156         * lib/unistdio/u32-u32-sprintf.c: New file.
67157         * lib/unistdio/u32-u32-vasnprintf.c: New file.
67158         * lib/unistdio/u32-u32-vasprintf.c: New file.
67159         * lib/unistdio/u32-u32-vsnprintf.c: New file.
67160         * lib/unistdio/u32-u32-vsprintf.c: New file.
67161         * tests/unistdio/test-ulc-asnprintf1.c: New file.
67162         * tests/unistdio/test-ulc-asnprintf1.h: New file.
67163         * tests/unistdio/test-ulc-printf1.h: New file.
67164         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
67165         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
67166         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
67167         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
67168         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
67169         * tests/unistdio/test-ulc-vasprintf1.c: New file.
67170         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
67171         * tests/unistdio/test-ulc-vsprintf1.c: New file.
67172         * tests/unistdio/test-u8-asnprintf1.c: New file.
67173         * tests/unistdio/test-u8-asnprintf1.h: New file.
67174         * tests/unistdio/test-u8-printf1.h: New file.
67175         * tests/unistdio/test-u8-vasnprintf1.c: New file.
67176         * tests/unistdio/test-u8-vasnprintf2.c: New file.
67177         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
67178         * tests/unistdio/test-u8-vasnprintf3.c: New file.
67179         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
67180         * tests/unistdio/test-u8-vasprintf1.c: New file.
67181         * tests/unistdio/test-u8-vsnprintf1.c: New file.
67182         * tests/unistdio/test-u8-vsprintf1.c: New file.
67183         * tests/unistdio/test-u16-asnprintf1.c: New file.
67184         * tests/unistdio/test-u16-asnprintf1.h: New file.
67185         * tests/unistdio/test-u16-printf1.h: New file.
67186         * tests/unistdio/test-u16-vasnprintf1.c: New file.
67187         * tests/unistdio/test-u16-vasnprintf2.c: New file.
67188         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
67189         * tests/unistdio/test-u16-vasnprintf3.c: New file.
67190         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
67191         * tests/unistdio/test-u16-vasprintf1.c: New file.
67192         * tests/unistdio/test-u16-vsnprintf1.c: New file.
67193         * tests/unistdio/test-u16-vsprintf1.c: New file.
67194         * tests/unistdio/test-u32-asnprintf1.c: New file.
67195         * tests/unistdio/test-u32-asnprintf1.h: New file.
67196         * tests/unistdio/test-u32-printf1.h: New file.
67197         * tests/unistdio/test-u32-vasnprintf1.c: New file.
67198         * tests/unistdio/test-u32-vasnprintf2.c: New file.
67199         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
67200         * tests/unistdio/test-u32-vasnprintf3.c: New file.
67201         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
67202         * tests/unistdio/test-u32-vasprintf1.c: New file.
67203         * tests/unistdio/test-u32-vsnprintf1.c: New file.
67204         * tests/unistdio/test-u32-vsprintf1.c: New file.
67205         * modules/unistdio/base: New file.
67206         * modules/unistdio/u-printf-args: New file.
67207         * modules/unistdio/ulc-asnprintf: New file.
67208         * modules/unistdio/ulc-asprintf: New file.
67209         * modules/unistdio/ulc-fprintf: New file.
67210         * modules/unistdio/ulc-printf-parse: New file.
67211         * modules/unistdio/ulc-snprintf: New file.
67212         * modules/unistdio/ulc-sprintf: New file.
67213         * modules/unistdio/ulc-vasnprintf: New file.
67214         * modules/unistdio/ulc-vasprintf: New file.
67215         * modules/unistdio/ulc-vfprintf: New file.
67216         * modules/unistdio/ulc-vsnprintf: New file.
67217         * modules/unistdio/ulc-vsprintf: New file.
67218         * modules/unistdio/u8-asnprintf: New file.
67219         * modules/unistdio/u8-asprintf: New file.
67220         * modules/unistdio/u8-printf-parse: New file.
67221         * modules/unistdio/u8-snprintf: New file.
67222         * modules/unistdio/u8-sprintf: New file.
67223         * modules/unistdio/u8-vasnprintf: New file.
67224         * modules/unistdio/u8-vasprintf: New file.
67225         * modules/unistdio/u8-vsnprintf: New file.
67226         * modules/unistdio/u8-vsprintf: New file.
67227         * modules/unistdio/u8-u8-asnprintf: New file.
67228         * modules/unistdio/u8-u8-asprintf: New file.
67229         * modules/unistdio/u8-u8-snprintf: New file.
67230         * modules/unistdio/u8-u8-sprintf: New file.
67231         * modules/unistdio/u8-u8-vasnprintf: New file.
67232         * modules/unistdio/u8-u8-vasprintf: New file.
67233         * modules/unistdio/u8-u8-vsnprintf: New file.
67234         * modules/unistdio/u8-u8-vsprintf: New file.
67235         * modules/unistdio/u16-asnprintf: New file.
67236         * modules/unistdio/u16-asprintf: New file.
67237         * modules/unistdio/u16-printf-parse: New file.
67238         * modules/unistdio/u16-snprintf: New file.
67239         * modules/unistdio/u16-sprintf: New file.
67240         * modules/unistdio/u16-vasnprintf: New file.
67241         * modules/unistdio/u16-vasprintf: New file.
67242         * modules/unistdio/u16-vsnprintf: New file.
67243         * modules/unistdio/u16-vsprintf: New file.
67244         * modules/unistdio/u16-u16-asnprintf: New file.
67245         * modules/unistdio/u16-u16-asprintf: New file.
67246         * modules/unistdio/u16-u16-snprintf: New file.
67247         * modules/unistdio/u16-u16-sprintf: New file.
67248         * modules/unistdio/u16-u16-vasnprintf: New file.
67249         * modules/unistdio/u16-u16-vasprintf: New file.
67250         * modules/unistdio/u16-u16-vsnprintf: New file.
67251         * modules/unistdio/u16-u16-vsprintf: New file.
67252         * modules/unistdio/u32-asnprintf: New file.
67253         * modules/unistdio/u32-asprintf: New file.
67254         * modules/unistdio/u32-printf-parse: New file.
67255         * modules/unistdio/u32-snprintf: New file.
67256         * modules/unistdio/u32-sprintf: New file.
67257         * modules/unistdio/u32-vasnprintf: New file.
67258         * modules/unistdio/u32-vasprintf: New file.
67259         * modules/unistdio/u32-vsnprintf: New file.
67260         * modules/unistdio/u32-vsprintf: New file.
67261         * modules/unistdio/u32-u32-asnprintf: New file.
67262         * modules/unistdio/u32-u32-asprintf: New file.
67263         * modules/unistdio/u32-u32-snprintf: New file.
67264         * modules/unistdio/u32-u32-sprintf: New file.
67265         * modules/unistdio/u32-u32-vasnprintf: New file.
67266         * modules/unistdio/u32-u32-vasprintf: New file.
67267         * modules/unistdio/u32-u32-vsnprintf: New file.
67268         * modules/unistdio/u32-u32-vsprintf: New file.
67269         * modules/unistdio/ulc-asnprintf-tests: New file.
67270         * modules/unistdio/ulc-vasnprintf-tests: New file.
67271         * modules/unistdio/ulc-vasprintf-tests: New file.
67272         * modules/unistdio/ulc-vsnprintf-tests: New file.
67273         * modules/unistdio/ulc-vsprintf-tests: New file.
67274         * modules/unistdio/u8-asnprintf-tests: New file.
67275         * modules/unistdio/u8-vasnprintf-tests: New file.
67276         * modules/unistdio/u8-vasprintf-tests: New file.
67277         * modules/unistdio/u8-vsnprintf-tests: New file.
67278         * modules/unistdio/u8-vsprintf-tests: New file.
67279         * modules/unistdio/u16-asnprintf-tests: New file.
67280         * modules/unistdio/u16-vasnprintf-tests: New file.
67281         * modules/unistdio/u16-vasprintf-tests: New file.
67282         * modules/unistdio/u16-vsnprintf-tests: New file.
67283         * modules/unistdio/u16-vsprintf-tests: New file.
67284         * modules/unistdio/u32-asnprintf-tests: New file.
67285         * modules/unistdio/u32-vasnprintf-tests: New file.
67286         * modules/unistdio/u32-vasprintf-tests: New file.
67287         * modules/unistdio/u32-vsnprintf-tests: New file.
67288         * modules/unistdio/u32-vsprintf-tests: New file.
67289         * MODULES.html.sh (Unicode string functions): Add the new modules.
67290
67291 2007-07-01  Bruno Haible  <bruno@clisp.org>
67292
67293         * lib/sprintf.c (sprintf): Limit the available length estimation,
67294         to avoid address wraparound.
67295         * lib/vsprintf.c (vsprintf): Likewise.
67296         * modules/sprintf-posix (Dependencies): Add stdint.
67297         * modules/vsprintf-posix (Dependencies): Likewise.
67298
67299 2007-07-01  Bruno Haible  <bruno@clisp.org>
67300
67301         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
67302         Windows PATH as well. Conservative double-quoting. Comments.
67303
67304 2007-07-01  Bruno Haible  <bruno@clisp.org>
67305             Eric Blake  <ebb9@byu.net>
67306             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67307
67308         * gnulib-tool (self_abspathname): Fix algorithm to cope with
67309         empty components in $PATH, denoting '.'.
67310
67311 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67312
67313         * gnulib-tool: Fix indentation.
67314         (func_create_megatestdir): Likewise.
67315         Report by Bruno Haible.
67316
67317 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67318
67319         Sync from Automake.
67320         * build-aux/gnupload: Fix shell portability issues with for loops.
67321         Report by Karl Berry.
67322
67323 2007-06-29  Simon Josefsson  <simon@josefsson.org>
67324
67325         * build-aux/maint.mk (POURL): Use translationproject.org.
67326
67327 2007-06-27  Simon Josefsson  <simon@josefsson.org>
67328             Bruno Haible  <bruno@clisp.org>
67329
67330         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
67331         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
67332         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
67333         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
67334         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
67335
67336 2007-06-27  Bruno Haible  <bruno@clisp.org>
67337
67338         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
67339         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
67340
67341 2007-06-26  Karl Berry  <karl@gnu.org>
67342
67343         * MODULES.html.sh: remove xreadlink-with-size.
67344
67345 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67346
67347         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
67348         method that I hope also handles the double-include problem noted
67349         by Bruno Haible in
67350         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
67351
67352 2007-06-23  Bruno Haible  <bruno@clisp.org>
67353
67354         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67355         Don't let the 'mostlyclean' target fail if the last subdirectory could
67356         not be removed.
67357         Reported by Karl Berry.
67358
67359 2007-06-23  Bruno Haible  <bruno@clisp.org>
67360
67361         * gnulib-tool (echo): Add a speedier workaround for ksh.
67362         * tests/test-echo.sh: Likewise.
67363
67364 2007-06-23  Bruno Haible  <bruno@clisp.org>
67365
67366         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
67367         * tests/test-echo.sh: Likewise.
67368
67369 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67370
67371         * gnulib-tool (IFS): Initialize early, so we don't set it to
67372         empty later.
67373         (self_abspathname): Rewrite algorithm to set it, reindent.
67374         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
67375         (func_create_megatestdir): Merge some sed scripts.
67376
67377 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67378
67379         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
67380         exposed by Sun Studio 11 cc on Solaris 8.
67381
67382 2007-06-22  Bruno Haible  <bruno@clisp.org>
67383
67384         * gnulib-tool (echo): Ensure the echo primitive does not interpret
67385         backslashes.
67386         * tests/test-echo.sh: New file.
67387
67388 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67389
67390         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
67391         simplify `sed_replace_build_aux' scripts, they are portable but
67392         echoing them with `echo' is not.
67393         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
67394
67395 2007-06-21  Karl Berry  <karl@gnu.org>
67396
67397         * config/srclist.txt: guess we can't handle the licenses via
67398         srclist at the moment.
67399
67400 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67401
67402         * MODULES.html.sh: Add include_next.
67403         * modules/include_next: New file.
67404
67405 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67406
67407         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
67408         INCLUDE_NEXT.
67409         (gl_CHECK_NEXT_HEADERS): New macro.
67410         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
67411         the obsolescent gl_ABSOLUTE_HEADER.
67412         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
67413         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
67414         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
67415         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
67416         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
67417         * m4/math_h.m4 (gl_MATH_H): Likewise.
67418         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
67419         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
67420         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
67421         * m4/stdint.m4 (gl_STDINT_H): Likewise.
67422         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
67423         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
67424         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
67425         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
67426         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
67427         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
67428         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
67429         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
67430         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
67431         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
67432         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
67433         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67434         * m4/inttypes.m4 (gl_INTTYPES_H): Define
67435         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
67436         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
67437         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
67438         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
67439         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
67440         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
67441         * lib/float_.h: Likewise.
67442         * lib/inttypes_.h: Likewise.
67443         * lib/math_.h: Likewise.
67444         * lib/search_.h: Likewise.
67445         * lib/signal_.h: Likewise.
67446         * lib/stdint_.h: Likewise.
67447         * lib/stdio_.h: Likewise.
67448         * lib/stdlib_.h: Likewise.
67449         * lib/string_.h: Likewise.
67450         * lib/sys_stat_.h: Likewise.
67451         * lib/sys_time_.h: Likewise.
67452         * lib/time_.h: Likewise.
67453         * lib/unistd_.h: Likewise.
67454         * lib/wchar_.h: Likewise.
67455         * lib/wctype_.h: Likewise.
67456         * lib/dirent_.h: Likewise.
67457         * lib/iconv_.h: Likewise.
67458         * lib/locale_.h: Likewise.
67459         * lib/netinet_in_.h: Likewise.
67460         * lib/sys_select_.h: Likewise.
67461         * lib/sys_socket_.h: Likewise.
67462         * lib/sysexits_.h: Likewise.
67463         * modules/fcntl (Depends-on): Depend on include_next, not
67464         absolute_header.
67465         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
67466         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
67467         * modules/fchdir: Likewise.
67468         * modules/float: Likewise.
67469         * modules/iconv_open: Likewise.
67470         * modules/inttypes: Likewise.
67471         * modules/locale: Likewise.
67472         * modules/math: Likewise.
67473         * modules/netinet_in: Likewise.
67474         * modules/search: Likewise.
67475         * modules/signal: Likewise.
67476         * modules/stdint: Likewise.
67477         * modules/stdio: Likewise.
67478         * modules/stdlib: Likewise.
67479         * modules/string: Likewise.
67480         * modules/sys_select: Likewise.
67481         * modules/sys_socket: Likewise.
67482         * modules/sys_stat: Likewise.
67483         * modules/sys_time: Likewise.
67484         * modules/sysexits: Likewise.
67485         * modules/time: Likewise.
67486         * modules/unistd: Likewise.
67487         * modules/wchar: Likewise.
67488         * modules/wctype: Likewise.
67489         * modules/sys_stat: Change maintainer to "all".
67490         * modules/unistd: Likewise.
67491
67492 2007-06-20  Karl Berry  <karl@gnu.org>
67493
67494         * config/srclist.txt: track www changes in license files.
67495
67496 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
67497
67498         * build-aux/bootstrap: Remove stray dot.
67499         Make sure build_aux settings are honored when linking
67500         gnulib_extra_files.
67501
67502 2007-06-19  Eric Blake  <ebb9@byu.net>
67503
67504         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67505         Allow compilation on cygwin.
67506
67507 2007-06-19  Jim Meyering  <jim@meyering.net>
67508
67509         xreadlink-with-size: Remove module.  No longer used.
67510         Ex-callers now use xreadlink or mreadlink-with-size.
67511         * modules/xreadlink-with-size: Remove module.
67512         * lib/xreadlink-with-size.c: Remove file.
67513         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
67514         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
67515         just before the function definition *is* accurate.
67516
67517         Eliminate one way canonicalize_filename_mode could exit.
67518         * lib/canonicalize.c (canonicalize_filename_mode):
67519         Use mreadlink_with_size, not xreadlink_with_size.
67520
67521 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
67522
67523         Detect porting problems to FreeBSD/arm, which has time_t wider than
67524         long int.  Original problem reported for GNU diff by Xin Li in
67525         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
67526         * modules/getdate (Depends-on): Add intprops, verify.
67527         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
67528         is an integer type no wider than long int.
67529
67530 2007-06-18  Jim Meyering  <jim@meyering.net>
67531
67532         New module: mreadlink-with-size.
67533         * MODULES.html.sh: Add mreadlink-with-size.
67534         * modules/mreadlink-with-size: New module
67535         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
67536         not xreadlink-with-size.
67537         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
67538
67539 2007-06-16  Bruno Haible  <bruno@clisp.org>
67540
67541         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
67542         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
67543         Reported by Gary V. Vaughan <gary@gnu.org>.
67544
67545 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
67546
67547         Revamp lchown so that it lives in unistd.h where it belongs.
67548         * lib/lchown.h: Remove.
67549         * lib/dirchownmod.c: Don't include lib/lchown.h.
67550         * lib/fchownat.c: Likewise.
67551         * lib/openat.c: Likewise.
67552         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
67553         does not follow symlinks.
67554         (EOPNOTSUPP): Define if not defined.
67555         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
67556         is defined to 0.
67557         (lchown): New decl.
67558         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
67559         Do not check for lchown decl.
67560         Set REPLACE_LCHOWN.
67561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
67562         REPLACE_LCHOWN.
67563         * modules/chown: Make it clear it follows symlinks.
67564         * modules/lchown: Make it clear it doesn't follow symlinks.
67565         (Files): Remove lib/lchown.h
67566         (Depends-on): Add unistd.
67567         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
67568         (Include): Include <unistd.h>, not "lchown.h".
67569         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
67570         REPLACE_LCHOWN.
67571
67572 2007-06-15  Jim Meyering  <jim@meyering.net>
67573
67574         Change license (GPL to LGPL) of fsusage and dependents.
67575         * modules/fsusage (License): Change to LGPL.
67576         * modules/full-read (License): Likewise.
67577         * modules/full-write (License): Likewise.
67578         * modules/safe-read (License): Likewise.
67579         * modules/safe-write (License): Likewise.
67580
67581 2007-06-14  Ben Pfaff  <blp@gnu.org>
67582
67583         Missing part of allocsa -> malloca transition.
67584         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
67585         gl_MALLOCA.
67586
67587 2007-06-12  Bruno Haible  <bruno@clisp.org>
67588
67589         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
67590         to ia64, x86_64, i386.
67591         Reported by Eric Blake.
67592
67593 2007-06-12  Bruno Haible  <bruno@clisp.org>
67594
67595         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
67596         cross-compiling to x86_64.
67597
67598 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
67599
67600         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
67601         glitch reported by Ralf Wildenhues in
67602         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
67603
67604         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
67605         Vin Shelton.
67606
67607 2007-06-11  Bruno Haible  <bruno@clisp.org>
67608
67609         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
67610         replacement string.
67611         Reported by Eric Blake.
67612
67613 2007-06-10  Bruno Haible  <bruno@clisp.org>
67614
67615         Prepare vasnprintf code for use with Unicode strings.
67616         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
67617         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
67618         TYPE_U32_STRING.
67619         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
67620         a_u32_string variants.
67621         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67622         * lib/printf-args.c: Don't include config.h and the specification
67623         header if PRINTF_FETCHARGS is already defined.
67624         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67625         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
67626         TYPE_U16_STRING, TYPE_U32_STRING.
67627         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
67628         u16_directive, u16_directives, u32_directive, u32_directives): New
67629         types.
67630         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
67631         New declarations.
67632         * lib/printf-parse.c: Don't include config.h and the specification
67633         header if PRINTF_PARSE is already defined. Eliminate the set of
67634         parameters for WIDE_CHAR_VERSION; the user of this file must provide
67635         them now. Include c-ctype.h.
67636         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
67637         directive and CHAR_T_ONLY_ASCII.
67638         * lib/vasnprintf.c: Don't include config.h and the specification header
67639         if VASNPRINTF is already defined.
67640         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
67641         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
67642         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
67643         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
67644         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
67645         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
67646         code accordingly.
67647         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
67648         pad_ourselves also in this case, with the 'c' and 's' directives, and
67649         with a different notion of "width".
67650         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
67651
67652 2007-06-10  Bruno Haible  <bruno@clisp.org>
67653
67654         * modules/unistr/u32-mbsnlen: New file.
67655         * lib/unistr/u32-mbsnlen.c: New file.
67656
67657         * modules/unistr/u16-mbsnlen: New file.
67658         * lib/unistr/u16-mbsnlen.c: New file.
67659
67660         * modules/unistr/u8-mbsnlen: New file.
67661         * lib/unistr/u8-mbsnlen.c: New file.
67662
67663         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
67664         declarations.
67665
67666 2007-06-10  Bruno Haible  <bruno@clisp.org>
67667
67668         * lib/string_.h (mbsnlen): New declaration.
67669         * lib/mbsnlen.c: New file.
67670         * m4/mbsnlen.m4: New file.
67671         * modules/mbsnlen: New file.
67672         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
67673         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
67674         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
67675
67676 2007-06-10  Bruno Haible  <bruno@clisp.org>
67677
67678         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
67679
67680 2007-06-10  Bruno Haible  <bruno@clisp.org>
67681
67682         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
67683         * lib/mbuiter.h: Likewise.
67684
67685 2007-06-10  Bruno Haible  <bruno@clisp.org>
67686
67687         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
67688         declaration.
67689
67690 2007-06-10  Karl Berry  <karl@gnu.org>
67691
67692         * config/srclist.txt: remove gettext entries, Bruno prefers
67693         to update individually.
67694
67695 2007-06-10  Bruno Haible  <bruno@clisp.org>
67696
67697         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
67698         'maxlen'. Ensure only length + width bytes are allocated, not
67699         length + 1 + width.
67700
67701 2007-06-09  Bruno Haible  <bruno@clisp.org>
67702
67703         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
67704         (CHAR_T): Remove macro.
67705         (VASNPRINTF): Update.
67706
67707 2007-06-09  Bruno Haible  <bruno@clisp.org>
67708
67709         * MODULES.html.sh (Unicode string functions): Add the new modules.
67710
67711         * modules/uniconv/u32-conv-to-enc: New file.
67712         * lib/uniconv/u32-conv-to-enc.c: New file.
67713         * modules/uniconv/u32-conv-to-enc-tests: New file.
67714         * tests/uniconv/test-u32-conv-to-enc.c: New file.
67715
67716         * modules/uniconv/u16-conv-to-enc: New file.
67717         * lib/uniconv/u16-conv-to-enc.c: New file.
67718         * lib/uniconv/u-conv-to-enc.h: New file.
67719         * modules/uniconv/u16-conv-to-enc-tests: New file.
67720         * tests/uniconv/test-u16-conv-to-enc.c: New file.
67721
67722         * modules/uniconv/u8-conv-to-enc: New file.
67723         * lib/uniconv/u8-conv-to-enc.c: New file.
67724         * modules/uniconv/u8-conv-to-enc-tests: New file.
67725         * tests/uniconv/test-u8-conv-to-enc.c: New file.
67726
67727         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
67728         u32_conv_to_encoding): New declarations.
67729
67730 2007-06-09  Bruno Haible  <bruno@clisp.org>
67731
67732         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
67733
67734 2007-06-09  Bruno Haible  <bruno@clisp.org>
67735
67736         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
67737         * modules/malloca: Renamed from modules/allocsa, updated.
67738         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
67739         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
67740         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
67741         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
67742         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
67743         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
67744         * modules/xmalloca: Renamed from modules/xallocsa, updated.
67745         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
67746         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
67747         * modules/c-strcasestr (Depends-on): Update.
67748         * lib/c-strcasestr.c: Update.
67749         * modules/c-strstr (Depends-on): Update.
67750         * lib/c-strstr.c: Update.
67751         * modules/canonicalize-lgpl (Depends-on): Update.
67752         * lib/canonicalize-lgpl.c: Update.
67753         * modules/clean-temp (Depends-on): Update.
67754         * lib/clean-temp.c: Update.
67755         * modules/csharpcomp (Depends-on): Update.
67756         * lib/csharpcomp.c: Update.
67757         * modules/csharpexec (Depends-on): Update.
67758         * lib/csharpexec.c: Update.
67759         * modules/javacomp (Depends-on): Update.
67760         * lib/javacomp.c: Update.
67761         * modules/javaexec (Depends-on): Update.
67762         * lib/javaexec.c: Update.
67763         * modules/mbscasestr (Depends-on): Update.
67764         * lib/mbscasestr.c: Update.
67765         * modules/mbsstr (Depends-on): Update.
67766         * lib/mbsstr.c: Update.
67767         * modules/setenv (Depends-on): Update.
67768         * lib/setenv.c: Update.
67769         * modules/strcasestr (Depends-on): Update.
67770         * lib/strcasestr.c: Update.
67771         * modules/striconveha (Depends-on): Update.
67772         * lib/striconveha.c: Update.
67773         * modules/relocatable-prog-wrapper (Files): Update.
67774         * lib/relocwrapper.c: Update.
67775         * build-aux/install-reloc: Update.
67776         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
67777
67778 2007-06-08  Bruno Haible  <bruno@clisp.org>
67779
67780         Port to uClibc.
67781         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
67782         * lib/fpurge.c (fpurge): Likewise.
67783         * lib/freading.c (freading): Likewise.
67784         * lib/fseeko.c (rpl_fseeko): Likewise.
67785         * lib/fseterr.c (fseterr): Likewise.
67786         * lib/fwriting.c (fwriting): Likewise.
67787         * tests/test-fflush.c (main): Avoid a failure on uClibc.
67788
67789 2007-06-08  Bruno Haible  <bruno@clisp.org>
67790
67791         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
67792         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
67793         * modules/gettext (Files): Add m4/intlmacosx.m4.
67794
67795 2007-06-07  Bruno Haible  <bruno@clisp.org>
67796
67797         * modules/localename-tests: New file.
67798         * tests/test-localename.c: New file.
67799
67800         New module 'localename'.
67801         * lib/localename.h: New file.
67802         * lib/localename.c: New file, from GNU gettext.
67803         * m4/localename.m4: New file.
67804         * modules/localename: New file.
67805
67806 2007-06-07  Bruno Haible  <bruno@clisp.org>
67807
67808         Work around the lack of <wchar.h> on some builds of uClibc.
67809         * doc/headers/wchar.texi: Update.
67810         * lib/wchar_.h: Include <wchar.h> only if it exists.
67811         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
67812         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
67813         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
67814         doesn't exist.
67815         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
67816         * modules/mbfile (Depends-on): Add wchar.
67817         * modules/mbiter (Depends-on): Likewise.
67818         * modules/mbuiter (Depends-on): Likewise.
67819         Reported by Simon Josefsson.
67820
67821 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
67822
67823         Work around problem reported by Steven M. Schweda in
67824         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
67825         Tru64 5.1B with the Compaq compiler environment installed declares
67826         an 'isblank' function but does not define it in the C library.
67827         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
67828         * lib/regex_internal.h (isblank): Likewise.
67829         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
67830         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67831
67832 2007-06-05  Bruno Haible  <bruno@clisp.org>
67833
67834         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
67835         ia64.
67836         * modules/printf-safe: New file.
67837         * modules/fprintf-posix (Depends-on): Add printf-safe.
67838         * modules/printf-posix (Depends-on): Likewise.
67839         * modules/snprintf-posix (Depends-on): Likewise.
67840         * modules/sprintf-posix (Depends-on): Likewise.
67841         * modules/vasnprintf-posix (Depends-on): Likewise.
67842         * modules/vasprintf-posix (Depends-on): Likewise.
67843         * modules/vfprintf-posix (Depends-on): Likewise.
67844         * modules/vprintf-posix (Depends-on): Likewise.
67845         * modules/vsnprintf-posix (Depends-on): Likewise.
67846         * modules/vsprintf-posix (Depends-on): Likewise.
67847         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
67848         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
67849         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
67850         "no" on i386, x86_64, ia64.
67851         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
67852         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67853         on i386, x86_64, ia64.
67854         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
67855         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67856         on i386, x86_64, ia64.
67857         * tests/test-vasnprintf-posix.c: Include float.h.
67858         (LDBL80_WORDS): New macro.
67859         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67860         on i386, x86_64, ia64.
67861         * tests/test-vasprintf-posix.c: Include float.h.
67862         (LDBL80_WORDS): New macro.
67863         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67864         on i386, x86_64, ia64.
67865         * tests/test-snprintf-posix.c: Include float.h.
67866         * tests/test-sprintf-posix.c: Likewise.
67867         * tests/test-vsnprintf-posix.c: Likewise.
67868         * tests/test-vsprintf-posix.c: Likewise.
67869
67870 2007-06-05  Bruno Haible  <bruno@clisp.org>
67871
67872         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
67873         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
67874         non-IEEE numbers on i386, x86_64, ia64.
67875         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
67876         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
67877         * tests/test-isnanl.h: Include float.h.
67878         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
67879
67880 2007-06-05  Bruno Haible  <bruno@clisp.org>
67881
67882         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
67883         also the %a / %A. Handle the %a / %A code before this extra handling.
67884
67885 2007-06-05  Bruno Haible  <bruno@clisp.org>
67886
67887         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
67888         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
67889
67890 2007-06-05  Bruno Haible  <bruno@clisp.org>
67891
67892         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
67893         typo in variable name.
67894
67895 2007-06-05  Eric Blake  <ebb9@byu.net>
67896
67897         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
67898         Reported by Simon Josefsson.
67899
67900 2007-06-04  Bruno Haible  <bruno@clisp.org>
67901
67902         Avoid test failures on some PowerPC platforms.
67903         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
67904         Define differently for PowerPC.
67905         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
67906         Reported by Gary V. Vaughan <gary@gnu.org>.
67907
67908 2007-06-02  Bruno Haible  <bruno@clisp.org>
67909
67910         Fix test-stdint failure on FreeBSD/ia64.
67911         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
67912         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
67913         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
67914         * doc/headers/stdint.texi: Update.
67915
67916 2007-06-01  Bruno Haible  <bruno@clisp.org>
67917
67918         * tests/test-binary-io.c (main): Pass a third argument to open().
67919         Reported by Gary V. Vaughan <gary@gnu.org>.
67920
67921 2007-06-01  Bruno Haible  <bruno@clisp.org>
67922
67923         * doc/functions/frexpl.texi: Update for mingw.
67924
67925 2007-06-01  Bruno Haible  <bruno@clisp.org>
67926
67927         * tests/test-lseek.c (main): Disable test of errno for invalid third
67928         argument.
67929         * doc/functions/lseek.texi: Update.
67930         Reported by Gary V. Vaughan <gary@gnu.org>.
67931
67932 2007-05-28  Bruno Haible  <bruno@clisp.org>
67933
67934         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
67935
67936 2007-05-31  Eric Blake  <ebb9@byu.net>
67937
67938         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
67939         cross compiling.
67940
67941 2007-05-30  Eric Blake  <ebb9@byu.net>
67942         and Bruno Haible  <bruno@clisp.org>
67943
67944         Work around mingw test failures exposed by m4-1.4.9b.
67945         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
67946         * tests/test-unistd.c: Disable uid_t and git_t tests for the
67947         moment.
67948
67949 2007-05-30  Bruno Haible  <bruno@clisp.org>
67950
67951         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
67952         assuming that they are closed. Needed on HP-UX 11.
67953
67954 2007-05-29  Bruno Haible  <bruno@clisp.org>
67955
67956         Fix a problem with #include_next.
67957         * lib/dirent_.h: Split the double-inclusion guard.
67958         * lib/fcntl_.h: Likewise.
67959         * lib/float_.h: Likewise.
67960         * lib/iconv_.h: Likewise.
67961         * lib/inttypes_.h: Likewise.
67962         * lib/locale_.h: Likewise.
67963         * lib/math_.h: Likewise.
67964         * lib/netinet_in_.h: Likewise.
67965         * lib/search_.h: Likewise.
67966         * lib/signal_.h: Likewise.
67967         * lib/stdint_.h: Likewise.
67968         * lib/stdio_.h: Likewise.
67969         * lib/stdlib_.h: Likewise.
67970         * lib/string_.h: Likewise.
67971         * lib/sys_select_.h: Likewise.
67972         * lib/sys_socket_.h: Likewise.
67973         * lib/sys_stat_.h: Likewise.
67974         * lib/sys_time_.h: Likewise.
67975         * lib/sysexits_.h: Likewise.
67976         * lib/time_.h: Likewise.
67977         * lib/unistd_.h: Likewise.
67978         * lib/wchar_.h: Likewise.
67979         * lib/wctype_.h: Likewise.
67980
67981 2007-05-29  Bruno Haible  <bruno@clisp.org>
67982
67983         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
67984         for the moment.
67985
67986 2007-05-29  Bruno Haible  <bruno@clisp.org>
67987
67988         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
67989         invocation.
67990         Reported by Eric Blake.
67991
67992 2007-05-29  Bruno Haible  <bruno@clisp.org>
67993
67994         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
67995         compiling case.
67996
67997 2007-05-29  Eric Blake  <ebb9@byu.net>
67998             Bruno Haible  <bruno@clisp.org>
67999
68000         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
68001         cross compiles.
68002
68003 2007-05-28  Eric Blake  <ebb9@byu.net>
68004
68005         * modules/closein-tests (test_closein_LDADD): Support test on
68006         cygwin with libtool.
68007
68008 2007-05-28  Bruno Haible  <bruno@clisp.org>
68009
68010         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
68011         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
68012         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
68013         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
68014         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
68015         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
68016         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
68017         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
68018         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
68019
68020 2007-05-28  Eric Blake  <ebb9@byu.net>
68021
68022         Unconditionally include <config.h> in unit tests.
68023         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
68024         * tests/test-allocsa.c, tests/test-arcfour.c,
68025         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
68026         tests/test-array_list.c, tests/test-array_oset.c,
68027         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
68028         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
68029         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
68030         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
68031         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
68032         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
68033         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
68034         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
68035         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
68036         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
68037         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
68038         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
68039         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
68040         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
68041         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
68042         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
68043         test-md5.c, test-memmem.c, test-printf-posix.c,
68044         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
68045         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
68046         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
68047         test-strcasestr.c, test-striconv.c, test-striconveh.c,
68048         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
68049         test-vasnprintf-posix2.c, test-vasnprintf.c,
68050         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
68051         test-vfprintf-posix.c, test-vprintf-posix.c,
68052         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
68053         test-xvasprintf.c: Likewise.
68054
68055 2007-05-28  Bruno Haible  <bruno@clisp.org>
68056
68057         * gnulib-tool (func_import): Remember the --with-tests command-line
68058         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
68059         Reported by Eric Blake.
68060
68061 2007-05-28  Bruno Haible  <bruno@clisp.org>
68062
68063         * modules/ftell-tests: New file.
68064         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
68065         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
68066
68067         * lib/ftell.c: New file.
68068         * modules/ftell: New file.
68069         * m4/ftell.m4: New file.
68070         * doc/functions/ftell.texi: Update.
68071         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
68072         REPLACE_FTELL.
68073         * lib/stdio_.h (rpl_ftell): New declaration.
68074         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
68075         REPLACE_FTELL.
68076
68077 2007-05-28  Eric Blake  <ebb9@byu.net>
68078
68079         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
68080
68081 2007-05-28  Bruno Haible  <bruno@clisp.org>
68082
68083         * modules/fseek-tests: New file.
68084         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
68085         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
68086
68087         * lib/fseek.c: New file.
68088         * modules/fseek: New file.
68089         * m4/fseek.m4: New file.
68090         * doc/functions/fseek.texi: Update.
68091         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
68092         REPLACE_FSEEK.
68093         * lib/stdio_.h (rpl_fseek): New declaration.
68094         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
68095         REPLACE_FSEEK.
68096
68097 2007-05-28  Bruno Haible  <bruno@clisp.org>
68098
68099         * lib/stdio_.h (fflush): More comments.
68100
68101 2007-05-28  Bruno Haible  <bruno@clisp.org>
68102
68103         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
68104         runtime test.
68105
68106 2007-05-28  Eric Blake  <ebb9@byu.net>
68107
68108         Improve lseek module.
68109         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
68110         * lib/unistd_.h (lseek): Scale back link warning message.
68111         * tests/test-lseek.c: Beef up test.
68112         * tests/test-lseek.sh: Exercise more facets of lseek.
68113         Reported by Bruno Haible.
68114
68115 2007-05-28  Bruno Haible  <bruno@clisp.org>
68116
68117         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
68118         to define.
68119
68120 2007-05-27  Bruno Haible  <bruno@clisp.org>
68121
68122         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
68123
68124 2007-05-27  Bruno Haible  <bruno@clisp.org>
68125
68126         * modules/openmp: New file.
68127         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
68128         Noah Misch.
68129
68130 2007-05-26  Bruno Haible  <bruno@clisp.org>
68131
68132         * modules/chdir-long (Depends-on): Add fchdir.
68133         * modules/chdir-safer (Depends-on): Likewise.
68134         * modules/fts (Depends-on): Likewise.
68135         * modules/fts-lgpl (Depends-on): Likewise.
68136         * modules/openat (Depends-on): Likewise.
68137         * modules/savewd (Depends-on): Likewise.
68138
68139 2007-05-24  Eric Blake  <ebb9@byu.net>
68140
68141         Fix lseek on mingw.
68142         * modules/lseek: New module.
68143         * m4/lseek.m4: New file.
68144         * lib/lseek.c: New file.
68145         * modules/lseek-tests: New file.
68146         * tests/test-lseek.c: New file.
68147         * tests/test-lseek.sh: New file.
68148         * MODULES.html.sh: Document lseek module.
68149         * modules/fflush (Depends-on): Add lseek, fseeko.
68150         * modules/fseeko (Depends-on): Likewise.
68151         * modules/ftello (Depends-on): Likewise.
68152         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
68153         broken.
68154         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
68155         broken.
68156         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
68157         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
68158         * lib/ftello.c (rpl_ftello): Likewise.
68159         * tests/test-fseeko.c (main): Test this.
68160         * tests/test-fseeko.sh: Likewise.
68161         * tests/test-ftello.c (main): Likewise.
68162         * tests/test-ftello.sh: Likewise.
68163         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
68164         implies replacing fseek.
68165         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
68166         HAVE_FTELLO.
68167         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
68168         * modules/unistd (Makefile.am): Likewise.
68169         * lib/unistd_.h (lseek): Declare a replacement.
68170         * doc/functions/lseek.texi (lseek): Document this fix.
68171         * doc/functions/fseek.texi (fseek): Likewise.
68172         * doc/functions/ftell.texi (ftell): Likewise.
68173
68174 2007-05-24  Bruno Haible  <bruno@clisp.org>
68175
68176         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
68177         in the printed representation of a NaN.
68178         * tests/test-vasprintf-posix.c (test_function): Likewise.
68179         * tests/test-snprintf-posix.h (test_function): Likewise.
68180         * tests/test-sprintf-posix.h (test_function): Likewise.
68181         Reported by Eric Blake.
68182
68183 2007-05-23  Eric Blake  <ebb9@byu.net>
68184
68185         Fix fseeko/ftello on cygwin 1.5.24.
68186         * doc/functions/fseeko.texi (fseeko): Document the fix.
68187         * doc/functions/ftello.texi (ftello): Document the fix.
68188         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
68189         * doc/functions/stdout.text (stdout): New file.
68190         * doc/functions/stderr.text (stderr): New file.
68191         * doc/gnulib.texi (Function Substitutes): Use new files.
68192         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
68193         prior to 1.7.0.
68194         * tests/test-ftello.c (main): Likewise for ftello.
68195         * tests/test-fseeko.sh: New file.
68196         * tests/test-ftello.sh: New file.
68197         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
68198         with seekable stdin.
68199         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
68200         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
68201         (gl_REPLACE_FSEEKO): New macro.
68202         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
68203         * modules/fseeko (Files): Distribute fseeko.c.
68204         * modules/ftello (Files): Distribute ftello.c.
68205         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
68206         mode.
68207         * lib/ftello.c (rpl_ftello): New file.
68208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
68209         fseeko, ftello.
68210         (gl_STDIN_LARGE_OFFSET): New macro.
68211         * modules/stdio (Makefile.am): Perform the replacement.
68212         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
68213
68214 2007-05-23  Bruno Haible  <bruno@clisp.org>
68215
68216         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
68217         GNULIB_POSIXCHECK is defined.
68218
68219 2007-05-21  Bruno Haible  <bruno@clisp.org>
68220
68221         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
68222         Check also the output for NaN arguments. When cross-compiling, guess
68223         no on IRIX.
68224         * lib/vasnprintf.c: Update comments.
68225         * tests/test-vasnprintf-posix.c (strisnan): New function.
68226         (test_function): Use it.
68227         * tests/test-vasprintf-posix.c (strisnan): New function.
68228         (test_function): Use it.
68229         * tests/test-snprintf-posix.h (strisnan): New function.
68230         (test_function): Use it.
68231         * tests/test-sprintf-posix.h (strisnan): New function.
68232         (test_function): Use it.
68233         Reported by Eric Blake.
68234
68235 2007-05-20  Bruno Haible  <bruno@clisp.org>
68236
68237         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
68238         numbers that fails on BeOS.
68239         * doc/functions/frexpl.texi: Update.
68240
68241 2007-05-20  Jim Meyering  <jim@meyering.net>
68242
68243         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
68244         forced upon us by glibc-2.6.
68245
68246 2007-05-20  Bruno Haible  <bruno@clisp.org>
68247
68248         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
68249         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
68250         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
68251         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
68252         NEED_PRINTF_INFINITE.
68253         (is_infinitel): New function.
68254         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
68255         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
68256         gl_PREREQ_VASNPRINTF_INFINITE.
68257         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
68258         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68259         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
68260         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
68261         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
68262         gl_PREREQ_VASNPRINTF_INFINITE.
68263         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68264         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68265         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68266         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68267         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68268         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68269         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68270         * doc/functions/fprintf.texi: Update.
68271         * doc/functions/printf.texi: Update.
68272         * doc/functions/snprintf.texi: Update.
68273         * doc/functions/sprintf.texi: Update.
68274         * doc/functions/vfprintf.texi: Update.
68275         * doc/functions/vprintf.texi: Update.
68276         * doc/functions/vsnprintf.texi: Update.
68277         * doc/functions/vsprintf.texi: Update.
68278
68279 2007-05-20  Bruno Haible  <bruno@clisp.org>
68280
68281         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
68282         was not found in libc.
68283         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
68284
68285 2007-05-20  Bruno Haible  <bruno@clisp.org>
68286
68287         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68288         printed as "-nan" instead of "nan".
68289         * tests/test-vasprintf-posix.c (test_function): Likewise.
68290         * tests/test-snprintf-posix.h (test_function): Likewise.
68291         * tests/test-sprintf-posix.h (test_function): Likewise.
68292         Needed for HP-UX 11.
68293
68294 2007-05-20  Jim Meyering  <jim@meyering.net>
68295
68296         Fix buggy test for the fchownat-deref bug.
68297         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
68298         symlink required for the run-test.  Without it, this test would
68299         always declare that fchownat doesn't work, and client code would
68300         unnecessarily use the replacement function with fixed libc.
68301         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
68302         Reported by Greg Schafer.
68303
68304 2007-05-19  Bruno Haible  <bruno@clisp.org>
68305
68306         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
68307         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
68308         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
68309         Needed for IRIX 6.5 and Solaris 2.5.1.
68310
68311 2007-05-19  Bruno Haible  <bruno@clisp.org>
68312
68313         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
68314         (test_function): Skip tests involving -0.0 on platforms where
68315         -0.0 = 0.0.
68316         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
68317         (test_function): Skip tests involving -0.0 on platforms where
68318         -0.0 = 0.0.
68319         * tests/test-snprintf-posix.h (have_minus_zero): New function.
68320         (test_function): Skip tests involving -0.0 on platforms where
68321         -0.0 = 0.0.
68322         * tests/test-sprintf-posix.h (have_minus_zero): New function.
68323         (test_function): Skip tests involving -0.0 on platforms where
68324         -0.0 = 0.0.
68325         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
68326         tests.
68327         * tests/test-printf-posix.h (test_function): Likewise.
68328         * tests/test-printf-posix.output: Remove all -0.0 related results.
68329         Needed for IRIX 6.5.
68330
68331 2007-05-19  Bruno Haible  <bruno@clisp.org>
68332
68333         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68334         printed as "nan0x7fffffff" instead of "nan".
68335         * tests/test-vasprintf-posix.c (test_function): Likewise.
68336         * tests/test-snprintf-posix.h (test_function): Likewise.
68337         * tests/test-sprintf-posix.h (test_function): Likewise.
68338         * tests/test-fprintf-posix.h (NaN): Remove macro.
68339         (test_function): Remove all NaN related tests.
68340         * tests/test-printf-posix.h (NaN): Remove macro.
68341         (test_function): Remove all NaN related tests.
68342         * tests/test-printf-posix.output: Remove all NaN related results.
68343         Needed for IRIX 6.5.
68344
68345 2007-05-19  Bruno Haible  <bruno@clisp.org>
68346
68347         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
68348         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
68349
68350 2007-05-19  Bruno Haible  <bruno@clisp.org>
68351
68352         * lib/float_.h: New file.
68353         * m4/float_h.m4: New file.
68354         * modules/float: New file.
68355         * modules/isnanl (Dependencies): Add float.
68356         * modules/isnanl-nolibm (Dependencies): Likewise.
68357         * modules/mathl (Dependencies): Likewise.
68358         * modules/printf-frexpl (Dependencies): Likewise.
68359         * modules/signbit (Dependencies): Likewise.
68360         * modules/vasnprintf (Dependencies): Likewise.
68361         * doc/headers/float.texi: Update.
68362
68363 2007-05-19  Jim Meyering  <jim@meyering.net>
68364
68365         * lib/utimens.c (gl_futimens): Rename from futimens,
68366         now that glibc-2.6 declares futimens.
68367         * lib/utimens.h: Likewise.
68368
68369 2007-05-19  Bruno Haible  <bruno@clisp.org>
68370
68371         Avoid test failures on mingw.
68372         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
68373         * tests/test-printf-posix.sh: Likewise.
68374         * tests/test-vfprintf-posix.sh: Likewise.
68375         * tests/test-vprintf-posix.sh: Likewise.
68376
68377 2007-05-19  Bruno Haible  <bruno@clisp.org>
68378
68379         Fix *printf result for NaN, Inf, -0.0 on mingw.
68380         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
68381         * lib/vasnprintf.c: Include math.h and isnan.h.
68382         (is_infinite_or_zero): New function.
68383         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
68384         values in the %f, %F, %e, %E, %g, %G directives.
68385         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
68386         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68387         gl_PRINTF_INFINITE and test its result. Invoke
68388         gl_PREREQ_VASNPRINTF_INFINITE.
68389         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68390         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68391         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68392         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68393         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68394         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68395         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68396         * doc/functions/fprintf.texi: Update.
68397         * doc/functions/printf.texi: Update.
68398         * doc/functions/snprintf.texi: Update.
68399         * doc/functions/sprintf.texi: Update.
68400         * doc/functions/vfprintf.texi: Update.
68401         * doc/functions/vprintf.texi: Update.
68402         * doc/functions/vsnprintf.texi: Update.
68403         * doc/functions/vsprintf.texi: Update.
68404
68405 2007-05-19  Bruno Haible  <bruno@clisp.org>
68406
68407         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
68408         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
68409         Instead of multiplying with 10^k, set extra_zeroes to k.
68410         (scale10_round_long_double): Remove function.
68411
68412 2007-05-18  Bruno Haible  <bruno@clisp.org>
68413
68414         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
68415         introduced on 2007-05-06.
68416
68417 2007-05-18  Bruno Haible  <bruno@clisp.org>
68418
68419         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
68420         %g directives.
68421         * tests/test-vasprintf-posix.c (test_function): Likewise.
68422         * tests/test-snprintf-posix.h (test_function): Likewise.
68423         * tests/test-sprintf-posix.h (test_function): Likewise.
68424
68425 2007-05-18  Bruno Haible  <bruno@clisp.org>
68426
68427         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
68428         (strmatch): New function.
68429         (test_function): Test the %f directive on numbers of various exponents.
68430         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
68431         (strmatch): New function.
68432         (test_function): Test the %f directive on numbers of various exponents.
68433         * tests/test-snprintf-posix.h (strmatch): New function.
68434         (test_function): Test the %f directive on numbers of various exponents.
68435         * tests/test-sprintf-posix.h (strmatch): New function.
68436         (test_function): Test the %f directive on numbers of various exponents.
68437         * tests/test-snprintf-posix.c (SIZEOF): New macro.
68438         * tests/test-sprintf-posix.c (SIZEOF): New macro.
68439         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
68440         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
68441
68442 2007-05-18  Bruno Haible  <bruno@clisp.org>
68443
68444         Add support for 'long double' number output.
68445         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
68446         * lib/vasnprintf.c: Include math.h and float+.h.
68447         (mp_limb_t): New type.
68448         (GMP_LIMB_BITS): New macro.
68449         (mp_twolimb_t): New type.
68450         (GMP_TWOLIMB_BITS): New macro.
68451         (mpn_t): New type.
68452         (multiply, divide, convert_to_decimal, decode_long_double,
68453         scale10_round_long_double, scale10_round_decimal_long_double,
68454         floorlog10l): New functions.
68455         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
68456         for the %f, %F, %e, %E, %g, %G directives.
68457         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
68458         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68459         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
68460         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
68461         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68462         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68463         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68464         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68465         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68466         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68467         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68468         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
68469         * modules/snprintf-posix (Depends-on): Likewise.
68470         * modules/sprintf-posix (Depends-on): Likewise.
68471         * modules/vasnprintf-posix (Depends-on): Likewise.
68472         * modules/vasprintf-posix (Depends-on): Likewise.
68473         * modules/vfprintf-posix (Depends-on): Likewise.
68474         * modules/vsnprintf-posix (Depends-on): Likewise.
68475         * modules/vsprintf-posix (Depends-on): Likewise.
68476         * modules/vasnprintf (Files): Add lib/float+.h.
68477         * doc/functions/fprintf.texi: Update.
68478         * doc/functions/printf.texi: Update.
68479         * doc/functions/snprintf.texi: Update.
68480         * doc/functions/sprintf.texi: Update.
68481         * doc/functions/vfprintf.texi: Update.
68482         * doc/functions/vprintf.texi: Update.
68483         * doc/functions/vsnprintf.texi: Update.
68484         * doc/functions/vsprintf.texi: Update.
68485
68486 2007-05-18  Bruno Haible  <bruno@clisp.org>
68487
68488         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
68489
68490 2007-05-18  Bruno Haible  <bruno@clisp.org>
68491
68492         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
68493         for printing 64-bit integers. Needed for mingw.
68494
68495 2007-05-18  Bruno Haible  <bruno@clisp.org>
68496
68497         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
68498         gl_FUNC_FREXPL_WORKS.
68499         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
68500
68501 2007-05-18  Bruno Haible  <bruno@clisp.org>
68502
68503         * modules/frexpl-nolibm-tests: New file.
68504
68505         * modules/frexpl-nolibm: New file.
68506         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
68507
68508 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68509
68510         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
68511         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68512         GCC 4.2, which otherwise issues a lot of warnings.
68513         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
68514         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
68515         Likewise.
68516         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
68517         * modules/iconv_open (iconv.h): Likewise.
68518         * modules/locale (locale.h): Likewise.
68519         * modules/netinet_in (netinet/in.h): Likewise.
68520         * modules/sys_select (sys_select.h): Likewise.
68521         * modules/sys_socket (sys/socket.h): Likewise.
68522         * modules/sys_stat (sys/stat.h): Likewise.
68523         * modules/sysexits (sysexits.h): Likewise.
68524         * modules/unistd (unistd.h): Likewise.
68525
68526 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68527
68528         * modules/closein-tests (Makefile.am): Distribute
68529         `test-closein.sh'.
68530
68531 2007-05-17  Bruno Haible  <bruno@clisp.org>
68532
68533         * tests/test-printf-posix.output: Renamed from
68534         tests/test-fprintf-posix.out.
68535         * modules/fprintf-posix-tests: Update.
68536         * modules/printf-posix-tests: Update.
68537         * modules/vfprintf-posix-tests: Update.
68538         * modules/vprintf-posix-tests: Update.
68539         * tests/test-fprintf-posix.sh: Update.
68540         * tests/test-printf-posix.sh: Update.
68541         * tests/test-vfprintf-posix.sh: Update.
68542         * tests/test-vprintf-posix.sh: Update.
68543         Reported by Ralf Wildenhues.
68544
68545 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68546
68547         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
68548         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68549         GCC 4.2, which otherwise issues a lot of warnings.
68550         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
68551         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
68552         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
68553         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
68554         it should no longer be needed.
68555         * lib/string_.h: Likewise.
68556         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
68557         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
68558         * modules/inttypes (inttypes.h): Likewise.
68559         * modules/math (math.h): Likewise.
68560         * modules/search (search.h): Likewise.
68561         * modules/signal (signal.h): Likewise.
68562         * modules/stdint (stdint.h): Likewise.
68563         * modules/stdio (stdio.h): Likewise.
68564         * modules/stdlib (stdlib.h): Likewise.
68565         * modules/string (string.h): Likewise.
68566         * modules/sys_time (sys/time.h): Likewise.
68567         * modules/time (time.h): Likewise.
68568         * modules/wchar (wchar.h): Likewise.
68569         * modules/wctype (wtype.h): Likewise.
68570
68571 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
68572
68573         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
68574
68575 2007-05-13  Bruno Haible  <bruno@clisp.org>
68576
68577         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
68578         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68579         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
68580         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68581         (gl_PREREQ_STRTOK_R): Don't require it here.
68582
68583 2007-05-13  Bruno Haible  <bruno@clisp.org>
68584
68585         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
68586         when used in C++ mode.
68587
68588 2007-05-12  Bruno Haible  <bruno@clisp.org>
68589
68590         * lib/linebuffer.h: Tweak doc.
68591         * lib/linebuffer.c: Likewise.
68592
68593 2007-05-12  James Youngman  <jay@gnu.org>
68594
68595         * lib/linebuffer.c (readlinebuffer_delim): New function,
68596         like readlinebuffer, but use a caller-specified delimiter.
68597         (readlinebuffer): Just call readlinebuffer_delim with '\n'
68598         as the delimiter.
68599         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
68600
68601 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68602
68603         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
68604         * modules/openat (Files): Remove openat-die.c.
68605         (Depends-on): Add openat-die.
68606         * modules/openat-die: New module.
68607
68608 2007-05-06  Bruno Haible  <bruno@clisp.org>
68609
68610         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
68611         Update with info about Cygwin.
68612         * doc/functions/fprintf.texi: Update.
68613         * doc/functions/printf.texi: Update.
68614         * doc/functions/snprintf.texi: Update.
68615         * doc/functions/sprintf.texi: Update.
68616         * doc/functions/vfprintf.texi: Update.
68617         * doc/functions/vprintf.texi: Update.
68618         * doc/functions/vsnprintf.texi: Update.
68619         * doc/functions/vsprintf.texi: Update.
68620         Reported by Eric Blake.
68621
68622 2007-05-06  Bruno Haible  <bruno@clisp.org>
68623
68624         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
68625         padding ourselves for the floating-point directives.
68626         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
68627         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
68628         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68629         gl_PRINTF_FLAG_ZERO and test its result. Invoke
68630         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
68631         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68632         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68633         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68634         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68635         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68636         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68637         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68638         * tests/test-snprintf-posix.h (test_function): Also check the width
68639         and some flags in the %f directive.
68640         * tests/test-sprintf-posix.h (test_function): Likewise.
68641         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68642         * tests/test-vasprintf-posix.c (test_function): Likewise.
68643         * doc/functions/fprintf.texi: Update.
68644         * doc/functions/printf.texi: Update.
68645         * doc/functions/snprintf.texi: Update.
68646         * doc/functions/sprintf.texi: Update.
68647         * doc/functions/vfprintf.texi: Update.
68648         * doc/functions/vprintf.texi: Update.
68649         * doc/functions/vsnprintf.texi: Update.
68650         * doc/functions/vsprintf.texi: Update.
68651
68652 2007-05-06  Bruno Haible  <bruno@clisp.org>
68653
68654         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
68655         pass the ' flag character to sprintf or snprintf.
68656         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
68657         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
68658         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68659         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
68660         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
68661         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68662         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68663         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68664         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68665         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68666         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68667         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68668         * tests/test-snprintf-posix.h (test_function): Also check the grouping
68669         flag.
68670         * tests/test-sprintf-posix.h (test_function): Likewise.
68671         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68672         * tests/test-vasprintf-posix.c (test_function): Likewise.
68673         * doc/functions/fprintf.texi: Update.
68674         * doc/functions/printf.texi: Update.
68675         * doc/functions/snprintf.texi: Update.
68676         * doc/functions/sprintf.texi: Update.
68677         * doc/functions/vfprintf.texi: Update.
68678         * doc/functions/vprintf.texi: Update.
68679         * doc/functions/vsnprintf.texi: Update.
68680         * doc/functions/vsprintf.texi: Update.
68681
68682 2007-05-01  Bruno Haible  <bruno@clisp.org>
68683
68684         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
68685
68686 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
68687
68688         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
68689         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
68690
68691 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68692
68693         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
68694         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
68695         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
68696
68697 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
68698
68699         * lib/argp-help.c (struct hol_entry): New member `ord'.
68700         (HOL_ENTRY_PTRCMP): Use ord for comparison
68701         (hol_sort): Initialize ord.
68702
68703 2007-05-01  Bruno Haible  <bruno@clisp.org>
68704
68705         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
68706         Reported by Eric Blake.
68707         * doc/gnulib.texi (Function Substitutes): Update.
68708
68709 2007-05-01  Bruno Haible  <bruno@clisp.org>
68710
68711         * doc/functions.texi: Remove file, now redundant through
68712         doc/functions/*.texi.
68713
68714 2007-05-01  Bruno Haible  <bruno@clisp.org>
68715
68716         * modules/argp (Depends-on): Add sleep.
68717
68718 2007-05-01  Bruno Haible  <bruno@clisp.org>
68719
68720         * modules/sleep-tests: New file.
68721         * tests/test-sleep.c: New file.
68722
68723         * modules/sleep: New file.
68724         * lib/sleep.c: New file.
68725         * m4/sleep.m4: New file.
68726         * lib/unistd_.h (sleep): New declaration.
68727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
68728         HAVE_SLEEP.
68729         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
68730         * doc/functions/sleep.texi: Document the sleep module.
68731
68732 2007-05-01  Bruno Haible  <bruno@clisp.org>
68733
68734         * lib/sigprocmask.h: Remove file.
68735         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
68736         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
68737         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
68738         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
68739         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
68740         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
68741         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
68742         HAVE_SIGSET_T as a shell variable.
68743         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
68744         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
68745         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
68746         (Depends-on): Add signal. Remove verify.
68747         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
68748         (Include): Mention <signal.h> instead of sigprocmask.h.
68749         * NEWS: Mention the change.
68750         * lib/fatal-signal.c: Don't include sigprocmask.h.
68751
68752 2007-05-01  Bruno Haible  <bruno@clisp.org>
68753
68754         * modules/signal: New file.
68755         * lib/signal_.h: New file.
68756         * m4/signal_h.m4: New file.
68757
68758 2007-05-01  Bruno Haible  <bruno@clisp.org>
68759
68760         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
68761         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
68762         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
68763         HAVE_WCTYPE_CTMP_BUG into wctype.h.
68764
68765 2007-05-01  Bruno Haible  <bruno@clisp.org>
68766
68767         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
68768         configure time.
68769         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
68770         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
68771         * modules/sys_stat (Makefile.am): Substitute their values into
68772         sys/stat.h.
68773
68774 2007-05-01  Bruno Haible  <bruno@clisp.org>
68775
68776         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
68777         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
68778         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
68779
68780 2007-05-01  Bruno Haible  <bruno@clisp.org>
68781
68782         * doc/header/assert.texi: Undo last change: don't mention the gnulib
68783         'assert' module here.
68784
68785 2007-05-01  Bruno Haible  <bruno@clisp.org>
68786
68787         * doc/functions/*.texi: New files.
68788         * doc/functions/google-ranking.txt: New file.
68789         * doc/gnulib.texi (Function Substitutes): New chapter.
68790         (ctime, inet_ntoa): Remove sections.
68791         * doc/ctime.texi: Remove file.
68792         * doc/inet_ntoa.texi: Remove file.
68793         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
68794         dependencies.
68795         (%.info): New rule, specifying a --reference-limit.
68796
68797 2007-05-01  Bruno Haible  <bruno@clisp.org>
68798
68799         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
68800
68801 2007-05-01  Bruno Haible  <bruno@clisp.org>
68802
68803         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
68804         the portability of 'mkdir' to mingw systems.
68805
68806 2007-05-01  Bruno Haible  <bruno@clisp.org>
68807
68808         * doc/headers/google-ranking.txt: New file.
68809
68810 2007-04-30  Eric Blake  <ebb9@byu.net>
68811
68812         Prefer fseeko to fseek.
68813         * modules/getpass (Depends-on): Add fseeko.
68814         * lib/getpass.c (getpass): Use fseeko, not fseek.
68815
68816 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
68817
68818         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
68819         assumes the sorting is stable, while most qsort implementations
68820         are not.  Use argument addresses to ensure they never compare as
68821         equal.
68822
68823         * tests/test-argp-2.sh (usage-indent test): Fix output
68824         (func_compare): Restore diff options
68825         * tests/test-argp.c: Restore #include "progname.h"
68826
68827 2007-04-29  Bruno Haible  <bruno@clisp.org>
68828
68829         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
68830         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68831         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
68832         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68833         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
68834         (configure.ac): Define CHECK_SNPRINTF_POSIX.
68835         (TESTS, check_PROGRAMS): Add test-snprintf.
68836         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
68837         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
68838         (TESTS, check_PROGRAMS): Add test-vsnprintf.
68839         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
68840         assertions that fail on HP-UX, OSF/1, or IRIX.
68841         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
68842
68843 2007-04-29  Bruno Haible  <bruno@clisp.org>
68844
68845         * MODULES.html.sh (posix_functions): Remove 'contents'.
68846
68847 2007-04-29  Karl Berry  <karl@gnu.org>
68848
68849         * config/srclist.txt (gendocs_template_min): new entry.
68850
68851 2007-04-29  Bruno Haible  <bruno@clisp.org>
68852
68853         Work around fpurge bug on BSD systems.
68854         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
68855         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
68856         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
68857         fpurge to rpl_fpurge if the system already has this function.
68858         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
68859         the case where the system already has this function. Correct invariants
68860         on BSD systems.
68861         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
68862         BSD systems.
68863
68864 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
68865
68866         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
68867         proposed by Sven Verdoolaege.
68868
68869         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
68870         options.
68871         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
68872         (usage and help tests): Update
68873
68874 2007-04-29  Bruno Haible  <bruno@clisp.org>
68875
68876         * tests/test-fflush.c (main): Use a file of size 17, not 10.
68877         Print more information in case of failure. Disable a test on BeOS.
68878
68879 2007-04-29  Bruno Haible  <bruno@clisp.org>
68880
68881         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
68882         This helps debugging on systems on which no gdb is available.
68883
68884 2007-04-29  Bruno Haible  <bruno@clisp.org>
68885
68886         * lib/freading.h: Improve comments.
68887         * lib/fwriting.h: Likewise.
68888         * tests/test-freading.c (main): Don't check freading immediately after
68889         repositioning. Needed for glibc.
68890
68891 2007-04-29  Bruno Haible  <bruno@clisp.org>
68892
68893         * lib/freading.c (freading): Trivial simplification.
68894
68895 2007-04-28  Bruno Haible  <bruno@clisp.org>
68896
68897         * tests/test-fwriting.c (main): Also test the interaction between
68898         fflush and fwriting.
68899         * modules/fwriting-tests (Depends-on): Add fflush.
68900
68901         * tests/test-freading.c (main): Also test the interaction between
68902         fflush and freading.
68903         * modules/freading-tests (Depends-on): Add fflush.
68904
68905 2007-04-28  Bruno Haible  <bruno@clisp.org>
68906
68907         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
68908         fseeko and ftello.
68909         Suggested by Eric Blake.
68910
68911 2007-04-28  Jim Meyering  <jim@meyering.net>
68912
68913         Avoid false-negative in gl_STDINT_H's C99 conformance test.
68914         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
68915         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
68916
68917 2007-04-27  Eric Blake  <ebb9@byu.net>
68918
68919         * doc/headers/assert.texi (assert.h): Document assert module use.
68920
68921 2007-04-27  Bruno Haible  <bruno@clisp.org>
68922
68923         * doc/headers/*.texi: New files.
68924         * doc/gnulib.texi (Header File Substitutes): New chapter.
68925         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
68926         dependencies.
68927         (standards.info ,standards.html, standards.dvi): Update dependencies.
68928         (mostlyclean, clean): New targets.
68929
68930 2007-04-27  Bruno Haible  <bruno@clisp.org>
68931
68932         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
68933         * modules/sysexits (Files, Makefile.am): Update.
68934
68935         * lib/sys_socket_.h: Renamed from lib/socket_.h.
68936         * modules/sys_socket (Files, Makefile.am): Update.
68937
68938         * lib/sys_stat_.h: Renamed from lib/stat_.h.
68939         * modules/sys_stat (Files, Makefile.am): Update.
68940
68941 2007-04-27  Eric Blake  <ebb9@byu.net>
68942
68943         * lib/freading.h: Improve comments.
68944         * lib/fwriting.h: Likewise.
68945         * lib/fflush.c: Likewise.
68946
68947         Fix closein for mingw.
68948         * modules/closein-tests: Add tests for closein.
68949         * tests/test-closein.c: New file.
68950         * tests/test-closein.sh: Likewise.
68951         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
68952         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
68953
68954 2007-04-27  Bruno Haible  <bruno@clisp.org>
68955
68956         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
68957         version is < 6.
68958         * lib/math_.h [__DECC]: Likewise.
68959         * lib/stdio_.h [__DECC]: Likewise.
68960         * lib/stdlib_.h [__DECC]: Likewise.
68961         * lib/string_.h [__DECC]: Likewise.
68962         * lib/time_.h [__DECC]: Likewise.
68963         * lib/wchar_.h [__DECC]: Likewise.
68964         * lib/wctype_.h [__DECC]: Likewise.
68965
68966 2007-04-27  Bruno Haible  <bruno@clisp.org>
68967
68968         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
68969
68970 2007-04-27  Bruno Haible  <bruno@clisp.org>
68971
68972         * lib/fflush.c: Add comments.
68973         * modules/fpurge-tests (Depends-on): Add fflush.
68974         * modules/freadable-tests (Depends-on): Likewise.
68975         * modules/fwritable-tests (Depends-on): Likewise.
68976
68977 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
68978
68979         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
68980         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
68981         Report by Bruno Haible <bruno@clisp.org>.
68982
68983 2007-04-26  Eric Blake  <ebb9@byu.net>
68984
68985         Fix fflush on mingw.
68986         * modules/fflush (Depends-on): Add freading.
68987         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
68988         but unread data.
68989
68990 2007-04-26  Eric Blake  <ebb9@byu.net>
68991         and Bruno Haible  <bruno@clisp.org>
68992
68993         Implement freading and fwriting.
68994         * lib/freading.c: New file.
68995         * lib/freading.h: Likewise.
68996         * m4/freading.m4: Likewise.
68997         * modules/freading: Likewise.
68998         * modules/freading-tests: Likewise.
68999         * tests/test-freading.c: Likewise.
69000         * lib/fwriting.c: New file.
69001         * lib/fwriting.h: Likewise.
69002         * m4/fwriting.m4: Likewise.
69003         * modules/fwriting: Likewise.
69004         * modules/fwriting-tests: Likewise.
69005         * tests/test-fwriting.c: Likewise.
69006         * MODULES.html.sh (File stream based Input/Output): Mention them.
69007
69008 2007-04-26  Bruno Haible  <bruno@clisp.org>
69009
69010         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
69011         'long' when we assume it.
69012         Suggested by Eric Blake.
69013
69014 2007-04-26  Bruno Haible  <bruno@clisp.org>
69015
69016         Ensure fseeko, ftello are declared on glibc systems.
69017         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
69018         * modules/fseeko (configure.ac-early): Likewise.
69019         * modules/ftello (configure.ac-early): Likewise.
69020         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
69021         AC_FUNC_FSEEKO for this.
69022         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
69023         (gl_CHECK_FSEEKO): Remove macro.
69024
69025 2007-04-26  Bruno Haible  <bruno@clisp.org>
69026
69027         * tests/test-fflush.c (main): Also check the ftell result after
69028         fflush and fseek/fseeko.
69029         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
69030         file descriptor position cache in the stream.
69031         * lib/fseeko.c (rpl_fseeko): Likewise.
69032
69033 2007-04-26  Bruno Haible  <bruno@clisp.org>
69034
69035         * modules/fflush-tests (Depends-on): Add fseeko.
69036
69037 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
69038             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69039
69040         * lib/argz_.h: ensure error_t definition is obtained in same
69041         mechanism system argz.h would have.
69042         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
69043         argz facilities are known bad.  Err on the side of caution if
69044         cross-compiling.
69045
69046 2007-04-25  Eric Blake  <ebb9@byu.net>
69047
69048         * lib/fpurge.c (includes): Use stdlib.h for free.
69049         * tests/test-fflush.c (main): Also test fflush-fseeko.
69050
69051 2007-04-25  Bruno Haible  <bruno@clisp.org>
69052
69053         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
69054         * lib/fseeko.c: New file.
69055         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
69056         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
69057         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
69058         gl_FUNC_FSEEKO.
69059         (gl_FUNC_FSEEKO): Invoke it.
69060         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
69061         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
69062         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
69063
69064 2007-04-25  Bruno Haible  <bruno@clisp.org>
69065
69066         * modules/fflush (Depends-on): Add ftello.
69067
69068 2007-04-25  Bruno Haible  <bruno@clisp.org>
69069
69070         * modules/ftello-tests: New file.
69071         * tests/test-ftello.c: New file.
69072
69073         * modules/ftello: New file.
69074         * m4/ftello.m4: New file.
69075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
69076         HAVE_FTELLO.
69077         * lib/stdio_.h (ftello): New declaration.
69078         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
69079         HAVE_FTELLO.
69080
69081 2007-04-25  Bruno Haible  <bruno@clisp.org>
69082
69083         * modules/fseeko-tests: New file.
69084         * tests/test-fseeko.c: New file.
69085
69086         * modules/fseeko: New file.
69087         * m4/fseeko.m4: New file.
69088         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
69089         HAVE_FSEEKO.
69090         * lib/stdio_.h (fseeko): New declaration.
69091         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
69092         HAVE_FSEEKO.
69093
69094 2007-04-25  Bruno Haible  <bruno@clisp.org>
69095
69096         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
69097
69098 2007-04-25  Bruno Haible  <bruno@clisp.org>
69099
69100         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
69101         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
69102         * tests/test-unistd.c: Likewise.
69103         * tests/test-fcntl.c: Likewise.
69104
69105 2007-04-23  Eric Blake  <ebb9@byu.net>
69106
69107         * lib/fflush.c: Fix missing include.
69108         Reported by Bruno Haible.
69109
69110 2007-04-23  Bruno Haible  <bruno@clisp.org>
69111
69112         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
69113         Reported by Eric Blake.
69114
69115 2007-04-23  Bruno Haible  <bruno@clisp.org>
69116
69117         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
69118
69119 2007-04-23  Bruno Haible  <bruno@clisp.org>
69120
69121         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
69122
69123 2007-04-23  Bruno Haible  <bruno@clisp.org>
69124
69125         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
69126         Needed on HP-UX 11.
69127
69128 2007-04-16  Eric Blake  <ebb9@byu.net>
69129
69130         Make fflush rely on fpurge.
69131         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
69132         open coding all variants.
69133         * modules/fflush (Depends-on): Add fpurge and unistd.
69134         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
69135         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
69136
69137         Fix --with-tests compilation on cygwin.
69138         * modules/argmatch-tests (Makefile.am): List gnulib library first
69139         in LDADD.
69140         * modules/argp-tests (Makefile.am): Likewise.
69141         * modules/array-list-tests (Makefile.am): Likewise.
69142         * modules/array-oset-tests (Makefile.am): Likewise.
69143         * modules/avltree-list-tests (Makefile.am): Likewise.
69144         * modules/avltree-oset-tests (Makefile.am): Likewise.
69145         * modules/avltreehash-list-tests (Makefile.am): Likewise.
69146         * modules/carray-list-tests (Makefile.am): Likewise.
69147         * modules/dirname-tests (Makefile.am): Likewise.
69148         * modules/frexp-tests (Makefile.am): Likewise.
69149         * modules/isnanl-tests (Makefile.am): Likewise.
69150         * modules/linked-list-tests (Makefile.am): Likewise.
69151         * modules/linkedhash-list-tests (Makefile.am): Likewise.
69152         * modules/lock-tests (Makefile.am): Likewise.
69153         * modules/rbtree-list-tests (Makefile.am): Likewise.
69154         * modules/rbtree-oset-tests (Makefile.am): Likewise.
69155         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
69156         * modules/tls-tests (Makefile.am): Likewise.
69157         * modules/tsearch-tests (Makefile.am): Likewise.
69158         * modules/xvasprintf-tests (Makefile.am): Likewise.
69159
69160         Fix fpurge for cygwin.
69161         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
69162         value.
69163         * modules/fpurge-tests (Depends-on): Clean up trash.
69164
69165 2007-04-16  Simon Josefsson  <simon@josefsson.org>
69166
69167         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
69168
69169         * m4/autobuild.m4: Re-indent.
69170
69171 2007-04-13  Bruno Haible  <bruno@clisp.org>
69172
69173         * modules/fpurge-tests: New file.
69174         * tests/test-fpurge.c: New file.
69175
69176         * modules/fpurge: New file.
69177         * lib/fpurge.h: New file.
69178         * lib/fpurge.c: New file.
69179         * m4/fpurge.m4: New file.
69180
69181 2007-04-13  Bruno Haible  <bruno@clisp.org>
69182
69183         * modules/fbufmode-tests: New file.
69184         * tests/test-fbufmode.c: New file.
69185
69186         * modules/fbufmode: New file.
69187         * lib/fbufmode.h: New file.
69188         * lib/fbufmode.c: New file.
69189         * m4/fbufmode.m4: New file.
69190
69191 2007-04-13  Bruno Haible  <bruno@clisp.org>
69192
69193         * modules/fwritable-tests: New file.
69194         * tests/test-fwritable.c: New file.
69195
69196         * modules/fwritable: New file.
69197         * lib/fwritable.h: New file.
69198         * lib/fwritable.c: New file.
69199         * m4/fwritable.m4: New file.
69200
69201 2007-04-13  Bruno Haible  <bruno@clisp.org>
69202
69203         * modules/freadable-tests: New file.
69204         * tests/test-freadable.c: New file.
69205
69206         * modules/freadable: New file.
69207         * lib/freadable.h: New file.
69208         * lib/freadable.c: New file.
69209         * m4/freadable.m4: New file.
69210
69211 2007-04-13  Bruno Haible  <bruno@clisp.org>
69212
69213         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
69214         MOSTLYCLEANFILES.
69215
69216 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69217
69218         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
69219         gzip bootstrap.conf to avoid dragging in i18n machinery.
69220         (gnulib_tool_option): Use it.
69221
69222 2007-04-13  Bruno Haible  <bruno@clisp.org>
69223
69224         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
69225         %F directives.
69226         * tests/test-vasprintf-posix.c (test_function): Likewise.
69227         * tests/test-snprintf-posix.h (test_function): Likewise.
69228         * tests/test-sprintf-posix.h (test_function): Likewise.
69229         * tests/test-fprintf-posix.h (test_function): Likewise.
69230         * tests/test-printf-posix.h (test_function): Likewise.
69231         * tests/test-fprintf-posix.out: Likewise.
69232
69233 2007-04-13  Bruno Haible  <bruno@clisp.org>
69234
69235         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
69236         * modules/tls-tests (configure.ac): Likewise.
69237         Reported by Arto C. Nirkko <anirkko@insel.ch>.
69238
69239 2007-04-13  Bruno Haible  <bruno@clisp.org>
69240
69241         * lib/tls.c (glthread_tls_get): Fix return type.
69242         Patch by Arto C. Nirkko <anirkko@insel.ch>.
69243
69244 2007-04-12  Eric Blake  <ebb9@byu.net>
69245
69246         * modules/gettime (Depends-on): Remove gettime.
69247         Reported by Dmitry V. Levin.
69248
69249 2007-04-12  Bruno Haible  <bruno@clisp.org>
69250
69251         * modules/fflush (Include): Mention <stdio.h>.
69252         * modules/strtoimax (Include): Mention <inttypes.h>.
69253         * modules/strtoumax (Include): Likewise.
69254
69255 2007-04-12  Eric Blake  <ebb9@byu.net>
69256
69257         * .cvsignore: New file.
69258         * .gitignore: Likewise.
69259
69260 2007-04-12  Bruno Haible  <bruno@clisp.org>
69261
69262         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
69263         not before, since $(LDADD) often contains libgnu.a.
69264         * modules/striconv-tests (test_striconv_LDADD): Likewise.
69265         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
69266         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
69267         Needed on Cygwin.
69268
69269 2007-04-12  Eric Blake  <ebb9@byu.net>
69270
69271         Work around glibc's failure to flush stdin on fclose.
69272         * lib/closein.c (close_stdin): Flush stdin before closing.
69273
69274         Work around glibc's failure to reset seekable stdin on exit.
69275         * modules/closein: New module.
69276         * lib/closein.c: New file.
69277         * lib/closein.h: Likewise.
69278         * m4/closein.m4: Likewise.
69279         * MODULES.html.sh (File stream based Input/Output): Document it.
69280
69281 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69282
69283         * gnulib-tool: Rename generated 'autobuild' script to
69284         'do-autobuild' in --create-megatestdir output.
69285
69286         * doc/gnulib.texi (Build robot for gnulib): Fix.
69287
69288 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69289
69290         * modules/sysexits (Depends-on): Add absolute-header.
69291
69292 2007-04-12  Eric Blake  <ebb9@byu.net>
69293
69294         No need to preserve errno on success.
69295         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
69296         Reported by Bruno Haible.
69297
69298 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69299
69300         * MODULES.html.sh (Support for maintaining and releasing
69301         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
69302
69303 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69304
69305         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
69306
69307 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69308
69309         * modules/autobuild: New module.
69310
69311         * m4/autobuild.m4: New file.
69312
69313 2007-04-11  Bruno Haible  <bruno@clisp.org>
69314
69315         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
69316         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
69317         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
69318         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
69319         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69320         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69321         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69322         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69323         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69324         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69325         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
69326         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69327         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69328         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
69329         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69330         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69331         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
69332         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69333         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69334         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
69335         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69336         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69337         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
69338         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69339         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69340         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
69341         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69342         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69343         Reported by Eric Blake.
69344
69345 2007-04-11  Bruno Haible  <bruno@clisp.org>
69346
69347         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
69348
69349 2007-04-10  Bruno Haible  <bruno@clisp.org>
69350
69351         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
69352         for NaN and Infinity. Needed on FreeBSD 6.1.
69353         * tests/test-vasnprintf-posix.c (test_function): Undo last change
69354         regarding results for "%010a" of Infinity and NaN.
69355         * tests/test-vasprintf-posix.c (test_function): Likewise.
69356         * tests/test-snprintf-posix.h (test_function): Likewise.
69357         * tests/test-sprintf-posix.h (test_function): Likewise.
69358         * tests/test-fprintf-posix.h (test_function): Likewise.
69359         * tests/test-printf-posix.h (test_function): Likewise.
69360         * tests/test-fprintf-posix.out: Likewise.
69361
69362 2007-04-10  Bruno Haible  <bruno@clisp.org>
69363
69364         * modules/locale-tests: New file.
69365         * tests/test-locale.c: New file.
69366
69367         * modules/locale: New file.
69368         * lib/locale_.h: New file.
69369         * m4/locale_h.m4: New file.
69370
69371 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
69372             Bruno Haible  <bruno@clisp.org>
69373
69374         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
69375         be determined, test for availability of the copysignf, copysign,
69376         copysignl functions.
69377         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
69378         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
69379         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
69380
69381 2007-04-09  Eric Blake  <ebb9@byu.net>
69382
69383         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
69384         * modules/stdio (Makefile.am): Support fflush.
69385         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
69386         * modules/fflush: New file.
69387         * lib/fflush.c: Likewise.
69388         * m4/fflush.m4: Likewise.
69389         * modules/fflush-tests: New test.
69390         * tests/test-fflush.c: Likewise.
69391         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
69392
69393 2007-04-06  Bruno Haible  <bruno@clisp.org>
69394
69395         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
69396         (VASNPRINTF): Use signbit for faster determination whether to print a
69397         minus sign.
69398         * modules/vasnprintf (Files): Remove lib/float+.h.
69399         * modules/fprintf-posix (Depends-on): Add signbit.
69400         * modules/snprintf-posix (Depends-on): Likewise.
69401         * modules/sprintf-posix (Depends-on): Likewise.
69402         * modules/vasnprintf-posix (Depends-on): Likewise.
69403         * modules/vasprintf-posix (Depends-on): Likewise.
69404         * modules/vfprintf-posix (Depends-on): Likewise.
69405         * modules/vsnprintf-posix (Depends-on): Likewise.
69406         * modules/vsprintf-posix (Depends-on): Likewise.
69407
69408 2007-04-06  Bruno Haible  <bruno@clisp.org>
69409
69410         * tests/test-frexp.c (main): Test also the sign bit of zero results.
69411         * tests/test-frexpl.c (main): Likewise.
69412         * tests/test-ldexpl.c (main): Likewise.
69413         * modules/frexp-tests (Depends-on): Add signbit.
69414         * modules/frexpl-tests (Depdends-on): Likewise.
69415         * modules/ldexpl-tests (Depdends-on): Likewise.
69416
69417 2007-04-06  Bruno Haible  <bruno@clisp.org>
69418
69419         * modules/signbit-tests: New file.
69420         * tests/test-signbit.c: New file.
69421
69422         * modules/signbit: New file.
69423         * lib/signbitf.c: New file.
69424         * lib/signbitd.c: New file.
69425         * lib/signbitl.c: New file.
69426         * m4/signbit.m4: New file.
69427         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
69428         (signbit): New macro.
69429         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
69430         REPLACE_SIGNBIT.
69431         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
69432         REPLACE_FREXPL into math.h.
69433
69434 2007-04-06  Bruno Haible  <bruno@clisp.org>
69435
69436         * modules/isnanf-nolibm-tests: New file.
69437         * tests/test-isnanf.c: New file.
69438
69439         * modules/isnanf-nolibm: New file.
69440         * lib/isnanf.h: New file.
69441         * lib/isnanf.c: New file.
69442         * lib/isnan.c: Consider the USE_FLOAT macro.
69443         * m4/isnanf.m4: New file.
69444
69445 2007-04-06  Bruno Haible  <bruno@clisp.org>
69446
69447         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
69448         (Link): New section.
69449
69450         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
69451
69452 2007-04-06  Bruno Haible  <bruno@clisp.org>
69453
69454         Assume the 'long double' type.
69455         * m4/longdouble.m4: Remove file.
69456         * config/srclist.txt: Don't mention longdouble.m4.
69457         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
69458         * lib/float+.h: Likewise.
69459         * lib/frexp.c: Likewise.
69460         * lib/printf-args.h: Likewise.
69461         * lib/printf-args.c: Likewise.
69462         * lib/printf-frexp.c: Likewise.
69463         * lib/printf-parse.c: Likewise.
69464         * lib/vasnprintf.c: Likewise.
69465         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
69466         * m4/intl.m4: Likewise.
69467         * m4/isnanl.m4: Likewise.
69468         * m4/printf.m4: Likewise.
69469         * m4/printf-frexpl.m4: Likewise.
69470         * m4/vasnprintf.m4: Likewise.
69471         * modules/allocsa (Files): Remove m4/longdouble.m4.
69472         * modules/gettext (Files): Likewise.
69473         * modules/relocatable-prog-wrapper (Files): Likewise.
69474         * modules/vasnprintf (Files): Likewise.
69475         * modules/isnanl (Files): Likewise.
69476         (Include): Simplify.
69477         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
69478         (Include): Simplify.
69479         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
69480         (Include): Simplify.
69481         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
69482         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69483         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
69484         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69485         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69486         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69487         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
69488         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69489         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69490         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69491         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
69492         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69493         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
69494         * tests/test-isnanl.c: Likewise.
69495         * tests/test-snprintf-posix.h: Likewise.
69496         * tests/test-sprintf-posix.h: Likewise.
69497         * tests/test-vasnprintf-posix.c: Likewise.
69498         * tests/test-vasnprintf-posix2.c: Likewise.
69499         * tests/test-vasprintf-posix.c: Likewise.
69500
69501 2007-04-06  Bruno Haible  <bruno@clisp.org>
69502
69503         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
69504         * lib/math_.h [__DECC]: Include the overridden include file through
69505         #include_next, outside the double-inclusion guard.
69506         * lib/stdio_.h [__DECC]: Likewise.
69507         * lib/stdlib_.h [__DECC]: Likewise.
69508         * lib/string_.h [__DECC]: Likewise.
69509         * lib/time_.h [__DECC]: Likewise.
69510         * lib/wchar_.h [__DECC]: Likewise.
69511         * lib/wctype_.h [__DECC]: Likewise.
69512         * lib/inttypes_.h [__DECC]: Likewise.
69513         Reported by Albert Chin <china@thewrittenword.com> in
69514         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
69515
69516 2007-04-04  Eric Blake  <ebb9@byu.net>
69517
69518         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
69519         1.5.x.
69520
69521 2007-04-04  Bruno Haible  <bruno@clisp.org>
69522
69523         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
69524         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
69525
69526 2007-04-04  Bruno Haible  <bruno@clisp.org>
69527
69528         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
69529         results for "%010a" of Infinity and NaN.
69530         * tests/test-vasprintf-posix.c (test_function): Likewise.
69531         * tests/test-snprintf-posix.h (test_function): Likewise.
69532         * tests/test-sprintf-posix.h (test_function): Likewise.
69533         * tests/test-fprintf-posix.h (test_function): Remove these tests.
69534         * tests/test-printf-posix.h (test_function): Likewise.
69535         * tests/test-fprintf-posix.out: Update.
69536         Needed for FreeBSD 6.1.
69537
69538 2007-04-04  Bruno Haible  <bruno@clisp.org>
69539
69540         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
69541         directly used by the gnulib modules nor by gnulib-tool.
69542
69543 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
69544
69545         * DEPENDENCIES: Give overall description of version dependency
69546         desirability.  Use more-typical names for apps.
69547         Add shell, coreutils, diffutils, grep, tar, gzip.
69548
69549 2007-04-04  Simon Josefsson  <simon@josefsson.org>
69550
69551         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
69552
69553 2007-04-04  Karl Berry  <karl@gnu.org>
69554
69555         * MODULES.html.sh (func_module): missing '.
69556
69557 2007-04-03  Bruno Haible  <bruno@clisp.org>
69558
69559         * modules/argmatch-tests (Makefile.am): New variable
69560         test_argmatch_LDADD.
69561         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
69562         * modules/array-list-tests (Makefile.am): New variable
69563         test_array_list_LDADD.
69564         * modules/array-oset-tests (Makefile.am): New variable
69565         test_array_oset_LDADD.
69566         * modules/avltree-list-tests (Makefile.am): New variable
69567         test_avltree_list_LDADD.
69568         * modules/avltree-oset-tests (Makefile.am): New variable
69569         test_avltree_oset_LDADD.
69570         * modules/avltreehash-list-tests (Makefile.am): New variable
69571         test_avltreehash_list_LDADD.
69572         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
69573         test_canonicalize_lgpl_LDADD.
69574         * modules/carray-list-tests (Makefile.am): New variable
69575         test_carray_list_LDADD.
69576         * modules/dirname-tests (Makefile.am): New variable
69577         test_dirname_LDADD.
69578         * modules/linked-list-tests (Makefile.am): New variable
69579         test_linked_list_LDADD.
69580         * modules/linkedhash-list-tests (Makefile.am): New variable
69581         test_linkedhash_list_LDADD.
69582         * modules/rbtree-list-tests (Makefile.am): New variable
69583         test_rbtree_list_LDADD.
69584         * modules/rbtree-oset-tests (Makefile.am): New variable
69585         test_rbtree_oset_LDADD.
69586         * modules/rbtreehash-list-tests (Makefile.am): New variable
69587         test_rbtreehash_list_LDADD.
69588         * modules/xvasprintf-tests (Makefile.am): New variable
69589         test_xvasprintf_LDADD.
69590         Reported by Eric Blake.
69591
69592 2007-04-03  Eric Blake  <ebb9@byu.net>
69593
69594         * DEPENDENCIES: Weaken m4 requirements.
69595
69596 2007-04-03  Bruno Haible  <bruno@clisp.org>
69597
69598         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
69599         * modules/isnanl-tests (configure.ac): Likewise.
69600
69601 2007-04-03  Ben Pfaff  <blp@gnu.org>
69602
69603         * modules/iconv_open: Add $(srcdir)/ to source directory
69604         references in Makefile fragments that call gperf, to fix VPATH
69605         builds.
69606
69607 2007-04-03  Bruno Haible  <bruno@clisp.org>
69608
69609         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
69610         * lib/ldexpl.c: Undo last change.
69611
69612 2007-04-03  Bruno Haible  <bruno@clisp.org>
69613
69614         * modules/printf-frexpl (Depends-on): Undo last change.
69615         (Files): Add m4/ldexpl.m4.
69616
69617 2007-04-03  Bruno Haible  <bruno@clisp.org>
69618
69619         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
69620         * modules/isnanl (Link): New section.
69621
69622         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
69623         * modules/frexp (Link): New section.
69624
69625         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
69626         * modules/frexpl (Link): New section.
69627
69628         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
69629         * modules/ldexpl (Link): New section.
69630
69631 2007-04-03  Bruno Haible  <bruno@clisp.org>
69632
69633         * modules/TEMPLATE-EXTENDED: New file.
69634         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
69635
69636 2007-04-03  Bruno Haible  <bruno@clisp.org>
69637
69638         * DEPENDENCIES: New file.
69639         Suggested by Simon Josefsson.
69640
69641 2007-04-03  Bruno Haible  <bruno@clisp.org>
69642
69643         * doc/gnulib.texi: Escape @.
69644
69645 2007-04-03  James Youngman  <jay@gnu.org>
69646         and Paul Eggert  <eggert@cs.ucla.edu>
69647
69648         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
69649         birthtime on all systems that have birthtime, not just those which
69650         use st_birthtimensec rather than st_birthtim.  Putting zero in
69651         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
69652         that the birth time is not available for files on an NFS mount.
69653
69654 2007-04-03  Simon Josefsson  <simon@josefsson.org>
69655
69656         * modules/memxor: Move back from crypto/, suggested by Bruno.
69657         * modules/crypto/hmac-sha1: Fix memxor dependency.
69658
69659         * modules/crypto/gc: Moved from ../.
69660
69661 2007-04-02  Eric Blake  <ebb9@byu.net>
69662
69663         * lib/ldexpl.c (includes): Avoid libm.
69664
69665         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
69666
69667 2007-04-02  Bruno Haible  <bruno@clisp.org>
69668
69669         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
69670         on IRIX.
69671
69672 2007-04-02  Bruno Haible  <bruno@clisp.org>
69673
69674         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
69675         x86 or x86_64 platforms running MacOS X.
69676         Reported by Ryan Schmidt <@ryandesign.com>.
69677
69678 2007-04-02  Bruno Haible  <bruno@clisp.org>
69679
69680         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
69681         i386.
69682
69683 2007-04-01  Simon Josefsson  <simon@josefsson.org>
69684
69685         * modules/crypto/arcfour: Moved from ../.
69686         * modules/crypto/arcfour-tests: Moved from ../.
69687         * modules/crypto/arctwo: Moved from ../.
69688         * modules/crypto/arctwo-tests: Moved from ../.
69689         * modules/crypto/des: Moved from ../.
69690         * modules/crypto/des-tests: Moved from ../.
69691         * modules/crypto/gc-arcfour: Moved from ../.
69692         * modules/crypto/gc-arcfour-tests: Moved from ../.
69693         * modules/crypto/gc-arctwo: Moved from ../.
69694         * modules/crypto/gc-arctwo-tests: Moved from ../.
69695         * modules/crypto/gc-des: Moved from ../.
69696         * modules/crypto/gc-des-tests: Moved from ../.
69697         * modules/crypto/gc-hmac-md5: Moved from ../.
69698         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
69699         * modules/crypto/gc-hmac-sha1: Moved from ../.
69700         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
69701         * modules/crypto/gc-md2: Moved from ../.
69702         * modules/crypto/gc-md2-tests: Moved from ../.
69703         * modules/crypto/gc-md4: Moved from ../.
69704         * modules/crypto/gc-md4-tests: Moved from ../.
69705         * modules/crypto/gc-md5: Moved from ../.
69706         * modules/crypto/gc-md5-tests: Moved from ../.
69707         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
69708         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
69709         * modules/crypto/gc-random: Moved from ../.
69710         * modules/crypto/gc-rijndael: Moved from ../.
69711         * modules/crypto/gc-rijndael-tests: Moved from ../.
69712         * modules/crypto/gc-sha1: Moved from ../.
69713         * modules/crypto/gc-sha1-tests: Moved from ../.
69714         * modules/crypto/gc-tests: Moved from ../.
69715         * modules/crypto/hmac-md5: Moved from ../.
69716         * modules/crypto/hmac-md5-tests: Moved from ../.
69717         * modules/crypto/hmac-sha1: Moved from ../.
69718         * modules/crypto/hmac-sha1-tests: Moved from ../.
69719         * modules/crypto/md2: Moved from ../.
69720         * modules/crypto/md2-tests: Moved from ../.
69721         * modules/crypto/md4: Moved from ../.
69722         * modules/crypto/md4-tests: Moved from ../.
69723         * modules/crypto/md5: Moved from ../.
69724         * modules/crypto/md5-tests: Moved from ../.
69725         * modules/crypto/memxor: Moved from ../.
69726         * modules/crypto/rijndael: Moved from ../.
69727         * modules/crypto/rijndael-tests: Moved from ../.
69728         * modules/crypto/sha1: Moved from ../.
69729
69730 2007-03-30  James Youngman  <jay@gnu.org>
69731
69732         * tests/test-stat-time.c (prepare_test): use chmod() rather than
69733         rename() to change the ctime of a file (because ctime is unaffected
69734         by rename on jfs2 on AIX 5.1).
69735         (main): Start by doing cleanup, in case a previous run failed leaving
69736         test files behind.
69737
69738 2007-03-31  Bruno Haible  <bruno@clisp.org>
69739
69740         Support old proprietary implementations of iconv.
69741         * modules/iconv_open: New file.
69742         * lib/iconv_.h: New file.
69743         * m4/iconv_h.m4: New file.
69744         * lib/iconv_open.c: New file.
69745         * lib/iconv_open-aix.gperf: New file.
69746         * lib/iconv_open-hpux.gperf: New file.
69747         * lib/iconv_open-irix.gperf: New file.
69748         * lib/iconv_open-osf.gperf: New file.
69749         * m4/iconv_open.m4: New file.
69750         * modules/linebreak (Depends-on): Add iconv_open.
69751         * modules/striconv (Depends-on): Likewise.
69752         * modules/striconveh (Depends-on): Likewise.
69753         * modules/unicodeio (Depends-on): Likewise.
69754         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
69755         (iconv_t)(-1).
69756         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
69757         conversion if cd is (iconv_t)(-1).
69758         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
69759         is not possible.
69760
69761 2007-03-31  Bruno Haible  <bruno@clisp.org>
69762
69763         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69764         work on Solaris either. Protect also second use of "autodetect_jp".
69765
69766 2007-03-31  Bruno Haible  <bruno@clisp.org>
69767
69768         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
69769         the function is not present.
69770
69771 2007-03-31  Bruno Haible  <bruno@clisp.org>
69772
69773         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
69774         the function is not present.
69775
69776 2007-03-31  Bruno Haible  <bruno@clisp.org>
69777
69778         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
69779         a bug in HP-UX iconv_open().
69780
69781 2007-03-31  Bruno Haible  <bruno@clisp.org>
69782
69783         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
69784         (Mathematics <math.h>): New section, add fpieee.
69785         (Input/output <stdio.h>): Add fseterr.
69786         (Mathematics <math.h>): New section, add printf-frexp.
69787         (Container data structures): Add sublist.
69788         (Core language properties): Add fpucw, inline.
69789         (Functions for greatest-width integer types <inttypes.h>): Add
69790         imaxabs, imaxdiv, inttypes.
69791         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
69792         isnanl-nolibm, ldexp.
69793         (Mathematics <math.h>): New section, add printf-frexpl.
69794         (Support for systems lacking POSIX:2001): Add fprintf-posix,
69795         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
69796         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
69797         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
69798         (Unicode string functions): Add unistr/u*-mbtoucr.
69799         (Java): Add javacomp-script, javaexec-script.
69800         (C#): Add csharpcomp-script, csharpexec-script.
69801         (Support for building libraries and executables): Add havelib,
69802         relocatable-*.
69803         (Support for maintaining and releasing projects): Renamed from
69804         'Support for maintaining and release projects'. Add announce-gen.
69805
69806 2007-03-31  Bruno Haible  <bruno@clisp.org>
69807
69808         * README: Talk primarily about git.
69809         (git and CVS): Renamed from CVS.
69810         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
69811         gnulib is available through git.
69812         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
69813
69814 2007-03-30  Bruno Haible  <bruno@clisp.org>
69815
69816         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
69817         * lib/poll_.h: Likewise.
69818         * lib/stat_.h: Likewise.
69819         * lib/sys_time_.h: Likewise.
69820         * lib/sysexit_.h: Likewise.
69821         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
69822         * lib/stdbool_.h: Likewise.
69823         * lib/byteswap_.h: Add double-inclusion guard.
69824
69825 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
69826
69827         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
69828
69829 2007-03-30  Karl Berry  <karl@gnu.org>
69830
69831         * config/srclist-update: double space after USA in the license
69832         substitution, since that's how it's usually (?) written.
69833
69834 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
69835
69836         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
69837         reported by Bruno Haible.
69838
69839 2007-03-29  Bruno Haible  <bruno@clisp.org>
69840
69841         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
69842         a bug in AIX iconv().
69843
69844 2007-03-29  Bruno Haible  <bruno@clisp.org>
69845
69846         * modules/ldexpl-tests: New file.
69847         * tests/test-ldexpl.c: New file.
69848
69849 2007-03-29  Bruno Haible  <bruno@clisp.org>
69850
69851         * lib/ldexpl.c: Include fpucw.h.
69852         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
69853         multiplication.
69854         * modules/ldexpl (Depends-on): Add fpucw.
69855
69856 2007-03-29  Bruno Haible  <bruno@clisp.org>
69857
69858         * modules/ldexpl: New file.
69859         * m4/ldexpl.m4: New file.
69860         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
69861         set.
69862         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
69863         REPLACE_LDEXPL.
69864         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
69865         REPLACE_LDEXPL.
69866         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69867         gl_FUNC_LDEXPL_WORKS.
69868         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
69869         * modules/mathl (Files): Remove lib/ldexpl.c.
69870         (Depends-on): Add ldexpl.
69871
69872 2007-03-29  Bruno Haible  <bruno@clisp.org>
69873
69874         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
69875
69876 2007-03-29  Bruno Haible  <bruno@clisp.org>
69877
69878         * tests/test-striconveh.c (main): Don't assume that a direct conversion
69879         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
69880         and possibly also HP-UX.
69881         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69882         work on AIX, IRIX, HP-UX, OSF/1.
69883         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
69884         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
69885         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
69886         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
69887         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
69888         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
69889
69890 2007-03-29  Bruno Haible  <bruno@clisp.org>
69891
69892         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
69893
69894 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69895
69896         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
69897         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
69898
69899 2007-03-29  Eric Blake  <ebb9@byu.net>
69900
69901         * lib/acl-internal.h: Remove redundant include.
69902         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
69903         Cygwin when a file is locked.
69904
69905 2007-03-29  Bruno Haible  <bruno@clisp.org>
69906
69907         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
69908         file.
69909         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
69910
69911 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69912
69913         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
69914         try to remove a parent directory if the child couldn't be removed
69915         (except for the first rmdir, which could fail because the child
69916         doesn't exist).  Problem reported by Jeff Blaine in
69917         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
69918
69919 2007-03-28  Bruno Haible  <bruno@clisp.org>
69920
69921         * lib/striconveh.c (utf8conv_carefully): New function.
69922         (mem_cd_iconveh_internal): Invoke it.
69923
69924 2007-03-28  Bruno Haible  <bruno@clisp.org>
69925
69926         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
69927         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
69928         input.
69929         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
69930         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
69931         unistr/u8-uctomb.
69932
69933 2007-03-28  Bruno Haible  <bruno@clisp.org>
69934
69935         * modules/unistr/u8-mbtoucr: New file.
69936         * lib/unistr/u8-mbtoucr.c: New file.
69937         * modules/unistr/u16-mbtoucr: New file.
69938         * lib/unistr/u16-mbtoucr.c: New file.
69939         * modules/unistr/u16-mbtoucr: New file.
69940         * lib/unistr/u16-mbtoucr.c: New file.
69941         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
69942
69943 2007-03-27  Simon Josefsson  <simon@josefsson.org>
69944             Bruno Haible  <bruno@clisp.org>
69945
69946         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
69947         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
69948         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
69949
69950         * m4/stdio_h.m4: Add stubs for vasprintf too.
69951
69952         * modules/stdio: Support vasprintf in sed command.
69953
69954         * modules/vasprintf: Depend on stdio for prototypes.  Remove
69955         vasprintf.h.  Add stdio module indicator.
69956
69957         * lib/stdio_.h: Declare asprintf and vasprintf, based on
69958         vasprintf.h.
69959
69960         * lib/vasprintf.h: File removed.
69961
69962         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
69963         * lib/vasprintf.c: Ditto.
69964         * lib/xvasprintf.c: Ditto.
69965         * tests/test-vasprintf-posix.c: Ditto.
69966         * tests/test-vasprintf.c: Ditto.
69967
69968 2007-03-27  Bruno Haible  <bruno@clisp.org>
69969
69970         Make vasnprintf multithread-safe.
69971         * lib/vasnprintf.c (decimal_point_char): New function.
69972         (VASNPRINTF): Use it.
69973         Suggested by Simon Josefsson.
69974
69975 2007-03-27  Eric Blake  <ebb9@byu.net>
69976
69977         Support sub-second birthtime on cygwin.
69978         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
69979         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
69980         (get_stat_birthtime): Also work with st_birthtim.
69981
69982 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
69983
69984         * lib/stat-time.h (USE_BIRTHTIME): Remove.
69985         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
69986         (get_stat_birthtime_ns): Do not try to use "spare" fields.
69987         (get_stat_birthtime_ns): Simplify compile-time tests.
69988         (get_stat_birthtime): Change the API to look like
69989         get_stat_mtime etc., except return a negative tv_nsec on error.
69990         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
69991         Don't check for "spare" fields.
69992         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
69993         or for struct stat.st_birthtime, as these tests aren't used.
69994         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
69995
69996 2007-03-27  Bruno Haible  <bruno@clisp.org>
69997
69998         * lib/stat-time.h: Include <sys/stat.h>.
69999
70000 2007-03-27  James Youngman  <jay@gnu.org>
70001
70002         * lib/stat-time.h (get_stat_birthtime): New function for
70003           retrieving st_birthtime as provided by UFS2 (hence *BSD).
70004         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
70005           and its variants.
70006         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
70007         * modules/stat-time-test: New file.
70008         * tests/test-stat-time.c: New test, devised by Bruno Haible.
70009
70010 2007-03-26  Bruno Haible  <bruno@clisp.org>
70011
70012         Better support of signalling NaNs.
70013         * lib/atanl.c: Include isnanl.h.
70014         (atanl): Perform test for NaN at the beginning of the function and
70015         through a call to isnanl.
70016         * lib/cosl.c: Include isnanl.h.
70017         (cosl): Perform test for NaN at the beginning of the function and
70018         through a call to isnanl.
70019         * lib/ldexpl.c: Include isnanl.h.
70020         (ldexpl): Perform test for NaN through a call to isnanl.
70021         * lib/logl.c: Include isnanl.h.
70022         (logl): Perform test for NaN at the beginning of the function and
70023         through a call to isnanl.
70024         * lib/sinl.c: Include isnanl.h.
70025         (sinl): Perform test for NaN at the beginning of the function and
70026         through a call to isnanl.
70027         * lib/sqrtl.c: Include isnanl.h.
70028         (sqrtl): Perform test for NaN at the beginning of the function and
70029         through a call to isnanl.
70030         * lib/tanl.c: Include isnanl.h.
70031         (tanl): Perform test for NaN at the beginning of the function and
70032         through a call to isnanl.
70033         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
70034         * modules/mathl (Depends-on): Add isnanl.
70035
70036 2007-03-26  Eric Blake  <ebb9@byu.net>
70037
70038         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
70039         regression in logic sense of previous patch.
70040
70041 2007-03-26  Bruno Haible  <bruno@clisp.org>
70042
70043         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
70044         unportable shell command "if ! ...".
70045         Reported by Ralf Wildenhues.
70046
70047 2007-03-25  Bruno Haible  <bruno@clisp.org>
70048
70049         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
70050         <sysexits.h> file, and only add EX_CONFIG.
70051         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
70052         absolute file name and whether it is sufficient. Substitute also
70053         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
70054         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
70055         ABSOLUTE_SYSEXITS_H into sysexits.h.
70056
70057 2007-03-25  Bruno Haible  <bruno@clisp.org>
70058
70059         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
70060         hints is NULL.
70061
70062 2007-03-25  Bruno Haible  <bruno@clisp.org>
70063
70064         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
70065         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
70066
70067 2007-03-25  Bruno Haible  <bruno@clisp.org>
70068
70069         * lib/vasnprintf.c: Include langinfo.h.
70070         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
70071         multithread-safe.
70072         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
70073         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
70074         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70075         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70076         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70077         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70078         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70079         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
70080         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70081         Reported by Simon Josefsson.
70082
70083 2007-03-25  Bruno Haible  <bruno@clisp.org>
70084
70085         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
70086         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
70087         * modules/vasnprintf (Depends-on): Add stdint.
70088
70089 2007-03-25  Bruno Haible  <bruno@clisp.org>
70090
70091         * modules/fpieee: New file.
70092         * m4/fpieee.m4: New file.
70093         * modules/isnan-nolibm (Depends-on): Add fpieee.
70094         * modules/isnanl-nolibm (Depends-on): Add fpieee.
70095         * modules/isnanl (Depends-on): Add fpieee.
70096
70097 2007-03-25  Bruno Haible  <bruno@clisp.org>
70098
70099         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
70100
70101 2007-03-25  Bruno Haible  <bruno@clisp.org>
70102
70103         Avoid test failures on IRIX 6.5.
70104         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
70105         (main): Use it.
70106         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
70107         macros.
70108         (main): Use them.
70109
70110 2007-03-25  Bruno Haible  <bruno@clisp.org>
70111
70112         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
70113         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
70114         exists but doesn't work.
70115         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
70116         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
70117         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
70118         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
70119         math.h.
70120
70121 2007-03-25  Bruno Haible  <bruno@clisp.org>
70122
70123         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
70124         returns inf. Needed on IRIX 6.5.
70125
70126 2007-03-25  Bruno Haible  <bruno@clisp.org>
70127
70128         * tests/test-frexpl.c: Include isnanl-nolibm.h.
70129         (main): Use isnanl instead of x != x idiom.
70130         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
70131
70132         * tests/test-frexp.c: Include isnan.h.
70133         (main): Use isnan instead of x != x idiom.
70134         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
70135
70136 2007-03-25  Bruno Haible  <bruno@clisp.org>
70137
70138         * tests/test-frexp.c (NaN): New function/macro.
70139         (main): Use it instead of 0.0 / 0.0.
70140         * tests/test-isnan.c (NaN): New function/macro.
70141         (main): Use it instead of 0.0 / 0.0.
70142         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
70143         (test_function): Use it instead of 0.0 / 0.0.
70144         * tests/test-vasprintf-posix.c (NaN): New function/macro.
70145         (test_function): Use it instead of 0.0 / 0.0.
70146         * tests/test-snprintf-posix.h (NaN): New function/macro.
70147         (test_function): Use it instead of 0.0 / 0.0.
70148         * tests/test-sprintf-posix.h (NaN): New function/macro.
70149         (test_function): Use it instead of 0.0 / 0.0.
70150         * tests/test-fprintf-posix.h (NaN): New function/macro.
70151         (test_function): Use it instead of 0.0 / 0.0.
70152         * tests/test-printf-posix.h (NaN): New function/macro.
70153         (test_function): Use it instead of 0.0 / 0.0.
70154
70155         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
70156
70157 2007-03-25  Bruno Haible  <bruno@clisp.org>
70158
70159         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
70160
70161 2007-03-25  Bruno Haible  <bruno@clisp.org>
70162
70163         * lib/regexec.c (merge_state_with_log): Make static.
70164
70165 2007-03-25  Bruno Haible  <bruno@clisp.org>
70166
70167         * lib/trigl.c (kernel_rem_pio2): Make static.
70168
70169 2007-03-25  Bruno Haible  <bruno@clisp.org>
70170
70171         * lib/sincosl.c (sincosl_table): Make static.
70172
70173 2007-03-25  Bruno Haible  <bruno@clisp.org>
70174
70175         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
70176         if the compiler does not support C99.
70177
70178 2007-03-25  Bruno Haible  <bruno@clisp.org>
70179
70180         * modules/time (Makefile.am): Ensure all rule action lines start with a
70181         tab.
70182
70183 2007-03-24  Bruno Haible  <bruno@clisp.org>
70184
70185         * modules/tsearch-tests: New file.
70186         * tests/test-tsearch.sh: New file.
70187         * tests/test-tsearch.c: New file, mostly copied from glibc.
70188
70189         * modules/search-tests: New file.
70190         * tests/test-search.c: New file.
70191
70192         * modules/search: New file.
70193         * lib/search_.h: New file, incorporating lib/tsearch.h.
70194         * m4/search_h.m4: New file.
70195         * lib/tsearch.h: Remove file.
70196         * lib/tsearch.c: Include search.h instead of tsearch.h.
70197         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
70198         HAVE_TSEARCH.
70199         * modules/tsearch (Files): Remove lib/tsearch.h.
70200         (Depends-on): Add search.
70201         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
70202         (Include): Change tsearch.h into search.h.
70203
70204 2007-03-24  Bruno Haible  <bruno@clisp.org>
70205
70206         * modules/fpucw: New file.
70207         * lib/fpucw.h: New file.
70208         * lib/frexp.c: Include fpucw.h.
70209         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70210         (FUNC): Use them.
70211         * lib/printf-frexp.c: Include fpucw.h.
70212         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70213         (FUNC): Use them.
70214         * lib/vasnprintf.c: Include fpucw.h.
70215         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
70216         'long double' calculations.
70217         * tests/test-frexpl.c: Include fpucw.h.
70218         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70219         * tests/test-printf-frexpl.c: Include fpucw.h.
70220         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70221         * modules/frexpl (Depends-on): Add fpucw.
70222         * modules/printf-frexpl (Depends-on): Likewise.
70223         * modules/fprintf-posix (Depends-on): Likewise.
70224         * modules/snprintf-posix (Depends-on): Likewise.
70225         * modules/sprintf-posix (Depends-on): Likewise.
70226         * modules/vasnprintf-posix (Depends-on): Likewise.
70227         * modules/vasprintf-posix (Depends-on): Likewise.
70228         * modules/vfprintf-posix (Depends-on): Likewise.
70229         * modules/vsnprintf-posix (Depends-on): Likewise.
70230         * modules/vsprintf-posix (Depends-on): Likewise.
70231         * modules/frexpl-tests (Depends-on): Likewise.
70232         * modules/printf-frexpl-tests (Depends-on): Likewise.
70233
70234 2007-03-24  Bruno Haible  <bruno@clisp.org>
70235
70236         * lib/float+.h: New file.
70237         * lib/isnan.c: Include float+.h.
70238         (SIZE): New macro.
70239         (FUNC): Compare only SIZE bytes of the value.
70240         * lib/vasnprintf.c: Include float+.h.
70241         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
70242         SIZEOF_LDBL or SIZEOF_DBL bytes.
70243         * modules/isnan-nolibm (Files): Add lib/float+.h.
70244         * modules/isnanl-nolibm (Files): Add lib/float+.h.
70245         * modules/isnanl (Files): Add lib/float+.h.
70246         * modules/vasnprintf (Files): Add lib/float+.h.
70247
70248 2007-03-24  Bruno Haible  <bruno@clisp.org>
70249
70250         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
70251         include isnanl-nolibm.h.
70252
70253 2007-03-24  Bruno Haible  <bruno@clisp.org>
70254
70255         * tests/test-read-file.c (main): Don't produce spurious output for
70256         expected situations. Make the test fail if it encountered unexpected
70257         results.
70258
70259 2007-03-24  Bruno Haible  <bruno@clisp.org>
70260
70261         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
70262         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
70263
70264 2007-03-24  Bruno Haible  <bruno@clisp.org>
70265
70266         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
70267
70268 2007-03-24  Bruno Haible  <bruno@clisp.org>
70269
70270         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
70271         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
70272
70273         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
70274         * modules/utf8-ucs4: Turn into a symbolic link to module
70275         unistr/u8-mbtouc.
70276
70277         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
70278         utf8-ucs4-unsafe.
70279         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
70280         unistr/u8-mbtouc-unsafe.
70281
70282         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
70283         * modules/utf16-ucs4: Turn into a symbolic link to module
70284         unistr/u16-mbtouc.
70285
70286         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
70287         utf16-ucs4-unsafe.
70288         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
70289         unistr/u16-mbtouc-unsafe.
70290
70291         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
70292         * modules/ucs4-utf8: Turn into a symbolic link to module
70293         unistr/u8-ubtomb.
70294
70295         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
70296         * modules/ucs4-utf16: Turn into a symbolic link to module
70297         unistr/u16-ubtomb.
70298
70299 2007-03-24  Bruno Haible  <bruno@clisp.org>
70300
70301         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
70302         Enable the function only if HAVE_INLINE.
70303         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
70304         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70305         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
70306         Enable the function only if HAVE_INLINE.
70307         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
70308         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70309         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
70310         Enable the function only if HAVE_INLINE.
70311         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
70312         Enable the function only if HAVE_INLINE.
70313         * modules/utf8-ucs4: Update.
70314         * modules/utf8-ucs4-unsafe: Update.
70315         * modules/utf16-ucs4: Update.
70316         * modules/utf16-ucs4-unsafe: Update.
70317         * modules/ucs4-utf8: Update.
70318         * modules/ucs4-utf16: Update.
70319
70320 2007-03-24  Bruno Haible  <bruno@clisp.org>
70321
70322         * lib/utf8-ucs4.h: Remove file.
70323         * lib/utf8-ucs4-unsafe.h: Remove file.
70324         * lib/utf16-ucs4.h: Remove file.
70325         * lib/utf16-ucs4-unsafe.h: Remove file.
70326         * lib/ucs4-utf8.h: Remove file.
70327         * lib/ucs4-utf16.h: Remove file.
70328         * lib/unistr.h: Include their previous contents.
70329         * m4/utf-ucs4.m4: Remove file.
70330         * m4/ucs4-utf.m4: Remove file.
70331         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
70332         (Depends-on): Add unistr/base.
70333         (configure.ac): Remove gl_UTF_UCS4.
70334         (Makefile.am): Update.
70335         (Include): Change to unistr.h.
70336         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
70337         (Depends-on): Add unistr/base.
70338         (configure.ac): Remove gl_UTF_UCS4.
70339         (Makefile.am): Update.
70340         (Include): Change to unistr.h.
70341         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
70342         (Depends-on): Add unistr/base.
70343         (configure.ac): Remove gl_UTF_UCS4.
70344         (Makefile.am): Update.
70345         (Include): Change to unistr.h.
70346         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
70347         (Depends-on): Add unistr/base.
70348         (configure.ac): Remove gl_UTF_UCS4.
70349         (Makefile.am): Update.
70350         (Include): Change to unistr.h.
70351         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
70352         (Depends-on): Add unistr/base.
70353         (configure.ac): Remove gl_UCS4_UTF.
70354         (Makefile.am): Update.
70355         (Include): Change to unistr.h.
70356         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
70357         (Depends-on): Add unistr/base.
70358         (configure.ac): Remove gl_UCS4_UTF.
70359         (Makefile.am): Update.
70360         (Include): Change to unistr.h.
70361         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
70362         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
70363         utf8-ucs4-unsafe.h.
70364         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
70365         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
70366         utf16-ucs4-unsafe.h.
70367         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
70368         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
70369         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
70370         * lib/unistr/u8-strchr.c: Likewise.
70371         * lib/unistr/u8-strrchr.c: Likewise.
70372         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
70373         * lib/unistr/u16-strchr.c: Likewise.
70374         * lib/unistr/u16-strrchr.c: Likewise.
70375         * lib/striconveh.c: Update.
70376         * lib/linebreak.c: Update.
70377
70378 2007-03-24  Bruno Haible  <bruno@clisp.org>
70379
70380         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
70381         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
70382
70383 2007-03-22  Bruno Haible  <bruno@clisp.org>
70384
70385         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
70386
70387 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70388
70389         * MODULES.html.sh (File system functions): New module write-any-file.
70390         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
70391         * m4/write-any-file.m4: New files.
70392
70393 2007-03-23  Eric Blake  <ebb9@byu.net>
70394
70395         * gnulib-tool: Rearrange space-tab sequences, since some editors
70396         like to eat them.
70397
70398 2007-03-23  Eric Blake  <ebb9@byu.net>
70399
70400         * lib/version-etc.c (version_etc_va): Update license wording to
70401         be more concise.  Recommended by Richard Stallman.
70402
70403 2007-03-22  Bruno Haible  <bruno@clisp.org>
70404
70405         * lib/poll.c (MSG_PEEK): New fallback definition.
70406
70407 2007-03-22  Bruno Haible  <bruno@clisp.org>
70408
70409         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
70410         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
70411         (main): Update.
70412         Fixes a compilation error on BeOS.
70413
70414 2007-03-22  Bruno Haible  <bruno@clisp.org>
70415
70416         * modules/frexpl-tests: New file.
70417         * tests/test-frexpl.c: New file.
70418
70419         * modules/frexpl: New file.
70420         * m4/frexpl.m4: New file.
70421         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
70422         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
70423         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
70424         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
70425         (Depends-on): Add frexpl. Remove isnanl-nolibm.
70426         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
70427
70428 2007-03-22  Bruno Haible  <bruno@clisp.org>
70429
70430         * lib/frexpl.c: Share code with lib/frexp.c.
70431         * modules/mathl (Files): Add lib/frexp.c.
70432         (Depends-on): Add isnanl-nolibm.
70433
70434 2007-03-22  Bruno Haible  <bruno@clisp.org>
70435
70436         * modules/printf-frexp (Files): Add m4/frexp.m4.
70437         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
70438         only if the found frexp function actually works.
70439
70440 2007-03-22  Bruno Haible  <bruno@clisp.org>
70441
70442         * lib/frexp.c: Remove older implementation that uses divisions.
70443
70444 2007-03-21  Bruno Haible  <bruno@clisp.org>
70445
70446         * modules/frexp-tests: New file.
70447         * tests/test-frexp.c: New file.
70448
70449         * modules/frexp: New file.
70450         * lib/frexp.c: New file.
70451         * m4/frexp.m4: New file.
70452         * lib/math_.h (frexp): New declaration.
70453         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
70454         REPLACE_FREXP.
70455         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
70456
70457 2007-03-21  Bruno Haible  <bruno@clisp.org>
70458
70459         * modules/isnanl-tests: New file.
70460         * tests/test-isnanl.c: New file.
70461
70462         * modules/isnanl: New file.
70463         * lib/isnanl.h: New file.
70464         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
70465         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
70466         gl_FUNC_ISNANL_WORKS.
70467         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
70468         New macros.
70469
70470 2007-03-21  Bruno Haible  <bruno@clisp.org>
70471
70472         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
70473         lib/isnanl.h.
70474         (Include): Update.
70475         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
70476         * lib/vasnprintf.c: Update.
70477         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
70478         tests/test-isnanl.h, remove tests/test-isnanl.c.
70479         (Makefile.am): Update.
70480         * tests/test-isnanl-nolibm.c: New file.
70481         * tests/test-isnanl.h: New file.
70482         * tests/test-isnanl.c: Remove file.
70483
70484 2007-03-21  Jim Meyering  <jim@meyering.net>
70485
70486         When trying to open ".", treat ESTALE like EACCES.
70487         * lib/savewd.c (savewd_save): Resort to forking not just upon
70488         failure with EACCES, but also when errno is ESTALE.
70489
70490 2007-03-20  Bruno Haible  <bruno@clisp.org>
70491
70492         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
70493         Needed on AIX 5.1. Reported by Matthew Woehlke.
70494
70495 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70496
70497         Suggestions by Bruno Haible:
70498         * lib/acl-internal.h: Include "gettext.h" rather than rolling
70499         our own.
70500         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
70501         * modules/acl (Depends-on): Add gettext.
70502
70503 2007-03-19  Bruno Haible  <bruno@clisp.org>
70504
70505         * modules/iconvme: Remove file.
70506         * lib/iconvme.h: Remove file.
70507         * lib/iconvme.c: Remove file.
70508         * m4/iconvme.m4: Remove file.
70509
70510 2007-03-19  Bruno Haible  <bruno@clisp.org>
70511
70512         * doc/relocatable-maint.texi: Break long shell script line.
70513         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70514
70515 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70516
70517         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
70518         handle file_has_acl.
70519         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
70520         * lib/acl.c: Move header inclusions and related macro defns into
70521         lib/acl-internal.h.
70522         (S_ISLNK): Remove defn, since that's now done for us.
70523         (file_has_acl): Move to lib/file-has-acl.c.
70524         Call acl_trivial if available.  This is the crucial part of the fix.
70525         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
70526         shared within the library.  Rewrite a bit, partly to make it compatible
70527         with the GNU coding style.
70528         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
70529         Remove unnecessary double-quotes.
70530         Don't test for acl_to_text; the build will catch that.
70531         Replace acl_entries if it doesn't exist and it is needed.
70532         Check for -lsec and acl_trivial (as used on Solaris 10).
70533         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
70534         lib/file-has-acl.c.
70535         (Depends-on): Add sys_stat, for S_ISLNK.
70536
70537 2007-03-19  Ben Pfaff  <blp@gnu.org>
70538
70539         * doc/gnulib.texi: Fix typos.
70540         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70541
70542 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70543
70544         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
70545         If size is zero here, buf must be zero.
70546
70547 2007-03-19  Simon Josefsson  <simon@josefsson.org>
70548
70549         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
70550         <bruno@clisp.org>.
70551
70552 2007-03-18  Bruno Haible  <bruno@clisp.org>
70553
70554         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
70555         Suggested by Eric Blake.
70556
70557 2007-03-18  Ben Pfaff  <blp@gnu.org>
70558
70559         * doc/relocatable.texi: Recommend using as prefix a directory
70560         that does not exist and will never be created.  Based on
70561         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
70562         and others.
70563
70564 2007-03-17  Bruno Haible  <bruno@clisp.org>
70565
70566         * lib/fchownat.c: Include lchown.h.
70567
70568 2007-03-17  Bruno Haible  <bruno@clisp.org>
70569
70570         Fix endless loop when the given allocated size was > INT_MAX.
70571         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
70572         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
70573         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
70574         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
70575         * lib/sprintf.c (sprintf): Likewise.
70576
70577 2007-03-17  Bruno Haible  <bruno@clisp.org>
70578
70579         * tests/test-argp-2.sh (func_compare): Output a context diff.
70580
70581 2007-03-17  Bruno Haible  <bruno@clisp.org>
70582
70583         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
70584         locale's decimal-point character.
70585
70586 2007-03-17  Bruno Haible  <bruno@clisp.org>
70587
70588         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
70589         before comparing it. Needed because on some platforms (e.g. x86) a
70590         'long double' occupies less bytes than sizeof (long double).
70591
70592 2007-03-17  Bruno Haible  <bruno@clisp.org>
70593
70594         * tests/test-crc.c (main): Make printf statements 64-bit clean.
70595         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
70596         * tests/test-getaddrinfo.c (simple): Likewise.
70597         * tests/test-read-file.c (main): Likewise.
70598
70599 2007-03-17  Bruno Haible  <bruno@clisp.org>
70600
70601         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
70602
70603 2007-03-17  Bruno Haible  <bruno@clisp.org>
70604
70605         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
70606         unused variable.
70607
70608 2007-03-17  Bruno Haible  <bruno@clisp.org>
70609
70610         * tests/test-c-strcasecmp.c: Include c-strcase.h.
70611         * tests/test-c-strncasecmp.c: Likewise.
70612
70613 2007-03-17  Bruno Haible  <bruno@clisp.org>
70614
70615         * modules/stdlib (Depends-on): Add unistd.
70616         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
70617         Needed for MacOS X 10.3.
70618
70619 2007-03-17  Bruno Haible  <bruno@clisp.org>
70620
70621         * lib/unistr/u-strdup.h: Include <stdlib.h>.
70622
70623 2007-03-17  Bruno Haible  <bruno@clisp.org>
70624
70625         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
70626
70627 2007-03-17  Bruno Haible  <bruno@clisp.org>
70628
70629         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
70630         to reflect files copied from gnulib (with or without modifications).
70631         Suggested by Jim Meyering.
70632
70633 2007-03-17  Eric Blake  <ebb9@byu.net>
70634
70635         * NEWS: Document stdlib change from 2007-02-18.
70636
70637 2007-03-17  Jim Meyering  <jim@meyering.net>
70638
70639         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
70640         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
70641         someone uses a name containing shell meta-characters.
70642         Reported by Alfred M. Szmidt.
70643
70644         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
70645
70646 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70647
70648         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
70649         and copy gettext configuration files only if configure.ac contains
70650         a use of AM_GNU_GETTEXT_VERSION.
70651
70652 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70653
70654         * build-aux/bootstrap (gnulib_name): New variable.
70655         (gnulib_tool_options): Use it.
70656
70657 2007-03-13  Simon Josefsson  <simon@josefsson.org>
70658
70659         * tests/test-des.c: Use new namespace.
70660
70661 2007-03-15  Bruno Haible  <bruno@clisp.org>
70662
70663         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
70664         Reported by James Youngman <jay@gnu.org>.
70665
70666 2007-03-15  Bruno Haible  <bruno@clisp.org>
70667
70668         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
70669         declared prototype. Needed with cc on OSF/1 5.1.
70670
70671 2007-03-15  Bruno Haible  <bruno@clisp.org>
70672
70673         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
70674         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
70675         (struct gl_list_implementation): Add dispose_fn argument to the
70676         'create_empty', 'create' methods.
70677         (struct gl_list_impl_base): Add field 'dispose_fn'.
70678         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
70679         argument.
70680         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
70681         dispose_fn argument.
70682         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
70683         dispose_fn on the dropped values.
70684         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
70685         dispose_fn argument.
70686         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
70687         dropped values.
70688         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
70689         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70690         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
70691         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70692         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
70693         argument.
70694         (gl_tree_list_free): Call dispose_fn on the dropped values.
70695         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
70696         the dropped values.
70697         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
70698         Add dispose_fn argument.
70699         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
70700         Call dispose_fn on the dropped values.
70701         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
70702         Add dispose_fn argument.
70703         (gl_sublist_create): Initialize the 'dispose_fn' field.
70704         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
70705         * tests/test-array_list.c (main): Update.
70706         * tests/test-carray_list.c (main): Update.
70707         * tests/test-avltree_list.c (main): Update.
70708         * tests/test-rbtree_list.c (main): Update.
70709         * tests/test-avltreehash_list.c (main): Update.
70710         * tests/test-rbtreehash_list.c (main): Update.
70711         * tests/test-linked_list.c (main): Update.
70712         * tests/test-linkedhash_list.c (main): Update.
70713         * tests/test-array_oset.c (main): Update.
70714
70715 2007-03-15  Bruno Haible  <bruno@clisp.org>
70716
70717         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
70718         (gl_oset_create_empty): Add dispose_fn argument.
70719         (struct gl_oset_implementation): Add dispose_fn argument to
70720         'create_empty' method.
70721         (struct gl_oset_impl_base): Add dispose_fn field.
70722         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
70723         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
70724         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
70725         values.
70726         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
70727         (gl_tree_oset_free): Call dispose_fn on the dropped values.
70728         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70729         dropped value.
70730         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70731         dropped value.
70732         * tests/test-array_oset.c (main): Update.
70733         * tests/test-avltree_oset.c (main): Update.
70734         * tests/test-rbtree_oset.c (main): Update.
70735         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
70736
70737 2007-03-13  Bruno Haible  <bruno@clisp.org>
70738
70739         * tests/test-stdbool.c (i): Update after last patch.
70740
70741 2007-03-12  Bruno Haible  <bruno@clisp.org>
70742
70743         * lib/quotearg.c: Include <wctype.h> early, before the definition of
70744         the iswprint macro. Needed on Solaris 2.5.1.
70745
70746 2007-03-12  Bruno Haible  <bruno@clisp.org>
70747
70748         * tests/test-printf-frexp.c (main): Declare x as volatile.
70749
70750 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70751
70752         * doc/gnulib.texi (Build robot for gnulib): New section.
70753
70754 2007-03-12  Jim Meyering  <jim@meyering.net>
70755
70756         * build-aux/bootstrap: New file.
70757         * build-aux/bootstrap.conf: New file, from coreutils.
70758
70759 2007-03-11  Bruno Haible  <bruno@clisp.org>
70760
70761         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
70762
70763 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70764
70765         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
70766         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
70767         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
70768
70769 2007-03-11  Bruno Haible  <bruno@clisp.org>
70770
70771         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
70772         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
70773
70774 2007-03-11  Bruno Haible  <bruno@clisp.org>
70775
70776         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
70777         formula. Needed for SunPRO C 5.0.
70778
70779 2007-03-11  Bruno Haible  <bruno@clisp.org>
70780
70781         * modules/long-options (Depends-on): Add getopt.
70782
70783 2007-03-11  Bruno Haible  <bruno@clisp.org>
70784
70785         * modules/modechange (Depends-on): Add stdbool.
70786
70787 2007-03-11  Bruno Haible  <bruno@clisp.org>
70788
70789         * modules/i-ring (Depends-on): Add stdbool.
70790
70791 2007-03-11  Bruno Haible  <bruno@clisp.org>
70792
70793         * modules/gc-des (Depends-on): Add stdbool.
70794
70795 2007-03-11  Bruno Haible  <bruno@clisp.org>
70796
70797         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
70798
70799 2007-03-11  Bruno Haible  <bruno@clisp.org>
70800
70801         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
70802
70803 2007-03-11  Bruno Haible  <bruno@clisp.org>
70804
70805         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
70806
70807 2007-03-11  Bruno Haible  <bruno@clisp.org>
70808
70809         * lib/vasnprintf.c (sprintf): Undefine.
70810
70811 2007-03-11  Bruno Haible  <bruno@clisp.org>
70812
70813         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
70814         initializers in SunPRO C and Compaq C compilers.
70815
70816 2007-03-11  Bruno Haible  <bruno@clisp.org>
70817
70818         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
70819         decrementing code ANSI C compliant.
70820
70821 2007-03-11  Bruno Haible  <bruno@clisp.org>
70822
70823         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
70824         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
70825
70826 2007-03-11  Bruno Haible  <bruno@clisp.org>
70827
70828         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
70829         <stdbool.h> substitute doesn't pass.
70830
70831 2007-03-11  Bruno Haible  <bruno@clisp.org>
70832
70833         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
70834
70835 2007-03-11  Bruno Haible  <bruno@clisp.org>
70836
70837         * gnulib-tool (func_create_megatestdir): Create also an autobuild
70838         script, for submission to autobuild.josefsson.org.
70839
70840 2007-03-10  Bruno Haible  <bruno@clisp.org>
70841
70842         * modules/canonicalize-lgpl-tests: New file.
70843         * tests/test-canonicalize-lgpl.sh: New file.
70844         * tests/test-canonicalize-lgpl.c: New file.
70845
70846         * modules/c-strcase-tests: New file.
70847         * tests/test-c-strcase.sh: New file.
70848         * tests/test-c-strcasecmp.c: New file.
70849         * tests/test-c-strncasecmp.c: New file.
70850
70851         * modules/atexit-tests: New file.
70852         * tests/test-atexit.sh: New file.
70853         * tests/test-atexit.c: New file.
70854
70855 2007-03-10  Bruno Haible  <bruno@clisp.org>
70856
70857         * tests/test-binary-io.sh: Use temporary filenames that are not so
70858         likely to clash with those of other tests (in a parallel make).
70859         * tests/test-binary-io.c: Likewise.
70860
70861 2007-03-10  Bruno Haible  <bruno@clisp.org>
70862
70863         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
70864         fallback; use #error instead.
70865         Suggested by Simon Josefsson.
70866
70867 2007-03-10  Bruno Haible  <bruno@clisp.org>
70868
70869         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
70870         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
70871         first and the last.
70872
70873 2007-03-10  Bruno Haible  <bruno@clisp.org>
70874
70875         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
70876
70877 2007-03-10  Bruno Haible  <bruno@clisp.org>
70878
70879         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
70880         "make distcheck".
70881         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
70882         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
70883         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
70884
70885 2007-03-10  Bruno Haible  <bruno@clisp.org>
70886
70887         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
70888         variable.
70889         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
70890         variable.
70891
70892 2007-03-09  Eric Blake  <ebb9@byu.net>
70893         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
70894
70895         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
70896         types are not being provided by gnulib.
70897         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
70898         types are supported.
70899
70900 2007-03-10  Bruno Haible  <bruno@clisp.org>
70901
70902         * lib/stdio_.h (__attribute__): New macro.
70903         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
70904         vsprintf): Specify __attribute__ __format__ for GCC.
70905         Suggested by Eric Blake.
70906
70907 2007-03-09  Bruno Haible  <bruno@clisp.org>
70908
70909         * modules/printf-posix-tests: New file.
70910         * tests/test-printf-posix.sh: New file.
70911         * tests/test-printf-posix.c: New file.
70912
70913         * modules/printf-posix: New file.
70914         * lib/printf.c: New file.
70915         * m4/printf-posix-rpl.m4: New file.
70916         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
70917         REPLACE_PRINTF.
70918         * lib/stdio_.h (printf): New declaration.
70919         (format, __format__, ____printf____, ____scanf____, ____strftime____,
70920         ____strfmon____): New macros.
70921         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
70922         REPLACE_PRINTF.
70923
70924 2007-03-09  Bruno Haible  <bruno@clisp.org>
70925
70926         * tests/test-vasnprintf-posix2.sh: New file.
70927         * tests/test-vasnprintf-posix2.c: New file.
70928         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
70929         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
70930         (Makefile.am): Activate test-vasnprintf-posix2.sh.
70931
70932         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
70933         a locale dependent decimal point, rather than always '.'.
70934
70935 2007-03-09  Eric Blake  <ebb9@byu.net>
70936
70937         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
70938         spite of platforms like Tandem/NSK that define it to -1.
70939
70940 2007-03-08  Bruno Haible  <bruno@clisp.org>
70941
70942         * modules/vprintf-posix-tests: New file.
70943         * tests/test-vprintf-posix.sh: New file.
70944         * tests/test-vprintf-posix.c: New file.
70945         * tests/test-printf-posix.h: New file.
70946
70947         * modules/vprintf-posix: New file.
70948         * lib/vprintf.c: New file.
70949         * m4/vprintf-posix.m4: New file.
70950         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
70951         REPLACE_VPRINTF.
70952         * lib/stdio_.h (vprintf): New declaration.
70953         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
70954         REPLACE_VPRINTF.
70955
70956 2007-03-08  Bruno Haible  <bruno@clisp.org>
70957
70958         * modules/fprintf-posix-tests: New file.
70959         * tests/test-fprintf-posix.sh: New file.
70960         * tests/test-fprintf-posix.c: New file.
70961
70962         * modules/fprintf-posix: New file.
70963         * lib/fprintf.c: New file.
70964         * m4/fprintf-posix.m4: New file.
70965         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
70966         REPLACE_FPRINTF.
70967         * lib/stdio_.h (fprintf): New declaration.
70968         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
70969         REPLACE_FPRINTF.
70970
70971 2007-03-08  Bruno Haible  <bruno@clisp.org>
70972
70973         * modules/vfprintf-posix-tests: New file.
70974         * tests/test-vfprintf-posix.sh: New file.
70975         * tests/test-vfprintf-posix.c: New file.
70976         * tests/test-fprintf-posix.h: New file.
70977         * tests/test-fprintf-posix.out: New file.
70978
70979         * modules/vfprintf-posix: New file.
70980         * lib/vfprintf.c: New file.
70981         * m4/vfprintf-posix.m4: New file.
70982         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
70983         REPLACE_VFPRINTF.
70984         * lib/stdio_.h (vfprintf): New declaration.
70985         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
70986         REPLACE_VFPRINTF.
70987
70988 2007-03-08  Bruno Haible  <bruno@clisp.org>
70989
70990         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
70991
70992 2007-03-08  Bruno Haible  <bruno@clisp.org>
70993
70994         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
70995         instead of 'expr' invocations.
70996         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70997         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70998         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70999         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
71000         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71001         Suggested by Paul Eggert.
71002
71003 2007-03-08  Bruno Haible  <bruno@clisp.org>
71004
71005         * modules/fseterr-tests: New file.
71006         * tests/test-fseterr.c: New file.
71007
71008         * modules/fseterr: New file.
71009         * lib/fseterr.h: New file.
71010         * lib/fseterr.c: New file.
71011
71012 2007-03-08  Bruno Haible  <bruno@clisp.org>
71013
71014         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
71015         * lib/getopt_.h: Likewise.
71016         * lib/mbswidth.h: Likewise.
71017         * lib/setenv.h: Likewise.
71018         * lib/vasnprintf.h: Likewise.
71019         * lib/vasprintf.h: Likewise.
71020         * lib/verror.h: Likewise.
71021         * lib/xsetenv.h: Likewise.
71022         * lib/xvasprintf.h: Likewise.
71023
71024 2007-03-08  Jim Meyering  <jim@meyering.net>
71025
71026         * users.txt: Add parted.
71027
71028         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
71029
71030 2007-03-07  Bruno Haible  <bruno@clisp.org>
71031
71032         * m4/printf.m4: Make the shell script snippets copy&pastable.
71033
71034 2007-03-02  Bruno Haible  <bruno@clisp.org>
71035
71036         * lib/netinet_in_.h: New file.
71037         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
71038         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
71039         * modules/netinet_in (Files): Add lib/netinet_in_.h.
71040         (Depends-on): Add absolute-header.
71041         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
71042         into netinet/in.h.
71043
71044 2007-03-03  Bruno Haible  <bruno@clisp.org>
71045
71046         * lib/sys_select_.h: New file.
71047         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
71048         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
71049         * modules/sys_select (Files): Add lib/sys_select_.h.
71050         (Depends-on): Add absolute-header.
71051         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
71052         into sys/select.h.
71053
71054 2007-03-02  Bruno Haible  <bruno@clisp.org>
71055
71056         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
71057         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
71058         values.
71059         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
71060         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
71061         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
71062         * modules/sys_socket (Depends-on): Add absolute-header.
71063         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
71064         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
71065         (Include): Remove requirement of inclusion of <sys/types.h>.
71066
71067 2007-03-02  Bruno Haible  <bruno@clisp.org>
71068
71069         * lib/byteswap_.h (bswap_32): Fix formula.
71070
71071 2007-03-06  Bruno Haible  <bruno@clisp.org>
71072
71073         * modules/sprintf-posix-tests: New file.
71074         * tests/test-sprintf-posix.c: New file.
71075
71076         * modules/sprintf-posix: New file.
71077         * lib/sprintf.c: New file.
71078         * m4/sprintf-posix.m4: New file.
71079         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
71080         REPLACE_SPRINTF.
71081         * lib/stdio_.h (sprintf): New declaration.
71082         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
71083         REPLACE_SPRINTF.
71084
71085 2007-03-06  Bruno Haible  <bruno@clisp.org>
71086
71087         * modules/vsprintf-posix-tests: New file.
71088         * tests/test-vsprintf-posix.c: New file.
71089         * tests/test-sprintf-posix.h: New file.
71090
71091         * modules/vsprintf-posix: New file.
71092         * lib/vsprintf.c: New file.
71093         * m4/vsprintf-posix.m4: New file.
71094         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
71095         REPLACE_VSPRINTF.
71096         * lib/stdio_.h (vsprintf): New declaration.
71097         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
71098         REPLACE_VSPRINTF.
71099
71100 2007-03-06  Bruno Haible  <bruno@clisp.org>
71101
71102         * modules/vsnprintf (Depend-on): Remove minmax.
71103
71104 2007-03-06  Bruno Haible  <bruno@clisp.org>
71105
71106         * modules/snprintf-posix-tests: New file.
71107         * tests/test-snprintf-posix.c: New file.
71108
71109         * modules/snprintf-posix: New file.
71110         * m4/snprintf-posix.m4: New file.
71111         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
71112         gl_FUNC_SNPRINTF.
71113         (gl_FUNC_SNPRINTF): Invoke it.
71114         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
71115         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
71116         is set.
71117         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
71118
71119 2007-03-06  Bruno Haible  <bruno@clisp.org>
71120
71121         * modules/vsnprintf-posix-tests: New file.
71122         * tests/test-vsnprintf-posix.c: New file.
71123         * tests/test-snprintf-posix.h: New file.
71124
71125         * modules/vsnprintf-posix: New file.
71126         * m4/vsnprintf-posix.m4: New file.
71127         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
71128         gl_FUNC_VSNPRINTF.
71129         (gl_FUNC_VSNPRINTF): Invoke it.
71130         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
71131         * lib/stdio_.h (vsnprintf): Define as a replacement if
71132         REPLACE_VSNPRINTF is set.
71133         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
71134
71135 2007-03-06  Bruno Haible  <bruno@clisp.org>
71136
71137         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
71138         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
71139
71140 2007-03-06  Bruno Haible  <bruno@clisp.org>
71141
71142         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
71143         (asinl): Declare also if HAVE_DECL_ASINL is set.
71144         (atanl): Declare also if HAVE_DECL_ATANL is set.
71145         (ceill): Declare also if HAVE_DECL_CEILL is set.
71146         (cosl): Declare also if HAVE_DECL_COSL is set.
71147         (expl): Declare also if HAVE_DECL_EXPL is set.
71148         (floorl): Declare also if HAVE_DECL_FLOORL is set.
71149         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
71150         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
71151         (logl): Declare also if HAVE_DECL_LOGL is set.
71152         (sinl): Declare also if HAVE_DECL_SINL is set.
71153         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
71154         (tanl): Declare also if HAVE_DECL_TANL is set.
71155         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
71156         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
71157         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
71158         declaration of frexpl, ldexpl.
71159         * modules/printf-frexpl (Depends-on): Add math.
71160         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
71161
71162 2007-03-05  Bruno Haible  <bruno@clisp.org>
71163
71164         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
71165         frexpl and ldexpl are declared.
71166         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
71167
71168 2007-03-05  Bruno Haible  <bruno@clisp.org>
71169
71170         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
71171         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
71172
71173 2007-03-05  Bruno Haible  <bruno@clisp.org>
71174
71175         * lib/stdio_.h: Include <stddef.h>.
71176
71177 2007-03-05  Bruno Haible  <bruno@clisp.org>
71178
71179         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
71180
71181 2007-03-05  Bruno Haible  <bruno@clisp.org>
71182
71183         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
71184         NetBSD 4, from Ralf Wildenhues.
71185
71186 2007-03-04  Bruno Haible  <bruno@clisp.org>
71187
71188         * lib/vasprintf.h: Update #if logic for the case when the functions
71189         exist but are overridden.
71190
71191 2007-03-04  Bruno Haible  <bruno@clisp.org>
71192
71193         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
71194         implementations: glibc-2.4 and MacOS X 10.3.
71195         * tests/test-vasnprintf-posix.c (test_function): Test also the case
71196         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
71197         * tests/test-vasprintf-posix.c (test_function): Likewise.
71198
71199 2007-03-04  Bruno Haible  <bruno@clisp.org>
71200
71201         * modules/vasprintf-posix-tests: New file.
71202         * tests/test-vasprintf-posix.c: New file.
71203
71204         * modules/vasprintf-posix: New file.
71205         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
71206         defined.
71207         * m4/vasprintf-posix.m4: New file.
71208         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
71209         gl_FUNC_VASPRINTF.
71210         (gl_FUNC_VASPRINTF): Invoke it.
71211         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
71212         here.
71213         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
71214
71215 2007-03-04  Bruno Haible  <bruno@clisp.org>
71216
71217         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
71218         REPLACE_GETTIMEOFDAY.
71219         * modules/sys_time (Makefile.am): Likewise.
71220         * m4/sys_time_h.m4: Likewise.
71221         * m4/gettimeofday.m4: Likewise.
71222
71223 2007-03-04  Bruno Haible  <bruno@clisp.org>
71224
71225         * modules/vasnprintf-posix-tests: New file.
71226         * tests/test-vasnprintf-posix.c: New file.
71227
71228         * modules/vasnprintf-posix: New file.
71229         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
71230         printf-frexpl.h.
71231         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
71232         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
71233         REPLACE_VASNPRINTF is defined.
71234         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
71235         gl_FUNC_VASNPRINTF.
71236         (gl_FUNC_VASNPRINTF): Invoke it.
71237         * m4/vasnprintf-posix.m4: New file.
71238         * m4/printf.m4: New file.
71239
71240 2007-03-04  Bruno Haible  <bruno@clisp.org>
71241
71242         Compile progreloc.c only if --enable-relocatable is specified.
71243         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
71244         if --enable-relocatable was specified.
71245         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
71246         lib_SOURCES.
71247
71248 2007-03-04  Jim Meyering  <jim@meyering.net>
71249
71250         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
71251         Use it consistently, rather than enumerating errno constants.
71252
71253 2007-03-04  Bruno Haible  <bruno@clisp.org>
71254
71255         * modules/xvasprintf-tests: New file.
71256         * tests/test-xvasprintf.c: New file.
71257
71258         * modules/vasprintf-tests: New file.
71259         * tests/test-vasprintf.c: New file.
71260
71261         * modules/vasnprintf-tests: New file.
71262         * tests/test-vasnprintf.c: New file.
71263
71264         * modules/vsnprintf-tests: New file.
71265         * tests/test-vsnprintf.c: New file.
71266
71267         * modules/snprintf-tests: New file.
71268         * tests/test-snprintf.c: New file.
71269
71270 2007-03-04  Bruno Haible  <bruno@clisp.org>
71271
71272         Compile relocatable.c only if --enable-relocatable is specified.
71273         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
71274         gl_RELOCATABLE_LIBRARY.
71275         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
71276         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
71277         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
71278         gl_RELOCATABLE_LIBRARY.
71279         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
71280         (Makefile.am): Remove lib_SOURCES.
71281         * modules/relocatable-lib-lgpl (configure.ac): Invoke
71282         gl_RELOCATABLE_LIBRARY.
71283         (Makefile.am): Remove lib_SOURCES.
71284         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
71285         always.
71286         * modules/relocatable-prog-wrapper (configure.ac): Invoke
71287         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
71288
71289 2007-03-04  Bruno Haible  <bruno@clisp.org>
71290
71291         * modules/argmatch-tests: New file.
71292         * tests/test-argmatch.c: New file.
71293
71294         * tests/test-allocsa.c (main): Halve the number of loop runs.
71295
71296         * modules/alloca-opt-tests: New file.
71297         * tests/test-alloca-opt.c: New file.
71298
71299 2007-03-04  Jim Meyering  <jim@meyering.net>
71300
71301         Work around difference between Linux ACLs and Solaris 10 ZFS.
71302         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
71303         for EINVAL.
71304
71305 2007-03-03  Bruno Haible  <bruno@clisp.org>
71306
71307         * modules/relocatable-prog (Depends-on): Add back progreloc's
71308         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
71309
71310 2007-03-03  Bruno Haible  <bruno@clisp.org>
71311
71312         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
71313         * modules/relocatable-lib: New file.
71314
71315 2007-03-03  Bruno Haible  <bruno@clisp.org>
71316
71317         * modules/relocatable-prog: Renamed from modules/relocatable.
71318         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
71319
71320 2007-03-03  Bruno Haible  <bruno@clisp.org>
71321
71322         * modules/relocatable-script (Files): Add doc/relocatable.texi,
71323         m4/relocatable-lib.m4.
71324         (Depends-on): Remove 'relocatable'.
71325         (configure.ac): Add gl_RELOCATABLE_NOP.
71326
71327 2007-03-03  Bruno Haible  <bruno@clisp.org>
71328
71329         * modules/relocatable-prog-wrapper: New file.
71330         * modules/relocatable (Depends-on): Add it. Remove all other
71331         dependencies except progname.
71332         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
71333
71334         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
71335         (gl_FUNC_STRERROR): Nop.
71336         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
71337
71338         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
71339         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
71340
71341         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
71342         (gl_FUNC_READLINK): Update.
71343
71344         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
71345
71346 2007-03-03  Bruno Haible  <bruno@clisp.org>
71347
71348         * lib/xreadlink.c: Include <unistd.h> unconditionally.
71349         * modules/xreadlink (Depends-on): Add unistd.
71350         * modules/xreadlink-with-size (Depends-on): Likewise.
71351
71352 2007-03-03  Bruno Haible  <bruno@clisp.org>
71353
71354         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
71355         extracted from gt_FUNC_SETENV.
71356         (gt_FUNC_SETENV): Remove macro.
71357         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
71358         remove gt_FUNC_SETENV.
71359
71360 2007-03-03  Bruno Haible  <bruno@clisp.org>
71361
71362         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
71363         ENABLE_RELOCATABLE here.
71364         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
71365
71366 2007-03-03  Bruno Haible  <bruno@clisp.org>
71367
71368         * modules/rbtreehash-list-tests (Depends-on): Add progname.
71369         * tests/test-rbtreehash_list.c: Include progname.h.
71370         (main): Call set_program_name.
71371
71372         * modules/rbtree-oset-tests (Depends-on): Add progname.
71373         * tests/test-rbtree_oset.c: Include progname.h.
71374         (main): Call set_program_name.
71375
71376         * modules/rbtree-list-tests (Depends-on): Add progname.
71377         * tests/test-rbtree_list.c: Include progname.h.
71378         (main): Call set_program_name.
71379
71380         * modules/linked-list-tests (Depends-on): Add progname.
71381         * tests/test-linked_list.c: Include progname.h.
71382         (main): Call set_program_name.
71383
71384 2007-03-03  Bruno Haible  <bruno@clisp.org>
71385
71386         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
71387         All uses of __restrict changed to _Restrict_.
71388         * lib/glob_.h (__restrict): Remove macro.
71389
71390 2007-03-02  Bruno Haible  <bruno@clisp.org>
71391
71392         * modules/gettext (configure.ac): Require gettext infrastructure
71393         from version 0.16.1.
71394
71395 2007-03-02  Bruno Haible  <bruno@clisp.org>
71396
71397         * modules/linkedhash-list-tests (Depends-on): Add progname.
71398         * tests/test-linkedhash_list.c: Include progname.h.
71399         (main): Call set_program_name.
71400
71401         * modules/carray-list-tests (Depends-on): Add progname.
71402         * tests/test-carray_list.c: Include progname.h.
71403         (main): Call set_program_name.
71404
71405         * modules/avltreehash-list-tests (Depends-on): Add progname.
71406         * tests/test-avltreehash_list.c: Include progname.h.
71407         (main): Call set_program_name.
71408
71409         * modules/avltree-oset-tests (Depends-on): Add progname.
71410         * tests/test-avltree_oset.c: Include progname.h.
71411         (main): Call set_program_name.
71412
71413         * modules/avltree-list-tests (Depends-on): Add progname.
71414         * tests/test-avltree_list.c: Include progname.h.
71415         (main): Call set_program_name.
71416
71417         * modules/array-oset-tests (Depends-on): Add progname.
71418         * tests/test-array_oset.c: Include progname.h.
71419         (main): Call set_program_name.
71420
71421         * modules/array-list-tests (Depends-on): Add progname.
71422         * tests/test-array_list.c: Include progname.h.
71423         (main): Call set_program_name.
71424
71425         * modules/argp-tests (Depends-on): Add progname.
71426         * tests/test-argp.c: Include argp.h first. Include progname.h.
71427         (main): Call set_program_name.
71428
71429 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
71430
71431         * doc/gnulib-tool.texi (Initial import): Reword description of
71432         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
71433         limited effect even if defined after the first system include.
71434
71435 2007-03-01  Bruno Haible  <bruno@clisp.org>
71436
71437         * build-aux/config.libpath: Update to libtool-1.5.22.
71438         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71439
71440 2007-03-01  Bruno Haible  <bruno@clisp.org>
71441
71442         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
71443         foo_CFLAGS.
71444         Reported by Ralf Wildenhues.
71445
71446 2007-03-01  Bruno Haible  <bruno@clisp.org>
71447
71448         * build-aux/install-reloc: Remove object files left over by some
71449         compilers.
71450         Reported by Ralf Wildenhues.
71451
71452 2007-03-01  Bruno Haible  <bruno@clisp.org>
71453
71454         * build-aux/install-reloc: Break long lines.
71455
71456 2007-03-01  Bruno Haible  <bruno@clisp.org>
71457
71458         * doc/relocatable.texi: Document that it may not work on OpenBSD.
71459         Reported by Ralf Wildenhues.
71460
71461 2007-03-01  Bruno Haible  <bruno@clisp.org>
71462
71463         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
71464         include ordering constraints.
71465
71466 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71467
71468         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
71469         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
71470         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
71471         as another example.
71472         * lib/time_.h: Fix misspelling.
71473         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71474         Require gl_HEADER_TIME_H_DEFAULTS.
71475         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
71476         * m4/time_r.m4 (gl_TIME_R): Likewise.
71477         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
71478
71479 2007-03-01  Bruno Haible  <bruno@clisp.org>
71480
71481         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
71482         * m4/utimens.m4 (gl_UTIMENS): Likewise.
71483
71484 2007-03-01  Jim Meyering  <jim@meyering.net>
71485
71486         * modules/xreadlink (Maintainer): Add my name.
71487         * modules/xreadlink-with-size (Depends-on): Alphabetize.
71488
71489 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
71490             Bruno Haible  <bruno@clisp.org>
71491
71492         * build-aux/install-reloc: Compile also c-ctype.c.
71493         * build-aux/relocatable.sh.in: New file.
71494         * doc/relocatable.texi: New file.
71495         * doc/relocatable-maint.texi: New file.
71496         * doc/gnulib.texi: Include relocatable-maint.texi.
71497         * lib/progreloc.c: Include unistd.h unconditionally.
71498         * lib/relocwrapper.c: Include unistd.h unconditionally.
71499         Include c-ctype.h.
71500         (add_dotbin): Use c_tolower.
71501         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
71502         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
71503         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
71504         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
71505         to m4/relocatable-lib.m4.
71506         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
71507         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
71508         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
71509         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
71510         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
71511         * modules/relocatable: New file.
71512         * modules/relocatable-lib: New file.
71513         * modules/relocatable-script: New file.
71514
71515 2007-02-28  Bruno Haible  <bruno@clisp.org>
71516
71517         Import --enable-relocatable infrastructure.
71518         * build-aux/config.libpath: New file, from GNU gettext.
71519         * build-aux/install-reloc: New file, from GNU gettext.
71520         * build-aux/reloc-ldflags: New file, from GNU gettext.
71521         * lib/relocatable.h: New file, from GNU gettext.
71522         * lib/relocatable.c: New file, from GNU gettext.
71523         * lib/relocwrapper.c: New file, from GNU gettext.
71524         * m4/relocatable.m4: New file, from GNU gettext.
71525
71526 2007-02-28  Bruno Haible  <bruno@clisp.org>
71527
71528         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
71529
71530         * modules/xreadlink: New file, from GNU gettext with modifications.
71531         * lib/xreadlink.c: New file, from GNU gettext.
71532         * lib/xreadlink.h: Add comments.
71533         (xreadlink): New declaration.
71534
71535         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
71536         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
71537         lib/xreadlink-with-size.c.
71538         (configure.ac): Remove gl_XREADLINK invocation.
71539         (Makefile.am): Augment lib_SOURCES.
71540         * m4/xreadlink.m4: Remove file.
71541         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
71542         (xreadlink_with_size): Renamed from xreadink.
71543         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
71544         * modules/canonicalize (Depends-on): Replace xreadlink with
71545         xreadlink-with-size.
71546         * lib/canonicalize.c (canonicalize_filename_mode): Update.
71547
71548 2007-02-25  Jim Meyering  <jim@meyering.net>
71549
71550         * build-aux/announce-gen: When complaining about excess arguments,
71551         list them.
71552
71553 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71554
71555         * README: Document signed integer overflow situation more
71556         accurately.
71557
71558 2007-02-25  Bruno Haible  <bruno@clisp.org>
71559
71560         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
71561         'a' or 'A' conversion.
71562
71563 2007-02-25  Bruno Haible  <bruno@clisp.org>
71564
71565         * modules/filename: Renamed from modules/pathname.
71566         (Files): Replace lib/pathname.h with lib/filename.h. Replace
71567         lib/concatpath.c with lib/concat-filename.c.
71568         (Makefile.am): Update.
71569         (Include): Replace pathname.h with filename.h.
71570         * lib/filename.h: Renamed from lib/pathname.h.
71571         (concatenated_filename): Renamed from concatenated_pathname.
71572         * lib/concat-filename.c: Renamed from lib/concatpath.c.
71573         (concatenated_filename): Renamed from concatenated_pathname.
71574         * lib/findprog.c: Include filename.h instead of pathname.h.
71575         (find_in_path): Update.
71576         * lib/javacomp.c: Include filename.h instead of pathname.h.
71577         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
71578         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
71579         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
71580         is_oldgcj_14_13_usable, is_javac_usable): Update.
71581         * lib/javaexec.c: Include filename.h instead of pathname.h.
71582         (execute_java_class): Update.
71583         * modules/findprog: Update.
71584         * modules/javacomp: Update.
71585         * modules/javaexec: Update.
71586         * MODULES.html.sh (File system functions): Add 'filename', remove
71587         'pathname'.
71588
71589 2007-02-25  Bruno Haible  <bruno@clisp.org>
71590
71591         * modules/printf-frexpl-tests: New file.
71592         * tests/test-printf-frexpl.c: New file.
71593
71594         * modules/printf-frexpl: New file.
71595         * lib/printf-frexpl.h: New file.
71596         * lib/printf-frexpl.c: New file.
71597         * m4/printf-frexpl.m4: New file.
71598
71599 2007-02-25  Bruno Haible  <bruno@clisp.org>
71600
71601         * modules/printf-frexp-tests: New file.
71602         * tests/test-printf-frexp.c: New file.
71603
71604         * modules/printf-frexp: New file.
71605         * lib/printf-frexp.h: New file.
71606         * lib/printf-frexp.c: New file.
71607         * m4/printf-frexp.m4: New file.
71608
71609 2007-02-25  Bruno Haible  <bruno@clisp.org>
71610
71611         Assume automake >= 1.10 for the tests.
71612         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
71613         * modules/arctwo-tests: Likewise.
71614         * modules/argp-tests: Likewise.
71615         * modules/avltree-list-tests: Likewise.
71616         * modules/avltree-oset-tests: Likewise.
71617         * modules/avltreehash-list-tests: Likewise.
71618         * modules/carray-list-tests: Likewise.
71619         * modules/crc-tests: Likewise.
71620         * modules/des-tests: Likewise.
71621         * modules/gc-arcfour-tests: Likewise.
71622         * modules/gc-arctwo-tests: Likewise.
71623         * modules/gc-des-tests: Likewise.
71624         * modules/gc-hmac-md5-tests: Likewise.
71625         * modules/gc-hmac-sha1-tests: Likewise.
71626         * modules/gc-md2-tests: Likewise.
71627         * modules/gc-md4-tests: Likewise.
71628         * modules/gc-md5-tests: Likewise.
71629         * modules/gc-pbkdf2-sha1-tests: Likewise.
71630         * modules/gc-rijndael-tests: Likewise.
71631         * modules/gc-sha1-tests: Likewise.
71632         * modules/gc-tests: Likewise.
71633         * modules/getaddrinfo-tests: Likewise.
71634         * modules/hmac-md5-tests: Likewise.
71635         * modules/hmac-sha1-tests: Likewise.
71636         * modules/linked-list-tests: Likewise.
71637         * modules/linkedhash-list-tests: Likewise.
71638         * modules/lock-tests: Likewise.
71639         * modules/md2-tests: Likewise.
71640         * modules/md4-tests: Likewise.
71641         * modules/md5-tests: Likewise.
71642         * modules/rbtree-list-tests: Likewise.
71643         * modules/rbtree-oset-tests: Likewise.
71644         * modules/rbtreehash-list-tests: Likewise.
71645         * modules/read-file-tests: Likewise.
71646         * modules/rijndael-tests: Likewise.
71647         * modules/stdint-tests: Likewise.
71648         * modules/tls-tests: Likewise.
71649
71650 2007-02-24  Bruno Haible  <bruno@clisp.org>
71651
71652         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
71653         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
71654         function; instead check whether isnan with a double argument links.
71655         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
71656         function; instead check whether isnan with a 'long double' argument
71657         links.
71658         Reported by Eric Blake <ebb9@byu.net>.
71659
71660 2007-02-24  Bruno Haible  <bruno@clisp.org>
71661
71662         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
71663         defined.
71664         * lib/isnanl.c: Remove all code. Just include isnan.c.
71665         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
71666
71667 2007-02-25  Jim Meyering  <jim@meyering.net>
71668
71669         Avoid conflicting types for 'unsetenv' on FreeBSD.
71670         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
71671         conflicting with FreeBSD's (5.0 and 6.1) function declaration
71672         in stdlib.h.
71673
71674 2007-02-24  Bruno Haible  <bruno@clisp.org>
71675
71676         * modules/isnanl-nolibm-tests: New file.
71677         * tests/test-isnanl.c: New file.
71678
71679         * modules/isnanl-nolibm: New file.
71680         * lib/isnanl.h: New file.
71681         * lib/isnanl.c: New file.
71682         * m4/isnanl.m4: New file.
71683
71684 2007-02-24  Bruno Haible  <bruno@clisp.org>
71685
71686         * modules/isnan-nolibm-tests: New file.
71687         * tests/test-isnan.c: New file.
71688
71689         * modules/isnan-nolibm: New file.
71690         * lib/isnan.h: New file.
71691         * lib/isnan.c: New file.
71692         * m4/isnan.m4: New file.
71693
71694 2007-02-24  Bruno Haible  <bruno@clisp.org>
71695
71696         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
71697         assume that an exponent fits in 20 bits.
71698
71699 2007-02-24  Jim Meyering  <jim@meyering.net>
71700
71701         * m4/regex.m4: Update the description of the configure-time option,
71702         --without-included-regex, to state accurately what the defaults are,
71703         and perhaps to give people an idea why using this option is risky.
71704
71705 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71706
71707         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
71708         loops on small arguments.  This attempts to avoid the problem
71709         Bruno Haible reported for AIX 4.3.2 in
71710         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
71711
71712 2007-02-23  Bruno Haible  <bruno@clisp.org>
71713
71714         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
71715         Needed for help2man.
71716
71717 2007-02-23  Karl Berry  <karl@gnu.org>
71718
71719         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
71720         exists, foo.h should be cvs-ignored, not committed.
71721
71722 2007-02-23  Eric Blake  <ebb9@byu.net>
71723
71724         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
71725         * lib/stat-time.h (includes): Likewise.
71726         * lib/utimecmp.c (includes): Likewise.
71727         * lib/utimens.h (includes): Likewise.
71728         * lib/getdate.y (includes): Also include "timespec.h" for use
71729         internal to the module.
71730         * modules/utimens (Depends-on): Revert yesterday's patch.
71731         * modules/nanosleep (Depends-on): Add missing dependency.
71732
71733 2007-02-22  Bruno Haible  <bruno@clisp.org>
71734
71735         * lib/glob.c: Don't include getlogin_r.h.
71736
71737 2007-02-22  Jim Meyering  <jim@meyering.net>
71738
71739         * modules/utimens (Depends-on): Add timespec, required for
71740         utimens.h's inclusion of timespec.h.
71741
71742 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
71743
71744         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
71745         long unreadable paths in GNU/Linux.  Problem reported by Andreas
71746         Schwab in
71747         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
71748         I'll try to think of a better way to fix the Solaris problem.
71749
71750         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
71751         like glibc; on Solaris 10, it fails with errno == EINVAL.
71752         POSIX says the behavior is unspecified if the first argument is NULL,
71753         so play it safe and never pass NULL to the system getcwd.
71754
71755 2007-02-21  Jim Meyering  <jim@meyering.net>
71756
71757         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
71758         of gettimeofday.  It would conflict with the one now always
71759         provided via sys_time_.h.  Reported by Matthew Woehlke, as
71760         an IRIX 6.5 build failure.
71761
71762 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71763
71764         Minor fixups to port to Solaris 10 with Sun C 5.8.
71765         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
71766         * modules/getcwd (Depends-on): Add dirfd.
71767         * lib/putenv.c (putenv): #undef it.
71768         (rpl_putenv): New decl.
71769         (malloc, free): Include <stdlib.h> rather than prototyping separately.
71770
71771 2007-02-20  Bruno Haible  <bruno@clisp.org>
71772
71773         * modules/stdio-tests: New file.
71774         * tests/test-stdio.c: New file.
71775
71776         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
71777         (Depends-on): Add stdio.
71778         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71779         (Include): Use <stdio.h> instead of vsnprintf.h.
71780         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71781         HAVE_DECL_VSNPRINTF.
71782         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
71783
71784         * modules/snprintf (Files): Remove lib/snprintf.h.
71785         (Depends-on): Add stdio.
71786         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71787         (Include): Use <stdio.h> instead of snprintf.h.
71788         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71789         HAVE_DECL_SNPRINTF.
71790         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
71791         * lib/getaddrinfo.c: Likewise.
71792
71793         * modules/stdio: New file.
71794         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
71795         * lib/snprintf.h: Remove file.
71796         * lib/vsnprintf.h: Remove file.
71797         * lib/.cppi-disable: Remove snprintf.h.
71798         * m4/stdio_h.m4: New file.
71799         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
71800
71801 2007-02-20  Jim Meyering  <jim@meyering.net>
71802
71803         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
71804         used by e.g., mingw.  From Bruno Haible.
71805
71806 2007-02-19  Bruno Haible  <bruno@clisp.org>
71807
71808         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
71809         warnings.
71810         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71811
71812 2007-02-19  Bruno Haible  <bruno@clisp.org>
71813
71814         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
71815         from mingw users.
71816
71817 2007-02-19  Bruno Haible  <bruno@clisp.org>
71818
71819         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
71820         warnings.
71821         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
71822
71823 2007-02-19  Jim Meyering  <jim@meyering.net>
71824
71825         Don't use FD after a successful "fdopendir (fd)".
71826         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
71827         Reset it by calling dirfd on the just-obtained DIR*.
71828
71829         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
71830         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
71831
71832 2007-02-18  Bruno Haible  <bruno@clisp.org>
71833
71834         * lib/readlink.c: Include <unistd.h>.
71835         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
71836         HAVE_READLINK.
71837         * modules/readlink (Depends-on): Add unistd.
71838         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71839         (Include): Add <unistd.h>.
71840
71841         * lib/getlogin_r.h: Remove file.
71842         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
71843         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
71844         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
71845         HAVE_DECL_GETLOGIN_R.
71846         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
71847         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71848         (Include): Use <unistd.h> instead of getlogin_r.h.
71849
71850         * lib/getcwd.h: Remove file.
71851         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
71852         * lib/xgetcwd.c: Likewise.
71853         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
71854         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
71855         * modules/getcwd (Files): Remove lib/getcwd.h.
71856         (Depends-on): Add unistd.
71857         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71858         (Include): Use <unistd.h> instad of getcwd.h.
71859
71860         * lib/ftruncate.c: Include <unistd.h> first.
71861         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
71862         Set HAVE_FTRUNCATE.
71863         * modules/ftruncate (Depends-on): Add unistd.
71864         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71865
71866         * lib/fchdir.c: Include <unistd.h> first.
71867         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
71868         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
71869         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
71870         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71871         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
71872
71873         * lib/dup2.c: Include <unistd.h> first.
71874         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
71875         HAVE_DUP2.
71876         * modules/dup2 (Depends-on): Add unistd.
71877         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71878
71879         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
71880         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
71881         REPLACE_CHOWN. Don't define chown as a macro here.
71882         * modules/chown (Depends-on): Add unistd.
71883         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71884
71885         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
71886         Add definition for GL_LINK_WARNING.
71887         (chown, dup2): New declarations.
71888         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
71889         link warning.
71890         (ftruncate): New declaration.
71891         (getcwd): New declaration, taken from old getcwd.h.
71892         (getlogin_r): New declaration, taken from old getlogin_r.h.
71893         (readlink): New declaration.
71894         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
71895         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
71896         (gl_PREREQ_UNISTD): Remove macro.
71897         (gl_UNISTD_MODULE_INDICATOR): New macro.
71898         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
71899         many new variables. Don't set UNISTD_H.
71900         * modules/unistd (Description): Change.
71901         (Depends-on): Add link-warning.
71902         (configure.ac): Update.
71903         (Makefile.am): Create unistd.h always. Substitute many new variables
71904         into it.
71905
71906 2007-02-18  Bruno Haible  <bruno@clisp.org>
71907
71908         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
71909         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
71910         HAVE_GETSUBOPT.
71911         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
71912         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
71913         * lib/getsubopt.h: Remove file.
71914         * modules/getsubopt (Files): Remove lib/getsubopt.h.
71915         (Depends-on): Add stdlib.
71916         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71917         (Includes): Use <stdlib.h> instead of getsubopt.h.
71918         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
71919         Set HAVE_GETSUBOPT.
71920         * lib/getsubopt.c: Don't include getsubopt.h.
71921
71922 2007-02-18  Bruno Haible  <bruno@clisp.org>
71923
71924         * modules/fchdir (Depends-on): Add dup2.
71925
71926 2007-02-18  Bruno Haible  <bruno@clisp.org>
71927
71928         * lib/stdlib_.h: Handle glibc's special invocation convention
71929         specially.
71930
71931 2007-02-18  Bruno Haible  <bruno@clisp.org>
71932
71933         * modules/stdlib-tests: New file.
71934         * tests/test-stdlib.c: New file.
71935
71936         * modules/mkstemp (Files): Remove lib/mkstemp.h.
71937         (Depends-on): Add stdlib.
71938         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71939         (Includes): Use <stdlib.h> instead of mkstemp.h.
71940         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71941         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
71942         * lib/mkstemp.c: Don't include mkstemp.h.
71943         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
71944         * lib/stdlib--.h: Don't include mkstemp.h.
71945
71946         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
71947         (Depends-on): Add stdlib.
71948         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71949         (Includes): Use <stdlib.h> instead of mkdtemp.h.
71950         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71951         HAVE_MKDTEMP.
71952         * lib/mkdtemp.c: Don't include mkdtemp.h.
71953         * lib/clean-temp.c: Don't include mkdtemp.h.
71954
71955         * modules/exit (Files): Remove lib/exit.h.
71956         (Depends-on): Add stdlib.
71957         (Makefile.am): Remove lib_SOURCES.
71958         (Include): Use <stdlib.h> instead of exit.h.
71959         * lib/argmatch.c: Don't include exit.h.
71960         * lib/execute.c: Likewise.
71961         * lib/pagealign_alloc.c: Likewise.
71962         * lib/pipe.c: Likewise.
71963         * lib/wait-process.c: Likewise.
71964         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
71965         * lib/exitfail.c: Likewise.
71966         * lib/savewd.c: Likewise.
71967         * lib/xsetenv.c: Likewise.
71968
71969         * modules/stdlib: New file.
71970         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
71971         and extra comments about mkstemp().
71972         * lib/exit.h: Remove file.
71973         * lib/mkdtemp.h: Remove file.
71974         * lib/mkstemp.h: Remove file.
71975         * m4/stdlib_h.m4: New file.
71976         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
71977
71978 2007-02-18  Bruno Haible  <bruno@clisp.org>
71979
71980         * modules/math-tests: New file.
71981         * tests/test-math.c: New file.
71982
71983         * modules/math: New file.
71984         * modules/mathl (Files): Remove lib/mathl.h.
71985         (Depends-on): Add math.
71986         (Makefile.am): Don't mention mathl.h.
71987         (Include): Use <math.h> instead of mathl.h.
71988         * lib/math_.h: New file.
71989         * lib/mathl.h: Remove file.
71990         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
71991         mathl.h.
71992         * lib/asinl.c: Likewise.
71993         * lib/atanl.c: Likewise.
71994         * lib/ceill.c: Likewise.
71995         * lib/cosl.c: Likewise.
71996         * lib/expl.c: Likewise.
71997         * lib/floorl.c: Likewise.
71998         * lib/frexpl.c: Likewise.
71999         * lib/ldexpl.c: Likewise.
72000         * lib/logl.c: Likewise.
72001         * lib/sincosl.c: Likewise.
72002         * lib/sinl.c: Likewise.
72003         * lib/sqrtl.c: Likewise.
72004         * lib/tanl.c: Likewise.
72005         * lib/trigl.c: Likewise.
72006         * m4/math_h.m4: New file.
72007         * MODULES.html.sh (Mathematics): Add math.
72008
72009 2007-02-17  Bruno Haible  <bruno@clisp.org>
72010
72011         * modules/wctype-tests: New file.
72012         * tests/test-wctype.c: New file.
72013
72014         * modules/wchar-tests: New file.
72015         * tests/test-wchar.c: New file.
72016
72017         * modules/unistd-tests: New file.
72018         * tests/test-unistd.c: New file.
72019
72020         * modules/time-tests: New file.
72021         * tests/test-time.c: New file.
72022
72023         * modules/sysexits-tests: New file.
72024         * tests/test-sysexits.c: New file.
72025
72026         * modules/sys_time-tests: New file.
72027         * tests/test-sys_time.c: New file.
72028
72029         * modules/sys_stat-tests: New file.
72030         * tests/test-sys_stat.c: New file.
72031
72032         * modules/sys_socket-tests: New file.
72033         * tests/test-sys_socket.c: New file.
72034
72035         * modules/sys_select-tests: New file.
72036         * tests/test-sys_select.c: New file.
72037
72038         * modules/string-tests: New file.
72039         * tests/test-string.c: New file.
72040
72041         * modules/stdbool-tests: New file.
72042         * tests/test-stdbool.c: New file.
72043
72044         * modules/netinet_in-tests: New file.
72045         * tests/test-netinet_in.c: New file.
72046
72047         * modules/inttypes-tests: New file.
72048         * tests/test-inttypes.c: New file.
72049
72050         * modules/fcntl-tests: New file.
72051         * tests/test-fcntl.c: New file.
72052
72053         * modules/byteswap-tests: New file.
72054         * tests/test-byteswap.c: New file.
72055
72056         * modules/arpa_inet-tests: New file.
72057         * tests/test-arpa_inet.c: New file.
72058
72059 2007-02-17  Bruno Haible  <bruno@clisp.org>
72060
72061         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
72062         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
72063         if the corresponding module is not enabled. Emit link warnings if
72064         the function is used nevertheless.
72065         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
72066         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
72067         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
72068         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
72069         * modules/inttypes (Depends-on): Add link-warning.
72070         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72071         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
72072         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
72073         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
72074         * modules/imaxdiv (configure.ac): Likewise.
72075         * modules/strtoimax (configure.ac): Likewise.
72076         * modules/strtoumax (configure.ac): Likewise.
72077
72078 2007-02-17  Bruno Haible  <bruno@clisp.org>
72079
72080         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
72081         gl_STRING_MODULE_INDICATOR_DEFAULTS.
72082         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
72083         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
72084
72085 2007-02-17  Bruno Haible  <bruno@clisp.org>
72086
72087         * modules/link-warning: New file.
72088         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
72089         * lib/string_.h (GL_LINK_WARNING): Remove definition.
72090         * modules/string (Depends-on): Add link-warning.
72091         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72092         string.h.
72093         * MODULES.html.sh (Support for building libraries and executables): Add
72094         link-warning.
72095
72096 2007-02-17  Bruno Haible  <bruno@clisp.org>
72097
72098         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
72099         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
72100         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
72101         long lines.
72102
72103 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
72104             Bruno Haible  <bruno@clisp.org>
72105
72106         * modules/tmpfile: New file.
72107         * lib/tmpfile.c: New file.
72108         * m4/tmpfile.m4: New file.
72109         * MODULES.html.sh (func_all_modules): New section "Input/output".
72110
72111 2007-02-15  Bruno Haible  <bruno@clisp.org>
72112
72113         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
72114         (supports_delete_on_close): New function.
72115         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
72116
72117 2007-02-14  Bruno Haible  <bruno@clisp.org>
72118
72119         * modules/mbspcasecmp-tests: New file.
72120         * tests/test-mbspcasecmp.sh: New file.
72121         * tests/test-mbspcasecmp.c: New file.
72122
72123         New module mbspcasecmp.
72124         * modules/mbspcasecmp: New file.
72125         * lib/mbspcasecmp.c: New file.
72126         * lib/string_.h (strncasecmp): Change warning message.
72127         (mbspcasecmp): New declaration.
72128         * m4/mbspcasecmp.m4: New file.
72129         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72130         GNULIB_MBSPCASECMP.
72131         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
72132         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
72133
72134 2007-02-14  Bruno Haible  <bruno@clisp.org>
72135
72136         * modules/mbsncasecmp-tests: New file.
72137         * tests/test-mbsncasecmp.sh: New file.
72138         * tests/test-mbsncasecmp.c: New file.
72139
72140         New module mbsncasecmp.
72141         * modules/mbsncasecmp: New file.
72142         * lib/mbsncasecmp.c: New file.
72143         * lib/string_.h (mbsncasecmp): New declaration.
72144         * m4/mbsncasecmp.m4: New file.
72145         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72146         GNULIB_MBSNCASECMP.
72147         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
72148         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
72149
72150 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72151
72152         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
72153         Verify that it doesn't overlap with our flags.
72154         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
72155         do not have the desired effect in multibyte locales; instead, use
72156         mbscasecmp.
72157         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
72158         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
72159         we don't require GNU fnmatch ourselves (if our users require it, they
72160         should do so explicitly).
72161
72162         Fix regex code so it doesn't rely on strcasecmp.
72163         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
72164         Otherwise, include gnulib's langinfo.h.
72165         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
72166         undesirable behavior in non-C locales.  Instead, rely on localecharset.
72167         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
72168         * modules/regex (FILES): Remove m4/codeset.m4.
72169         (Depends-on): Add localcharset.  Remove strcase.
72170
72171 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72172
72173         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
72174         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
72175
72176 2007-02-13  Bruno Haible  <bruno@clisp.org>
72177
72178         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
72179         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72180
72181 2007-02-12  Bruno Haible  <bruno@clisp.org>
72182
72183         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72184         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
72185         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
72186         time warning rather than a link error.
72187
72188 2007-02-12  Bruno Haible  <bruno@clisp.org>
72189
72190         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
72191         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
72192         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72193
72194 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72195
72196         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
72197         args, not 2.
72198
72199 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72200
72201         New module 'time', so that apps can include <time.h> as per
72202         POSIX and GNU instead of separate include files like time_r.h
72203         and timegm.h.  This implementation tries out a simpler approach
72204         for replacing decls in standard include files (as compared to
72205         the string module), somewhat as an experiment.
72206
72207         * config/srclist.txt: Comment out mktime.c for now.
72208         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
72209         since it doesn't apply any more.  Use generic wording instead.
72210         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
72211         'time'.
72212         * lib/time_.h, m4/time_h.m4, modules/time: New files.
72213         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
72214         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
72215         Don't include <sys/types.h>; no longer needed since we assume C89.
72216         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
72217         * lib/strftime.c: Likewise.
72218         * lib/time_r.c: Likewise.
72219         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
72220         * lib/nanosleep.c: Include <time.h> first, to check interface.
72221         * lib/strptime.c: Likewise.
72222         * lib/time_r.c: Likewise.
72223         * lib/timegm.c: Likewise.
72224         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
72225         needed.
72226         * lib/timegm.c: Don't include timegm.h; no longer needed.
72227         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
72228         time.h now handles any problems in that area.
72229         (struct timespec, nanosleep): Remove; time.h now arranges for these.
72230         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
72231         that time.h defines struct timespec.
72232         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
72233         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
72234         handles that.
72235         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
72236         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
72237         needed.  Set REPLACE_LOCALTIME.
72238         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
72239         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
72240         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
72241         nanosleep; time_h.m4 now does that.  Don't require
72242         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
72243         module handles this now.
72244         * modules/getdate (Depends-on): Remove timespec.  Add time.
72245         * modules/nanosleep (Depends-on): Likewise.
72246         * modules/stat-time (Depends-on): Likewise.
72247         * modules/nanosleep (Include): Include time.h, not timespec.h.
72248         * modules/strptime (Files): Remove lib/strptime.h.
72249         (Depends-on): Add extensions, time.
72250         (Include): Include time.h, not strptime.h.
72251         * modules/time_r (Files): Remove lib/time_r.h.
72252         (Depends-on): Add time.
72253         (Include): Include time.h, not time_r.h.
72254         * modules/timegm: Likewise.
72255         * modules/timespec (Description): Now does timespec-related decls
72256         of our own, instead of struct timespec itself.
72257         (Depends-on): Add time; remove extensions.
72258         (Maintainer): Add self.
72259         * modules/utimecmp (Depends-on): Add time; remove timespec.
72260         * modules/utimens (Depends-on): Likewise.
72261         * modules/xnanosleep (Depends-on): Likewise.
72262
72263 2007-02-11  Bruno Haible  <bruno@clisp.org>
72264
72265         * lib/c-strstr.c: Include allocsa.h.
72266         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72267         * lib/c-strcasestr.c: Include allocsa.h.
72268         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72269         * lib/strcasestr.c: Include allocsa.h.
72270         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72271         * lib/mbsstr.c: Include allocsa.h.
72272         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72273         allocsa/freesa instead of malloc/free.
72274         * lib/mbscasestr.c: Include allocsa.h.
72275         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72276         allocsa/freesa instead of malloc/free.
72277         * modules/c-strstr (Depends-on): Add allocsa.
72278         * modules/c-strcasestr (Depends-on): Likewise.
72279         * modules/strcasestr (Depends-on): Likewise.
72280         * modules/mbsstr (Depends-on): Likewise.
72281         * modules/mbscasestr (Depends-on): Likewise.
72282
72283 2007-02-11  Bruno Haible  <bruno@clisp.org>
72284
72285         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
72286
72287         * modules/mbsspn-tests: New file.
72288         * tests/test-mbsspn.sh: New file.
72289         * tests/test-mbsspn.c: New file.
72290
72291 2007-02-11  Bruno Haible  <bruno@clisp.org>
72292
72293         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
72294
72295         * modules/mbspbrk-tests: New file.
72296         * tests/test-mbspbrk.sh: New file.
72297         * tests/test-mbspbrk.c: New file.
72298
72299 2007-02-11  Bruno Haible  <bruno@clisp.org>
72300
72301         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
72302         unneeded cast.
72303
72304         * modules/mbscspn-tests: New file.
72305         * tests/test-mbscspn.sh: New file.
72306         * tests/test-mbscspn.c: New file.
72307
72308 2007-02-11  Bruno Haible  <bruno@clisp.org>
72309
72310         * modules/mbscasecmp-tests: New file.
72311         * tests/test-mbscasecmp.sh: New file.
72312         * tests/test-mbscasecmp.c: New file.
72313
72314 2007-02-11  Bruno Haible  <bruno@clisp.org>
72315
72316         Ensure O(n) worst-case complexity of mbscasestr.
72317         * lib/mbscasestr.c: Include stdbool.h.
72318         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72319         functions.
72320         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
72321         the bookkeeping indicates that it's worth it.
72322         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
72323
72324         * modules/mbscasestr-tests: New file.
72325         * tests/test-mbscasestr1.c: New file.
72326         * tests/test-mbscasestr2.sh: New file.
72327         * tests/test-mbscasestr2.c: New file.
72328         * tests/test-mbscasestr3.sh: New file.
72329         * tests/test-mbscasestr3.c: New file.
72330         * tests/test-mbscasestr4.sh: New file.
72331         * tests/test-mbscasestr4.c: New file.
72332         * m4/locale-tr.m4: New file.
72333
72334 2007-02-11  Bruno Haible  <bruno@clisp.org>
72335
72336         Ensure O(n) worst-case complexity of mbsstr.
72337         * lib/mbsstr.c: Include stdbool.h.
72338         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72339         functions.
72340         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
72341         bookkeeping indicates that it's worth it.
72342         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
72343
72344         * modules/mbsstr-tests: New file.
72345         * tests/test-mbsstr1.c: New file.
72346         * tests/test-mbsstr2.sh: New file.
72347         * tests/test-mbsstr2.c: New file.
72348         * tests/test-mbsstr3.sh: New file.
72349         * tests/test-mbsstr3.c: New file.
72350         * m4/locale-fr.m4: New file.
72351
72352 2007-02-11  Bruno Haible  <bruno@clisp.org>
72353
72354         * lib/mbsrchr.c (mbsrchr): Fix bug.
72355
72356         * modules/mbsrchr-tests: New file.
72357         * tests/test-mbsrchr.sh: New file.
72358         * tests/test-mbsrchr.c: New file.
72359
72360 2007-02-11  Bruno Haible  <bruno@clisp.org>
72361
72362         * lib/mbschr.c (mbschr): Fix bug.
72363
72364         * modules/mbschr-tests: New file.
72365         * tests/test-mbschr.sh: New file.
72366         * tests/test-mbschr.c: New file.
72367         * m4/locale-zh.m4: New file.
72368
72369 2007-02-11  Bruno Haible  <bruno@clisp.org>
72370
72371         Support for copying multibyte string iterators.
72372         * lib/mbiter.h: Include <string.h>.
72373         (mbiter_multi_copy): New function.
72374         (mbi_copy): New macro.
72375         * lib/mbuiter.h: Include <string.h>.
72376         (mbuiter_multi_copy): New function.
72377         (mbui_copy): New macro.
72378
72379 2007-02-11  Bruno Haible  <bruno@clisp.org>
72380
72381         New module mbslen.
72382         * modules/mbslen: New file.
72383         * lib/mbslen.c: New file.
72384         * lib/string_.h (mbslen): New declaration.
72385         * m4/mbslen.m4: New file.
72386         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72387         GNULIB_MBSLEN.
72388         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
72389         * MODULES.html.sh (Internationalization functions): Add mbslen.
72390
72391 2007-02-11  Bruno Haible  <bruno@clisp.org>
72392
72393         Ensure O(n) worst-case complexity of strcasestr substitute.
72394         * lib/strcasestr.c: Include stdbool.h.
72395         (knuth_morris_pratt): New function.
72396         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72397         bookkeeping indicates that it's worth it.
72398         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
72399
72400         * modules/strcasestr-tests: New file.
72401         * tests/test-strcasestr.c: New file.
72402
72403 2007-02-11  Bruno Haible  <bruno@clisp.org>
72404
72405         Ensure O(n) worst-case complexity of c_strcasestr.
72406         * lib/c-strcasestr.c: Include stdbool.h, string.h.
72407         (knuth_morris_pratt): New function.
72408         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
72409         the bookkeeping indicates that it's worth it.
72410         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
72411
72412         * modules/c-strcasestr-tests: New file.
72413         * tests/test-c-strcasestr.c: New file.
72414
72415 2007-02-11  Bruno Haible  <bruno@clisp.org>
72416
72417         Ensure O(n) worst-case complexity of c_strstr.
72418         * lib/c-strstr.c: Include stdbool.h, string.h.
72419         (knuth_morris_pratt): New function.
72420         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72421         bookkeeping indicates that it's worth it.
72422         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
72423
72424         * lib/c-strstr.c: Complete rewrite for maintainability.
72425
72426         * modules/c-strstr-tests: New file.
72427         * tests/test-c-strstr.c: New file.
72428
72429 2007-02-11  Bruno Haible  <bruno@clisp.org>
72430
72431         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
72432         5.2.1 and earlier, whereby \055 was treated just like the range
72433         delimiter '-'.
72434         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
72435
72436 2007-02-08  Bruno Haible  <bruno@clisp.org>
72437
72438         * modules/regex (Depends-on): Add stdbool.
72439         Reported by Dalibor Topic <robilad@kaffe.org>.
72440
72441 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72442
72443         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
72444         Prefer returning from main to exiting from it.
72445         Remove unnecessary parens after sizeof.
72446
72447 2007-02-05  Bruno Haible  <bruno@clisp.org>
72448
72449         New module mbssep.
72450         * modules/mbssep: New file.
72451         * lib/mbssep.c: New file.
72452         * lib/string_.h (strsep): Add a conditional link warning.
72453         (mbssep): New declaration.
72454         * m4/mbssep.m4: New file.
72455         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72456         GNULIB_MBSSEP.
72457         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
72458         * MODULES.html.sh (Internationalization functions): Add mbssep.
72459
72460 2007-02-05  Bruno Haible  <bruno@clisp.org>
72461
72462         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
72463         Optimize search in case of 1 delimiter.
72464
72465 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72466
72467         * lib/acl.h: Include sys/types.h before sys/acl.h.
72468
72469 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72470
72471         Merge upstream fix for glibc bugzilla #3957:
72472
72473         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
72474
72475         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
72476         bit for RE_HAT_LISTS_NOT_NEWLINE.
72477         (build_charclass_op): Remove bogus comment.
72478
72479 2007-02-05  Simon Josefsson  <simon@josefsson.org>
72480
72481         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
72482
72483 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72484
72485         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
72486         * lib/memmem.c [!defined _LIBC]: Include config.h.
72487
72488 2007-02-04  Bruno Haible  <bruno@clisp.org>
72489
72490         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
72491         warning message.
72492
72493 2007-02-04  Bruno Haible  <bruno@clisp.org>
72494
72495         New module mbstok_r.
72496         * modules/mbstok_r: New file.
72497         * lib/mbstok_r.c: New file.
72498         * lib/string_.h (strtok_r): Change argument names to match the
72499         comments. Add a conditional link warning.
72500         (mbstok_r): New declaration.
72501         * m4/mbstok_r.m4: New file.
72502         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72503         GNULIB_MBSTOK_R.
72504         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
72505         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
72506
72507 2007-02-04  Bruno Haible  <bruno@clisp.org>
72508
72509         New module mbsspn.
72510         * modules/mbsspn: New file.
72511         * lib/mbsspn.c: New file.
72512         * lib/string_.h (strspn): Add a conditional link warning.
72513         (mbsspn): New declaration.
72514         * m4/mbsspn.m4: New file.
72515         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72516         GNULIB_MBSSPN.
72517         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
72518         * MODULES.html.sh (Internationalization functions): Add mbsspn.
72519
72520 2007-02-04  Bruno Haible  <bruno@clisp.org>
72521
72522         New module mbspbrk.
72523         * modules/mbspbrk: New file.
72524         * lib/mbspbrk.c: New file.
72525         * lib/string_.h (strpbrk): Add a conditional link warning.
72526         (mbspbrk): New declaration.
72527         * m4/mbspbrk.m4: New file.
72528         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72529         GNULIB_MBSPBRK.
72530         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
72531         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
72532
72533 2007-02-04  Bruno Haible  <bruno@clisp.org>
72534
72535         New module mbscspn.
72536         * modules/mbscspn: New file.
72537         * lib/mbscspn.c: New file.
72538         * lib/string_.h (strcspn): Add a conditional link warning.
72539         (mbscspn): New declaration.
72540         * m4/mbscspn.m4: New file.
72541         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72542         GNULIB_MBSCSPN.
72543         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
72544         * MODULES.html.sh (Internationalization functions): Add mbscspn.
72545
72546 2007-02-04  Bruno Haible  <bruno@clisp.org>
72547
72548         New module mbscasestr, reduced goal of strcasestr.
72549         * modules/mbscasestr: New file.
72550         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
72551         (mbscasestr): Renamed from strcasestr.
72552         * lib/strcasestr.c: Don't include mbuiter.h.
72553         (strcasestr): Remove support for multibyte locales.
72554         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
72555         Change the conditional link warning.
72556         (mbscasestr): New declaration.
72557         * m4/mbscasestr.m4: New file.
72558         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
72559         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
72560         REPLACE_STRCASESTR.
72561         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
72562         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72563         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72564         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
72565         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
72566         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72567         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
72568         (Depends-on): Remove mbuiter.
72569         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
72570
72571 2007-02-04  Bruno Haible  <bruno@clisp.org>
72572
72573         Simplify handling of strncasecmp.
72574         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
72575         the conditional link warning.
72576         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72577         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
72578         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
72579         * modules/strcase (configure.ac): Don't invoke
72580         gl_STRING_MODULE_INDICATOR.
72581         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
72582
72583 2007-02-04  Bruno Haible  <bruno@clisp.org>
72584
72585         New module mbscasecmp, reduced goal of strcasecmp.
72586         * modules/mbscasecmp: New file.
72587         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
72588         (mbscasecmp): Renamed from strcasecmp.
72589         * lib/strcasecmp.c: Don't include mbuiter.h.
72590         (strcasecmp): Remove support for multibyte locales.
72591         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
72592         Change the conditional link warning.
72593         (mbscasecmp): New declaration.
72594         * m4/mbscasecmp.m4: New file.
72595         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
72596         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
72597         REPLACE_STRCASECMP.
72598         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
72599         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72600         GNULIB_MBSCASECMP.
72601         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
72602         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
72603         * modules/strcase (Files): Remove m4/mbrtowc.m4.
72604         (Depends-on): Remove mbuiter.
72605         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
72606
72607 2007-02-04  Bruno Haible  <bruno@clisp.org>
72608
72609         New module mbsstr. Remove module strstr.
72610         * modules/mbsstr: New file.
72611         * modules/strstr: Remove file.
72612         * lib/mbsstr.c: Renamed from lib/strstr.c.
72613         (mbsstr): Renamed from strstr.
72614         * lib/string_.h (strstr): Remove declaration. Change the conditional
72615         link warning.
72616         (mbsstr): New declaration.
72617         * m4/mbsstr.m4: New file.
72618         * m4/strstr.m4: Remove file.
72619         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
72620         REPLACE_STRSTR.
72621         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
72622         Don't initialize GNULIB_STRSTR.
72623         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
72624         substitute GNULIB_STRSTR and REPLACE_STRSTR.
72625         * MODULES.html.sh (Internationalization functions): Add mbsstr.
72626         (Support for systems lacking ANSI C 89): Remove strstr.
72627
72628 2007-02-04  Bruno Haible  <bruno@clisp.org>
72629
72630         New module mbsrchr.
72631         * modules/mbsrchr: New file.
72632         * lib/mbsrchr.c: New file.
72633         * lib/string_.h (strrchr): Add a conditional link warning.
72634         (mbsrchr): New declaration.
72635         * m4/mbsrchr.m4: New file.
72636         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72637         GNULIB_MBSRCHR.
72638         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
72639         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
72640
72641 2007-02-04  Bruno Haible  <bruno@clisp.org>
72642
72643         New module mbschr.
72644         * modules/mbschr: New file.
72645         * lib/mbschr.c: New file.
72646         * lib/string_.h (strchr): Add a conditional link warning.
72647         (mbschr): New declaration.
72648         * m4/mbschr.m4: New file.
72649         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72650         GNULIB_MBSCHR.
72651         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
72652         * MODULES.html.sh (Internationalization functions): Add mbschr.
72653
72654 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72655
72656         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
72657
72658         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
72659
72660 2007-02-04  Bruno Haible  <bruno@clisp.org>
72661
72662         New module description section 'configure.ac-early'.
72663         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
72664         (func_get_autoconf_early_snippet): New function.
72665         (func_import, func_create_testdir): Use it. Remove special cases for
72666         modules 'extensions' and 'lock'.
72667         * modules/extensions (configure.ac-early): Require
72668         gl_USE_SYSTEM_EXTENSIONS.
72669         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
72670
72671 2007-02-04  Bruno Haible  <bruno@clisp.org>
72672
72673         Make use of gcj-4.3's -fsource and -ftarget option.
72674         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
72675         and if so try the options -fsource and -ftarget.
72676         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
72677         source_version, ftarget_option, target_version arguments.
72678         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
72679         (is_envjavac_oldgcj_14_14_usable): Renamed from
72680         is_envjavac_gcj_14_14_usable.
72681         (is_envjavac_oldgcj_14_13_usable): Renamed from
72682         is_envjavac_gcj_14_13_usable.
72683         (is_gcj_present): Update.
72684         (is_gcj_43, is_gcj43_usable): New functions.
72685         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
72686         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
72687         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
72688         try the options -fsource and -ftarget.
72689
72690 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72691
72692         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
72693         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
72694         larger value.
72695
72696 2007-02-03  Jim Meyering  <jim@meyering.net>
72697
72698         Give tools a better chance to allocate space for very large buffers.
72699         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
72700
72701         Make pwd and readlink work also when run with an unreadable parent dir
72702         on systems with openat support.
72703         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
72704         provided getcwd function, even when we have openat support.
72705         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
72706
72707 2007-02-02  Bruno Haible  <bruno@clisp.org>
72708
72709         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72710         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
72711         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
72712         portability problems if one of these functions is only used on specific
72713         platforms.
72714         Reported by Paul Eggert.
72715
72716 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
72717
72718         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
72719         is causing more trouble than it's curing.
72720         * lib/regex_internal.h (__mempcpy): Remove.
72721         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
72722         (and make the code a tad smaller to boot).
72723         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
72724
72725 2007-02-02  Jim Meyering  <jim@meyering.net>
72726
72727         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
72728         section, not in the Makefile.am: one.
72729
72730 2007-02-02  Eric Blake  <ebb9@byu.net>
72731
72732         * lib/strchrnul.c: Always include config.h first.
72733
72734         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
72735         gnulib strstr is not necessary here.
72736
72737 2007-02-02  Simon Josefsson  <simon@josefsson.org>
72738
72739         * m4/socklen.m4: Fix typo.
72740
72741 2007-02-02  Eric Blake  <ebb9@byu.net>
72742
72743         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
72744         * modules/netinet_in (Makefile.am): Likewise.
72745
72746 2007-02-01  Bruno Haible  <bruno@clisp.org>
72747
72748         * lib/string_.h (GL_LINK_WARNING): New macro.
72749         (strcasecmp, strstr, strcasestr): If provided by the system,
72750         conditionally define as a macro that leads to a warning instead of to
72751         an error.
72752         (strncasecmp): Conditionally define as a macro that leads to a warning.
72753
72754 2007-02-01  Karl Berry  <karl@gnu.org>
72755
72756         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
72757
72758 2007-02-01  Bruno Haible  <bruno@clisp.org>
72759
72760         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
72761         renamings.
72762
72763 2007-02-01  Eric Blake  <ebb9@byu.net>
72764
72765         * modules/regex (Depends-on): Revert dependence on mempcpy.
72766         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
72767         module's definition of mempcpy.
72768         Reported by Paul Eggert.
72769
72770 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72771
72772         * lib/string_.h: If the gnulib module XYZ is not present, undefine
72773         the symbol XYZ before redefining it.  This fixes a problem with
72774         programs that don't use XYZ, when compiled on systems that define
72775         XYZ to something else.
72776
72777 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
72778
72779         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
72780         occurs when "mkdir -m foo" creates a setgid directory that is (1)
72781         writeable to group or other and (2) is intended to have a special
72782         mode bit that is set or cleared.  In such a case, the directory
72783         should be neither group- nor other-writeable until the special
72784         mode bits are right.
72785
72786 2007-01-31  Eric Blake  <ebb9@byu.net>
72787
72788         * modules/mountlist (Depends-on): Add strstr.
72789
72790         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
72791         bug.
72792         * modules/string (Makefile.am): Remove redundant replacement.
72793         * modules/regex (Depends-on): Add mempcpy.
72794
72795 2007-01-31  Bruno Haible  <bruno@clisp.org>
72796
72797         New module description field 'Link'.
72798         * gnulib-tool (func_usage): Document --extract-link-directive.
72799         (sed_extract_prog): Recognize 'Link' directive.
72800         (func_get_link_directive): New function.
72801         (func_import): Show summary of link directives.
72802         Handle --extract-link-directive option.
72803         * modules/acl (Link): New section.
72804         * modules/clock-time (Link): New section.
72805         * modules/euidaccess (Link): New section.
72806         * modules/gettext (Link): New section.
72807         * modules/iconv (Link): New section.
72808         * modules/lock (Link): New section.
72809         * modules/nanosleep (Link): New section.
72810         * modules/readline (Link): New section.
72811
72812 2007-01-27  Bruno Haible  <bruno@clisp.org>
72813
72814         Enforce the use of gnulib modules for unportable <string.h> functions.
72815         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
72816         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
72817         (gl_HEADER_STRING_H_BODY): Require it.
72818         * lib/string_.h: If the gnulib module XYZ is not present, redefine
72819         the symbol XYZ to one that gives a link error.
72820         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
72821         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
72822         * modules/mempcpy (configure.ac): Likewise.
72823         * modules/memrchr (configure.ac): Likewise.
72824         * modules/stpcpy (configure.ac): Likewise.
72825         * modules/stpncpy (configure.ac): Likewise.
72826         * modules/strcase (configure.ac): Likewise.
72827         * modules/strcasestr (configure.ac): Likewise.
72828         * modules/strchrnul (configure.ac): Likewise.
72829         * modules/strdup (configure.ac): Likewise.
72830         * modules/strndup (configure.ac): Likewise.
72831         * modules/strnlen (configure.ac): Likewise.
72832         * modules/strpbrk (configure.ac): Likewise.
72833         * modules/strsep (configure.ac): Likewise.
72834         * modules/strstr (configure.ac): Likewise.
72835         * modules/strtok_r (configure.ac): Likewise.
72836
72837 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
72838
72839         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
72840
72841 2007-01-30  Jim Meyering  <jim@meyering.net>
72842
72843         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
72844
72845 2007-01-29  Bruno Haible  <bruno@clisp.org>
72846
72847         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
72848         * lib/execute.c: Likewise.
72849         * lib/pipe.c: Likewise.
72850         * lib/printf-args.h: Likewise.
72851         * lib/printf-args.c: Likewise.
72852         * lib/printf-parse.c: Likewise.
72853         * lib/vasnprintf.c: Likewise.
72854
72855 2007-01-29  Eric Blake  <ebb9@byu.net>
72856
72857         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
72858         declaration.
72859
72860 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
72861
72862         * lib/strptime.h (strptime): Use 'restrict' for args where
72863         POSIX requires this.
72864         * lib/strptime.c (strptime): Likewise.
72865         Change license notice from LGPL to GPL, since gnulib-tool will
72866         change this as needed.
72867         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
72868         defined.
72869         Include "strptime.h" first, to check interface.
72870         Do not #undef _LIBC and _NL_CURRENT.
72871         Do not include <stdlib.h>; no longer needed.
72872         Include "time_r.h" and declare ptime_locale_status
72873         only if _LIBC is not defined.
72874         (__P): Remove unused macro.
72875         (match_string): Bring back glibc version, but use it only if _LIBC
72876         is defined.
72877         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
72878         Remove unnecessary assertion and abort() call.
72879         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
72880         * m4/strptime.m4: Fix serial number comment.
72881         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
72882         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
72883         (Depends-on): Add time_r.
72884
72885 2007-01-29  Bruno Haible  <bruno@clisp.org>
72886
72887         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72888         strptime.
72889         * modules/strptime (Depends-on): Add stdbool.
72890         * lib/strptime.h: Include <time.h> always. Add comments.
72891
72892 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72893
72894         * modules/strptime: New file.
72895         * lib/strptime.h: New file.
72896         * lib/strptime.c: New file.
72897         * m4/strptime.m4: New file.
72898
72899 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72900
72901         * MODULES.html.sh: New module mpsort.
72902         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
72903
72904         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
72905         a circularity problem with HP-UX ia64 reported by Bob Proulx in
72906         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
72907         All uses changed.
72908         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
72909         All uses changed.
72910         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
72911         to _Restrict_.
72912         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
72913         the parameter matches the prototype.
72914
72915 2007-01-28  Jim Meyering  <jim@meyering.net>
72916
72917         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
72918         sys/time.h here, reverting that part of the previous patch:
72919         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
72920
72921 2007-01-28  Bruno Haible  <bruno@clisp.org>
72922
72923         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
72924         value of $(SYS_TIME_H).
72925         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
72926         remove it conditionally, too. [added by Jim Meyering]
72927         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
72928         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
72929         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
72930         GETTIMEOFDAY_REPLACEMENT to 1.
72931
72932 2007-01-28  Bruno Haible  <bruno@clisp.org>
72933
72934         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
72935         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
72936         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
72937         Set UNISTD_H instead of UNISTD_H2.
72938         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
72939
72940 2007-01-28  Bruno Haible  <bruno@clisp.org>
72941
72942         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
72943         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
72944
72945 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72946
72947         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
72948         (func_create_testdir): Ensure C locale for `grep' and `tr'
72949         character ranges.
72950         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
72951         ACLOCAL_AMFLAGS parsing state machine.
72952
72953 2007-01-27  Bruno Haible  <bruno@clisp.org>
72954
72955         * modules/unistr/base: Update.
72956
72957 2007-01-27  Bruno Haible  <bruno@clisp.org>
72958
72959         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
72960         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
72961         * modules/unistr/u32-mbtouc-unsafe: Renamed from
72962         modules/unistr/u32-mbtouc.
72963         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
72964         * lib/unistr.h: Update.
72965         * lib/linebreak.c: Update.
72966         * modules/unistr/u32-mbtouc: Renamed from
72967         modules/unistr/u32-mbtouc-safe.
72968         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
72969         * lib/unistr.h: Update.
72970         * lib/unistr/u32-to-u8.c: Update.
72971         * lib/unistr/u32-to-u16.c: Update.
72972
72973 2007-01-27  Bruno Haible  <bruno@clisp.org>
72974
72975         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
72976         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
72977         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
72978         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
72979         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
72980         * modules/unistr/u16-mbtouc-unsafe: Renamed from
72981         modules/unistr/u16-mbtouc.
72982         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
72983         * lib/unistr.h: Update.
72984         * lib/linebreak.c: Update.
72985         * modules/linebreak: Update.
72986         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
72987         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
72988         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
72989         * modules/unistr/u16-mbtouc: Renamed from
72990         modules/unistr/u16-mbtouc-safe.
72991         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
72992         * lib/unistr.h: Update.
72993         * lib/unistr/u16-to-u8.c: Update.
72994         * modules/unistr/u16-to-u8: Update.
72995         * lib/unistr/u16-to-u32.c: Update.
72996         * modules/unistr/u16-to-u32: Update.
72997
72998 2007-01-27  Bruno Haible  <bruno@clisp.org>
72999
73000         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
73001         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
73002         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
73003         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
73004         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
73005         * modules/unistr/u8-mbtouc-unsafe: Renamed from
73006         modules/unistr/u8-mbtouc.
73007         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
73008         * lib/unistr.h: Update.
73009         * lib/striconveh.c: Update.
73010         * modules/striconveh: Update.
73011         * lib/linebreak.c: Update.
73012         * modules/linebreak: Update.
73013         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
73014         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
73015         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
73016         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
73017         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
73018         * lib/unistr.h: Update.
73019         * lib/striconveh.c: Update.
73020         * modules/striconveh: Update.
73021         * lib/unistr/u8-to-u16.c: Update.
73022         * modules/unistr/u8-to-u16: Update.
73023         * lib/unistr/u8-to-u32.c: Update.
73024         * modules/unistr/u8-to-u32: Update.
73025
73026 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73027
73028         Sync from Libtool.
73029         * lib/argz.c: Do not include strings.h nor memory.h, include
73030         string.h unconditionally.  Patch by Simon Josefsson.
73031
73032 2007-01-27  Bruno Haible  <bruno@clisp.org>
73033
73034         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
73035         from gl_HEADER_STRING_H_BODY.
73036         (gl_HEADER_STRING_H_BODY): Require it.
73037         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
73038         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
73039         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
73040         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
73041         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
73042         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
73043         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
73044         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
73045         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
73046         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
73047         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
73048         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
73049         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
73050         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
73051         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
73052
73053 2007-01-27  Bruno Haible  <bruno@clisp.org>
73054
73055         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
73056         check_PROGRAMS into noinst_PROGRAMS.
73057         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
73058         check_PROGRAMS in this case.
73059         (func_import): Set for_test to false.
73060         (func_create_testdir): Set for_test to true.
73061
73062 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73063             Bruno Haible  <bruno@clisp.org>
73064
73065         * modules/strcasestr (Files): Remove lib/strcasestr.h.
73066         (Depends-on): Add string.
73067         (Includes): Use <string.h> instead of strcasestr.h.
73068         * modules/string (Makefile.am): Also substitute the value of
73069         REPLACE_STRCASESTR.
73070         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
73071         assume strcasestr is declared in <string.h> not <strings.h>. Also
73072         set REPLACE_STRCASESTR.
73073         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
73074         REPLACE_STRCASESTR.
73075         * lib/strcasestr.h: Remove file.
73076         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
73077         * lib/string_.h (strcasestr): New declaration.
73078
73079 2007-01-27  Bruno Haible  <bruno@clisp.org>
73080
73081         * lib/string_.h: Use 'extern'.
73082
73083 2007-01-27  Jim Meyering  <jim@meyering.net>
73084
73085         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
73086         of set-but-not-used local, "q".
73087
73088         * lib/mempcpy.c: Include <config.h> before <string.h>.
73089         This fixes a compilation error on HP-UX, due to the system's
73090         "restrict"-using mempcpy prototype.
73091
73092 2007-01-26  Bruno Haible  <bruno@clisp.org>
73093
73094         Small optimization.
73095         * lib/javacomp.c: Include c-strstr.h.
73096          (is_envjavac_gcj): Use c_strstr instead of strstr.
73097         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
73098
73099 2007-01-26  Bruno Haible  <bruno@clisp.org>
73100
73101         * MODULES.html.sh (Unicode string functions): Add the new modules.
73102
73103         * modules/uniconv/u32-strconv-to-locale: New file.
73104         * lib/uniconv/u32-strconv-to-locale.c: New file.
73105
73106         * modules/uniconv/u16-strconv-to-locale: New file.
73107         * lib/uniconv/u16-strconv-to-locale.c: New file.
73108
73109         * modules/uniconv/u8-strconv-to-locale: New file.
73110         * lib/uniconv/u8-strconv-to-locale.c: New file.
73111
73112         * modules/uniconv/u32-strconv-from-locale: New file.
73113         * lib/uniconv/u32-strconv-from-locale.c: New file.
73114
73115         * modules/uniconv/u16-strconv-from-locale: New file.
73116         * lib/uniconv/u16-strconv-from-locale.c: New file.
73117
73118         * modules/uniconv/u8-strconv-from-locale: New file.
73119         * lib/uniconv/u8-strconv-from-locale.c: New file.
73120
73121         * modules/uniconv/u32-strconv-to-enc: New file.
73122         * lib/uniconv/u32-strconv-to-enc.c: New file.
73123         * modules/uniconv/u32-strconv-to-enc-tests: New file.
73124         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
73125
73126         * modules/uniconv/u16-strconv-to-enc: New file.
73127         * lib/uniconv/u16-strconv-to-enc.c: New file.
73128         * lib/uniconv/u-strconv-to-enc.h: New file.
73129         * modules/uniconv/u16-strconv-to-enc-tests: New file.
73130         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
73131
73132         * modules/uniconv/u8-strconv-to-enc: New file.
73133         * lib/uniconv/u8-strconv-to-enc.c: New file.
73134         * modules/uniconv/u8-strconv-to-enc-tests: New file.
73135         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
73136
73137         * modules/uniconv/u32-strconv-from-enc: New file.
73138         * lib/uniconv/u32-strconv-from-enc.c: New file.
73139         * modules/uniconv/u32-strconv-from-enc-tests: New file.
73140         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
73141
73142         * modules/uniconv/u16-strconv-from-enc: New file.
73143         * lib/uniconv/u16-strconv-from-enc.c: New file.
73144         * modules/uniconv/u16-strconv-from-enc-tests: New file.
73145         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
73146
73147         * modules/uniconv/u8-strconv-from-enc: New file.
73148         * lib/uniconv/u8-strconv-from-enc.c: New file.
73149         * lib/uniconv/u-strconv-from-enc.h: New file.
73150         * modules/uniconv/u8-strconv-from-enc-tests: New file.
73151         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
73152
73153         * modules/uniconv/u32-conv-from-enc: New file.
73154         * lib/uniconv/u32-conv-from-enc.c: New file.
73155         * modules/uniconv/u32-conv-from-enc-tests: New file.
73156         * tests/uniconv/test-u32-conv-from-enc.c: New file.
73157
73158         * modules/uniconv/u16-conv-from-enc: New file.
73159         * lib/uniconv/u16-conv-from-enc.c: New file.
73160         * lib/uniconv/u-conv-from-enc.h: New file.
73161         * modules/uniconv/u16-conv-from-enc-tests: New file.
73162         * tests/uniconv/test-u16-conv-from-enc.c: New file.
73163
73164         * modules/uniconv/u8-conv-from-enc: New file.
73165         * lib/uniconv/u8-conv-from-enc.c: New file.
73166         * modules/uniconv/u8-conv-from-enc-tests: New file.
73167         * tests/uniconv/test-u8-conv-from-enc.c: New file.
73168
73169         * modules/uniconv/base: New file.
73170         * lib/uniconv.h: New file.
73171
73172 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73173
73174         * doc/gnulib-tool.texi (Initial import): Update to match current
73175         behavior with strdup module.
73176         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
73177         * lib/memmem.h: Remove; all uses removed.  This is now done
73178         by <string.h>.
73179         * lib/mempcpy.h: Likewise.
73180         * lib/memrchr.h: Likewise.
73181         * lib/stpcpy.h: Likewise.
73182         * lib/stpncpy.h: Likewise.
73183         * lib/strcase.h: Likewise.
73184         * lib/strchrnul.h: Likewise.
73185         * lib/strdup.h: Likewise.
73186         * lib/strndup.h: Likewise.
73187         * lib/strnlen.h: Likewise.
73188         * lib/strpbrk.h: Likewise.
73189         * lib/strsep.h: Likewise.
73190         * lib/strstr.h: Likewise.
73191         * lib/strtok_r.h: Likewise.
73192         * lib/string_.h: New file.
73193         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
73194         Rely on <string.h> instead.
73195         * lib/canon-host.c: Likewise.
73196         * lib/chdir-long.c: Likewise.
73197         * lib/concatpath.c: Likewise.
73198         * lib/exclude.c: Likewise.
73199         * lib/fchdir.c: Likewise.
73200         * lib/getaddrinfo.c: Likewise.
73201         * lib/getcwd.c: Likewise.
73202         * lib/getsubopt.c: Likewise.
73203         * lib/glob.c: Likewise.
73204         * lib/hard-locale.c: Likewise.
73205         * lib/iconvme.c: Likewise.
73206         * lib/javacomp.c: Likewise.
73207         * lib/mempcpy.c: Likewise.
73208         * lib/memrchr.c: Likewise.
73209         * lib/regex_internal.h: Likewise.
73210         * lib/stpncpy.c: Likewise.
73211         * lib/strcasecmp.c: Likewise.
73212         * lib/strchrnul.c: Likewise.
73213         * lib/strdup.c: Likewise.
73214         * lib/striconv.c: Likewise.
73215         * lib/striconveh.c: Likewise.
73216         * lib/striconveha.c: Likewise.
73217         * lib/strncasecmp.c: Likewise.
73218         * lib/strndup.c: Likewise.
73219         * lib/strnlen.c: Likewise.
73220         * lib/strsep.c: Likewise.
73221         * lib/strstr.c: Likewise.
73222         * lib/strtok_r.c: Likewise.
73223         * lib/userspec.c: Likewise.
73224         * lib/w32spawn.h: Likewise.
73225         * lib/xstrndup.c: Likewise.
73226         * lib/mountlist.c (strstr): Remove decl.
73227         * m4/string_h.m4: New file.
73228         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
73229         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
73230         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
73231         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
73232         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
73233         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
73234         Set REPLACE_STRCASECMP if necessary.
73235         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
73236         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
73237         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
73238         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
73239         HAVE_DECL_STRDUP if necessary.
73240         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
73241         since gl_FUNC_STRNDUP does that now.
73242         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
73243         Check for decl here...
73244         (gl_PREREQ_STRNLEN): ... not here.
73245         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
73246         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
73247         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
73248         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
73249         necessary.
73250         * modules/string: New file.
73251         * modules/memmem (Files): Remove special-purpose include file.
73252         (Depends-on): Add string.
73253         (Include): Include <string.h>, not the removed file.
73254         * modules/mempcpy: Likewise.
73255         * modules/memrchr: Likewise.
73256         * modules/stpcpy: Likewise.
73257         * modules/stpncpy: Likewise.
73258         * modules/strcase: Likewise.
73259         * modules/strchrnul: Likewise.
73260         * modules/strdup: Likewise.
73261         * modules/strndup: Likewise.
73262         * modules/strnlen: Likewise.
73263         * modules/strpbrk: Likewise.
73264         * modules/strsep: Likewise.
73265         * modules/strstr: Likewise.
73266         * modules/strtok_r: Likewise.
73267         * tests/test-dirname.c: Don't include "strdup.h", since
73268         <string.h> now suffices.
73269         * tests/test-memmem.c: Don't include "memmem.h", since
73270         <string.h> now suffices.
73271
73272 2007-01-25  Bruno Haible  <bruno@clisp.org>
73273
73274         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
73275         *resultp is 0.
73276
73277         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
73278         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
73279         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
73280         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
73281
73282         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
73283         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
73284         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
73285         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
73286         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
73287         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
73288
73289 2007-01-24  Bruno Haible  <bruno@clisp.org>
73290
73291         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
73292         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
73293         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
73294         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
73295         gl_FUNC_FTS_CORE.
73296         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
73297         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
73298         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73299         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
73300         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
73301         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
73302         gl_FUNC_FCHOWNAT.
73303         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
73304         gl_FUNC_STRFTIME.
73305         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
73306         Reported by Ralf Wildenhues.
73307
73308 2007-01-24  Bruno Haible  <bruno@clisp.org>
73309
73310         Drop AC_REQUIRE calls that are redundant with the module dependencies.
73311         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
73312         gl_GETADDRINFO.
73313         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
73314         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
73315         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
73316
73317 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
73318
73319         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
73320         Don't use 'exit'; just return from 'main'.
73321         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
73322
73323         * lib/fnmatch_.h: Readjust white space and comments to match
73324         glibc, to avoid spurious diffs.
73325
73326 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73327
73328         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
73329         2004-12-01 change by Jakub Jelinek, since this code won't compile
73330         if !LIBC.  Problem reported by Bob Proulx.
73331
73332 2007-01-23  Bruno Haible  <bruno@clisp.org>
73333
73334         * lib/striconveh.c: Include c-strcaseeq.h.
73335         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
73336         * modules/striconveh (Depends-on): Add c-strcaseeq.
73337
73338 2007-01-23  Bruno Haible  <bruno@clisp.org>
73339
73340         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
73341
73342         * modules/c-strcaseeq: New file.
73343         * lib/c-strcaseeq.h: New file.
73344
73345         * modules/streq: New file.
73346         * lib/streq.h: New file.
73347
73348 2007-01-23  Bruno Haible  <bruno@clisp.org>
73349
73350         * modules/striconveha-tests: New file.
73351         * tests/test-striconveha.c: New file.
73352
73353         * lib/striconveha.h: Include <stdbool.h>.
73354         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
73355         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
73356         (mem_iconveha_notranslit): Renamed from mem_iconveha.
73357         (mem_iconveha): New function.
73358         (str_iconveha_notranslit): Renamed from str_iconveha.
73359         (str_iconveha): New function.
73360         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
73361         c-strcase.
73362
73363 2007-01-23  Bruno Haible  <bruno@clisp.org>
73364
73365         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
73366         encodings without forgiving before trying any encoding with handler.
73367         (str_iconveha): Try all encodings without forgiving before trying any
73368         encoding with handler.
73369
73370 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73371
73372         Import the following changes from libc.
73373
73374         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73375
73376         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
73377
73378         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73379
73380         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
73381         normal_bracket label.
73382
73383         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
73384
73385         [BZ #361]
73386         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
73387         to normal_bracket after fetching the next character.
73388
73389 2007-01-22  Bruno Haible  <bruno@clisp.org>
73390
73391         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
73392         argument.
73393         * lib/striconveh.c (iconv_carefully_1): New function.
73394         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
73395         argument.
73396         (str_cd_iconveh): Update.
73397         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
73398         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
73399         * tests/test-striconveh.c (MAGIC): New macro.
73400         (new_offsets): New function.
73401         (main): Test call with and without offsets.
73402
73403 2007-01-22  Bruno Haible  <bruno@clisp.org>
73404
73405         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
73406         * modules/sys_select (Makefile.am): Likewise.
73407         * modules/sys_socket (Makefile.am): Likewise.
73408         * modules/sys_time (Makefile.am): Likewise.
73409
73410 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73411
73412         * modules/gettimeofday (License): Change from GPL to LGPL, since
73413         gettimeofday is a library function.
73414
73415 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73416
73417         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
73418
73419 2007-01-21  Bruno Haible  <bruno@clisp.org>
73420
73421         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
73422
73423 2007-01-21  Bruno Haible  <bruno@clisp.org>
73424
73425         * modules/striconveha: New file.
73426         * lib/striconveha.h: New file.
73427         * lib/striconveha.c: New file.
73428         * MODULES.html.sh (Internationalization functions): Add striconveha.
73429         * lib/striconv.c (str_iconv): Optimize the case of an empty input
73430         string.
73431         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
73432
73433 2007-01-21  Bruno Haible  <bruno@clisp.org>
73434
73435         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
73436         * lib/striconveh.c (str_iconveh): Likewise.
73437
73438 2007-01-21  Bruno Haible  <bruno@clisp.org>
73439
73440         * lib/striconveh.h (mem_iconveh): New declaration.
73441         * lib/striconveh.c (mem_iconveh): New function.
73442         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
73443
73444 2007-01-21  Bruno Haible  <bruno@clisp.org>
73445
73446         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
73447
73448         * lib/striconveh.h (mem_cd_iconveh): Change specification.
73449         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
73450         original result buffer.
73451         (str_cd_iconveh): Update.
73452         * tests/test-striconveh.c (main): Update.
73453
73454         * lib/striconv.h (mem_cd_iconv): Change specification.
73455         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
73456         result buffer.
73457         (str_cd_iconv): Update.
73458         * tests/test-striconv.c (main): Update.
73459
73460 2007-01-21  Bruno Haible  <bruno@clisp.org>
73461
73462         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
73463
73464 2007-01-20  Jim Meyering  <jim@meyering.net>
73465
73466         * lib/userspec.c (parse_with_separator): If a user or group string
73467         starts with "+", skip the corresponding name-to-ID look-up, since
73468         such a look-up must fail: user and group names may not include "+".
73469
73470 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
73471
73472         * lib/poll.c: Include sys/time.h and time.h unconditionally,
73473         since we now assume the sys_time module.
73474         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
73475         check for sys/time.h; no longer needed.
73476         * modules/poll (Depends-on): Depend on sys_time.
73477
73478 2007-01-18  Bruno Haible  <bruno@clisp.org>
73479
73480         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
73481         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73482
73483         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
73484         gettimeofday.
73485
73486         * tests/test-gettimeofday.c: Include <time.h>.
73487         (dummy): Remove variable.
73488
73489         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
73490         gl_HEADER_SYS_TIME_H.
73491         (gl_HEADER_SYS_TIME_H): New macro.
73492
73493         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
73494         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73495         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
73496         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
73497         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73498         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
73499         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
73500         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73501         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
73502         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
73503         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73504
73505         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
73506         last change; it caused a compilation error when cross-compiling to
73507         Cygwin.
73508
73509 2007-01-18  Jim Meyering  <jim@meyering.net>
73510
73511         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
73512         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
73513         than the race-prone "test -d sys || mkdir sys".
73514         (configure.ac): Use AC_PROG_MKDIR_P.
73515         * modules/sys_select: Likewise.
73516         * modules/sys_socket: Likewise.
73517         * modules/sys_time: Likewise.
73518
73519 2007-01-18  Eric Blake  <ebb9@byu.net>
73520
73521         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
73522         replace gettimeofday.
73523         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
73524         name, to avoid infinite recursion.
73525
73526 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
73527
73528         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
73529         module sys_time.
73530         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
73531         assume timespec.h defines struct timeval.
73532         * lib/settime.c: Likewise.
73533         * lib/utimens.c: Likewise.
73534         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
73535         since we now assume the gettimeofday module.
73536         * lib/tempname.c (__gen_tempname): Likewise.
73537         * lib/gettimeofday.h: Remove.
73538         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
73539         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
73540         Include <time.h>, for 'time()'.
73541         (localtime_buffer_addr): Also use this workaround if
73542         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
73543         to simplify the uses.  All uses changed.
73544         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
73545         that #undef is inside {}, and 'const' follows type name consistently.
73546         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
73547         (gettimeofday): Do not use the maximum possible value for
73548         tv->tv_usec, since that might break usages other than ls.c.
73549         Instead, we'll leave ls.c alone.  This undoes today's patch
73550         by Bruno.  Add a compile-time warning for 1s-clock resolution;
73551         we've never observed the problem but might as well keep the
73552         canary.
73553         * lib/nanosleep.c: Include timespec.h first, for interface check.
73554         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
73555         now assume the sys_time module.
73556         * lib/tempname.c: Likewise.
73557         * lib/timespec.h: Likewise.
73558         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
73559         needed.
73560         * lib/strftime.c: Likewise.
73561         * lib/timespec.h: Likewise.
73562         * lib/posixtm.c: Include posixtm.h first, for interface check.
73563         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
73564         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
73565         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
73566         * lib/sys_time_.h: New file.
73567         * lib/timespec.h (struct timespec): Use long int, not long.
73568         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73569         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
73570         Remove obsolescent call to AC_HEADER_TIME.
73571         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
73572         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73573         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73574         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
73575         Likewise.
73576         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
73577         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
73578         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
73579         into the sys_time module.  Check for gettimeofday just once.
73580         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
73581         for gettimeofday signature to just check the signature.  Merely
73582         compile it, since linking doesn't test signature.  Improve test for
73583         whether gettimeofday.o is actually needed.
73584         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
73585         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
73586         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
73587         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73588         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
73589         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
73590         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
73591         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
73592         than worrying about sys/time.h.
73593         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73594         Don't bother worrying about TIME_WITH_SYS_TIME.
73595         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
73596         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
73597         * m4/sys_time_h.m4: New file.
73598         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
73599         Don't include sys/time.h.  Return from main rather than exiting.
73600         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
73601         all uses changed.
73602         * modules/gethrxtime (Depends-on): Add sys_time.
73603         * modules/gettime (Depends-on): Likewise.
73604         * modules/gettimeofday (Depends-on): Likewise.
73605         * modules/nanosleep (Depends-on): Likewise.
73606         * modules/settime (Depends-on): Likewise.
73607         * modules/tempname (Depends-on): Likewise.
73608         * modules/utimens (Depends-on): Likewise.
73609         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
73610         (Include): Change back to <sys/time.h>.
73611         (Maintainer): Add self.
73612         * modules/sys_time: New file.
73613         * modules/tempname (Depends-on): Add gettimeofday.
73614         * tests/test-gettimeofday.c: Include <sys/time.h>
73615         rather than gettimeofday.h.
73616
73617 2007-01-17  Bruno Haible  <bruno@clisp.org>
73618
73619         * gnulib-tool (func_get_license): Revert last patch. Instead, let
73620         the license default to GPL.
73621         (func_create_testdir): Don't complain if a module is LGPL and its
73622         tests module depends on GPLed modules.
73623
73624 2007-01-17  Bruno Haible  <bruno@clisp.org>
73625
73626         * lib/gettimeofday.c (gettimeofday): Add code for the case
73627         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
73628         maximum possible value for tv->tv_usec, rather than the minimum one.
73629
73630 2005-10-08  Martin Lambers  <marlam@marlam.de>
73631 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73632 2007-01-16  Bruno Haible  <bruno@clisp.org>
73633
73634         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
73635         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
73636         gl_FUNC_GETTIMEOFDAY.
73637         (Include): Add gettimeofday.h.
73638         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
73639         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
73640         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
73641         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
73642         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
73643         * lib/gettimeofday.h: New file.
73644         * lib/gettimeofday.c: Include <sys/timeb.h>.
73645         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
73646         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73647         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
73648         fall back on time().
73649
73650         * tests/test-gettimeofday.c: New file.
73651         * modules/gettimeofday-tests: New file.
73652
73653 2007-01-16  Eric Blake  <ebb9@byu.net>
73654
73655         * modules/fnmatch (Depends-on): Depend on wchar.
73656         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
73657         * m4/fnmatch.m4: Likewise.
73658         * modules/mbchar (Makefile.am): Assume <wchar.h>.
73659         * m4/mbchar.m4: Likewise.
73660         * modules/mbswidth (Depends-on): Depend on wchar.
73661         * lib/mbswidth.c: Assume <wchar.h>.
73662         * m4/mbswidth.m4: Likewise.
73663         * modules/quotearg (Depends-on): Depend on wchar.
73664         * lib/quotearg.c: Assume <wchar.h>.
73665         * m4/quotearg.m4: Likewise.
73666         * modules/regex (Depends-on): Depend on wchar.
73667         * lib/regex_internal.h: Assume <wchar.h>.
73668         * m4/regex.m4: Likewise.
73669         * modules/stdint (Depends-on): Depend on wchar.
73670         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
73671         * m4/stdint.m4: Likewise.
73672         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
73673         * modules/strftime (Depends-on): Depend on wchar.
73674         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
73675         * modules/strtol (Depends-on): Depend on wchar.
73676         * lib/strtol.c: Assume <wchar.h>.
73677         * modules/wcwidth (Depends-on): Depend on wchar.
73678         * lib/wcwidth.h: Assume <wchar.h>.
73679         * m4/wcwidth.m4: Likewise.
73680
73681 2007-01-16  Bruno Haible  <bruno@clisp.org>
73682
73683         * modules/csharpexec-script: New, created from...
73684         * modules/csharpexec: ... this.
73685
73686 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
73687
73688         * modules/javaexec-script: New, created from...
73689         * modules/javaexec: ... this.
73690
73691 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73692
73693         * modules/poll (Dependencies): Add sys_select.
73694
73695 2007-01-15  Jim Meyering  <jim@meyering.net>
73696
73697         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
73698         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
73699         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
73700         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
73701
73702 2007-01-15  Bruno Haible  <bruno@clisp.org>
73703
73704         * modules/striconveh: New file.
73705         * lib/striconveh.h: New file.
73706         * lib/striconveh.c: New file.
73707         * MODULES.html.sh (Internationalization functions): Add striconveh.
73708
73709         * modules/striconveh-tests: New file.
73710         * tests/test-striconveh.c: New file.
73711
73712 2007-01-15  Bruno Haible  <bruno@clisp.org>
73713
73714         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
73715         not from GNU libiconv or GNU libc.
73716
73717 2007-01-15  Bruno Haible  <bruno@clisp.org>
73718
73719         * doc/gnulib-intro.texi (Copyright): Explain the different license
73720         terms for module descriptions, autoconf macros, tests, documentation.
73721
73722 2007-01-14  Bruno Haible  <bruno@clisp.org>
73723
73724         * modules/striconv-tests: New file.
73725         * tests/test-striconv.c: New file.
73726
73727 2007-01-14  Bruno Haible  <bruno@clisp.org>
73728
73729         * modules/iconv-tests: New file.
73730         * tests/test-iconv.c: New file.
73731
73732 2007-01-14  Bruno Haible  <bruno@clisp.org>
73733
73734         * gnulib-tool (func_get_license): For test modules, use the license of
73735         the main module.
73736
73737 2007-01-14  Bruno Haible  <bruno@clisp.org>
73738
73739         * modules/iconv (Include): Clarify that <iconv.h> can only be included
73740         if iconv is found to exist.
73741
73742 2007-01-14  Bruno Haible  <bruno@clisp.org>
73743
73744         * modules/c-ctype-tests: New file.
73745         * tests/test-c-ctype.c: New file.
73746
73747 2007-01-14  Bruno Haible  <bruno@clisp.org>
73748
73749         * modules/binary-io-tests: New file.
73750         * tests/test-binary-io.sh: New file.
73751         * tests/test-binary-io.c: New file.
73752
73753 2007-01-14  Bruno Haible  <bruno@clisp.org>
73754
73755         * modules/array-oset-tests: New file.
73756         * tests/test-array_oset.c: New file.
73757
73758 2007-01-14  Bruno Haible  <bruno@clisp.org>
73759
73760         * modules/array-list-tests: New file.
73761         * tests/test-array_list.c: New file.
73762
73763 2007-01-14  Bruno Haible  <bruno@clisp.org>
73764
73765         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
73766         and make.
73767         Reported by Simon Josefsson in
73768         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
73769
73770 2007-01-14  Bruno Haible  <bruno@clisp.org>
73771
73772         * modules/allocsa-tests: New file.
73773         * tests/test-allocsa.c: New file.
73774
73775 2007-01-14  Bruno Haible  <bruno@clisp.org>
73776
73777         * modules/fchdir (Depends-on): Add absolute-header.
73778         * modules/unistd (Depends-on): Likewise.
73779
73780 2006-12-30  Bruno Haible  <bruno@clisp.org>
73781
73782         * modules/fchdir: New file.
73783         * modules/unistd (Files): Add lib/unistd_.h.
73784         (Makefile.am): Generate unistd.h from unistd_.h.
73785         * lib/fchdir.c: New file.
73786         * lib/dirent_.h: New file.
73787         * lib/unistd_.h: New file.
73788         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
73789         * m4/fchdir.m4: New file.
73790         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
73791         (gl_HEADER_UNISTD): Invoke it.
73792         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
73793         function.
73794         * lib/backupfile.c (opendir, closedir): Undefine.
73795         * lib/chown.c (open, close): Undefine.
73796         * lib/clean-temp.c (open, close): Undefine.
73797         * lib/copy-file.c (open, close): Undefine.
73798         * lib/execute.c (open, close): Undefine.
73799         * lib/fsusage.c (open, close): Undefine.
73800         * lib/gc-gnulib.c (open, close): Undefine.
73801         * lib/getcwd.c (opendir, closedir): Undefine.
73802         * lib/glob.c (opendir, closedir): Undefine.
73803         * lib/javacomp.c (open, close): Undefine.
73804         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
73805         * lib/openat-proc.c (open, close): Undefine.
73806         * lib/pagealign_alloc.c (open, close): Undefine.
73807         * lib/pipe.c (open, close): Undefine.
73808         * lib/progreloc.c (open, close): Undefine.
73809         * lib/savedir.c (opendir, closedir): Undefine.
73810         * lib/utime.c (open, close): Undefine.
73811         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
73812
73813 2007-01-10  Bruno Haible  <bruno@clisp.org>
73814
73815         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
73816
73817 2007-01-12  Eric Blake  <ebb9@byu.net>
73818
73819         Provide a robust <wchar.h>.  Further simplifications are now
73820         possible in other modules, but not included here.
73821         * modules/wchar: New module.
73822         * m4/wchar.m4: New file.
73823         * lib/wchar_.h: Likewise.
73824         * modules/mbchar (Depends-on): Depend on wchar, as the first use
73825         of the new module.
73826         * MODULES.html.sh (Extended multibyte and wide character utilities):
73827         New section.
73828
73829 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
73830
73831         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
73832         to a reasonable default for memory allocation.
73833         (xreadlink): Don't allocate a huge buffer, to work around a buggy
73834         file system that reports garbage st_size values for symlinks.
73835         Problem reported by Liyang Hu.
73836
73837 2007-01-11  Simon Josefsson  <simon@josefsson.org>
73838
73839         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
73840         Emacs .#* auto-save files).
73841
73842 2007-01-11  Bruno Haible  <bruno@clisp.org>
73843
73844         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
73845         directory.
73846
73847 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73848
73849         Use @...@ consistently in lib/wctype_.h.
73850         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
73851         on it being set to 1 or 0.
73852         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
73853         go back to AC_SUBSTing it.
73854         * modules/wctype (Makefile.am): Undo previous change.
73855
73856 2007-01-10  Eric Blake  <ebb9@byu.net>
73857
73858         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
73859         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
73860         * modules/wctype (Makefile.am): Likewise.
73861         Reported by Chris McGuire.
73862
73863 2007-01-10  Jim Meyering  <jim@meyering.net>
73864
73865         fts.c: a small readability/maintainability improvement
73866         * lib/fts.c (fts_read): Make this code slightly more readable and
73867         maintainable by hoisting the "sp->fts_cur = p" assignments to
73868         immediately follow the statements that set P.  Derived from
73869         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
73870
73871 2007-01-10  Eric Blake  <ebb9@byu.net>
73872
73873         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
73874         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
73875         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73876         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
73877         Reported by Chris McGuire.
73878
73879 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73880
73881         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
73882         in sed script.
73883
73884 2007-01-09  Bruno Haible  <bruno@clisp.org>
73885
73886         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
73887         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
73888         variables.
73889         (func_module): Use them.
73890
73891 2007-01-09  Bruno Haible  <bruno@clisp.org>
73892
73893         * modules/unistr/base: New file.
73894         * lib/unistr.h: New file.
73895
73896         * modules/unistr/u8-to-u16: New file.
73897         * lib/unistr/u8-to-u16.c: New file.
73898
73899         * modules/unistr/u8-to-u32: New file.
73900         * lib/unistr/u8-to-u32.c: New file.
73901
73902         * modules/unistr/u16-to-u8: New file.
73903         * lib/unistr/u16-to-u8.c: New file.
73904
73905         * modules/unistr/u16-to-u32: New file.
73906         * lib/unistr/u16-to-u32.c: New file.
73907
73908         * modules/unistr/u32-to-u8: New file.
73909         * lib/unistr/u32-to-u8.c: New file.
73910
73911         * modules/unistr/u32-to-u16: New file.
73912         * lib/unistr/u32-to-u16.c: New file.
73913
73914         * modules/unistr/u8-check: New file.
73915         * modules/unistr/u16-check: New file.
73916         * modules/unistr/u32-check: New file.
73917         * lib/unistr/u8-check.c: New file.
73918         * lib/unistr/u16-check.c: New file.
73919         * lib/unistr/u32-check.c: New file.
73920
73921         * modules/unistr/u8-chr: New file.
73922         * modules/unistr/u16-chr: New file.
73923         * modules/unistr/u32-chr: New file.
73924         * lib/unistr/u8-chr.c: New file.
73925         * lib/unistr/u16-chr.c: New file.
73926         * lib/unistr/u32-chr.c: New file.
73927
73928         * modules/unistr/u8-cmp: New file.
73929         * modules/unistr/u16-cmp: New file.
73930         * modules/unistr/u32-cmp: New file.
73931         * lib/unistr/u8-cmp.c: New file.
73932         * lib/unistr/u16-cmp.c: New file.
73933         * lib/unistr/u32-cmp.c: New file.
73934
73935         * modules/unistr/u8-cpy: New file.
73936         * modules/unistr/u16-cpy: New file.
73937         * modules/unistr/u32-cpy: New file.
73938         * lib/unistr/u8-cpy.c: New file.
73939         * lib/unistr/u16-cpy.c: New file.
73940         * lib/unistr/u32-cpy.c: New file.
73941         * lib/unistr/u-cpy.h: New file.
73942
73943         * modules/unistr/u8-cpy-alloc: New file.
73944         * modules/unistr/u16-cpy-alloc: New file.
73945         * modules/unistr/u32-cpy-alloc: New file.
73946         * lib/unistr/u8-cpy-alloc.c: New file.
73947         * lib/unistr/u16-cpy-alloc.c: New file.
73948         * lib/unistr/u32-cpy-alloc.c: New file.
73949         * lib/unistr/u-cpy-alloc.h: New file.
73950
73951         * modules/unistr/u8-endswith: New file.
73952         * modules/unistr/u16-endswith: New file.
73953         * modules/unistr/u32-endswith: New file.
73954         * lib/unistr/u8-endswith.c: New file.
73955         * lib/unistr/u16-endswith.c: New file.
73956         * lib/unistr/u32-endswith.c: New file.
73957         * lib/unistr/u-endswith.h: New file.
73958
73959         * modules/unistr/u8-mblen: New file.
73960         * modules/unistr/u16-mblen: New file.
73961         * modules/unistr/u32-mblen: New file.
73962         * lib/unistr/u8-mblen.c: New file.
73963         * lib/unistr/u16-mblen.c: New file.
73964         * lib/unistr/u32-mblen.c: New file.
73965
73966         * modules/unistr/u8-mbtouc: New file.
73967         * modules/unistr/u16-mbtouc: New file.
73968         * modules/unistr/u32-mbtouc: New file.
73969         * lib/unistr/u8-mbtouc.c: New file.
73970         * lib/unistr/u16-mbtouc.c: New file.
73971         * lib/unistr/u32-mbtouc.c: New file.
73972
73973         * modules/unistr/u8-mbtouc-safe: New file.
73974         * modules/unistr/u16-mbtouc-safe: New file.
73975         * modules/unistr/u32-mbtouc-safe: New file.
73976         * lib/unistr/u8-mbtouc-safe.c: New file.
73977         * lib/unistr/u16-mbtouc-safe.c: New file.
73978         * lib/unistr/u32-mbtouc-safe.c: New file.
73979
73980         * modules/unistr/u8-move: New file.
73981         * modules/unistr/u16-move: New file.
73982         * modules/unistr/u32-move: New file.
73983         * lib/unistr/u8-move.c: New file.
73984         * lib/unistr/u16-move.c: New file.
73985         * lib/unistr/u32-move.c: New file.
73986         * lib/unistr/u-move.h: New file.
73987
73988         * modules/unistr/u8-next: New file.
73989         * modules/unistr/u16-next: New file.
73990         * modules/unistr/u32-next: New file.
73991         * lib/unistr/u8-next.c: New file.
73992         * lib/unistr/u16-next.c: New file.
73993         * lib/unistr/u32-next.c: New file.
73994
73995         * modules/unistr/u8-prev: New file.
73996         * modules/unistr/u16-prev: New file.
73997         * modules/unistr/u32-prev: New file.
73998         * lib/unistr/u8-prev.c: New file.
73999         * lib/unistr/u16-prev.c: New file.
74000         * lib/unistr/u32-prev.c: New file.
74001
74002         * modules/unistr/u8-set: New file.
74003         * modules/unistr/u16-set: New file.
74004         * modules/unistr/u32-set: New file.
74005         * lib/unistr/u8-set.c: New file.
74006         * lib/unistr/u16-set.c: New file.
74007         * lib/unistr/u32-set.c: New file.
74008         * lib/unistr/u-set.h: New file.
74009
74010         * modules/unistr/u8-startswith: New file.
74011         * modules/unistr/u16-startswith: New file.
74012         * modules/unistr/u32-startswith: New file.
74013         * lib/unistr/u8-startswith.c: New file.
74014         * lib/unistr/u16-startswith.c: New file.
74015         * lib/unistr/u32-startswith.c: New file.
74016         * lib/unistr/u-startswith.h: New file.
74017
74018         * modules/unistr/u8-stpcpy: New file.
74019         * modules/unistr/u16-stpcpy: New file.
74020         * modules/unistr/u32-stpcpy: New file.
74021         * lib/unistr/u8-stpcpy.c: New file.
74022         * lib/unistr/u16-stpcpy.c: New file.
74023         * lib/unistr/u32-stpcpy.c: New file.
74024         * lib/unistr/u-stpcpy.h: New file.
74025
74026         * modules/unistr/u8-stpncpy: New file.
74027         * modules/unistr/u16-stpncpy: New file.
74028         * modules/unistr/u32-stpncpy: New file.
74029         * lib/unistr/u8-stpncpy.c: New file.
74030         * lib/unistr/u16-stpncpy.c: New file.
74031         * lib/unistr/u32-stpncpy.c: New file.
74032         * lib/unistr/u-stpncpy.h: New file.
74033
74034         * modules/unistr/u8-strcat: New file.
74035         * modules/unistr/u16-strcat: New file.
74036         * modules/unistr/u32-strcat: New file.
74037         * lib/unistr/u8-strcat.c: New file.
74038         * lib/unistr/u16-strcat.c: New file.
74039         * lib/unistr/u32-strcat.c: New file.
74040         * lib/unistr/u-strcat.h: New file.
74041
74042         * modules/unistr/u8-strchr: New file.
74043         * modules/unistr/u16-strchr: New file.
74044         * modules/unistr/u32-strchr: New file.
74045         * lib/unistr/u8-strchr.c: New file.
74046         * lib/unistr/u16-strchr.c: New file.
74047         * lib/unistr/u32-strchr.c: New file.
74048
74049         * modules/unistr/u8-strcmp: New file.
74050         * modules/unistr/u16-strcmp: New file.
74051         * modules/unistr/u32-strcmp: New file.
74052         * lib/unistr/u8-strcmp.c: New file.
74053         * lib/unistr/u16-strcmp.c: New file.
74054         * lib/unistr/u32-strcmp.c: New file.
74055
74056         * modules/unistr/u8-strcpy: New file.
74057         * modules/unistr/u16-strcpy: New file.
74058         * modules/unistr/u32-strcpy: New file.
74059         * lib/unistr/u8-strcpy.c: New file.
74060         * lib/unistr/u16-strcpy.c: New file.
74061         * lib/unistr/u32-strcpy.c: New file.
74062         * lib/unistr/u-strcpy.h: New file.
74063
74064         * modules/unistr/u8-strcspn: New file.
74065         * modules/unistr/u16-strcspn: New file.
74066         * modules/unistr/u32-strcspn: New file.
74067         * lib/unistr/u8-strcspn.c: New file.
74068         * lib/unistr/u16-strcspn.c: New file.
74069         * lib/unistr/u32-strcspn.c: New file.
74070         * lib/unistr/u-strcspn.h: New file.
74071
74072         * modules/unistr/u8-strdup: New file.
74073         * modules/unistr/u16-strdup: New file.
74074         * modules/unistr/u32-strdup: New file.
74075         * lib/unistr/u8-strdup.c: New file.
74076         * lib/unistr/u16-strdup.c: New file.
74077         * lib/unistr/u32-strdup.c: New file.
74078         * lib/unistr/u-strdup.h: New file.
74079
74080         * modules/unistr/u8-strlen: New file.
74081         * modules/unistr/u16-strlen: New file.
74082         * modules/unistr/u32-strlen: New file.
74083         * lib/unistr/u8-strlen.c: New file.
74084         * lib/unistr/u16-strlen.c: New file.
74085         * lib/unistr/u32-strlen.c: New file.
74086         * lib/unistr/u-strlen.h: New file.
74087
74088         * modules/unistr/u8-strmblen: New file.
74089         * modules/unistr/u16-strmblen: New file.
74090         * modules/unistr/u32-strmblen: New file.
74091         * lib/unistr/u8-strmblen.c: New file.
74092         * lib/unistr/u16-strmblen.c: New file.
74093         * lib/unistr/u32-strmblen.c: New file.
74094
74095         * modules/unistr/u8-strmbtouc: New file.
74096         * modules/unistr/u16-strmbtouc: New file.
74097         * modules/unistr/u32-strmbtouc: New file.
74098         * lib/unistr/u8-strmbtouc.c: New file.
74099         * lib/unistr/u16-strmbtouc.c: New file.
74100         * lib/unistr/u32-strmbtouc.c: New file.
74101
74102         * modules/unistr/u8-strncat: New file.
74103         * modules/unistr/u16-strncat: New file.
74104         * modules/unistr/u32-strncat: New file.
74105         * lib/unistr/u8-strncat.c: New file.
74106         * lib/unistr/u16-strncat.c: New file.
74107         * lib/unistr/u32-strncat.c: New file.
74108         * lib/unistr/u-strncat.h: New file.
74109
74110         * modules/unistr/u8-strncmp: New file.
74111         * modules/unistr/u16-strncmp: New file.
74112         * modules/unistr/u32-strncmp: New file.
74113         * lib/unistr/u8-strncmp.c: New file.
74114         * lib/unistr/u16-strncmp.c: New file.
74115         * lib/unistr/u32-strncmp.c: New file.
74116
74117         * modules/unistr/u8-strncpy: New file.
74118         * modules/unistr/u16-strncpy: New file.
74119         * modules/unistr/u32-strncpy: New file.
74120         * lib/unistr/u8-strncpy.c: New file.
74121         * lib/unistr/u16-strncpy.c: New file.
74122         * lib/unistr/u32-strncpy.c: New file.
74123         * lib/unistr/u-strncpy.h: New file.
74124
74125         * modules/unistr/u8-strnlen: New file.
74126         * modules/unistr/u16-strnlen: New file.
74127         * modules/unistr/u32-strnlen: New file.
74128         * lib/unistr/u8-strnlen.c: New file.
74129         * lib/unistr/u16-strnlen.c: New file.
74130         * lib/unistr/u32-strnlen.c: New file.
74131         * lib/unistr/u-strnlen.h: New file.
74132
74133         * modules/unistr/u8-strpbrk: New file.
74134         * modules/unistr/u16-strpbrk: New file.
74135         * modules/unistr/u32-strpbrk: New file.
74136         * lib/unistr/u8-strpbrk.c: New file.
74137         * lib/unistr/u16-strpbrk.c: New file.
74138         * lib/unistr/u32-strpbrk.c: New file.
74139         * lib/unistr/u-strpbrk.h: New file.
74140
74141         * modules/unistr/u8-strrchr: New file.
74142         * modules/unistr/u16-strrchr: New file.
74143         * modules/unistr/u32-strrchr: New file.
74144         * lib/unistr/u8-strrchr.c: New file.
74145         * lib/unistr/u16-strrchr.c: New file.
74146         * lib/unistr/u32-strrchr.c: New file.
74147
74148         * modules/unistr/u8-strspn: New file.
74149         * modules/unistr/u16-strspn: New file.
74150         * modules/unistr/u32-strspn: New file.
74151         * lib/unistr/u8-strspn.c: New file.
74152         * lib/unistr/u16-strspn.c: New file.
74153         * lib/unistr/u32-strspn.c: New file.
74154         * lib/unistr/u-strspn.h: New file.
74155
74156         * modules/unistr/u8-strstr: New file.
74157         * modules/unistr/u16-strstr: New file.
74158         * modules/unistr/u32-strstr: New file.
74159         * lib/unistr/u8-strstr.c: New file.
74160         * lib/unistr/u16-strstr.c: New file.
74161         * lib/unistr/u32-strstr.c: New file.
74162         * lib/unistr/u-strstr.h: New file.
74163
74164         * modules/unistr/u8-strtok: New file.
74165         * modules/unistr/u16-strtok: New file.
74166         * modules/unistr/u32-strtok: New file.
74167         * lib/unistr/u8-strtok.c: New file.
74168         * lib/unistr/u16-strtok.c: New file.
74169         * lib/unistr/u32-strtok.c: New file.
74170         * lib/unistr/u-strtok.h: New file.
74171
74172         * modules/unistr/u8-uctomb: New file.
74173         * modules/unistr/u16-uctomb: New file.
74174         * modules/unistr/u32-uctomb: New file.
74175         * lib/unistr/u8-uctomb.c: New file.
74176         * lib/unistr/u16-uctomb.c: New file.
74177         * lib/unistr/u32-uctomb.c: New file.
74178
74179         * MODULES.html.sh (Unicode string functions): Add the new modules.
74180
74181 2007-01-08  Bruno Haible  <bruno@clisp.org>
74182
74183         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
74184         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
74185         subdirectories.
74186
74187 2007-01-08  Karl Berry  <karl@gnu.org>
74188
74189         * doc/error.texi: mention that main() fns must set program_name
74190         when progname is used.
74191
74192 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
74193
74194         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
74195         WCTYPE_H is empty, for the benefit of builds from non-distclean
74196         directories.  Problem reported by Eric Blake in
74197         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
74198
74199 2007-01-08  Bruno Haible  <bruno@clisp.org>
74200
74201         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
74202         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
74203         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
74204         PROVIDE_CANONICALIZE_FILENAME_MODE.
74205         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
74206
74207 2007-01-08  Bruno Haible  <bruno@clisp.org>
74208
74209         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
74210         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
74211         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
74212         * lib/fts.c: Likewise.
74213         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
74214
74215 2006-12-25  Bruno Haible  <bruno@clisp.org>
74216
74217         * modules/utf8-ucs4-safe: New file.
74218         * lib/utf8-ucs4-safe.h: New file.
74219         * lib/unistr/utf8-ucs4-safe.c: New file.
74220
74221         * modules/utf16-ucs4-safe: New file.
74222         * lib/utf16-ucs4-safe.h: New file.
74223         * lib/unistr/utf16-ucs4-safe.c: New file.
74224
74225         * MODULES.html.sh (Unicode string functions): Add the new modules.
74226
74227 2007-01-08  Bruno Haible  <bruno@clisp.org>
74228
74229         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
74230         (Depends-on): Add unitypes.
74231         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74232         (u8_mbtouc_aux): Move out to separate file.
74233         (u8_mbtouc): Use ucs4_t, uint8_t types.
74234         * lib/unistr/utf8-ucs4.c: New file.
74235
74236         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
74237         (Depends-on): Add unitypes.
74238         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74239         (u16_mbtouc_aux): Move out to separate file.
74240         (u16_mbtouc): Use ucs4_t, uint16_t types.
74241         * lib/unistr/utf16-ucs4.c: New file.
74242
74243         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
74244         (Depends-on): Add unitypes.
74245         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
74246         (u8_uctomb_aux): Move out to separate file.
74247         (u8_uctomb): Use ucs4_t, uint8_t types.
74248         * lib/unistr/ucs4-utf8.c: New file.
74249
74250         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
74251         (Depends-on): Add unitypes.
74252         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
74253         (u16_uctomb_aux): Move out to separate file.
74254         (u16_uctomb): Use ucs4_t, uint16_t types.
74255         * lib/unistr/ucs4-utf16.c: New file.
74256
74257 2006-12-25  Bruno Haible  <bruno@clisp.org>
74258
74259         * modules/unitypes: New file.
74260         * lib/unitypes.h: New file.
74261         * MODULES.html.sh (func_all_modules): New section "Unicode string
74262         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
74263         this section. Add unitypes.
74264
74265 2007-01-08  Bruno Haible  <bruno@clisp.org>
74266
74267         Avoid variable names that conflict with those from libtool.
74268         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
74269         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
74270         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
74271         library_names_spec to acl_library_names_spec, hardcode_* to
74272         acl_hardcode_*.
74273         Reported by Ralf Wildenhues.
74274
74275 2007-01-08  Bruno Haible  <bruno@clisp.org>
74276
74277         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
74278         definition.
74279         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
74280         definition.
74281         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
74282         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
74283         definition.
74284         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
74285         definition.
74286         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
74287         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
74288         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
74289         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
74290         definition.
74291         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
74292         definition.
74293         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
74294         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
74295         GC_USE_<algorithm>.
74296         * lib/gc-libgcrypt.c: Likewise.
74297         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
74298         * modules/gc-arctwo (configure.ac): Likewise.
74299         * modules/gc-des (configure.ac): Likewise.
74300         * modules/gc-hmac-md5 (configure.ac): Likewise.
74301         * modules/gc-hmac-sha1 (configure.ac): Likewise.
74302         * modules/gc-md2 (configure.ac): Likewise.
74303         * modules/gc-md4 (configure.ac): Likewise.
74304         * modules/gc-md5 (configure.ac): Likewise.
74305         * modules/gc-random (configure.ac): Likewise.
74306         * modules/gc-rijndael (configure.ac): Likewise.
74307         * modules/gc-sha1 (configure.ac): Likewise.
74308
74309 2007-01-08  Bruno Haible  <bruno@clisp.org>
74310
74311         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
74312         macro definition.
74313         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
74314         definition.
74315         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
74316         definition.
74317         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
74318         * modules/fcntl-safer (configure.ac): Likewise.
74319         * modules/fopen-safer (configure.ac): Likewise.
74320         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
74321         GNULIB_FWRITEERROR macro definition.
74322
74323 2007-01-08  Bruno Haible  <bruno@clisp.org>
74324
74325         * m4/gnulib-common.m4: New file.
74326         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
74327         (func_get_filelist): Add m4/gnulib-common.m4.
74328
74329 2007-01-08  Bruno Haible  <bruno@clisp.org>
74330
74331         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
74332         command.
74333
74334 2007-01-08  Jim Meyering  <jim@meyering.net>
74335
74336         Use a more robust test for a "can't happen" condition.
74337         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
74338         narrowed the st_size value.  Presuming the "can't happen" condition
74339         is true, that narrowing could conceivably convert an invalid st_size
74340         value into a valid one.  Instead, use a change based on Matthew
74341         Woehlke's original patch.
74342
74343         Slight readability improvement: use an assert-like macro
74344         in place of literal "abort ()" uses.
74345         * lib/fts.c (fts_assert): Define.
74346         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
74347         Use this macro instead of a bare 'abort'.
74348
74349 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
74350
74351         Don't worry about using IRIX 5.3's wctype.h broken definitions;
74352         simply work around them.
74353         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
74354         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
74355         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
74356         declaring.
74357         Don't bother to define as macros, since the standard doesn't require it.
74358         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
74359         longer worry about IRIX 5.3.
74360         (HAVE_WCTYPE_CTMP_BUG): Remove.
74361
74362 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74363
74364         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
74365         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
74366         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
74367         Problems reported by Georg Schwarz for IRIX 5.3.
74368
74369         * gnulib-tool (autoconf_minversion): Take the maximum version number
74370         found, not the minimum.  Problem reported by James Youngman.
74371
74372 2007-01-03  Karl Berry  <karl@gnu.org>
74373
74374         * doc/error.texi: new file, explaining interaction with progname.
74375         * doc/gnulib.texi: include it.  Update copyright.
74376
74377 2007-01-03  Simon Josefsson  <simon@josefsson.org>
74378
74379         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
74380         AC_CANONICAL_HOST, to improve autobuild outputs.
74381
74382 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
74383             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74384
74385         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
74386         sockets, server sockets, and other file descriptors.  Count errors
74387         to compute the return value.  Reorder the code a bit to be easier
74388         to follow.  Don't set event bits that were not requested (except
74389         POLLERR and POLLHUP).
74390
74391 2007-01-01  Bruno Haible  <bruno@clisp.org>
74392
74393         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
74394
74395 2007-01-03  Jim Meyering  <jim@meyering.net>
74396
74397         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
74398
74399 2007-01-02  Bruno Haible  <bruno@clisp.org>
74400
74401         * modules/settime (Include): Require timespec.h.
74402         * modules/nanosleep (Include): Likewise.
74403
74404 2007-01-01  Bruno Haible  <bruno@clisp.org>
74405
74406         * gnulib-tool (func_emit_copyright_notice): Bump year.
74407         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
74408
74409 2007-01-01  Bruno Haible  <bruno@clisp.org>
74410
74411         Improve support for OpenBSD.
74412         * build-aux/config.rpath (libname_spec): Export.
74413         (library_names_spec): New variable. Export.
74414         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
74415         library_names_spec from the config.rpath output. Locate shared library
74416         through the name pattern in library_names_spec.
74417
74418 2007-01-01  Eric Blake  <ebb9@byu.net>
74419
74420         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
74421
74422 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
74423
74424         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
74425         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
74426         assume the C locale, and avoid an "eval" that could cause trouble.
74427         Problem with SORT reported by Bob Proulx.
74428
74429         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
74430         Define.  Trivial patch from Henning Nielsen Lund, originally
74431         sent to bug-grep@gnu.org today.
74432
74433 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
74434
74435         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
74436         struct stat.  Problem reported by Henning Nielsen Lund.
74437         * lib/acl.c: Include acl.h first, to check interface.  Don't
74438         bother to include sys/types.h and sys/stat.h again.
74439
74440 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74441
74442         Import the following change from libc; problem reported by
74443         Sven Verdoolaege.
74444
74445         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
74446
74447         [BZ #1373]
74448         * lib/argp.h: Remove __NTH for __argp_usage inline function.
74449
74450 2006-12-28  Jim Meyering  <jim@meyering.net>
74451
74452         * build-aux/announce-gen: Do not assume that the package
74453         builds any of tar.gz, tar.bz2, and .xdelta files.
74454         Suggestion from Simon Josefsson.
74455
74456 2006-12-28  Simon Josefsson  <simon@josefsson.org>
74457
74458         * modules/announce-gen: New file.
74459
74460 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
74461
74462         * lib/mbchar.h: Just include <wctype.h>; the wctype module
74463         handles its gotchas now.
74464         * lib/mbswidth.c: Likewise.
74465         * lib/wcwidth.h: Likewise.
74466         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
74467         and iswcntrl; the wctype module does this stuff now.
74468         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74469         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74470         * modules/mbchar (Depends-on): Add wctype.
74471         * modules/mbswidth (Depends-on): Likewise.
74472         * modules/wcwidth (Depends-on): Likewise.
74473
74474 2006-12-27  Eric Blake  <ebb9@byu.net>
74475
74476         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
74477         module uses more than what <wctype.h> is required to provide.
74478
74479 2006-12-26  Eric Blake  <ebb9@byu.net>
74480
74481         * gnulib-tool (sed_extract_prog): Avoid space-tab.
74482
74483 2006-12-26  Eric Blake  <ebb9@byu.net>
74484
74485         * modules/absolute-header: New module.
74486         * modules/fcntl (Depends-on): Depend on it.
74487         * modules/inttypes (Depends-on): Likewise.
74488         * modules/stdint (Depends-on): Likewise.
74489         * modules/sys_stat (Depends-on): Likewise.
74490         * modules/wctype (Depends-on): Likewise.
74491         * MODULES.html.sh (Support for building libraries and
74492         executables): Document it.
74493
74494 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
74495
74496         * gnulib-tool (SED): Remove, undoing previous change.
74497         The problem was that it broke coreutils on Solaris, because
74498         "sed --posix" leaked into a makefile.
74499         (sed): New alias, if 'alias' and GNU sed.
74500
74501 2006-12-24  Jim Meyering  <jim@meyering.net>
74502
74503         Work around an fchownat bug in glibc-2.4:
74504         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
74505         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
74506         in spite of the -P option.
74507         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
74508         New macros.
74509         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
74510         * modules/openat (Files): Add lib/fchownat.c.
74511         * lib/openat.c (fchownat): Don't define here.  Move to...
74512         * lib/fchownat.c: ...this new file.
74513
74514 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74515
74516         Fix bug reported by Bruno Haible in
74517         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
74518         where quotearg.c didn't compile on Mac OS X 10.2 because it
74519         lacks <wchar.h> and wint_t.
74520         * lib/wctype_.h (__wctype_wint_t): New type.
74521         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
74522         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
74523         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
74524         Arg is now of type __wctype_wint_t, not wint_t.
74525         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
74526         substitute HAVE_WINT_T.
74527         * modules/wctype (Files): Add m4/wint_t.m4.
74528         (wctype.h): Substitute HAVE_WINT_T.
74529
74530 2006-12-23  Bruno Haible  <bruno@clisp.org>
74531
74532         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
74533
74534 2006-12-23  Bruno Haible  <bruno@clisp.org>
74535
74536         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
74537         S_ISLNK.
74538         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
74539         mingw.
74540
74541 2006-12-22  Bruno Haible  <bruno@clisp.org>
74542
74543         * lib/copy-file.c: Include acl.h.
74544         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
74545         Close the file descriptors only after being done with copy_acl.
74546         * modules/copy-file (Depends-on): Add acl.
74547
74548 2006-12-22  Bruno Haible  <bruno@clisp.org>
74549
74550         * gnulib-tool (SED): New variable.
74551         Use $SED instead of sed everywhere.
74552
74553 2006-12-22  Bruno Haible  <bruno@clisp.org>
74554
74555         * modules/no-c++: New file.
74556         * m4/no-c++.m4: New file.
74557         * MODULES.html.sh (Support for building libraries and executables):
74558         Add no-c++.
74559
74560 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
74561
74562         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74563         Include <limits.h>, and use its INT_MAX to rewrite the
74564         j loop so that it does not overflow 'int'.  Problem reported by
74565         Ralf Wildenhues in
74566         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
74567         Play it safe by shifting left by 1 rather than multiplying by 2,
74568         as GCC is less likely to optimize this away when the value
74569         is signed (when it assumes overflow leads to undefined behavior).
74570         Also, don't assume time_t uses two's complement.
74571
74572 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
74573
74574         * MODULES.html.sh: New module wctype.
74575         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
74576         * lib/fnmatch.c: Don't bother to include <wchar.h> before
74577         <wctype.h>, since the new wctype module should fix this.
74578         * lib/quotearg.c: Include <wctype.h> unconditionally, since
74579         the wctype module should arrange for it.
74580         * lib/regex_internal.h: Likewise.
74581         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
74582         since the wctype module should handle this now.
74583         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
74584         * modules/fnmatch (Depends-on): Add wctype.
74585         * modules/quotearg (Depends-on): Likewise.
74586         * modules/regex (Depends-on): Likewise.
74587
74588 2006-12-19  Bruno Haible  <bruno@clisp.org>
74589
74590         * lib/strdup.h [C++]: Wrap definitions in extern "C".
74591         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
74592
74593 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74594
74595         * modules/savewd (Depends-on): Fix dependency on fcntl.
74596
74597 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74598
74599         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
74600         conforms to C99, rather than relying on the user's environment
74601         setting of STDINT_H.
74602
74603 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74604         and Eric Blake  <ebb9@byu.net>
74605
74606         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
74607         This is more consistent with the other defines here.
74608         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
74609         Port to z/OS.  Problem reported by Paul Gilmartin.
74610         Change local vars to use gl_ prefix rather than ac_.
74611         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
74612         with other defines.
74613         * modules/double-slash-root: New module.
74614         * modules/dirname (Files): Remove m4/double-slash-root.m4.
74615         (Depends-on): Add double-slash-root.
74616         * MODULES.html.sh (File system functions): Mention new module.
74617
74618 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
74619
74620         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
74621         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
74622         This is for the benefit of gzip, which doesn't do i18n.
74623
74624 2006-12-12  Jim Meyering  <jim@meyering.net>
74625
74626         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
74627         Reported by Andreas Schwab <schwab@suse.de>.
74628
74629 2006-12-12  Bruno Haible  <bruno@clisp.org>
74630
74631         Merge these changes.
74632         2006-09-05  Bruno Haible  <bruno@clisp.org>
74633         * lib/iconvme.c (iconv_string): No need to save and restore errno when
74634         iconv_alloc succeeded.
74635         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
74636         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
74637         test for " && dest " at the end - dest is always != NULL there. Call
74638         iconv with 4xNULL arguments initially, to reset the state. Call iconv
74639         with 2xNULL arguments, also to flush the state storage. Handle the
74640         IRIX iconv behaviour. Realloc the final result, to throw away unused
74641         memory.
74642
74643 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
74644
74645         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
74646         and fchmodat unconditionally, since glibc 2.4 has them.
74647         Problem reported by Arkadiusz Miskiewicz.
74648
74649 2006-12-10  Bruno Haible  <bruno@clisp.org>
74650
74651         * gnulib-tool (func_import): Show the include files only for those
74652         modules that are copied and specified.
74653         Reported by Karl Berry.
74654
74655 2006-12-08  Jim Meyering  <jim@meyering.net>
74656
74657         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
74658         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
74659
74660         * build-aux/announce-gen: Add two new options, both optional:
74661         --bootstrap-tools=TOOL_LIST
74662               a comma-separated list of tools, e.g.,
74663               autoconf,automake,bison,gnulib
74664         --gnulib-snapshot-date=DATE
74665               if gnulib is in the bootstrap tool list,
74666               then report this as the snapshot date.
74667               If not specified, use the current date/time.
74668               If you specify a date here, be sure it's UTC.
74669
74670 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74671
74672         * tests/test-argp-2.sh: Fix test to match actual output.
74673         (func_compare): Fix sed script to be portable.
74674
74675 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
74676
74677         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
74678         workaround for this case.  It is not autoconfigured now; offhand
74679         it's hard to see how to autoconfigure it.
74680
74681 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
74682
74683         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
74684         a directory that is about to be chowned.  Such a directory's
74685         initial file permissions should permit the owner only and this
74686         should not be changed until after the chown, since the group and
74687         other bits would be incorrect if they granted permission before
74688         the chown.
74689
74690         Fix porting problem for iswctype reported by Georg Schwarz in:
74691         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
74692         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
74693         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
74694         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
74695         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
74696
74697 2006-12-03  Jim Meyering  <jim@meyering.net>
74698
74699         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
74700         p->fts_statp may not yet be defined.
74701         (fts_read): Instead, set it in the caller, once p->fts_statp is
74702         sure to be defined, and corresponds to a top-level directory.
74703         This bug made du -x fail.  Here's the coreutils test case:
74704         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
74705         Reported by Mike Frysinger.
74706
74707 2006-12-01  Jim Meyering  <jim@meyering.net>
74708
74709         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
74710         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
74711         Reported by Simon Josefsson.
74712
74713 2006-11-30  Jim Meyering  <jim@meyering.net>
74714
74715         * m4/warning.m4: Use the all-permissive copyright notice
74716         recommended by RMS (rather than LGPL).
74717         * m4/vararrays.m4: Likewise.
74718         * m4/flexmember.m4: Likewise.
74719
74720 2006-11-29  Bruno Haible  <bruno@clisp.org>
74721
74722         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74723         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
74724         using +=.
74725         Reported by Simon Josefsson <simon@josefsson.org>.
74726
74727 2006-11-28  James Youngman <jay@gnu.org>
74728
74729         * README: Advise users that they might find the bug-gnulib@gnu.org
74730         and autotools-announce@gnu.org mailing lists useful.
74731
74732 2006-11-28  Bruno Haible  <bruno@clisp.org>
74733
74734         * m4/ptrdiff_max.m4: Remove file.
74735
74736 2006-11-21  Bruno Haible  <bruno@clisp.org>
74737
74738         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
74739         _AC_COMPUTE_INT.
74740         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74741         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
74742         _AC_COMPUTE_INT.
74743         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74744         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
74745         _AC_COMPUTE_INT.
74746         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74747
74748 2006-11-28  Jim Meyering  <jim@meyering.net>
74749
74750         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
74751         warning from "gcc -Wshadow" about shadowing the builtin.
74752
74753 2006-11-27  Bruno Haible  <bruno@clisp.org>
74754
74755         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
74756         _AC_COMPUTE_INT.
74757         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74758
74759 2006-11-27  Bruno Haible  <bruno@clisp.org>
74760             Paul Eggert  <eggert@cs.ucla.edu>
74761
74762         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
74763
74764 2006-11-26  Bruno Haible  <bruno@clisp.org>
74765
74766         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74767         noinst_LTLIBRARIES.
74768
74769 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74770             Bruno Haible  <bruno@clisp.org>
74771
74772         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
74773         if compiling with "gcc -ansi".
74774
74775 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74776
74777         Fix some incompatibilities with gcc -ansi -pedantic.
74778         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
74779         if compiling pedantically with GCC, unless it's C99 or later.
74780         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
74781         it mishandles gcc -ansi -pedantic as well.
74782         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
74783         if gcc -pedantic.
74784         * lib/regexec.c (check_node_accept_bytes): Don't use auto
74785         initializers for struct if -pedantic, unless it's C99 or later.
74786
74787 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
74788
74789         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
74790         Don't close an fd more than once. Identical atimes indicate
74791         success, not failure.
74792
74793 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
74794
74795         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
74796
74797 2006-11-23  Jim Meyering  <jim@meyering.net>
74798
74799         * build-aux/announce-gen: New file.  From coreutils.
74800
74801 2006-11-22  Jim Meyering  <jim@meyering.net>
74802
74803         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
74804         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
74805         (fts_read): Use a temporary to narrow the overused st_size member
74806         before using it in a switch statement.  Reported by Matthew Woehlke.
74807
74808         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
74809         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74810
74811 2006-11-20  Bruno Haible  <bruno@clisp.org>
74812
74813         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
74814         changequote instead of pairs of brackets.
74815         Reported by Andreas Schwab <schwab@suse.de>.
74816
74817 2006-11-21  Jim Meyering  <jim@meyering.net>
74818
74819         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
74820         so as to remain compatible with older compilers.
74821         Patch from Michael Deutschmann.
74822
74823 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74824
74825         * MODULES.html.sh (File system functions): Add openat.
74826
74827         * lib/openat.h (rpl_fstatat): New macro, if
74828         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
74829         (fstatat): Define to rpl_fstatat under the same conditions,
74830         unless COMPILING_FSTATAT.
74831         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
74832         seems to have the bug.
74833         * lib/fstatat.c: New file.
74834         * modules/openat (Files): Add it.
74835
74836 2006-11-20  Bruno Haible  <bruno@clisp.org>
74837
74838         * Makefile: New file.
74839
74840 2006-11-20  Jim Meyering  <jim@meyering.net>
74841
74842         The beginnings of syntax-related checks for gnulib.
74843         * lib/Makefile: New file.
74844         * lib/t-idcache: New script.  Ensure that the two halves of
74845         idcache.c stay in sync.
74846
74847         * lib/idcache.c: Adjust comments in user- and group- portions to
74848         be more accurate, and to be consistent with one another.
74849
74850 2006-11-20  Jim Meyering  <jim@meyering.net>
74851
74852         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
74853         continue using the flexible array member (thus, this module performs
74854         half as many malloc calls), with the addition that...
74855         (getgroup, getuser): Consistently record a non-match via an empty
74856         "name" string, and map an empty string match to a NULL return value.
74857         * modules/idcache (Depends-on): Re-add flexmember.
74858
74859         * lib/idcache.c (getuser): Remove all uses of the register keyword.
74860         (getuidbyname, getgroup, getgidbyname): Likewise.
74861
74862         Use cleaner syntax: NULL rather than 0.
74863         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
74864
74865 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74866
74867         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
74868         It mishandled the case where the group was missing.
74869         Problem reported by Greg Schafer.
74870         * modules/idcache: Likewise.
74871
74872 2006-11-18  Jim Meyering  <jim@meyering.net>
74873
74874         * check-module (%exempt_header): Add exception for some
74875         conditionally-included headers.
74876
74877         * modules/i-ring (Depends-on): Add verify.
74878         (License): Change to LGPL.
74879
74880 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74881
74882         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
74883         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
74884         and inttostr.h.  Use snprintf rather than uinttostr, so that
74885         LGPLed code doesn't depend on GPLed.
74886
74887 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74888
74889         * modules/inline (License): Change from GPL to LGPL.
74890
74891 2006-11-17  Jim Meyering  <jim@meyering.net>
74892
74893         * modules/d-type (License): Switch to LGPL.
74894
74895 2006-11-15  Bruno Haible  <bruno@clisp.org>
74896
74897         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
74898
74899 2006-11-15  Eric Blake  <ebb9@byu.net>
74900
74901         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
74902         the module dependency.
74903
74904 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74905             Bruno Haible  <bruno@clisp.org>
74906
74907         * gnulib-tool (func_create_testdir): Add license consistency check.
74908
74909 2006-11-15  Eric Blake  <ebb9@byu.net>
74910
74911         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
74912         random "(cached)" in configure output.
74913
74914 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74915
74916         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
74917         test for conforming inttypes.h is both announced and cached.
74918
74919         * MODULES.html.sh (seen_modules, seen_files): New variables.
74920         (func_module): Rewrite to use a few less gnulib-tool and sed
74921         invocations.  Avoid a couple of quadratic algorithms for ...
74922         (missed_modules, missed_files): ... these, with ...
74923         (func_append, func_tmpdir): ... these new functions, from
74924         gnulib-tool.  Analogously, install traps for cleanup.
74925
74926         * tests/test-gc.c (main): Remove unused variables.
74927         * tests/test-read-file.c: Include stdlib.h, for 'free'.
74928
74929 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
74930
74931         * modules/inttostr (License): Change to LGPL.
74932
74933 2006-11-14  Eric Blake  <ebb9@byu.net>
74934
74935         * modules/tempname (License): Change to LGPL.
74936
74937 2006-11-14  Eric Blake  <ebb9@byu.net>
74938
74939         * doc/functions.texi (Function Portability): *printf functions on
74940         Cygwin now understand all POSIX size specifiers.
74941
74942 2006-11-14  Bruno Haible  <bruno@clisp.org>
74943
74944         * modules/c-ctype (License): Change to LGPL.
74945
74946 2006-11-12  Bruno Haible  <bruno@clisp.org>
74947
74948         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
74949         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
74950         for GNOME libraries, for which the include files are installed in
74951         subdirectories of $prefix/include.
74952
74953 2006-11-12  Bruno Haible  <bruno@clisp.org>
74954
74955         * m4/lib-link.m4: Require at least autoconf-2.54.
74956         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
74957         name to underscores for the --with option.
74958
74959 2006-11-13  Bruno Haible  <bruno@clisp.org>
74960
74961         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
74962         the tests directory.
74963         Reported by Ralf Wildenhues.
74964
74965 2006-11-13  Bruno Haible  <bruno@clisp.org>
74966
74967         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
74968         (func_emit_initmacro_end): Undo the override here.
74969         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
74970         Works around the famous automake error in coreutils.
74971
74972 2006-11-13  Eric Blake  <ebb9@byu.net>
74973
74974         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
74975         element, not its node.
74976
74977 2006-11-12  Bruno Haible  <bruno@clisp.org>
74978
74979         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
74980         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
74981
74982 2006-11-12  Bruno Haible  <bruno@clisp.org>
74983
74984         * gnulib-tool: New option --local-symlink.
74985         (func_usage): Document it.
74986         (lsymbolic): New variable.
74987         (func_import, func_create_testdir): If --symlink was not specified,
74988         test whether --local-symlink was specified and the file comes from
74989         the local_gnulib_dir.
74990
74991 2006-11-12  Bruno Haible  <bruno@clisp.org>
74992
74993         * gnulib-tool (func_ln): New function.
74994         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
74995
74996 2006-11-12  Bruno Haible  <bruno@clisp.org>
74997
74998         Finish support for source files in subdirectories.
74999         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
75000         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
75001         AUTOMAKE_OPTIONS.
75002         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
75003
75004 2006-11-12  Bruno Haible  <bruno@clisp.org>
75005
75006         * gnulib-tool (func_get_automake_snippet): Synthesize also an
75007         EXTRA_lib_SOURCES augmentation.
75008         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
75009
75010 2006-11-12  Jim Meyering  <jim@meyering.net>
75011
75012         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
75013         file descriptors.  This also averts a failure on systems with
75014         native openat support when a traversed directory lacks "x" access.
75015         * lib/fts_.h: Include "i-ring.h"
75016         (struct FTS) [fts_fd_ring]: New member.
75017         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
75018         (FCHDIR): Add parentheses.
75019         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
75020         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
75021         When descending, rather than simply closing the previous
75022         fts_cwd_fd value, push that file descriptor onto the ring.
75023         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
75024         (fts_open): Initialize the new fd_ring member.
75025         (fts_close): Clear the ring.
75026         (fts_safe_changedir): When possible, use our new fd_ring to skip
75027         the diropen and fstat and dev/ino comparison that would normally
75028         accompany a virtual `chdir ("..")'.
75029
75030         * modules/fts (Depends-on): Add i-ring.
75031         * modules/i-ring: New module.
75032         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
75033         * m4/i-ring.m4: New file.
75034
75035 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75036
75037         * gnulib-tool (func_create_testdir): Fix replacement of
75038         `build-aux' in configure.ac.  Run autotools in gltests
75039         subdirectory.
75040         (func_create_testdir, func_create_megatestdir, test): There is
75041         no need for '--force' in most autotool invocations in a new
75042         tree.  Actually fail the whole test if any of the tools, or the
75043         configure or make stages fail.
75044
75045         Sync from Automake.
75046         * build-aux/gnupload: Revert last change.  Add pointer to upload
75047         instructions of the GNU Maintenance Instructions.
75048         Suggestion by Karl Berry.
75049
75050 2006-11-10  Jim Meyering  <jim@meyering.net>
75051
75052         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
75053
75054 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75055
75056         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
75057         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
75058         (bind_textdomain_codeset) [! ENABLE_NLS]:
75059         Evaluate all the arguments.  That way, callers get compatible behavior
75060         if the arguments have side effects.  Also, it avoids some GCC
75061         diagnostics in some cases; Joel E. Denny reported problems when Bison
75062         was configured with --enable-gcc-warnigs.
75063
75064 2006-11-10  Jim Meyering  <jim@meyering.net>
75065
75066         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
75067         relevant options in CFLAGS (like -O, -fno-inline) are taken into
75068         account.
75069
75070 2006-11-10  Jim Meyering  <jim@meyering.net>
75071
75072         * modules/inline: New file/module.
75073         * modules/xalloc (Files): Remove m4/inline.m4.
75074         (Depends-on): Add inline, instead.
75075         * modules/oset: Likewise.
75076         * modules/list: Likewise.
75077
75078 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75079
75080         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
75081         Problem reported by Matthew Woehlke.
75082
75083 2006-11-09  Bruno Haible  <bruno@clisp.org>
75084
75085         * lib/tempname.c (gen_tempname): Remove variant that invokes
75086         __gen_tempname.
75087         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
75088         __gen_tempname.
75089
75090 2006-11-08  Bruno Haible  <bruno@clisp.org>
75091
75092         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
75093         to 'yes' instead of 'cross-compiling'.
75094
75095 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
75096
75097         * lib/quotearg.h (quotearg_free): New decl.
75098         * lib/quotearg.c (quotearg_free): New function.
75099         (slot0, nslots, slotvec0, slotvec):
75100         Now file-scope so that quotearg_free can get at them.
75101
75102 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75103
75104         Sync from Automake.
75105         * build-aux/gnupload: Add missing 'gnu' to example URL.
75106         Report by Karl Berry.
75107
75108 2006-11-08  Bruno Haible  <bruno@clisp.org>
75109
75110         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
75111         Suggested by Paul Eggert.
75112
75113 2006-11-08  Jim Meyering  <jim@meyering.net>
75114
75115         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
75116         It's already included if !_LIBC.
75117         (fts_safe_changedir): Add a comment.
75118
75119 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75120
75121         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
75122         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
75123         Matthew Woehlke.
75124
75125         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
75126         definitions up, to avoid colliding with change below.
75127         (static_inline) [HAVE_INLINE]: New macro.
75128         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
75129         Provide extern decls when !HAVE_INLINE.  Do not define unless
75130         static_inline is defined, either by us or by xmalloc.c.  Use
75131         static_inline rather than static inline.
75132         (XCALLOC): Optimize sizeof(T) = 1 case.
75133         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
75134
75135 2006-11-07  Bruno Haible  <bruno@clisp.org>
75136
75137         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
75138         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
75139         AC_C_INLINE.
75140         * modules/xalloc (Files): Add m4/inline.m4.
75141
75142 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75143
75144         * README: Fix typo.
75145         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
75146         (Miscellanous Notes): ...from this.
75147
75148 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75149
75150         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
75151         Mention that offsetof should be used instead of sizeof.
75152         From Bruno Haible.
75153
75154 2006-11-07  Bruno Haible  <bruno@clisp.org>
75155
75156         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
75157
75158 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75159
75160         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75161         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
75162         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75163         (gl_tree_add_before, gl_tree_add_after):
75164         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
75165         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
75166         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
75167         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
75168         (gl_linked_add_after, gl_linked_add_at): Likewise.
75169         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
75170         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75171         (gl_tree_add_before, gl_tree_add_after): Likewise.
75172         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
75173         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
75174         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
75175
75176 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75177
75178         * lib/gl_oset.h: Use C comment style, not C++ comment style.
75179
75180 2006-11-06  Bruno Haible  <bruno@clisp.org>
75181
75182         * m4/inline.m4: New file.
75183         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
75184         * modules/list (Files): Add m4/inline.m4.
75185         * modules/oset (Files): Likewise.
75186
75187 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75188
75189         * lib/idcache.c: Include <stddef.h>, for offsetof.
75190         (struct userid.name): Change from char * to a flexible array member.
75191         All uses changed.
75192         * modules/idcache (Depends-on): Add flexmember.
75193
75194         * MODULES.html.sh (Core language properties): New module flexmember.
75195         * modules/flexmember, m4/flexmember.m4: New files.
75196
75197         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
75198         inline functions that are identical with the old xnmalloc_inline,
75199         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
75200         that we can avoid some unnecessary integer multiplications and
75201         divisions in the common case where the element size is known at
75202         compile time.
75203         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
75204         needed.
75205         (xnboundedmalloc): Remove.
75206         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
75207         arguments, for consistency with rest of this header.
75208         (xcharalloc): Rewrite using XNMALLOC.
75209         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
75210         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
75211         versions have been moved to lib/xalloc.h and renamed to be the
75212         non-*_inline versions.
75213         (xmalloc, xrealloc): Implement without reference to the xnmalloc
75214         and xnrealloc functions, since those functions are now inline and
75215         now call us.
75216         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
75217         renaming described above.
75218         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
75219         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
75220         captures the dependency in AC_C_INLINE.
75221
75222         New module canonicalize-lgpl, proposed by Charles Wilson in
75223         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
75224         with a few small changes afterwards.
75225         * MODULES.html.sh (File system functions): New module
75226         canonicalize-lgpl.
75227         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
75228         and canonicalize_file_name.
75229         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
75230         * modules/canonicalize-lgpl: New files.
75231
75232 2006-11-05  Bruno Haible  <bruno@clisp.org>
75233
75234         * gnulib-tool (func_import, func_create_testdir): Create directories
75235         also for files in subdirectories of lib/.
75236
75237 2006-11-05  Bruno Haible  <bruno@clisp.org>
75238
75239         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
75240         ANSI C compliant.
75241
75242 2006-11-03  Bruno Haible  <bruno@clisp.org>
75243
75244         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75245         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
75246         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
75247         (xnboundedmalloc): New inline function.
75248         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
75249         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
75250         xmalloc.
75251         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
75252         xmalloc.
75253         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
75254         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
75255         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
75256         xmalloc.
75257         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75258         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
75259         xmalloc.
75260         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
75261         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75262         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
75263         xmalloc.
75264         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75265         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
75266         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75267         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
75268         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
75269         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
75270         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
75271
75272 2006-11-03  Bruno Haible  <bruno@clisp.org>
75273
75274         * lib/c-ctype.h [C++]: Define functions without name mangling.
75275         * lib/fwriteerror.h [C++]: Likewise.
75276         * lib/gcd.h [C++]: Likewise.
75277         * lib/linebreak.h [C++]: Likewise.
75278
75279 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75280
75281         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
75282         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
75283         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
75284         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75285         Check for functions and headers just once.
75286         Check for declaration of canonicalize_file_name.
75287         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
75288
75289 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75290
75291         * gnulib-tool (func_import): Fix typo in actioncmd.
75292
75293 2006-11-02  Bruno Haible  <bruno@clisp.org>
75294
75295         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
75296         newline sequence in the Makefile.am snippet as a space, like "make"
75297         does.
75298         Reported by Roger Persson <perrog@gmail.com>.
75299
75300 2006-11-01  Bruno Haible  <bruno@clisp.org>
75301
75302         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
75303         already declared in <string.h>.
75304         * lib/strcase.h (strncasecmp): Don't declare it if yes.
75305
75306 2006-11-01  Bruno Haible  <bruno@clisp.org>
75307
75308         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
75309         * lib/strcase.h: Include <string.h>.
75310         (strcasecmp): Define to rpl_strcasecmp here.
75311
75312 2006-11-01  Bruno Haible  <bruno@clisp.org>
75313
75314         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
75315
75316 2006-11-01  Eric Blake  <ebb9@byu.net>
75317
75318         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
75319
75320         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
75321
75322 2006-10-29  Bruno Haible  <bruno@clisp.org>
75323
75324         Make it compile in C++ mode.
75325         * lib/full-write.c (full_rw): Add a cast.
75326
75327 2006-11-01  Bruno Haible  <bruno@clisp.org>
75328
75329         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
75330         be POSIX compliant.
75331         Reported by Roger Persson <perrog@gmail.com>.
75332
75333 2006-11-01  Eric Blake  <ebb9@byu.net>
75334
75335         * lib/getopt_.h: Fix comments.
75336
75337 2006-10-31  Eric Blake  <ebb9@byu.net>
75338
75339         * modules/tmpdir (Depends-on): Add sys_stat.
75340         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
75341         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
75342         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
75343         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
75344         tempname.
75345
75346 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
75347
75348         Avoid some C++ diagnostics reported by Bruno Haible.
75349         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
75350         xmalloc.
75351         (quotearg_alloc): Use xcharalloc rather than xmalloc.
75352         (struct slotvec): Move to top level.
75353         (quotearg_n_options): Rewrite to avoid xmalloc.
75354         * lib/xalloc.h (xcharalloc): New function.
75355         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
75356         [defined __cplusplus]: Add function template that provides result
75357         type propagation.  This part of the change is from Bruno Haible.
75358
75359 2006-10-29  Bruno Haible  <bruno@clisp.org>
75360
75361         Make it compile in C++ mode.
75362         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
75363         * lib/strnlen1.c (strnlen1): Cast memchr result.
75364         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
75365         * lib/clean-temp.c (string_equals, string_hash): Add casts.
75366         (create_temp_dir): Rename local variable 'template'.
75367         (compile_csharp_using_sscli): Add cast.
75368         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
75369         * lib/findprog.c (find_in_path): Likewise.
75370         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
75371         * lib/wait-process.c (register_slave_subprocess): Likewise.
75372
75373 2006-10-22  Bruno Haible  <bruno@clisp.org>
75374
75375         * modules/tsearch: New file.
75376         * lib/tsearch.h: New file.
75377         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
75378         * m4/tsearch.m4: New file.
75379         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
75380
75381 2006-10-29  Eric Blake  <ebb9@byu.net>
75382
75383         * lib/arcfour.c: Assume config.h.
75384         * lib/arctwo.c: Likewise.
75385         * lib/base64.c: Likewise.
75386         * lib/check-version.c: Likewise.
75387         * lib/crc.c: Likewise.
75388         * lib/des.c: Likewise.
75389         * lib/gc-gnulib.c: Likewise.
75390         * lib/gc-libgcrypt.c: Likewise.
75391         * lib/gc-pbkdf2-sha1.c: Likewise.
75392         * lib/getaddrinfo.c: Likewise.
75393         * lib/getdelim.c: Likewise.
75394         * lib/getline.c: Likewise.
75395         * lib/hmac-md5.c: Likewise.
75396         * lib/hmac-sha1.c: Likewise.
75397         * lib/iconvme.c: Likewise.
75398         * lib/md2.c: Likewise.
75399         * lib/md4.c: Likewise.
75400         * lib/memxor.c: Likewise.
75401         * lib/read-file.c: Likewise.
75402         * lib/readline.c: Likewise.
75403         * lib/rijndael-alg-fst.c: Likewise.
75404         * lib/rijndael-api-fst.c: Likewise.
75405         * lib/xgetdomainname.c: Likewise.
75406
75407 2006-10-28  Eric Blake  <ebb9@byu.net>
75408
75409         * lib/xstrndup.c: Assume config.h.
75410
75411 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75412
75413         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
75414         stat-macros.h is now for our own macros, whereas stat_h is for
75415         macros in the <sys/stat.h> name space.
75416         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
75417         (STAT_MACROS_H): Remove.
75418         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
75419         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
75420         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
75421         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
75422         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
75423         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
75424         Move these macros to ...
75425         * lib/stat_.h: here.  Don't include stat-macros.h.
75426         * lib/canonicalize.c: Don't include stat-macros.h.
75427         * lib/chown.c: Likewise.
75428         * lib/euidaccess.c: Likewise.
75429         * lib/file-type.c: Likewise.
75430         * lib/filemode.c: Likewise.
75431         * lib/glob.c: Likewise.
75432         * lib/isapipe.c: Likewise.
75433         * lib/lchown.c: Likewise.
75434         * lib/lstat.c: Likewise.
75435         * lib/mkdir-p.c: Likewise.
75436         * lib/rmdir.c: Likewise.
75437         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
75438         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
75439         unless mkdir isn't declared, to speed up 'configure'.
75440         Always create sys/stat.h, since it's unlikely any real sys/stat.h
75441         would define all the S_* symbols.
75442         * modules/canonicalize (Depends-on):
75443         Depend on sys_stat, not stat-macros.
75444         * modules/chown: Likewise.
75445         * modules/euidaccess: Likewise.
75446         * modules/filemode: Likewise.
75447         * modules/file-type: Likewise.
75448         * modules/glob: Likewise.
75449         * modules/isapipe: Likewise.
75450         * modules/lchown: Likewise.
75451         * modules/lstat: Likewise.
75452         * modules/mkancesdirs: Likewise.
75453         * modules/rmdir: Likewise.
75454         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
75455         * modules/modechange: Likewise.
75456         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
75457         (configure.ac): Remove gl_STAT_MACROS.
75458         * modules/sys_stat (Depends-on): Remove stat-macros.
75459
75460 2006-10-27  Bruno Haible  <bruno@clisp.org>
75461
75462         * m4/signed.m4: Remove file.
75463         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
75464         invocation.
75465         * modules/vasnprintf (Files): Remove m4/signed.m4.
75466
75467 2006-10-27  Bruno Haible  <bruno@clisp.org>
75468
75469         Update to GNU gettext 0.16.
75470         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
75471         m4/inttypes-h.m4, m4/signed.m4.
75472         * m4/gettext.m4: Update to GNU gettext 0.16.
75473         * m4/intl.m4: New file, from GNU gettext.
75474         * m4/intldir.m4: New file, from GNU gettext.
75475         * config/srclist.txt: Update
75476
75477 2006-10-27  Eric Blake  <ebb9@byu.net>
75478
75479         * MODULES.html.sh: Document tempname.
75480         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
75481         dependencies.
75482         (Files): Move lib/tempname.c...
75483         * modules/tempname: ...to this new module.
75484         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
75485         (gl_PREREQ_TEMPNAME): Move...
75486         * m4/tempname.m4: ...to this new file.
75487         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
75488         * modules/sys_stat (Depends-on): Add stat-macros.
75489         * lib/stat_.h (includes): Pick up stat macros.
75490         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
75491         if stat macros are broken.
75492         * lib/tempname.c (includes): No need to include "stat-macros.h".
75493         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
75494         (direxists, __path_search) [!_LIBC]: Don't compile these in
75495         gnulib; the tmpdir module covers that.
75496         * lib/tempname.h: New file.
75497
75498 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
75499
75500         * COPYING: Explain how gnulib-tool converts licence headers.
75501         Almost all wording by Eric Blake.
75502
75503 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
75504
75505         * lib/mbchar.h (is_basic_table): Make read-only.
75506         * lib/mbchar.c (is_basic_table): Likewise.
75507         Reported by John Darrington.
75508
75509 2006-10-25  Bruno Haible  <bruno@clisp.org>
75510
75511         * lib/progname.h (set_program_name): Undefine before defining.
75512
75513 2006-10-25  Bruno Haible  <bruno@clisp.org>
75514
75515         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
75516         false for non-gcc C++ compilers.
75517         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
75518
75519 2006-10-24  Bruno Haible  <bruno@clisp.org>
75520
75521         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
75522         iconv implementations like Irix iconv.
75523
75524 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75525
75526         * modules/vararrays: New file.
75527         * m4/vararrays.m4: New file, taken from diffutils.
75528         * MODULES.html.sh: New module vararrays.
75529
75530 2006-10-24  Karl Berry  <karl@gnu.org>
75531
75532         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
75533         Don't call GNU Unix.
75534
75535 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75536
75537         * users.txt: Add Libtool.
75538
75539         Sync from Libtool:
75540
75541         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75542
75543         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
75544         to gnulib's policy of including config.h unconditionally.
75545
75546 2006-10-24  Bruno Haible  <bruno@clisp.org>
75547
75548         * modules/wcwidth (Files): Add m4/wint_t.m4.
75549         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
75550         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
75551
75552 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75553
75554         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
75555         to pacify GCC with some -W flags enabled.  Problem reported by
75556         Bruno Haible.
75557
75558 2006-10-24  Jim Meyering  <jim@meyering.net>
75559
75560         * MODULES.html.sh: Remove uinttostr.  It's not a module.
75561         Reported by Karl Berry.
75562
75563 2006-10-23  Bruno Haible  <bruno@clisp.org>
75564
75565         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
75566
75567 2006-10-24  Bruno Haible  <bruno@clisp.org>
75568
75569         * lib/gl_list.h: Use C comment style, not C++ comment style.
75570
75571 2006-10-23  Eric Blake  <ebb9@byu.net>
75572
75573         * lib/getaddrinfo.c (includes): Add missing include.
75574
75575 2006-10-23  Bruno Haible  <bruno@clisp.org>
75576             Paul Eggert  <eggert@cs.ucla.edu>
75577
75578         Ability to rename obstack_free.
75579         * lib/obstack.h (__obstack_free): New macro. Declare instead of
75580         obstack_free.
75581         (obstack_free): Invoke the __obstack_free macro.
75582         * lib/obstack.c (obstack_free): Use __obstack_free macro.
75583
75584 2006-10-23  Bruno Haible  <bruno@clisp.org>
75585             Paul Eggert  <eggert@cs.ucla.edu>
75586
75587         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
75588         __argc, __argv from the declaration. (They are defined as macros on
75589         mingw.)
75590
75591 2006-10-22  Bruno Haible  <bruno@clisp.org>
75592
75593         * doc/gnulib-intro.texi: New file.
75594         * doc/gnulib.texi: Include it.
75595
75596 2006-10-21  Bruno Haible  <bruno@clisp.org>
75597
75598         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
75599         "Introduction", "Miscellanous Notes", "Particular Modules".
75600
75601 2006-10-21  Bruno Haible  <bruno@clisp.org>
75602
75603         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75604         Change mostlyclean-local rule to avoid sh syntax error from bash
75605         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
75606
75607 2006-10-23  Jim Meyering  <jim@meyering.net>
75608
75609         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
75610         in place of snprintf.
75611
75612         * modules/inttostr (Files): Add lib/uinttostr.c.
75613         * lib/uinttostr.c (inttostr): New file/function.
75614         * lib/inttostr.h (uinttostr): Declare.
75615         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
75616         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
75617         Add uinttostr.
75618         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
75619
75620 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75621
75622         * lib/canonicalize.c (ELOOP): Define if not already defined.
75623         Problem reported by Bruno Haible in
75624         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
75625
75626 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75627
75628         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
75629         Problem reported by Perry Smith and Ville Laurikari.
75630
75631         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
75632         uses.
75633
75634 2006-10-19  Bruno Haible  <bruno@clisp.org>
75635
75636         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
75637         for mingw.
75638
75639 2006-10-19  Bruno Haible  <bruno@clisp.org>
75640
75641         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
75642         Needed for mingw.
75643
75644 2006-10-19  Bruno Haible  <bruno@clisp.org>
75645
75646         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
75647
75648 2006-10-19  Bruno Haible  <bruno@clisp.org>
75649
75650         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
75651         it.
75652
75653 2006-10-19  Bruno Haible  <bruno@clisp.org>
75654
75655         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
75656         invocation.
75657
75658 2006-10-19  Bruno Haible  <bruno@clisp.org>
75659
75660         * gnulib-tool (func_create_testdir): Don't include ftruncate and
75661         mountlist by default.
75662
75663 2006-10-16  Bruno Haible  <bruno@clisp.org>
75664
75665         * lib/c-strstr.c: Include c-strstr.h.
75666
75667 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75668
75669         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
75670         in a slash.
75671
75672 2006-10-18  Bruno Haible  <bruno@clisp.org>
75673
75674         * lib/lock.h [C++]: Wrap definitions in extern "C".
75675
75676 2006-10-18  Bruno Haible  <bruno@clisp.org>
75677
75678         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
75679         gl_LIBOBJS list.
75680
75681 2006-10-18  Bruno Haible  <bruno@clisp.org>
75682
75683         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
75684
75685 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
75686
75687         * lib/xstrtol.h: Include gettext.h.
75688         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
75689         Problem reported by Eric Blake.
75690         * modules/xstrtol (Depends-on): Add gettext-h.
75691
75692 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
75693
75694         * lib/strftime.c (advance): New macro.
75695         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
75696         incomplete type, so you can't add 0 to it.  Problem and patch
75697         reported by Eelco Dolstra for dietlibc.
75698
75699 2006-10-18  Jim Meyering  <jim@meyering.net>
75700
75701         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
75702         type for a local, and rename it: s/up/user_proc/.
75703
75704 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
75705
75706         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
75707         READ_UTMP_USER_PROCESS.
75708         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
75709
75710 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75711
75712         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
75713         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
75714
75715 2006-10-17  Eric Blake  <ebb9@byu.net>
75716
75717         * lib/sigprocmask.c (sigprocmask): Fix typo.
75718
75719         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
75720
75721         * modules/clean-temp (Makefile.am): Don't add to make output...
75722         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
75723         config.h.
75724
75725 2006-10-17  Bruno Haible  <bruno@clisp.org>
75726
75727         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
75728         differently if DEFAULT_TEXT_DOMAIN is set.
75729
75730 2006-10-16  Bruno Haible  <bruno@clisp.org>
75731
75732         * lib/clean-temp.c: Include fwriteerror.h.
75733
75734 2006-10-16  Bruno Haible  <bruno@clisp.org>
75735
75736         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
75737
75738 2006-10-16  Bruno Haible  <bruno@clisp.org>
75739
75740         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
75741         * lib/sigprocmask.h: Include <sys/types.h>.
75742         (sigset_t): Use the system's definition if present.
75743
75744 2006-10-17  Eric Blake  <ebb9@byu.net>
75745
75746         * lib/xvasprintf.c (includes): Assume config.h.
75747         * lib/xasprintf.c (includes): Likewise.
75748
75749 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
75750
75751         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
75752         at least as wide as intmax_t.
75753
75754 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
75755
75756         (Imported from Automake.)
75757         * build-aux/gnupload: Update to version 1.1 of directive file.
75758
75759 2006-10-16  Eric Blake  <ebb9@byu.net>
75760
75761         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
75762         match Automake 1.10a.
75763
75764 2006-10-14  Bruno Haible  <bruno@clisp.org>
75765
75766         * modules/sigprocmask: New file.
75767         * lib/sigprocmask.h: New file.
75768         * lib/sigprocmask.c: New file.
75769         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
75770         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
75771         request sigprocmask.o.
75772         (gl_PREREQ_SIGPROCMASK): New macro.
75773         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
75774         (Depends-on): Add sigprocmask.
75775         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
75776         gt_SIGNALBLOCKING. Test for 'raise' only once.
75777         * lib/fatal-signal.c: Include sigprocmask.h.
75778         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
75779         unblock_fatal_signals): Define always.
75780         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75781         sigprocmask.
75782
75783 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75784
75785         Sync from Automake.
75786         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
75787         which incorrectly sets the mode of an existing destination
75788         directory.  In some cases the unpatched install-sh could do the
75789         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
75790         system.  We hope this is rare in practice, but it's clearly worth
75791         fixing.  Problem reported by Alex Unleashed in
75792         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
75793         Also, don't bother to check for -m bugs unless we're using -m;
75794         suggested by Stepan Kasal.
75795
75796 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75797
75798         Sync from Automake.
75799         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
75800         `-c' flag, so they appear at the same position as in %FASTDEP%
75801         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
75802         which ignores unknown options only after the first non-option.
75803         Bug report against M4 by Nelson H. F. Beebe.
75804
75805 2006-10-13  Jim Meyering  <jim@meyering.net>
75806
75807         Fix a bug in yesterday's change.
75808         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
75809         p->fts_statp->st_dev would be used uninitialized.
75810         Ensures that we always call fts_stat on the very first entry.
75811         Miklos Szeredi reported that find -xdev stopped working.
75812
75813 2006-10-12  Bruno Haible  <bruno@clisp.org>
75814
75815         * gnulib-tool (func_get_automake_snippet): Append an automatically
75816         computed EXTRA_DIST augmentation.
75817         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
75818         * modules/alloca-opt (Makefile.am): Likewise.
75819         * modules/allocsa (Makefile.am): Likewise.
75820         * modules/arcfour (Makefile.am): Likewise.
75821         * modules/arctwo (Makefile.am): Likewise.
75822         * modules/argmatch (Makefile.am): Likewise.
75823         * modules/argz (Makefile.am): Likewise.
75824         * modules/atexit (Makefile.am): Likewise.
75825         * modules/backupfile (Makefile.am): Likewise.
75826         * modules/byteswap (Makefile.am): Likewise.
75827         * modules/c-strtod (Makefile.am): Likewise.
75828         * modules/c-strtold (Makefile.am): Likewise.
75829         * modules/calloc (Makefile.am): Likewise.
75830         * modules/canon-host (Makefile.am): Likewise.
75831         * modules/canonicalize (Makefile.am): Likewise.
75832         * modules/chdir-long (Makefile.am): Likewise.
75833         * modules/chdir-safer (Makefile.am): Likewise.
75834         * modules/check-version (Makefile.am): Likewise.
75835         * modules/chown (Makefile.am): Likewise.
75836         * modules/cloexec (Makefile.am): Likewise.
75837         * modules/close-stream (Makefile.am): Likewise.
75838         * modules/closeout (Makefile.am): Likewise.
75839         * modules/crc (Makefile.am): Likewise.
75840         * modules/csharpexec (Makefile.am): Likewise.
75841         * modules/cycle-check (Makefile.am): Likewise.
75842         * modules/des (Makefile.am): Likewise.
75843         * modules/dev-ino (Makefile.am): Likewise.
75844         * modules/dirfd (Makefile.am): Likewise.
75845         * modules/dirname (Makefile.am): Likewise.
75846         * modules/dup2 (Makefile.am): Likewise.
75847         * modules/eealloc (Makefile.am): Likewise.
75848         * modules/error (Makefile.am): Likewise.
75849         * modules/euidaccess (Makefile.am): Likewise.
75850         * modules/exclude (Makefile.am): Likewise.
75851         * modules/exitfail (Makefile.am): Likewise.
75852         * modules/fcntl-safer (Makefile.am): Likewise.
75853         * modules/fcntl (Makefile.am): Likewise.
75854         * modules/file-type (Makefile.am): Likewise.
75855         * modules/fileblocks (Makefile.am): Likewise.
75856         * modules/filemode (Makefile.am): Likewise.
75857         * modules/filenamecat (Makefile.am): Likewise.
75858         * modules/fnmatch (Makefile.am): Likewise.
75859         * modules/fopen-safer (Makefile.am): Likewise.
75860         * modules/fpending (Makefile.am): Likewise.
75861         * modules/fprintftime (Makefile.am): Likewise.
75862         * modules/free (Makefile.am): Likewise.
75863         * modules/fsusage (Makefile.am): Likewise.
75864         * modules/ftruncate (Makefile.am): Likewise.
75865         * modules/fts (Makefile.am): Likewise.
75866         * modules/gc-arcfour (Makefile.am): Likewise.
75867         * modules/gc-des (Makefile.am): Likewise.
75868         * modules/gc-hmac-md5 (Makefile.am): Likewise.
75869         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
75870         * modules/gc-md4 (Makefile.am): Likewise.
75871         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75872         * modules/gc-sha1 (Makefile.am): Likewise.
75873         * modules/gc (Makefile.am): Likewise.
75874         * modules/getaddrinfo (Makefile.am): Likewise.
75875         * modules/getcwd (Makefile.am): Likewise.
75876         * modules/getdelim (Makefile.am): Likewise.
75877         * modules/getdomainname (Makefile.am): Likewise.
75878         * modules/getgroups (Makefile.am): Likewise.
75879         * modules/gethostname (Makefile.am): Likewise.
75880         * modules/gethrxtime (Makefile.am): Likewise.
75881         * modules/getline (Makefile.am): Likewise.
75882         * modules/getloadavg (Makefile.am): Likewise.
75883         * modules/getlogin_r (Makefile.am): Likewise.
75884         * modules/getndelim2 (Makefile.am): Likewise.
75885         * modules/getopt (Makefile.am): Likewise.
75886         * modules/getpagesize (Makefile.am): Likewise.
75887         * modules/getpass-gnu (Makefile.am): Likewise.
75888         * modules/getpass (Makefile.am): Likewise.
75889         * modules/getsubopt (Makefile.am): Likewise.
75890         * modules/gettime (Makefile.am): Likewise.
75891         * modules/gettimeofday (Makefile.am): Likewise.
75892         * modules/getugroups (Makefile.am): Likewise.
75893         * modules/getusershell (Makefile.am): Likewise.
75894         * modules/glob (Makefile.am): Likewise.
75895         * modules/group-member (Makefile.am): Likewise.
75896         * modules/hard-locale (Makefile.am): Likewise.
75897         * modules/hash (Makefile.am): Likewise.
75898         * modules/hmac-md5 (Makefile.am): Likewise.
75899         * modules/hmac-sha1 (Makefile.am): Likewise.
75900         * modules/human (Makefile.am): Likewise.
75901         * modules/idcache (Makefile.am): Likewise.
75902         * modules/imaxabs (Makefile.am): Likewise.
75903         * modules/imaxdiv (Makefile.am): Likewise.
75904         * modules/inet_ntop (Makefile.am): Likewise.
75905         * modules/inet_pton (Makefile.am): Likewise.
75906         * modules/intprops (Makefile.am): Likewise.
75907         * modules/inttostr (Makefile.am): Likewise.
75908         * modules/inttypes (Makefile.am): Likewise.
75909         * modules/isapipe (Makefile.am): Likewise.
75910         * modules/javaversion (Makefile.am): Likewise.
75911         * modules/lchmod (Makefile.am): Likewise.
75912         * modules/lchown (Makefile.am): Likewise.
75913         * modules/localcharset (Makefile.am): Likewise.
75914         * modules/long-options (Makefile.am): Likewise.
75915         * modules/lstat (Makefile.am): Likewise.
75916         * modules/malloc (Makefile.am): Likewise.
75917         * modules/mathl (Makefile.am): Likewise.
75918         * modules/mbchar (Makefile.am): Likewise.
75919         * modules/md2 (Makefile.am): Likewise.
75920         * modules/md4 (Makefile.am): Likewise.
75921         * modules/md5 (Makefile.am): Likewise.
75922         * modules/memcasecmp (Makefile.am): Likewise.
75923         * modules/memchr (Makefile.am): Likewise.
75924         * modules/memcmp (Makefile.am): Likewise.
75925         * modules/memcoll (Makefile.am): Likewise.
75926         * modules/memcpy (Makefile.am): Likewise.
75927         * modules/memmem (Makefile.am): Likewise.
75928         * modules/memmove (Makefile.am): Likewise.
75929         * modules/mempcpy (Makefile.am): Likewise.
75930         * modules/memrchr (Makefile.am): Likewise.
75931         * modules/memset (Makefile.am): Likewise.
75932         * modules/memxor (Makefile.am): Likewise.
75933         * modules/mkancesdirs (Makefile.am): Likewise.
75934         * modules/mkdir-p (Makefile.am): Likewise.
75935         * modules/mkdir (Makefile.am): Likewise.
75936         * modules/mkdtemp (Makefile.am): Likewise.
75937         * modules/mkstemp (Makefile.am): Likewise.
75938         * modules/mktime (Makefile.am): Likewise.
75939         * modules/modechange (Makefile.am): Likewise.
75940         * modules/mountlist (Makefile.am): Likewise.
75941         * modules/nanosleep (Makefile.am): Likewise.
75942         * modules/obstack (Makefile.am): Likewise.
75943         * modules/openat (Makefile.am): Likewise.
75944         * modules/pagealign_alloc (Makefile.am): Likewise.
75945         * modules/pathmax (Makefile.am): Likewise.
75946         * modules/physmem (Makefile.am): Likewise.
75947         * modules/poll (Makefile.am): Likewise.
75948         * modules/posixtm (Makefile.am): Likewise.
75949         * modules/posixver (Makefile.am): Likewise.
75950         * modules/putenv (Makefile.am): Likewise.
75951         * modules/quote (Makefile.am): Likewise.
75952         * modules/quotearg (Makefile.am): Likewise.
75953         * modules/raise (Makefile.am): Likewise.
75954         * modules/read-file (Makefile.am): Likewise.
75955         * modules/readline (Makefile.am): Likewise.
75956         * modules/readlink (Makefile.am): Likewise.
75957         * modules/readtokens (Makefile.am): Likewise.
75958         * modules/readutmp (Makefile.am): Likewise.
75959         * modules/realloc (Makefile.am): Likewise.
75960         * modules/regex (Makefile.am): Likewise.
75961         * modules/rename-dest-slash (Makefile.am): Likewise.
75962         * modules/rename (Makefile.am): Likewise.
75963         * modules/rijndael (Makefile.am): Likewise.
75964         * modules/rmdir (Makefile.am): Likewise.
75965         * modules/rpmatch (Makefile.am): Likewise.
75966         * modules/safe-read (Makefile.am): Likewise.
75967         * modules/safe-write (Makefile.am): Likewise.
75968         * modules/same-inode (Makefile.am): Likewise.
75969         * modules/same (Makefile.am): Likewise.
75970         * modules/save-cwd (Makefile.am): Likewise.
75971         * modules/savedir (Makefile.am): Likewise.
75972         * modules/setenv (Makefile.am): Likewise.
75973         * modules/settime (Makefile.am): Likewise.
75974         * modules/sha1 (Makefile.am): Likewise.
75975         * modules/sig2str (Makefile.am): Likewise.
75976         * modules/snprintf (Makefile.am): Likewise.
75977         * modules/stat-macros (Makefile.am): Likewise.
75978         * modules/stat-time (Makefile.am): Likewise.
75979         * modules/stdbool (Makefile.am): Likewise.
75980         * modules/stdint (Makefile.am): Likewise.
75981         * modules/stdlib-safer (Makefile.am): Likewise.
75982         * modules/stpcpy (Makefile.am): Likewise.
75983         * modules/stpncpy (Makefile.am): Likewise.
75984         * modules/strcase (Makefile.am): Likewise.
75985         * modules/strcasestr (Makefile.am): Likewise.
75986         * modules/strchrnul (Makefile.am): Likewise.
75987         * modules/strcspn (Makefile.am): Likewise.
75988         * modules/strdup (Makefile.am): Likewise.
75989         * modules/strerror (Makefile.am): Likewise.
75990         * modules/strftime (Makefile.am): Likewise.
75991         * modules/strndup (Makefile.am): Likewise.
75992         * modules/strnlen (Makefile.am): Likewise.
75993         * modules/strpbrk (Makefile.am): Likewise.
75994         * modules/strsep (Makefile.am): Likewise.
75995         * modules/strstr (Makefile.am): Likewise.
75996         * modules/strtod (Makefile.am): Likewise.
75997         * modules/strtoimax (Makefile.am): Likewise.
75998         * modules/strtok_r (Makefile.am): Likewise.
75999         * modules/strtol (Makefile.am): Likewise.
76000         * modules/strtoll (Makefile.am): Likewise.
76001         * modules/strtoul (Makefile.am): Likewise.
76002         * modules/strtoull (Makefile.am): Likewise.
76003         * modules/strtoumax (Makefile.am): Likewise.
76004         * modules/strverscmp (Makefile.am): Likewise.
76005         * modules/sys_socket (Makefile.am): Likewise.
76006         * modules/sys_stat (Makefile.am): Likewise.
76007         * modules/sysexits (Makefile.am): Likewise.
76008         * modules/time_r (Makefile.am): Likewise.
76009         * modules/timegm (Makefile.am): Likewise.
76010         * modules/timespec (Makefile.am): Likewise.
76011         * modules/tmpfile-safer (Makefile.am): Likewise.
76012         * modules/trim (Makefile.am): Likewise.
76013         * modules/unistd-safer (Makefile.am): Likewise.
76014         * modules/unlinkdir (Makefile.am): Likewise.
76015         * modules/unlocked-io (Makefile.am): Likewise.
76016         * modules/userspec (Makefile.am): Likewise.
76017         * modules/utime (Makefile.am): Likewise.
76018         * modules/utimecmp (Makefile.am): Likewise.
76019         * modules/utimens (Makefile.am): Likewise.
76020         * modules/vasnprintf (Makefile.am): Likewise.
76021         * modules/vasprintf (Makefile.am): Likewise.
76022         * modules/vsnprintf (Makefile.am): Likewise.
76023         * modules/xalloc (Makefile.am): Likewise.
76024         * modules/xgetcwd (Makefile.am): Likewise.
76025         * modules/xnanosleep (Makefile.am): Likewise.
76026         * modules/xreadlink (Makefile.am): Likewise.
76027         * modules/xstrtod (Makefile.am): Likewise.
76028         * modules/xstrtol (Makefile.am): Likewise.
76029         * modules/xstrtold (Makefile.am): Likewise.
76030         * modules/yesno (Makefile.am): Likewise.
76031         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
76032
76033 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76034
76035         * modules/error (Makefile.am): Distribute files through
76036         EXTRA_DIST, not lib_SOURCES.
76037
76038 2006-10-12  Eric Blake  <ebb9@byu.net>
76039
76040         * modules/error (Makefile.am): Distribute files in /lib.
76041         * modules/obstack (Makefile.am): Likewise.
76042
76043 2006-10-12  Bruno Haible  <bruno@clisp.org>
76044
76045         * modules/acl (Makefile.am): Distribute all files in lib/ through
76046         EXTRA_DIST.
76047         * modules/arcfour (Makefile.am): Likewise.
76048         * modules/arctwo (Makefile.am): Likewise.
76049         * modules/argmatch (Makefile.am): Likewise.
76050         * modules/argz (Makefile.am): Likewise.
76051         * modules/atexit (Makefile.am): Likewise.
76052         * modules/backupfile (Makefile.am): Likewise.
76053         * modules/c-strtod (Makefile.am): Likewise.
76054         * modules/c-strtold (Makefile.am): Likewise.
76055         * modules/calloc (Makefile.am): Likewise.
76056         * modules/canon-host (Makefile.am): Likewise.
76057         * modules/canonicalize (Makefile.am): Likewise.
76058         * modules/chdir-long (Makefile.am): Likewise.
76059         * modules/chdir-safer (Makefile.am): Likewise.
76060         * modules/check-version (Makefile.am): Likewise.
76061         * modules/chown (Makefile.am): Likewise.
76062         * modules/cloexec (Makefile.am): Likewise.
76063         * modules/close-stream (Makefile.am): Likewise.
76064         * modules/closeout (Makefile.am): Likewise.
76065         * modules/crc (Makefile.am): Likewise.
76066         * modules/cycle-check (Makefile.am): Likewise.
76067         * modules/des (Makefile.am): Likewise.
76068         * modules/dirfd (Makefile.am): Likewise.
76069         * modules/dirname (Makefile.am): Likewise.
76070         * modules/dup2 (Makefile.am): Likewise.
76071         * modules/euidaccess (Makefile.am): Likewise.
76072         * modules/exclude (Makefile.am): Likewise.
76073         * modules/exitfail (Makefile.am): Likewise.
76074         * modules/fcntl-safer (Makefile.am): Likewise.
76075         * modules/file-type (Makefile.am): Likewise.
76076         * modules/fileblocks (Makefile.am): Likewise.
76077         * modules/filemode (Makefile.am): Likewise.
76078         * modules/filenamecat (Makefile.am): Likewise.
76079         * modules/fnmatch (Makefile.am): Likewise.
76080         * modules/fopen-safer (Makefile.am): Likewise.
76081         * modules/fpending (Makefile.am): Likewise.
76082         * modules/fprintftime (Makefile.am): Likewise.
76083         * modules/free (Makefile.am): Likewise.
76084         * modules/fsusage (Makefile.am): Likewise.
76085         * modules/ftruncate (Makefile.am): Likewise.
76086         * modules/fts (Makefile.am): Likewise.
76087         * modules/gc (Makefile.am): Likewise.
76088         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76089         * modules/getaddrinfo (Makefile.am): Likewise.
76090         * modules/getcwd (Makefile.am): Likewise.
76091         * modules/getdelim (Makefile.am): Likewise.
76092         * modules/getdomainname (Makefile.am): Likewise.
76093         * modules/getgroups (Makefile.am): Likewise.
76094         * modules/gethostname (Makefile.am): Likewise.
76095         * modules/gethrxtime (Makefile.am): Likewise.
76096         * modules/getline (Makefile.am): Likewise.
76097         * modules/getloadavg (Makefile.am): Likewise.
76098         * modules/getlogin_r (Makefile.am): Likewise.
76099         * modules/getopt (Makefile.am): Likewise.
76100         * modules/getpass (Makefile.am): Likewise.
76101         * modules/getpass-gnu (Makefile.am): Likewise.
76102         * modules/getsubopt (Makefile.am): Likewise.
76103         * modules/gettime (Makefile.am): Likewise.
76104         * modules/gettimeofday (Makefile.am): Likewise.
76105         * modules/getugroups (Makefile.am): Likewise.
76106         * modules/getusershell (Makefile.am): Likewise.
76107         * modules/glob (Makefile.am): Likewise.
76108         * modules/group-member (Makefile.am): Likewise.
76109         * modules/hard-locale (Makefile.am): Likewise.
76110         * modules/hash (Makefile.am): Likewise.
76111         * modules/hmac-md5 (Makefile.am): Likewise.
76112         * modules/hmac-sha1 (Makefile.am): Likewise.
76113         * modules/human (Makefile.am): Likewise.
76114         * modules/idcache (Makefile.am): Likewise.
76115         * modules/imaxabs (Makefile.am): Likewise.
76116         * modules/imaxdiv (Makefile.am): Likewise.
76117         * modules/inet_ntop (Makefile.am): Likewise.
76118         * modules/inet_pton (Makefile.am): Likewise.
76119         * modules/inttostr (Makefile.am): Likewise.
76120         * modules/isapipe (Makefile.am): Likewise.
76121         * modules/lchown (Makefile.am): Likewise.
76122         * modules/long-options (Makefile.am): Likewise.
76123         * modules/lstat (Makefile.am): Likewise.
76124         * modules/malloc (Makefile.am): Likewise.
76125         * modules/mathl (Makefile.am): Likewise.
76126         * modules/mbchar (Makefile.am): Likewise.
76127         * modules/md2 (Makefile.am): Likewise.
76128         * modules/md4 (Makefile.am): Likewise.
76129         * modules/md5 (Makefile.am): Likewise.
76130         * modules/memcasecmp (Makefile.am): Likewise.
76131         * modules/memchr (Makefile.am): Likewise.
76132         * modules/memcmp (Makefile.am): Likewise.
76133         * modules/memcoll (Makefile.am): Likewise.
76134         * modules/memcpy (Makefile.am): Likewise.
76135         * modules/memmem (Makefile.am): Likewise.
76136         * modules/memmove (Makefile.am): Likewise.
76137         * modules/mempcpy (Makefile.am): Likewise.
76138         * modules/memrchr (Makefile.am): Likewise.
76139         * modules/memset (Makefile.am): Likewise.
76140         * modules/memxor (Makefile.am): Likewise.
76141         * modules/mkancesdirs (Makefile.am): Likewise.
76142         * modules/mkdir (Makefile.am): Likewise.
76143         * modules/mkdir-p (Makefile.am): Likewise.
76144         * modules/mkdtemp (Makefile.am): Likewise.
76145         * modules/mkstemp (Makefile.am): Likewise.
76146         * modules/mktime (Makefile.am): Likewise.
76147         * modules/modechange (Makefile.am): Likewise.
76148         * modules/mountlist (Makefile.am): Likewise.
76149         * modules/nanosleep (Makefile.am): Likewise.
76150         * modules/openat (Makefile.am): Likewise.
76151         * modules/pagealign_alloc (Makefile.am): Likewise.
76152         * modules/physmem (Makefile.am): Likewise.
76153         * modules/poll (Makefile.am): Likewise.
76154         * modules/posixtm (Makefile.am): Likewise.
76155         * modules/posixver (Makefile.am): Likewise.
76156         * modules/putenv (Makefile.am): Likewise.
76157         * modules/quote (Makefile.am): Likewise.
76158         * modules/quotearg (Makefile.am): Likewise.
76159         * modules/raise (Makefile.am): Likewise.
76160         * modules/read-file (Makefile.am): Likewise.
76161         * modules/readline (Makefile.am): Likewise.
76162         * modules/readlink (Makefile.am): Likewise.
76163         * modules/readtokens (Makefile.am): Likewise.
76164         * modules/readutmp (Makefile.am): Likewise.
76165         * modules/realloc (Makefile.am): Likewise.
76166         * modules/regex (Makefile.am): Likewise.
76167         * modules/rename (Makefile.am): Likewise.
76168         * modules/rename-dest-slash (Makefile.am): Likewise.
76169         * modules/rijndael (Makefile.am): Likewise.
76170         * modules/rmdir (Makefile.am): Likewise.
76171         * modules/rpmatch (Makefile.am): Likewise.
76172         * modules/safe-read (Makefile.am): Likewise.
76173         * modules/safe-write (Makefile.am): Likewise.
76174         * modules/same (Makefile.am): Likewise.
76175         * modules/save-cwd (Makefile.am): Likewise.
76176         * modules/savedir (Makefile.am): Likewise.
76177         * modules/setenv (Makefile.am): Likewise.
76178         * modules/settime (Makefile.am): Likewise.
76179         * modules/sha1 (Makefile.am): Likewise.
76180         * modules/sig2str (Makefile.am): Likewise.
76181         * modules/snprintf (Makefile.am): Likewise.
76182         * modules/stdlib-safer (Makefile.am): Likewise.
76183         * modules/stpcpy (Makefile.am): Likewise.
76184         * modules/stpncpy (Makefile.am): Likewise.
76185         * modules/strcase (Makefile.am): Likewise.
76186         * modules/strcasestr (Makefile.am): Likewise.
76187         * modules/strchrnul (Makefile.am): Likewise.
76188         * modules/strcspn (Makefile.am): Likewise.
76189         * modules/strdup (Makefile.am): Likewise.
76190         * modules/strerror (Makefile.am): Likewise.
76191         * modules/strftime (Makefile.am): Likewise.
76192         * modules/strndup (Makefile.am): Likewise.
76193         * modules/strnlen (Makefile.am): Likewise.
76194         * modules/strpbrk (Makefile.am): Likewise.
76195         * modules/strsep (Makefile.am): Likewise.
76196         * modules/strstr (Makefile.am): Likewise.
76197         * modules/strtod (Makefile.am): Likewise.
76198         * modules/strtoimax (Makefile.am): Likewise.
76199         * modules/strtok_r (Makefile.am): Likewise.
76200         * modules/strtol (Makefile.am): Likewise.
76201         * modules/strtoll (Makefile.am): Likewise.
76202         * modules/strtoul (Makefile.am): Likewise.
76203         * modules/strtoull (Makefile.am): Likewise.
76204         * modules/strtoumax (Makefile.am): Likewise.
76205         * modules/strverscmp (Makefile.am): Likewise.
76206         * modules/time_r (Makefile.am): Likewise.
76207         * modules/timegm (Makefile.am): Likewise.
76208         * modules/tmpfile-safer (Makefile.am): Likewise.
76209         * modules/unistd-safer (Makefile.am): Likewise.
76210         * modules/unlinkdir (Makefile.am): Likewise.
76211         * modules/userspec (Makefile.am): Likewise.
76212         * modules/utime (Makefile.am): Likewise.
76213         * modules/utimecmp (Makefile.am): Likewise.
76214         * modules/utimens (Makefile.am): Likewise.
76215         * modules/vasnprintf (Makefile.am): Likewise.
76216         * modules/vasprintf (Makefile.am): Likewise.
76217         * modules/vsnprintf (Makefile.am): Likewise.
76218         * modules/xalloc (Makefile.am): Likewise.
76219         * modules/xgetcwd (Makefile.am): Likewise.
76220         * modules/xnanosleep (Makefile.am): Likewise.
76221         * modules/xreadlink (Makefile.am): Likewise.
76222         * modules/xstrtod (Makefile.am): Likewise.
76223         * modules/xstrtol (Makefile.am): Likewise.
76224         * modules/xstrtold (Makefile.am): Likewise.
76225         * modules/yesno (Makefile.am): Likewise.
76226
76227 2006-10-12  Jim Meyering  <jim@meyering.net>
76228
76229         * m4/getloadavg.m4: Revert the change below.
76230
76231         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
76232         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
76233         fail with a symlink, which is what coreutils' ./bootstrap now
76234         creates by default.
76235
76236 2006-10-12  Bruno Haible  <bruno@clisp.org>
76237
76238         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
76239         mingw.
76240         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
76241         MSVC and mingw explicitly.
76242
76243 2006-10-11  Simon Josefsson  <jas@extundo.com>
76244             Bruno Haible  <bruno@clisp.org>
76245
76246         Add support for multiple gnulib-tool invocations in the scope of a
76247         single configure.ac file.
76248         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
76249         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
76250         with the same contents as the _LIBADD variable.
76251         (func_emit_initmacro_start, func_emit_initmacro_end,
76252         func_emit_initmacro_done): New functions.
76253         (func_import, func_create_testdir): Invoke them. Allow the identifiers
76254         gl_LIBOBJS and gl_LTLIBOBJS.
76255
76256 2006-10-11  Bruno Haible  <bruno@clisp.org>
76257
76258         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
76259         (func_create_testdir): Don't create po/Makefile.am, don't invoke
76260         autoreconf. Instead, invoke autopoint explicitly but move back the
76261         *.m4 files from gnulib.
76262
76263 2006-10-11  Bruno Haible  <bruno@clisp.org>
76264
76265         * gnulib-tool (func_usage): Make module names after --create-testdir
76266         optional.
76267         (func_create_testdir): If no module was specified, use nearly all
76268         modules.
76269
76270 2006-10-12  Jim Meyering  <jim@meyering.net>
76271
76272         Big performance improvement for fts-based tools that use FTS_NOSTAT.
76273         Avoid spurious inode-mismatch problems on non-POSIX file systems.
76274         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
76275         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
76276         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
76277         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
76278         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
76279         (fts_set_stat_required): New function.
76280         (fts_open): Defer the calls to fts_stat, if possible or requested.
76281         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
76282         into fts_stat itself.
76283         (fts_read): Perform any required (deferred) fts_stat call.
76284         (fts_build): Likewise, for the directory we're about to open and read.
76285         In the readdir loop, carefully decide whether each entry will require
76286         an eventual call to fts_stat, using dirent.d_type info if available.
76287         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
76288         a command line argument into this function.  Update all callers.
76289         Map a return value of FTS_DOT to FTS_D for a command line argument.
76290         * modules/fts (Depends-on): Add d-type.  Alphabetize.
76291         Thanks to Miklos Szeredi for his tenacity and for the initial
76292         bug report about "find" failing on a FUSE-based file system.
76293
76294         * lib/fts.c (fts_open): Use consistent indentation.
76295
76296 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76297
76298         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
76299         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
76300         reported by Jim Meyering.  All uses of cache variables renamed
76301         to match Autoconf's.
76302         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
76303         the other one.
76304
76305         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
76306         Fix misspelling in diagnostic.
76307
76308 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76309
76310         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
76311         defined.  Problem reported by Matthew Woehlke.
76312
76313         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
76314         Add support for Tandem NonStop R series.
76315         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
76316         Use new macro.
76317
76318         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
76319         (has_trailing_slash): Omit size arg; all callers changed.
76320         Omit 'inline', since it doesn't help performance and we'd
76321         need to configure it.
76322         Don't count //, ///, etc. as having a trailing slash.
76323         As a side effect, this removes a C99ism reported by Matthew Woehlke.
76324         (rpl_rename_dest_slash): On failure, use rename's errno rather
76325         than (in some cases) an incorrect or junk errno.
76326         Simplify code by removing need to compute length; this does
76327         cause it to make two passes instead of one over the file name,
76328         but it's worth it.
76329
76330         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
76331         change, since Autoconf's version may no longer be appropriate now
76332         that we are using CVS Autoconf's version.  Add support for Tandem.
76333
76334 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76335             Bruno Haible  <bruno@clisp.org>
76336
76337         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
76338         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
76339         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
76340         gl_AC_TYPE_LONG_LONG.
76341
76342         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
76343         instead of HAVE_LONG_LONG.
76344         * lib/printf-args.c (printf_fetchargs): Likewise.
76345         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
76346         * lib/vasnprintf.c (VASNPRINTF): Likewise.
76347         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
76348         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
76349         gl_AC_TYPE_LONG_LONG.
76350
76351 2006-10-11  Bruno Haible  <bruno@clisp.org>
76352
76353         * m4/longlong.m4: Add comments.
76354         * m4/ulonglong.m4: Likewise.
76355
76356 2006-10-10  Bruno Haible  <bruno@clisp.org>
76357
76358         Make it possible to #define stpcpy, strdup to aliases.
76359         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
76360         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
76361
76362 2006-10-10  Bruno Haible  <bruno@clisp.org>
76363
76364         Make it possible to #define gcd to an alias.
76365         * lib/gcd.c: Include config.h.
76366
76367 2006-10-10  Bruno Haible  <bruno@clisp.org>
76368
76369         Make it possible to #define c_isascii to an alias.
76370         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
76371         defined. Undefine the macros before defining them, to avoid gcc
76372         warnings.
76373         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
76374         define NO_C_CTYPE_MACROS early.
76375
76376 2006-10-10  Bruno Haible  <bruno@clisp.org>
76377
76378         Make it possible to #define set_program_name to an alias.
76379         * lib/progname.c: Don't undefine set_program_name; instead, undefine
76380         ENABLE_RELOCATABLE early.
76381
76382 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76383
76384         Port to Tandem NSK OSS, which has 64-bit signed int but at most
76385         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
76386         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
76387         More generally, don't assume that 64-bit signed int is available
76388         if unsigned int is, and vice versa.
76389         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
76390         unsigned symbols, not on their signed counterparts.
76391         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
76392         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
76393         (UINT64_C, UINTMAX_C):
76394         Likewise.
76395         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
76396         unsigned counterparts.
76397         (Have_long_long, Unsigned): New macros.
76398         (Int): Renamed from INT.
76399         (strtoimax): Use the new macros.
76400         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
76401         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
76402         * modules/inttypes (inttypes.h): Substitute
76403         HAVE_UNSIGNED_LONG_LONG_INT.
76404         * modules/stdint (stdint.h): Likewise.
76405         (Files): Add m4/ulonglong.m4.
76406
76407 2006-10-10  Bruno Haible  <bruno@clisp.org>
76408
76409         Fix a gcc -Wshadow warning.
76410         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
76411         to 'bucket'.
76412         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
76413         gl_linked_indexof_from_to): Likewise.
76414         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
76415         Likewise.
76416         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
76417         Likewise.
76418         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
76419         Reported by Eric Blake.
76420
76421 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
76422
76423         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
76424         for NetBSD.  Problem reported by Bruno Haible.
76425
76426 2006-10-09  Jim Meyering  <jim@meyering.net>
76427
76428         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
76429         Patch from Bruno Haible.
76430
76431 2006-10-09  Jim Meyering  <jim@meyering.net>
76432
76433         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
76434         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
76435         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
76436
76437 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
76438
76439         Don't include <config.h> twice; this doesn't work in some cases,
76440         e.g., when config.h has "#define intmax_t long long int" and
76441         we include <config.h>, <inttypes.h>, <config.h> in that order.
76442         Problem reported by Matthew Woehlke in:
76443         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
76444         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
76445         * lib/fts-cycle.c: Don't include config.h.
76446         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
76447         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
76448         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
76449         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
76450         inttypes.h.
76451         * lib/xstrtoumax.c: Likewise.
76452         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
76453         __strtol and the like, so that this module is more like its siblings.
76454         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
76455         Remove; no longer needed now that we assume gnulib inttypes.h.
76456
76457 2006-10-08  Bruno Haible  <bruno@clisp.org>
76458
76459         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
76460         option.
76461
76462 2006-10-07  Jim Meyering  <jim@meyering.net>
76463
76464         * modules/inttypes (inttypes.h): Revert what seems to have been
76465         an inadvertent part of today's change: use "|", not "/" in the
76466         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
76467
76468 2006-10-07  Bruno Haible  <bruno@clisp.org>
76469
76470         * modules/sublist: New file.
76471
76472 2006-10-07  Bruno Haible  <bruno@clisp.org>
76473
76474         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
76475         * modules/argz (argz.h): Likewise.
76476         * modules/arpa_inet (arpa/inet.h): Likewise.
76477         * modules/byteswap (byteswap.h): Likewise.
76478         * modules/configmake (configmake.h): Likewise.
76479         * modules/fcntl (fcntl.h): Likewise.
76480         * modules/fnmatch (fnmatch.h): Likewise.
76481         * modules/getopt (getopt.h): Likewise.
76482         * modules/glob (glob.h): Likewise.
76483         * modules/inttypes (inttypes.h): Likewise.
76484         * modules/netinet_in (netinet/in.h): Likewise.
76485         * modules/poll (poll.h): Likewise.
76486         * modules/stdbool (stdbool.h): Likewise.
76487         * modules/stdint (stdint.h): Likewise.
76488         * modules/sys_select (sys/select.h): Likewise.
76489         * modules/sys_socket (sys/socket.h): Likewise.
76490         * modules/sys_stat (sys/stat.h): Likewise.
76491         * modules/sysexits (sysexits.h): Likewise.
76492         * modules/unistd (unistd.h): Likewise.
76493         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76494         Add a "DO NOT EDIT" comment to the generated file.
76495         (func_import): Likewise for gnulib-comp.m4.
76496
76497 2006-10-07  Bruno Haible  <bruno@clisp.org>
76498
76499         * lib/gl_sublist.h: New file.
76500         * lib/gl_sublist.c: New file.
76501
76502 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76503
76504         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
76505         name (relative to the original working directory) and the file
76506         name component (relative to the temporary working directory).  All
76507         callers changed.
76508         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
76509         * lib/mkdir-p.c (make_dir_parents): Likewise.
76510         * lib/mkdir-p.h (make_dir_parents): Likewise.
76511
76512 2006-10-06  Eric Blake  <ebb9@byu.net>
76513
76514         Define several macros for use by the clean-temp module.
76515         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
76516         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
76517         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
76518
76519         * lib/clean-temp.h (close_stream_temp): New declaration.
76520         * lib/clean-temp.c (includes): Pull in headers according to what
76521         other modules are in use.
76522         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
76523
76524 2006-10-06  Bruno Haible  <bruno@clisp.org>
76525
76526         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
76527         instead of fopen, fwriteerror.
76528
76529 2006-10-06  Bruno Haible  <bruno@clisp.org>
76530
76531         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
76532         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
76533         int.
76534         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
76535         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
76536         Return an error indicator.
76537         Suggested by Eric Blake.
76538
76539 2006-10-06  Bruno Haible  <bruno@clisp.org>
76540
76541         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
76542         Reported by Eric Blake.
76543
76544 2006-10-06  Bruno Haible  <bruno@clisp.org>
76545
76546         * modules/closeout (Description): Mention stderr too.
76547
76548 2006-10-06  Bruno Haible  <bruno@clisp.org>
76549         and Paul Eggert  <eggert@cs.ucla.edu>
76550
76551         * lib/closeout.c (close_stdout): Also close stderr.
76552         * lib/closeout.h: Update comment.
76553
76554 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
76555
76556         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
76557         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
76558         * lib/dirchownmod.c: Include lchown.h.
76559         * lib/lchown.c: Don't include files that lchown.h now includes.
76560         Don't declare chown, since lchown.h now does that.
76561         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
76562         (lchown): Define to rpl_chown if lchown is declared but
76563         does not exist.  Declare using a prototype if lchown is not
76564         declared.  Add a copyright notice.
76565         * lib/mkstemp.h: Include <unistd.h>.
76566         * lib/openat.c: Include lchown.h.
76567
76568         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
76569         we now test for that separately.
76570         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
76571         rather than O_NOFOLLOW, when testing whether it's possible to
76572         avoid a race condition reliably.
76573         * lib/savewd.c (savewd_chdir): Likewise.
76574
76575         Remove macros that are no longer needed now that stdint.h is
76576         reliable.
76577         * lib/fsusage.c (UINTMAX_MAX): Remove.
76578         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
76579         * lib/utimecmp.c (SIZE_MAX): Remove.
76580
76581         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
76582
76583         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
76584         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
76585         O_NOATIME works.
76586
76587 2006-10-05  Bruno Haible  <bruno@clisp.org>
76588
76589         * lib/gl_list.h (gl_sortedlist_search_from_to,
76590         gl_sortedlist_indexof_from_to): New declarations.
76591         (gl_list_implementation): New fields sortedlist_search_from_to,
76592         sortedlist_indexof_from_to.
76593         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
76594         inline functions.
76595         * lib/gl_list.c (gl_sortedlist_search_from_to,
76596         gl_sortedlist_indexof_from_to): New functions.
76597         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
76598         function.
76599         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
76600         (gl_array_sortedlist_search_from_to): New function.
76601         (gl_array_list_implementation): Update.
76602         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
76603         function.
76604         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
76605         (gl_carray_sortedlist_search_from_to): New function.
76606         (gl_carray_list_implementation): Update.
76607         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
76608         gl_linked_sortedlist_indexof_from_to): New functions.
76609         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76610         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76611         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
76612         gl_tree_sortedlist_indexof_from_to): New functions.
76613         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76614         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76615         Update.
76616         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76617         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
76618         Update.
76619
76620 2006-10-05  Bruno Haible  <bruno@clisp.org>
76621
76622         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
76623         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
76624         (struct gl_list_implementation): Add fields search_from_to,
76625         indexof_from_to. Remove fields search, indexof.
76626         (gl_list_search): Use the search_from_to method.
76627         (gl_list_search_from, gl_list_search_from_to): New functions.
76628         (gl_list_indexof): Use the indexof_from_to method.
76629         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76630         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
76631         (gl_list_search_from, gl_list_search_from_to): New functions.
76632         (gl_list_indexof): Use the indexof_from_to method.
76633         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76634         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
76635         gl_array_indexof. Add start_index, end_index arguments.
76636         (gl_array_search_from_to): Renamed from gl_array_search. Add
76637         start_index, end_index arguments.
76638         (gl_array_remove, gl_array_list_implementation): Update.
76639         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
76640         gl_carray_indexof. Add start_index, end_index arguments.
76641         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
76642         start_index, end_index arguments.
76643         (gl_carray_remove, gl_carray_list_implementation): Update.
76644         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
76645         gl_linked_search. Add start_index, end_index arguments.
76646         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
76647         start_index, end_index arguments.
76648         (gl_linked_remove): Update.
76649         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76650         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76651         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
76652         field to 'size_t'.
76653         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
76654         gl_tree_search. Add start_index, end_index arguments.
76655         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76656         start_index, end_index arguments.
76657         (gl_tree_remove): Update.
76658         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76659         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76660         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
76661         function.
76662         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
76663         gl_tree_search. Add start_index, end_index arguments.
76664         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76665         start_index, end_index arguments.
76666         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76667         Update.
76668         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
76669
76670 2006-10-05  Bruno Haible  <bruno@clisp.org>
76671
76672         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
76673
76674         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
76675         fwriteerror_temp): New declarations.
76676         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
76677         (descriptors): New variable.
76678         (cleanup): First, close the descriptors.
76679         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
76680         fclose_temp, fwriteerror_temp): New functions.
76681
76682 2006-10-04  Jim Meyering  <jim@meyering.net>
76683
76684         * lib/fts.c (fts_open): Tiny comment change.
76685
76686 2006-10-04  Bruno Haible  <bruno@clisp.org>
76687
76688         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
76689         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
76690         gl_LOCK_BODY.
76691         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
76692         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
76693         gl_LOCK_EARLY_BODY.
76694         (gl_LOCK): Require gl_LOCK_BODY.
76695
76696 2006-10-04  Bruno Haible  <bruno@clisp.org>
76697
76698         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
76699         (gl_oset_search_atleast): New declaration.
76700         (struct gl_oset_implementation): Add field 'search_atleast'.
76701         (gl_oset_search_atleast): New inline function.
76702         * lib/gl_oset.c (gl_oset_search_atleast): New function.
76703         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
76704         (gl_array_oset_implementation): Update.
76705         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
76706         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
76707         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
76708
76709 2006-10-04  Bruno Haible  <bruno@clisp.org>
76710
76711         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
76712
76713 2006-10-03  Bruno Haible  <bruno@clisp.org>
76714
76715         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
76716         from gl_avltreehash_list_implementation.
76717
76718 2006-10-03  Bruno Haible  <bruno@clisp.org>
76719
76720         * lib/gl_oset.c (gl_oset_add): Fix return type.
76721
76722 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
76723
76724         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
76725
76726 2006-10-02  Eric Blake  <ebb9@byu.net>
76727
76728         * modules/strnlen (Depends-on): Add extensions.
76729
76730 2006-10-02  Eric Blake  <ebb9@byu.net>
76731
76732         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
76733         definition in 2.60+.
76734
76735 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
76736
76737         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
76738         checks.
76739
76740 2006-10-02  Bruno Haible  <bruno@clisp.org>
76741
76742         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
76743         to the AUTOMAKE_OPTIONS.
76744         Reported by Jim Meyering.
76745
76746 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76747
76748         Work around bug in Solaris 10 /proc file system:
76749         /proc/self/fd/NNN/.. isn't the parent directory of
76750         the directory whose file descriptor is NNN.  This needs to
76751         be worked around at run time, not compile time, since a
76752         program might be built on Solaris 8, where things work, and
76753         run on Solaris 10.
76754         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
76755         to use the following interface instead:
76756         (OPENAT_BUFFER_SIZE): New macro.
76757         (openat_proc_name): New function.
76758         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
76759         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
76760         Likewise.
76761         * lib/openat-proc.c: New file.
76762         * modules/openat (Files): Add lib/openat-proc.c.
76763         (Depends-on): Add same-inode, stdbool.
76764         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
76765
76766 2006-09-29  Bruno Haible  <bruno@clisp.org>
76767
76768         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
76769         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
76770         argument. Set stdout_closed before testing for ferror, not after.
76771         (fwriteerror, fwriteerror_no_ebadf): New functions.
76772
76773 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76774
76775         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
76776
76777 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
76778
76779         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
76780         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
76781
76782 2006-09-28  Jim Meyering  <jim@meyering.net>
76783
76784         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
76785         Include <unistd.h>.
76786
76787 2006-09-28  Bruno Haible  <bruno@clisp.org>
76788
76789         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
76790         * modules/linkedhash-list (Depends-on): Likewise.
76791         * modules/rbtreehash-list (Depends-on): Likewise.
76792
76793 2006-09-28  Bruno Haible  <bruno@clisp.org>
76794
76795         * lib/strndup.h: Simplify the redefinition of strndup.
76796         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
76797         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
76798
76799 2006-09-28  Bruno Haible  <bruno@clisp.org>
76800
76801         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
76802         * lib/gl_linkedhash_list.c: Likewise.
76803         * lib/gl_rbtreehash_list.c: Likewise.
76804
76805 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76806
76807         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
76808         getaddrinfo.
76809
76810         * lib/__fpending.h: Don't include <stdio_ext.h> unless
76811         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
76812         it causes <stdio_ext.h> to cause a compile-time error.
76813         Problem reported by Nelson H. F. Beebe.
76814         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
76815         of HAVE_DECL___PENDING.
76816
76817         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
76818         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
76819         declaration.
76820
76821 2006-09-27  Jim Meyering  <jim@meyering.net>
76822
76823         This file could end up with a definition for a function
76824         named __strndup, rather than rpl_strndup on a system with
76825         incomplete weak_alias support.
76826         * lib/strndup.c (strndup): Rename from __strndup.
76827         Remove #defines that used to map __strndup to strndup.
76828         Don't use K&R prototypes.
76829         Remove LIBC-related code, since this file is not sync'd with glibc.
76830         * lib/strndup.h: Revamp, accordingly.
76831         * m4/strndup.m4: Modernize.
76832
76833 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76834
76835         * modules/savewd (Depends-on): Add 'raise'.
76836         * lib/savewd.c: Include <signal.h>, for 'raise'.
76837
76838 2006-09-26  Jim Meyering  <jim@meyering.net>
76839
76840         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
76841         when we detect Darwin 8.7.0's acl_get_file bug.
76842         Rearrange to perform the new (below) run-test while $LIBS
76843         contains any acl-related library.  Set USE_ACL at the end.
76844         (gl_ACL_GET_FILE): New function.
76845
76846 2006-09-26  Eric Blake  <ebb9@byu.net>
76847
76848         * lib/verror.c: Include <config.h> unconditionally.
76849
76850 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
76851
76852         * modules/clock-time (Maintainer): Add self.
76853         * modules/getlogin_r (Depends-on): Add extensions.
76854
76855 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76856
76857         * modules/clock-time: New module.
76858         * modules/nanosleep (Depends-on): Add clock-time.
76859         * modules/gethrxtime (Depends-on): Likewise.
76860         * modules/gettime (Depends-on): Likewise.
76861         * modules/settime (Depends-on): Likewise.
76862
76863         * modules/fts-lgpl: Depend on openat.
76864         * modules/mkancesdirs: Depend on savewd.
76865         * modules/mkdir-p: Likewise.
76866
76867 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76868
76869         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
76870
76871         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
76872         `gl_have_arbitrary_file_name_length_limit' to
76873         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
76874         actually works between configure runs.
76875
76876 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76877             Bruno Haible  <bruno@clisp.org>
76878
76879         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
76880
76881 2006-09-25  Jim Meyering  <jim@meyering.net>
76882
76883         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
76884         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
76885
76886 2006-09-25  Eric Blake  <ebb9@byu.net>
76887
76888         * gnulib-tool (func_import, func_create_testdir): Fix typos in
76889         exec's in 2006-09-18 patch when shuffling fds.
76890
76891 2006-09-25  Bruno Haible  <bruno@clisp.org>
76892
76893         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
76894         Reported by Jim Meyering.
76895
76896 2006-09-24  Jim Meyering  <jim@meyering.net>
76897
76898         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
76899         compare a pointer against a literal "0".  That caused failures with
76900         at least HP-UX's hpcc.
76901
76902 2006-09-22  Simon Josefsson  <jas@extundo.com>
76903
76904         * modules/gc-sha1:
76905         * modules/gc-md4:
76906         * modules/gc-hmac-sha1:
76907         * modules/gc-hmac-md5:
76908         * modules/gc-des:
76909         * modules/gc-arcfour: Distribute more files.
76910
76911 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76912
76913         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
76914         (gl_linked_iterator_from_to): Initialize struct completely.
76915         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
76916         (gl_tree_iterator_from_to): Likewise
76917         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
76918         * lib/gl_array_list.c [lint] (gl_array_iterator)
76919         (gl_array_iterator_from_to): Likewise.
76920         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
76921         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
76922         (gl_carray_iterator_from_to): Likewise.
76923
76924         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
76925         * lib/md4.c (md4_process_block): Remove unused variable.
76926         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
76927         parentheses for clarity.
76928
76929 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76930
76931         * modules/bison-i18n (Depends-on): Add gettext.
76932
76933 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76934
76935         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
76936         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
76937         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
76938         also add missing comma that caused broken test.
76939         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
76940         stdlib.h, for `abort'.
76941         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
76942         variables.
76943         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
76944         include unistd.h if present, for `rmdir'.
76945         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
76946         variables.
76947         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
76948         in the process include standard headers for prototypes.
76949         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
76950         gets declared on GNU/Linux.
76951         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
76952         unistd.h, for `rmdir'.
76953         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
76954
76955         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
76956         always true.
76957         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
76958
76959         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
76960
76961 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76962
76963         * gnulib-tool (func_version): Create output all at once.  This
76964         may help avoid triggering unnecessary SIGPIPEs, and at any
76965         rate it doesn't hurt.
76966
76967 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76968             Bruno Haible  <bruno@clisp.org>
76969
76970         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
76971         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76972         * m4/signed.m4 (bh_C_SIGNED): Likewise.
76973
76974         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
76975         (gl_FUNC_VASPRINTF): Invoke it.
76976
76977 2006-09-22  Bruno Haible  <bruno@clisp.org>
76978
76979         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
76980         getloadavg.c as first argument.
76981
76982 2006-09-22  Bruno Haible  <bruno@clisp.org>
76983
76984         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
76985         at the beginning of the gl_INIT macro.
76986         * modules/getloadavg (configure.ac): Pass $gl_source_base to
76987         gl_GETLOADAVG.
76988
76989 2006-09-22  Bruno Haible  <bruno@clisp.org>
76990
76991         * gnulib-tool (func_create_megatestdir): Don't include the config-h
76992         module.
76993         Suggested by Ralf Wildenhues.
76994
76995 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76996
76997         Import this patch from libc:
76998
76999         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
77000
77001         * lib/regex_internal.c (re_string_reconstruct): Handle
77002         offset < pstr->valid_raw_len && pstr->offsets_needed case.
77003         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
77004         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
77005         re_string_context_at.
77006
77007         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
77008         now requires it.
77009         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
77010         gl_REGEX now does it for us.
77011         (gl_REGEX): Add test taken from
77012         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
77013
77014         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
77015         Check that large offsets work.  Modernize Autoconf usages.
77016         Prefer "yes" to mean a good thing rather than a bad.
77017         Don't put "#define mkstemp" in config.h, as this might interfere
77018         with standard system headers that "#define mkstemp mkstemp64".
77019
77020         * modules/mkstemp (Depends-on): Add extensions, so that
77021         mkstemp is visible on some platforms.
77022         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
77023         (Include): Change to "mkstemp.h" from <stdlib.h>.
77024         (Files): Add mkstemp.h.
77025
77026         * lib/mkstemp.h: New file, since some standard headers
77027         #define mkstemp.
77028         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
77029         Include "mkstemp.h".
77030         Make the _LIBC code resemble glibc original more,
77031         e.g., use K&R style.
77032         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
77033         (mkstemp): Remove, since mkstemp.h does this for us.
77034         * lib/stdlib--.h: Include mkstemp.h.
77035
77036         Import this patch from libc:
77037
77038         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77039
77040         * lib/tempname.c (__gen_tempname): Change attempts_min
77041         into a macro.  Use preprocessor to decide how to initialize
77042         attempts [Coverity CID 67].
77043
77044 2006-09-20  Bruno Haible  <bruno@clisp.org>
77045
77046         * lib/mkdtemp.c: Import from libc.
77047         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77048                 * sysdeps/posix/tempname.c (__gen_tempname): Change
77049                 attempts_min into a macro.  Use preprocessor to decide how to
77050                 initialize attempts [Coverity CID 67].
77051         2001-11-27  Paul Eggert  <eggert@twinsun.com>
77052                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
77053                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
77054
77055 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77056
77057         * gnulib-tool (func_exit): New function, to allow to pass the
77058         exit status portably through the trap.  Use everywhere.
77059         (--help, --version): Signal a write error.
77060         (trap): catch SIGPIPE, for write errors.
77061         Exit at the end of the trap, with the correct exit status.
77062
77063 2006-09-19  Karl Berry  <karl@gnu.org>
77064
77065         * doc/gnulib.texi: note about the license texinfo files.
77066
77067 2006-09-19  Eric Blake  <ebb9@byu.net>
77068
77069         * gnulib-tool: Avoid space-tab.
77070
77071 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77072
77073         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
77074         that prevented coreutils 6.1 from building.  Problem reported
77075         by Petter Reinholdtsen.
77076
77077 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77078
77079         * gnulib-tool (avoidlist): Fix typo that broke options like
77080         --avoid=lock that are used by coreutils bootstrap.
77081
77082 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
77083
77084         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
77085         more systematically.
77086
77087 2006-09-18  Jim Meyering  <jim@meyering.net>
77088
77089         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
77090
77091 2006-09-18  Bruno Haible  <bruno@clisp.org>
77092
77093         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
77094
77095 2006-09-18  Bruno Haible  <bruno@clisp.org>
77096
77097         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
77098         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
77099         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
77100         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
77101         * m4/gettext.m4: Require autoconf >= 2.52.
77102         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
77103         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
77104         of gl_cv_header_inttypes_h.
77105
77106 2006-09-18  Bruno Haible  <bruno@clisp.org>
77107
77108         * lib/javaversion.c: Include configmake.h.
77109
77110 2006-09-18  Bruno Haible  <bruno@clisp.org>
77111
77112         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
77113         avoid that the while loops be executed in a subshell.
77114
77115 2006-09-18  Bruno Haible  <bruno@clisp.org>
77116
77117         * MODULES.html.sh (func_module): Break long lines.
77118         Suggested by Bruce Korb <bkorb@gnu.org>.
77119
77120 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77121
77122         Speed up by a factor of 1.12.
77123         * gnulib-tool (nl): New variable.
77124         (func_import): Rewrite include directive extraction to only read each
77125         directive once.
77126
77127 2006-09-17  Bruno Haible  <bruno@clisp.org>
77128
77129         * modules/javaversion (Makefile.am): Remove DEFS setting.
77130         (Depends-on): Add configmake, for PKGDATADIR definition.
77131
77132 2006-09-17  Bruno Haible  <bruno@clisp.org>
77133
77134         * gnulib-tool (func_create_testdir): Rewrite all files at once.
77135
77136 2006-09-17  Bruno Haible  <bruno@clisp.org>
77137
77138         * gnulib-tool (func_append): New function, stolen from libtool.m4.
77139         (func_modules_transitive_closure, func_modules_add_dummy,
77140         func_modules_to_filelist, func_import, func_create_testdir,
77141         func_create_megatestdir, ...): Use it wherever possible.
77142         Suggested by Ralf Wildenhues.
77143
77144 2006-09-16  Karl Berry  <karl@gnu.org>
77145
77146         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
77147         to avoid sectioning errors.
77148         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
77149         [ifinfo]: blank line after @center-ed titles.
77150         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
77151         Spell FSF address consistently with others.
77152         (These changes approved by rms.)
77153
77154 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77155
77156         Speed up by a factor of 1.61.
77157         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
77158         already checked module names again.
77159
77160 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77161
77162         Speed up by a factor of 1.13.
77163         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
77164         for new_files, and the input to func_add_or_update.
77165
77166 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77167
77168         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
77169         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
77170
77171 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77172
77173         * modules/mkancesdirs (Depends-on): Add fcntl.
77174         * modules/savewd: New file.
77175         * MODULES.html.sh (File system functions): Add savewd.
77176
77177         * modules/configmake (Makefile.am): Add support for the
77178         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
77179
77180 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77181
77182         * m4/savewd.m4: New file.
77183
77184 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77185
77186         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
77187         (dirchownmod): New arg FD.  All callers changed.
77188         Use FD rather than opening the directory ourself, as opening is
77189         now the caller's responsibility.
77190         * lib/dirchownmod.h: Likewise.
77191         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
77192         hosts that require <sys/types.h> before <sys/stat.h>.  Include
77193         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
77194         (test_dir): Remove.
77195         (mkancesdirs): Return length of prefix of FILE that has already
77196         been made, or -2 if there is a child doing the work.  Redo
77197         algorithm so that it is O(N) rather than O(N**2).  Optimize away
77198         ".", and treat ".." specially since it might stray back into
77199         already-created areas.  Use a subprocess if necessary.  New arg
77200         WD; all users changed.  MAKE_DIR function should now return 1
77201         if it creates a directory that is not readable.  Return -2 if
77202         a child process is spun off.
77203         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
77204         Adjust signature to match code.
77205         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
77206         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
77207         all users changed.
77208         * lib/savewd.c, lib/savewd.h: New files.
77209
77210 2006-09-15  Jim Meyering  <jim@meyering.net>
77211
77212         * modules/rename-dest-slash: New module.
77213         * MODULES.html.sh (posix_compat): Add it here.
77214
77215         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
77216
77217 2006-09-15  Jim Meyering  <jim@meyering.net>
77218
77219         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
77220         file.
77221
77222         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
77223
77224 2006-09-15  Jim Meyering  <jim@meyering.net>
77225
77226         * lib/rename-dest-slash.c (has_trailing_slash): Use
77227         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
77228         (rpl_rename_dest_slash): Perform the cheaper trailing slash
77229         test before testing whether SRC is a directory.
77230         Suggestions from Bruno Haible.
77231
77232         Avoid a warning about an unused variable.
77233         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
77234         into the #ifdef block where it's used.
77235
77236         * lib/rename-dest-slash.c: New file.
77237
77238 2006-09-14  Bruno Haible  <bruno@clisp.org>
77239
77240         * lib/allocsa.c: Include <config.h> unconditionally.
77241         * lib/asnprintf.c: Likewise.
77242         * lib/asprintf.c: Likewise.
77243         * lib/c-strcasecmp.c: Likewise.
77244         * lib/c-strcasestr.c: Likewise.
77245         * lib/c-strncasecmp.c: Likewise.
77246         * lib/c-strstr.c: Likewise.
77247         * lib/classpath.c: Likewise.
77248         * lib/clean-temp.c: Likewise.
77249         * lib/concatpath.c: Likewise.
77250         * lib/copy-file.c: Likewise.
77251         * lib/csharpcomp.c: Likewise.
77252         * lib/csharpexec.c: Likewise.
77253         * lib/execute.c: Likewise.
77254         * lib/fatal-signal.c: Likewise.
77255         * lib/findprog.c: Likewise.
77256         * lib/fwriteerror.c: Likewise.
77257         * lib/gl_array_list.c: Likewise.
77258         * lib/gl_array_oset.c: Likewise.
77259         * lib/gl_avltree_list.c: Likewise.
77260         * lib/gl_avltree_oset.c: Likewise.
77261         * lib/gl_avltreehash_list.c: Likewise.
77262         * lib/gl_carray_list.c: Likewise.
77263         * lib/gl_linked_list.c: Likewise.
77264         * lib/gl_linkedhash_list.c: Likewise.
77265         * lib/gl_list.c: Likewise.
77266         * lib/gl_oset.c: Likewise.
77267         * lib/gl_rbtree_list.c: Likewise.
77268         * lib/gl_rbtree_oset.c: Likewise.
77269         * lib/gl_rbtreehash_list.c: Likewise.
77270         * lib/imaxabs.c: Likewise.
77271         * lib/imaxdiv.c: Likewise.
77272         * lib/javacomp.c: Likewise.
77273         * lib/javaexec.c: Likewise.
77274         * lib/javaversion.c: Likewise.
77275         * lib/linebreak.c: Likewise.
77276         * lib/localcharset.c: Likewise.
77277         * lib/lock.c: Likewise.
77278         * lib/mbchar.c: Likewise.
77279         * lib/mbswidth.c: Likewise.
77280         * lib/mkdtemp.c: Likewise.
77281         * lib/pipe.c: Likewise.
77282         * lib/printf-args.c: Likewise.
77283         * lib/printf-parse.c: Likewise.
77284         * lib/progname.c: Likewise.
77285         * lib/progreloc.c: Likewise.
77286         * lib/readlink.c: Likewise.
77287         * lib/sh-quote.c: Likewise.
77288         * lib/stpcpy.c: Likewise.
77289         * lib/stpncpy.c: Likewise.
77290         * lib/strcasecmp.c: Likewise.
77291         * lib/strcasestr.c: Likewise.
77292         * lib/strcspn.c: Likewise.
77293         * lib/striconv.c: Likewise.
77294         * lib/strncasecmp.c: Likewise.
77295         * lib/strnlen1.c: Likewise.
77296         * lib/strstr.c: Likewise.
77297         * lib/strtok_r.c: Likewise.
77298         * lib/tls.c: Likewise.
77299         * lib/tmpdir.c: Likewise.
77300         * lib/unicodeio.c: Likewise.
77301         * lib/unsetenv.c: Likewise.
77302         * lib/vasnprintf.c: Likewise.
77303         * lib/vasprintf.c: Likewise.
77304         * lib/wait-process.c: Likewise.
77305         * lib/xallocsa.c: Likewise.
77306         * lib/xsetenv.c: Likewise.
77307         * lib/xstriconv.c: Likewise.
77308
77309 2006-09-13  Simon Josefsson  <jas@extundo.com>
77310
77311         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
77312         that internally, suggested by Ralf Wildenhues
77313         <Ralf.Wildenhues@gmx.de>.
77314
77315 2006-09-13  Simon Josefsson  <jas@extundo.com>
77316
77317         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
77318         @LIBOBJS@.
77319         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77320
77321 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77322
77323         * lib/_fpending.c: Include <config.h> unconditionally, since we no
77324         longer worry about uses that don't define HAVE_CONFIG_H.
77325         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
77326         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
77327         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
77328         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
77329         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
77330         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
77331         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
77332         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
77333         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
77334         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
77335         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
77336         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
77337         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
77338         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
77339         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
77340         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
77341         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
77342         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
77343         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
77344         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
77345         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
77346         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
77347         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
77348         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
77349         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
77350         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
77351         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
77352         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
77353         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
77354         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
77355         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
77356         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
77357         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
77358         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
77359         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
77360         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
77361         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
77362         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
77363         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
77364         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
77365         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
77366         Likewise.
77367
77368 2006-09-13  Eric Blake  <ebb9@byu.net>
77369
77370         * lib/getopt.c: Fix typo in last commit.
77371
77372 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77373
77374         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
77375         dgettext.
77376
77377 2006-09-12  Jim Meyering  <jim@meyering.net>
77378
77379         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
77380         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
77381         Reported by Nelson H. F. Beebe.
77382
77383 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77384
77385         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
77386         program_invocation_name and program_invocation_short_name are
77387         initialized.
77388         * lib/argp-namefrob.h: Move declarations of program_invocation_name
77389         and program_invocation_short_name to argp.h, so they are visible
77390         to user programs.
77391         * lib/argp.h: Likewise
77392
77393 2006-09-10  Bruno Haible  <bruno@clisp.org>
77394
77395         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77396         m4/inttypes_h.m4, m4/uintmax_t.m4.
77397
77398 2006-09-10  Bruno Haible  <bruno@clisp.org>
77399
77400         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
77401         gl_AC_TYPE_UINTMAX_T.
77402
77403 2006-09-10  Bruno Haible  <bruno@clisp.org>
77404
77405         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
77406
77407 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77408
77409         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
77410         convention.  Text proposed by Bruno Haible.
77411         (struct argp_option): Document the use of N_() wrappers.
77412
77413         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
77414         '\v', and translate the two parts separately, instead of feeding
77415         the whole string to gettext.  This allows to exclude
77416         '\v' from the strings visible to the translator by writing doc
77417         strings as N_("..") "\v" N_("..").
77418
77419 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
77420
77421         * config/srclist.txt: Undo latest change; the bug was fixed.
77422
77423 2006-09-09  Bruno Haible  <bruno@clisp.org>
77424
77425         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
77426         assignments if building a library without libtool.
77427         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
77428         in func_emit_lib_Makefile_am.
77429         (func_import): When building a static library libfoo.a, arrange to
77430         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
77431         (func_create_testdir): Likewise.
77432         * modules/gc (configure.ac, Makefile.am): If building statically,
77433         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
77434         * modules/iconvme (configure.ac, Makefile.am): Likewise.
77435         * modules/striconv (configure.ac, Makefile.am): Likewise.
77436         Based on a suggestion by Ralf Wildenhues.
77437
77438 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77439
77440         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
77441         Check for unistd.h too, since Autoconf doesn't assume POSIX.
77442         Also:
77443
77444         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77445         Add year_2050_test to catch glibc bug 2821
77446         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77447
77448         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77449         Prefer #ifdef to #if.
77450
77451         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
77452         Return from 'main' instead of calling 'exit'.
77453
77454 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77455
77456         * lib/mktime.c (guess_time_tm): Fix bug where mktime
77457         returned the maximum time_t value rather than (time_t) -1.
77458         Problem originally reported by William Bardwell
77459         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77460
77461         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77462         Moved to here ...
77463         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77464         ... from here.
77465
77466 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77467
77468         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
77469         2821 is fixed.
77470
77471 2006-09-08  Jim Meyering  <jim@meyering.net>
77472
77473         Don't make generated files read-only.  That would bother too many
77474         people.  However, do retain the ability to work when targets are
77475         read-only: remove the destination and temporary files before writing
77476         them (when generated via sed or echo), or by using the -f option for
77477         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
77478         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77479         * modules/byteswap, modules/configmake, modules/fcntl:
77480         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77481         * modules/localcharset, modules/netinet_in, modules/poll:
77482         * modules/stdbool, modules/stdint, modules/sys_select:
77483         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77484
77485 2006-09-08  Jim Meyering  <jim@meyering.net>
77486
77487         Avoid new build failure on FreeBSD 6.0.
77488         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
77489         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
77490         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
77491
77492 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77493
77494         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
77495
77496 2006-09-07  Jim Meyering  <jim@meyering.net>
77497
77498         Fix global typo in last change: use chmod u-w, not chmod u-x.
77499         Spotted by Paul Eggert and Bruce Korb.
77500         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77501         * modules/byteswap, modules/configmake, modules/fcntl:
77502         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77503         * modules/localcharset, modules/netinet_in, modules/poll:
77504         * modules/stdbool, modules/stdint, modules/sys_select:
77505         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77506
77507 2006-09-06  Jim Meyering  <jim@meyering.net>
77508
77509         Make generated files be read-only.
77510         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
77511         Ensure that each generated file is now read-only.
77512         * modules/argz: Likewise.
77513         * modules/arpa_inet: Likewise.
77514         * modules/byteswap: Likewise.
77515         * modules/configmake: Likewise.
77516         * modules/fcntl: Likewise.
77517         * modules/fnmatch: Likewise.
77518         * modules/getopt: Likewise.
77519         * modules/glob: Likewise.
77520         * modules/inttypes: Likewise.
77521         * modules/netinet_in: Likewise.
77522         * modules/poll: Likewise.
77523         * modules/stdbool: Likewise.
77524         * modules/stdint: Likewise.
77525         * modules/sys_select: Likewise.
77526         * modules/sys_socket: Likewise.
77527         * modules/sys_stat: Likewise.
77528         * modules/sysexits: Likewise.
77529         * modules/localcharset: Same as above, but continue using temporary
77530         file named "t-$@" (why different?) rather than the "$@-t" used
77531         everywhere else.
77532
77533         * modules/sysexits (Makefile.am): Replace literal occurrences
77534         of "sysexit.h" more readable, and more consistent, "$@".
77535
77536 2006-09-06  Bruno Haible  <bruno@clisp.org>
77537
77538         * modules/striconv: New file.
77539         * modules/xstriconv: New file.
77540         * MODULES.html.sh (Internationalization functions): Add striconv,
77541         xstriconv.
77542
77543 2006-09-06  Bruno Haible  <bruno@clisp.org>
77544
77545         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
77546         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
77547         not using libtool correctly.
77548
77549 2006-09-06  Bruno Haible  <bruno@clisp.org>
77550
77551         * lib/striconv.h: New file.
77552         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
77553         iconvstring.c.
77554         * lib/xstriconv.h: New file.
77555         * lib/xstriconv.c: New file.
77556
77557 2006-09-06  Bruno Haible  <bruno@clisp.org>
77558
77559         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
77560         lib_..._LDFLAGS.
77561
77562 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77563
77564         * lib/argz_.h: Sync from Libtool.
77565
77566         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
77567                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77568
77569         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
77570
77571 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77572
77573         * modules/trim: New file.
77574
77575 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77576
77577         * lib/trim.h: New file.
77578         * lib/trim.c: New file.
77579
77580 2006-09-05  Bruno Haible  <bruno@clisp.org>
77581
77582         * MODULES.html.sh (String handling): Add trim.
77583
77584 2006-09-04  Karl Berry  <karl@gnu.org>
77585
77586         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
77587         until next release.
77588
77589 2006-09-03  Bruno Haible  <bruno@clisp.org>
77590
77591         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
77592         correctly.
77593
77594 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77595
77596         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
77597         not gl_GETLOADAVG.  Omit unneeded semicolons.
77598         Problems reported by Ralf Wildenhues in
77599         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77600         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
77601         at the end, which is the usual gnulib style.
77602
77603         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
77604         of doing all the work ourselves.
77605         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
77606         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
77607
77608 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77609
77610         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
77611         Problem reported by Ralf Wildenhues in
77612         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77613
77614         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
77615         HAVE_STRUCT_STATFS_F_FSTYPENAME.
77616
77617 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77618
77619         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
77620         yesterday's patch by changing test -n to test -z.
77621
77622 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77623
77624         * modules/getloadavg (Files): Add m4/getloadavg.m4.
77625         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
77626         the former is now obsolescent.
77627
77628         * modules/chdir-long (Depends-on): Add fcntl.
77629
77630 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77631
77632         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
77633         obsolescent, and programs should use gnulib instead.
77634         * m4/getloadavg.m4: New file, with contents taken from Autoconf
77635         but with prefixes changed.
77636
77637 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77638
77639         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
77640         or stdbool.h, because they might not exist while configuring.
77641
77642         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
77643         Don't include unistd.h or limits.h; not needed, since chdir-long.h
77644         does that for us.
77645         (O_DIRECTORY): Remove.
77646
77647 2006-08-31  Eric Blake  <ebb9@byu.net>
77648
77649         * gnulib-tool: Don't let emacs change spaces to TAB.
77650
77651 2006-08-31  Bruno Haible  <bruno@clisp.org>
77652
77653         * gnulib-tool: When calling func_import more than once, do it in a
77654         subshell.
77655         Reported by Eric Blake <ebb9@byu.net>.
77656
77657 2006-08-31  Bruno Haible  <bruno@clisp.org>
77658
77659         * gnulib-tool (nl): Remove variable.
77660         (sed_transform_lib_file): Use more robust test for config-h module.
77661         (func_import): Fix typo in 2006-08-25 patch.
77662
77663 2006-08-31  Bruno Haible  <bruno@clisp.org>
77664
77665         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
77666         specified, augment Makefile.am variables instead of assigning them.
77667
77668 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77669
77670         Work around a bug in both the Linux and SunOS 64-bit kernels:
77671         nanosleep mishandles sleeps for longer than 2**31 seconds.
77672         Problem reported by Frank v Waveren in
77673         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77674         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
77675         Check for nanosleep bug.
77676         (LIB_NANOSLEEP): Append clock_gettime library if needed.
77677
77678 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77679
77680         Work around a bug in both the Linux and SunOS 64-bit kernels:
77681         nanosleep mishandles sleeps for longer than 2**31 seconds.
77682         Problem reported by Frank v Waveren in
77683         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77684         * lib/nanosleep.c (BILLION): New constant.
77685         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
77686         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
77687         implementation.
77688
77689 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77690
77691         * modules/nanosleep (Depends-on): Add gettime.
77692
77693 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77694         and Simon Josefsson  <jas@extundo.com>
77695         and Oskar Liljeblad  <oskar@osk.mine.nu>
77696
77697         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
77698         * gnulib-tool (func_import): New license type 'unmodifiable license
77699         text'.
77700         * modules/fdl: Use it.  Longer description.
77701         * module/gpl, module/lgpl: New files.
77702
77703 2006-08-30  Jim Meyering  <jim@meyering.net>
77704
77705         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
77706         shadowing the parameter.
77707
77708 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77709
77710         Sync from Libtool:
77711
77712         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77713
77714         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
77715         sharing with gnulib.  Report by Eric Blake.
77716
77717 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77718
77719         * modules/isapipe: New file.
77720         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
77721
77722 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77723
77724         * modules/configmake (Makefile.am): Add a comment, and omit
77725         the CONFIGMAKE_ prefix from generated macro names.  Suggested
77726         by Bruno Haible.
77727
77728 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77729
77730         * m4/isapipe.m4: New file.
77731
77732 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77733
77734         * lib/isapipe.c, lib/isapipe.h: New files.
77735
77736 2006-08-29  Jim Meyering  <jim@meyering.net>
77737
77738         * modules/configmake (Makefile.am): Make configmake.h depend on
77739         Makefile.  Otherwise, a stale configmake.h could hang around.
77740
77741 2006-08-29  Eric Blake  <ebb9@byu.net>
77742
77743         * lib/error.c (error_at_line, print_errno_message): Match libc, after
77744         resolution of upstream bug 3044.
77745
77746 2006-08-29  Bruno Haible  <bruno@clisp.org>
77747
77748         * modules/localcharset (Depends-on): Add configmake.
77749         (Makefile.am): Remove setting of LIBDIR through DEFS.
77750
77751 2006-08-29  Bruno Haible  <bruno@clisp.org>
77752
77753         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
77754         defined.
77755
77756 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77757
77758         * modules/fcntl: New file.
77759         * modules/chdir-safer (Depends-on): Add fcntl.
77760         * modules/fts: Likewise.
77761         * modules/mkdir-p: Likewise.
77762
77763         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
77764         This undoes the most recent change, since we're now addressing the
77765         problem in a different way.
77766
77767         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
77768         into output, since the output might be called Makefile.am even
77769         if $makefile_name is something different.
77770         (func_import): Use $makefile_am rather than
77771         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
77772         empty.
77773
77774         * modules/inttypes (Files): Add m4/inttypes-h.m4.
77775
77776 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77777
77778         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
77779         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
77780         recent change to stdint.m4, since we're now addressing the problem in a
77781         different way.
77782
77783 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77784
77785         * m4/fcntl_h.m4: New file.
77786
77787 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77788
77789         * lib/fcntl_.h: New file.
77790         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
77791         the fcntl module.
77792         * lib/dirchownmod.c: Likewise.
77793         * lib/fts.c: Likewise.
77794
77795         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
77796         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
77797         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
77798         just before including <inttypes.h>, to avoid circular inclusion.
77799
77800 2006-08-28  Jim Meyering  <jim@meyering.net>
77801
77802         * doc/visibility.texi: Actually read and correct the grammar of the
77803         sentence affected by yesterday's change.
77804
77805 2006-08-28  Eric Blake  <ebb9@byu.net>
77806
77807         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
77808         needs wrapper.
77809
77810 2006-08-28  Eric Blake  <ebb9@byu.net>
77811
77812         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
77813
77814 2006-08-28  Eric Blake  <ebb9@byu.net>
77815
77816         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
77817
77818 2006-08-28  Bruno Haible  <bruno@clisp.org>
77819
77820         * modules/c-strstr: New file, from GNU gettext.
77821         * MODULES.html.sh (String handling): Add c-strstr.
77822
77823 2006-08-28  Bruno Haible  <bruno@clisp.org>
77824
77825         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
77826         macros.
77827         Reported by Eric Blake.
77828
77829 2006-08-28  Bruno Haible  <bruno@clisp.org>
77830
77831         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
77832         (VASNPRINTF): Return a string of length > INT_MAX without failing.
77833         * lib/vasprintf.c: Include errno.h, limits.h.
77834         (EOVERFLOW): New fallback definition.
77835         (vasprintf): Test here whether the string length is > INT_MAX.
77836         * lib/vsnprintf.c: Include errno.h, limits.h.
77837         (EOVERFLOW): New fallback definition.
77838         (vsnprintf): Fix bug when generated string was too long for the buffer.
77839         Test here whether the string length is > INT_MAX.
77840
77841 2006-08-28  Bruno Haible  <bruno@clisp.org>
77842
77843         * lib/inttypes_.h (SCNX*): Remove definitions.
77844         Reported by Eric Blake.
77845
77846 2006-08-28  Bruno Haible  <bruno@clisp.org>
77847
77848         * lib/c-strstr.h: New file, from GNU gettext.
77849         * lib/c-strstr.c: New file, from GNU gettext.
77850
77851 2006-08-28  Bruno Haible  <bruno@clisp.org>
77852
77853         * gnulib-tool: Reorder some statements.
77854
77855 2006-08-28  Bruno Haible  <bruno@clisp.org>
77856
77857         * gnulib-tool: New option --makefile-name.
77858         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
77859         $makefile_name.
77860         (func_import): Write $makefile_name to the cache file, and read it from
77861         there unless explicitly specified. Use $makefile_name as file name
77862         instead of Makefile.am. Adjust the recommendations accordingly.
77863
77864 2006-08-28  Bruno Haible  <bruno@clisp.org>
77865
77866         * gnulib-tool (func_verify_module): Check against misapplying patch.
77867
77868 2006-08-28  Bruno Haible  <bruno@clisp.org>
77869
77870         * gnulib-tool (func_relativize, func_relconcat): New functions.
77871         Give an error if --local-dir is given with --update.
77872         Remove trailing slashes from $local_gnulib_dir.
77873         (func_import): Store the relativized $local_gnulib_dir in
77874         gnulib-cache.m4, and read it from there if not specified explicitly.
77875
77876 2006-08-28  Bruno Haible  <bruno@clisp.org>
77877
77878         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
77879         is the current directory. Respect also $local_gnulib_dir.
77880
77881 2006-08-28  Bruno Haible  <bruno@clisp.org>
77882             Simon Josefsson  <jas@extundo.com>
77883
77884         BeOS portability.
77885         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
77886
77887 2006-08-27  Jim Meyering  <jim@meyering.net>
77888
77889         * doc/visibility.texi: Remove duplicate word: "pointer".
77890
77891 2006-08-26  Bruno Haible  <bruno@clisp.org>
77892
77893         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
77894         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
77895         (Makefile.am): Create inttypes.h from inttypes_.h.
77896         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
77897
77898         * modules/imaxabs: New file.
77899
77900         * modules/imaxdiv: New file.
77901
77902 2006-08-26  Bruno Haible  <bruno@clisp.org>
77903
77904         * m4/inttypes.m4: New file.
77905         * m4/_inttypes_h.m4: Remove file.
77906         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
77907         PRI_MACROS_BROKEN.
77908         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
77909
77910         * m4/imaxabs.m4: New file.
77911
77912         * m4/imaxdiv.m4: New file.
77913
77914 2006-08-26  Bruno Haible  <bruno@clisp.org>
77915
77916         * lib/inttypes_.h: New file.
77917         * lib/inttypes.h: Remove file.
77918         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
77919
77920         * lib/imaxabs.c: New file.
77921
77922         * lib/imaxdiv.c: New file.
77923
77924 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77925
77926         New config-h module, so that "make" output needn't be cluttered
77927         by -DHAVE_CONFIG_H.
77928         * MODULES.html.sh (Support for building libraries and executables):
77929         Add config-h.
77930         * modules/config-h: New file.
77931         * gnulib-tool (nl, sed_transform_lib_file): New vars.
77932         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
77933         the config-h module is used.
77934
77935         New configmake module, so that "make" output needn't be cluttered
77936         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
77937         * MODULES.html.sh (Support for building libraries and executables):
77938         Add configmake.
77939         * modules/configmake: New file.
77940
77941 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77942
77943         * m4/config-h.m4: New file.
77944
77945 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77946
77947         * config/srclist.txt: Add elisp-comp.
77948
77949 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77950
77951         * MODULES.html.sh (Support for building libraries and executables):
77952         Add elisp-comp.
77953         * build-aux/elisp-comp: New file.
77954         * modules/elisp-comp: New file.
77955
77956 2006-08-24  Bruno Haible  <bruno@clisp.org>
77957
77958         * gnulib-tool (func_create_testdir): Use non-default values of
77959         sourcebase and m4base.
77960
77961 2006-08-24  Bruno Haible  <bruno@clisp.org>
77962
77963         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
77964         HTML structure.
77965
77966 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77967
77968         * modules/openat (Depends-on): Add lchown.
77969
77970 2006-08-23  Bruno Haible  <bruno@clisp.org>
77971
77972         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
77973         of gl_LOCK_EARLY instead of gl_LOCK.
77974
77975 2006-08-23  Bruno Haible  <bruno@clisp.org>
77976
77977         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
77978         on OSF/1 to no.
77979         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
77980
77981 2006-08-23  Bruno Haible  <bruno@clisp.org>
77982
77983         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
77984         as unusable.
77985
77986         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
77987         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
77988         (gl_LOCK): New macro.
77989
77990 2006-08-22  Simon Josefsson  <jas@extundo.com>
77991
77992         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
77993         to md5 module.
77994
77995 2006-08-22  Simon Josefsson  <jas@extundo.com>
77996
77997         * MODULES.html.sh: Add "Support for maintaining and release
77998         projects".
77999
78000         * build-aux/gnupload: New file, from coreutils.
78001
78002 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78003
78004         Avoid the need for AC_LIBSOURCES in m4 macros.
78005         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
78006         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
78007         * modules/check-version (EXTRA_DIST): Add check-version.h.
78008         * modules/crc (EXTRA_DIST): Add crc.h.
78009         * modules/des (EXTRA_DIST): Add des.h.
78010         * modules/gc (EXTRA_DIST): Add gc.h.
78011         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
78012         * modules/getline (EXTRA_DIST): Add getline.h.
78013         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
78014         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
78015         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
78016         * modules/md2 (EXTRA_DIST): Add md2.h.
78017         * modules/md4 (EXTRA_DIST): Add md4.h.
78018         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
78019         * modules/read-file (EXTRA_DIST): Add read-file.h.
78020         * modules/readline (EXTRA_DIST): Add readline.h.
78021         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
78022         rijndael-api-fst.h.
78023
78024 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78025
78026         * m4/rijndael.m4 (gl_ARCFOUR):
78027         * m4/arctwo.m4 (gl_ARCTWO):
78028         * m4/check-version.m4 (gl_CHECK_VERSION):
78029         * m4/crc.m4 (gl_CRC):
78030         * m4/des.m4 (gl_DES):
78031         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
78032         * m4/gc.m4 (gl_GC):
78033         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
78034         * m4/getline.m4 (gl_FUNC_GETLINE):
78035         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
78036         * m4/hmac-md5.m4 (gl_HMAC_MD5):
78037         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
78038         * m4/md2.m4 (gl_MD2):
78039         * m4/md4.m4 (gl_MD4):
78040         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
78041         * m4/read-file.m4 (gl_FUNC_READ_FILE):
78042         * m4/readline.m4 (gl_FUNC_READLINE):
78043         * m4/rijndael.m4 (gl_RIJNDAEL):
78044         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78045         to get the necessary .h files and whatnot.
78046
78047 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78048
78049         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
78050         gnulib rather than the other way around.
78051         * config/srclistvars.sh (COREUTILS): Remove.
78052
78053 2006-08-22  Jim Meyering  <jim@meyering.net>
78054
78055         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
78056
78057         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
78058
78059 2006-08-22  Eric Blake  <ebb9@byu.net>
78060
78061         * modules/regexprops-generic: New file.
78062         * MODULES.html.sh (Support for building documentation): List it.
78063
78064 2006-08-22  Eric Blake  <ebb9@byu.net>
78065
78066         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
78067         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
78068         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
78069         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
78070
78071 2006-08-22  Bruno Haible  <bruno@clisp.org>
78072
78073         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
78074         and lib_LTLIBRARIES like the other lib_* variables.
78075
78076 2006-08-22  Bruno Haible  <bruno@clisp.org>
78077
78078         * build-aux/x-to-1.in: New file, from GNU gettext.
78079
78080 2006-08-22  Bruno Haible  <bruno@clisp.org>
78081
78082         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
78083         <utmpx.h> exists.
78084
78085 2006-08-22  Bruno Haible  <bruno@clisp.org>
78086
78087         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
78088         <utmpx.h> exists.
78089
78090 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78091
78092         BeOS portability.
78093         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
78094         exist.
78095         Problem reported by Bruno Haible.
78096
78097 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78098
78099         Avoid the need for AC_LIBSOURCES in m4 macros.
78100         * modules/acl (EXTRA_DIST): Add acl.h.
78101         * modules/argmatch (Files): Add m4/argmatch.m4.
78102         (configure.ac): Add gl_ARGMATCH.
78103         (EXTRA_DIST): Renamed from lib_SOURCES, for
78104         consistency with the other modules.  Remove argmatch.c.
78105         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
78106         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
78107         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
78108         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
78109         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
78110         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
78111         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
78112         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
78113         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
78114         * modules/closeout (EXTRA_DIST): Add closeout.h.
78115         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
78116         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
78117         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
78118         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
78119         dirname.h; remove basename.c and stripslash.c.
78120         * modules/exclude (EXTRA_DIST): Add exclude.h.
78121         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
78122         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
78123         * modules/file-type (EXTRA_DIST): Add file-type.h.
78124         * modules/filemode (EXTRA_DIST): Add filemode.h.
78125         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
78126         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78127         * modules/fpending (EXTRA_DIST): Add __fpending.h.
78128         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
78129         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
78130         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
78131         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
78132         * modules/getdate (EXTRA_DIST): Add getdate.c.
78133         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
78134         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
78135         * modules/getpass (EXTRA_DIST): Add getpass.h.
78136         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
78137         * modules/group-member (EXTRA_DIST): Add group-member.h.
78138         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
78139         * modules/hash (EXTRA_DIST): Add hash.h.
78140         * modules/human (EXTRA_DIST): Add human.h.
78141         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
78142         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
78143         * modules/lchown (EXTRA_DIST): Add lchown.h.
78144         * modules/long-options (EXTRA_DIST): Add long-options.h.
78145         * modules/lstat (EXTRA_DIST): Add lstat.h.
78146         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
78147         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
78148         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
78149         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
78150         * modules/memxor (EXTRA_DIST): Add memxor.h.
78151         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
78152         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
78153         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
78154         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
78155         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
78156         * modules/physmem (EXTRA_DIST): Add physmem.h.
78157         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
78158         * modules/posixver (EXTRA_DIST): Add posixver.h.
78159         * modules/quote (EXTRA_DIST): Add quote.h.
78160         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
78161         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
78162         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
78163         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
78164         regex_internal.h regexec.c.
78165         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
78166         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
78167         * modules/same (EXTRA_DIST): Add same.h.
78168         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
78169         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
78170         * modules/savedir (EXTRA_DIST): Add savedir.h.
78171         * modules/sha1 (EXTRA_DIST): Add sha1.h.
78172         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
78173         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
78174         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
78175         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
78176         * modules/strdup (EXTRA_DIST): Add strdup.h.
78177         * modules/strftime (EXTRA_DIST): Add strftime.h.
78178         * modules/strndup (EXTRA_DIST): Add strndup.h.
78179         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
78180         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
78181         * modules/time_r (EXTRA_DIST): Add time_r.h.
78182         * modules/timespec (EXTRA_DIST): Add timespec.h.
78183         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78184         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
78185         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
78186         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
78187         * modules/userspec (EXTRA_DIST): Add userspec.h.
78188         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
78189         * modules/utimens (EXTRA_DIST): Add utimens.h.
78190         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
78191         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
78192         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
78193         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
78194         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
78195         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
78196         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
78197         * modules/yesno (EXTRA_DIST): Add yesno.h.
78198
78199 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78200
78201         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
78202
78203         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
78204         * m4/dev-ino.m4, same-inode.m4: Remove.
78205
78206         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
78207         * m4/acl.m4 (AC_FUNC_ACL):
78208         * m4/backupfile.m4 (gl_BACKUPFILE):
78209         * m4/c-strtod.m4 (gl_C99_STRTOLD):
78210         * m4/canon-host.m4 (gl_CANON_HOST):
78211         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
78212         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
78213         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
78214         * m4/cloexec.m4 (gl_CLOEXEC):
78215         * m4/close-stream.m4 (gl_CLOSE_STREAM):
78216         * m4/closeout.m4 (gl_CLOSEOUT):
78217         * m4/dirfd.m4 (gl_FUNC_DIRFD):
78218         * m4/dirname.m4 (gl_DIRNAME):
78219         * m4/exclude.m4 (gl_EXCLUDE):
78220         * m4/exitfail.m4 (gl_EXITFAIL):
78221         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
78222         * m4/file-type.m4 (gl_FILE_TYPE):
78223         * m4/filemode.m4 (gl_FILEMODE):
78224         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
78225         * m4/fpending.m4 (gl_FUNC_FPENDING):
78226         * m4/fprintftime.m4 (gl_FPRINTFTIME):
78227         * m4/fts.m4 (gl_FUNC_FTS):
78228         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
78229         * m4/getdate.m4 (gl_GETDATE):
78230         * m4/gethrxtime.m4 (gl_GETHRXTIME):
78231         * m4/getpagesize.m4 (gl_GETPAGESIZE):
78232         * m4/getpass.m4 (gl_FUNC_GETPASS):
78233         * m4/gettime.m4 (gl_GETTIME):
78234         * m4/getugroups.m4 (gl_GETUGROUPS):
78235         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
78236         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
78237         * m4/hard-locale.m4 (gl_HARD_LOCALE):
78238         * m4/hash.m4 (gl_HASH):
78239         * m4/idcache.m4 (gl_IDCACHE):
78240         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
78241         * m4/lchown.m4 (gl_FUNC_LCHOWN):
78242         * m4/long-options.m4 (gl_LONG_OPTIONS):
78243         * m4/lstat.m4 (gl_FUNC_LSTAT):
78244         * m4/md5.m4 (gl_MD5):
78245         * m4/memcasecmp.m4 (gl_MEMCASECMP):
78246         * m4/memcoll.m4 (gl_MEMCOLL):
78247         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
78248         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
78249         * m4/memxor.m4 (gl_MEMXOR):
78250         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
78251         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
78252         * m4/modechange.m4 (gl_MODECHANGE):
78253         * m4/mountlist.m4 (gl_MOUNTLIST):
78254         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
78255         * m4/openat.m4 (gl_FUNC_OPENAT):
78256         * m4/pathmax.m4 (gl_PATHMAX):
78257         * m4/physmem.m4 (gl_PHYSMEM):
78258         * m4/posixtm.m4 (gl_POSIXTM):
78259         * m4/posixver.m4 (gl_POSIXVER):
78260         * m4/quote.m4 (gl_QUOTE):
78261         * m4/quotearg.m4 (gl_QUOTEARG):
78262         * m4/readtokens.m4 (gl_READTOKENS):
78263         * m4/readutmp.m4 (gl_READUTMP):
78264         * m4/regex.m4 (gl_REGEX):
78265         * m4/safe-read.m4 (gl_SAFE_READ):
78266         * m4/safe-write.m4 (gl_SAFE_WRITE):
78267         * m4/same.m4 (gl_SAME):
78268         * m4/save-cwd.m4 (gl_SAVE_CWD):
78269         * m4/savedir.m4 (gl_SAVEDIR):
78270         * m4/settime.m4 (gl_SETTIME):
78271         * m4/sha1.m4 (gl_SHA1):
78272         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
78273         * m4/stat-macros.m4 (gl_STAT_MACROS):
78274         * m4/stat-time.m4 (gl_STAT_TIME):
78275         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
78276         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
78277         * m4/strdup.m4 (gl_FUNC_STRDUP):
78278         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
78279         * m4/strndup.m4 (gl_FUNC_STRNDUP):
78280         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
78281         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
78282         * m4/time_r.m4 (gl_TIME_R):
78283         * m4/timespec.m4 (gl_TIMESPEC):
78284         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
78285         * m4/unlinkdir.m4 (gl_UNLINKDIR):
78286         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
78287         * m4/userspec.m4 (gl_USERSPEC):
78288         * m4/utimecmp.m4 (gl_UTIMECMP):
78289         * m4/utimens.m4 (gl_UTIMENS):
78290         * m4/xalloc.m4 (gl_XALLOC):
78291         * m4/xgetcwd.m4 (gl_XGETCWD):
78292         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
78293         * m4/xreadlink.m4 (gl_XREADLINK):
78294         * m4/xstrtod.m4 (gl_XSTRTOD):
78295         * m4/yesno.m4 (gl_YESNO):
78296         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78297         to get the necessary .h files and whatnot.
78298
78299 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
78300             Bruno Haible  <bruno@clisp.org>
78301
78302         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
78303         /bin/sh understanding of '!' conditional negation.
78304
78305 2006-08-21  Jim Meyering  <jim@meyering.net>
78306
78307         * modules/openat (Depends-on): Really alphabetize.
78308
78309         * modules/acl (Depends-on): Add error and quote.
78310
78311         * check-module (find_included_lib_files): Add at-func.c to the
78312         ok-to-include-more-than-once white list.
78313
78314         * modules/openat (Depends-on): Add lstat.  Alphabetize.
78315
78316 2006-08-21  Bruno Haible  <bruno@clisp.org>
78317
78318         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78319         Emit a pkgdata_DATA variable only if some snippets add contents to it.
78320         Reported by Martin Lambers <marlam@marlam.de>.
78321
78322 2006-08-21  Bruno Haible  <bruno@clisp.org>
78323
78324         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
78325         specify an installation location, don't emit a noinst_LIBRARIES or
78326         noinst_LTLIBRARIES assignment.
78327
78328 2006-08-21  Bruno Haible  <bruno@clisp.org>
78329
78330         BeOS portability.
78331         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
78332         BeOS has mbrtowc() but no <wctype.h>.
78333
78334 2006-08-21  Bruno Haible  <bruno@clisp.org>
78335
78336         BeOS portability.
78337         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
78338         exist.
78339
78340 2006-08-21  Bruno Haible  <bruno@clisp.org>
78341
78342         BeOS portability.
78343         * lib/mbchar.h: Include <wctype.h> only if it exists.
78344
78345 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78346
78347         Remove files that are no longer needed by their respective modules.
78348         * m4/obstack.m4: Remove.
78349         * m4/strerror_r.m4: Remove.
78350         * m4/uint32_t.m4: Remove.
78351         * m4/uintptr_t.m4: Remove.
78352         * m4/ullong_max.m4: Remove.
78353         * m4/xstrtoimax.m4: Remove.
78354         * m4/xstrtoumax.m4: Remove.
78355
78356         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
78357         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
78358         dependencies now capture this.
78359
78360         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
78361         Do not use AC_LIBSOURCES, since gnulib modules now do this.
78362         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
78363         * m4/human.m4 (gl_HUMAN): Likewise.
78364         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
78365         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
78366
78367         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
78368
78369         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
78370         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
78371         stdint.
78372         * m4/human.m4 (gl_HUMAN): Likewise.
78373         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
78374         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
78375         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78376         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78377         * m4/xstrtol (gl_XSTRTOL): Likewise.
78378
78379         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
78380         AC_TYPE_LONG_LONG_INT.
78381         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78382         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
78383         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
78384         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78385
78386         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
78387         on stdbool.
78388
78389         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
78390         (gl_PREREQ_XSTRTOUL): Remove.
78391
78392         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
78393
78394         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
78395         mode.
78396
78397 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78398
78399         Add and change modules to make it easier for coreutils to use
78400         gnulib-tool.
78401         * modules/backupfile (Files): Remove m4/d-ino.m4.
78402         (Depends-on): Add d-ino.
78403         * modules/cycle-check (Depends-on): Add stdint.
78404         (lib_SOURCES): Add cycle-check.h.
78405         * modules/d-ino: New module.
78406         * modules/d-type: New module.
78407         * modules/error (Files): Remove m4/strerror_r.m4.
78408         * modules/filemode (Files): Add m4/st_dm_mode.m4.
78409         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78410         m4/inttypes_h.m4, m4/uintmax_t.m4.
78411         (Depends-on): Add stdint.
78412         (lib_SOURCES): Add fsusage.h.
78413         * modules/getcwd (Files): Remove d-ino.m4.
78414         (Depends-on): Add d-ino.
78415         * modules/getndelim2 (Depends-on): Add stdint.
78416         * modules/glob (Files): Remove m4/d-type.m4.
78417         (Depends-on): Add d-type.
78418         * modules/host-os: New module.
78419         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
78420         m4/inttypes_h.m4, m4/uintmax_t.m4.
78421         * Depends-on: Add stdint.
78422         (lib_SOURCES): Add human.h.
78423         * modules/inttostr (Files): Remove m4/intmax_t.m4,
78424         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
78425         m4/uintmax_t.m4, m4/ulonglong.m4.
78426         (Depends-on): Add stdint.
78427         (EXTRA_DIST): Add inttostr.h.
78428         * modules/lchmod: New module.
78429         * modules/link-follow: New module.
78430         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
78431         (Depends-on): Add lchmod.
78432         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
78433         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
78434         (Depends-on): Add stdint.
78435         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
78436         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
78437         (Depends-on): Add stdint.
78438         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
78439         * modules/perl: New module.
78440         * modules/regex (Depends-on): Add stdint.
78441         * modules/rmdir-errno: New module.
78442         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78443         m4/intmax_t.m4.
78444         (Depends-on): Add stdint.
78445         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78446         m4/uintmax_t.m4.
78447         (Depends-on): Add stdint.
78448         * modules/unlink-busy: New module.
78449         * modules/utimecmp (Depends-on): Add stdint.
78450         * modules/uptime: New module.
78451         * modules/winsz-ioctl: New module.
78452         * modules/winsz-termios: New module.
78453         * modules/xnanosleep (Depends-on): Add nanosleep.
78454         * modules/ullong_max: Remove.
78455         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
78456         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
78457         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
78458         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
78459         (Depends-on): Add inttypes.
78460         (lib_SOURCES): Add xstrtol.h.
78461         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
78462         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
78463         * MODULES.html.sh: Move 'assert' into the assert section.
78464         Move 'dummy' into the linking section.
78465         Remove ullong_max.
78466         Add section for compatibility checks for POSIX:2001 functions,
78467         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
78468         winsz-ioctl, and winsz-termios into it.
78469         Add lchmod.
78470         Add top-level Misc section and put host-os, perl, and uptime
78471         into it.
78472
78473 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78474
78475         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
78476         now assume the stdint module.  Do not include inttypes.h.
78477         * lib/fsusage.h: Likewise.
78478         * lib/getndelim2.c: Likewise.
78479         * lib/human.h: Likewise.
78480         * lib/inttostr.h: Likewise.
78481         * lib/obstack.c: Likewise.
78482         * lib/regex_internal.h: Likewise.
78483         * lib/tempname.c: Likewise.
78484         * lib/utimecmp.c: Likewise.
78485         * lib/xstrtol.h: Likewise.
78486
78487         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
78488
78489         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
78490         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
78491         * lib/xtime.h: Likewise.
78492
78493 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78494
78495         * modules/openat (Files): Add lib/fchmodat.c.
78496         Fixes problem reported by Jay Youngman.
78497
78498 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78499
78500         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
78501         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
78502
78503 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
78504             Bruno Haible  <bruno@clisp.org>
78505
78506         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
78507         and is a script that invokes bison. Tighten the code. Add comments.
78508
78509 2006-08-18  Jim Meyering  <jim@meyering.net>
78510
78511         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
78512         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
78513         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
78514         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
78515
78516 2006-08-18  Bruno Haible  <bruno@clisp.org>
78517
78518         * modules/bison-i18n: New file.
78519         * MODULES.html.sh (Internationalization functions): Add it.
78520
78521 2006-08-18  Bruno Haible  <bruno@clisp.org>
78522
78523         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
78524         sys/statvfs.h. When getmntinfo was found, check its declaration and
78525         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
78526
78527 2006-08-18  Bruno Haible  <bruno@clisp.org>
78528
78529         * m4/bison-i18n.m4: New file, from bison.
78530
78531 2006-08-18  Bruno Haible  <bruno@clisp.org>
78532
78533         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
78534         (ME_DUMMY): Treat "kernfs" as a dummy.
78535         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
78536
78537 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78538
78539         Update from coreutils.
78540
78541         2006-08-15  Jim Meyering  <jim@meyering.net>
78542
78543         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
78544
78545         2006-01-17  Jim Meyering  <jim@meyering.net>
78546
78547         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
78548
78549         2006-01-11  Jim Meyering  <jim@meyering.net>
78550
78551         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
78552         Check for the lchmod function.
78553
78554 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78555
78556         Update from coreutils.
78557
78558         * lib/__fpending.h: Add copyright notice.
78559         * lib/fprintftime.h: Likewise.
78560         * lib/savedir.c: Use (C) in copyright notice.
78561         * lib/savedir.h: Likewise.
78562
78563         2006-08-15  Jim Meyering  <jim@meyering.net>
78564
78565         * lib/at-func.c: New file, with the logic of all emulated at-functions.
78566         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
78567         in support of the EXPECTED_ERRNO macro.
78568         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
78569         definitions.  Instead, define the appropriate symbols and include
78570         "at-func.c".
78571         * lib/mkdirat.c (mkdirat): Likewise.
78572         * lib/fchmodat.c (fchmodat): Likewise.
78573         (ENOSYS): Remove definition.
78574         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
78575         it.  Don't include "unistd--.h" -- it wasn't ever used.
78576
78577         2006-01-17  Jim Meyering  <jim@meyering.net>
78578
78579         Rewrite fts.c not to change the current working directory,
78580         by using openat, fstatat, fdopendir, etc..
78581
78582         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
78583         (HAVE_OPENAT_SUPPORT): Define.
78584         [_LIBC] (fchdir): Don't undef or define; no longer used.
78585         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
78586         Now, this `function' always succeeds, and consumes its file descriptor
78587         parameter -- so callers must not close such FDs.  Update callers.
78588         (diropen_fd, opendirat, cwd_advance_fd): New functions.
78589         (diropen): Add parameter, SP.  Adjust all callers.
78590         Implement using diropen_fd, rather than open.
78591         (fts_open): Initialize new member, fts_cwd_fd.
78592         Remove fts_rft-setting code.
78593         (fts_close): Close fts_cwd_fd, if necessary.
78594         (__opendir2): Define in terms of opendir or opendirat,
78595         depending on whether the FST_NOCHDIR flag is set.
78596         (fts_build): Since fts_safe_changedir consumes its FD, and since
78597         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
78598         and close the dup'd file descriptor upon failure.
78599         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
78600         (fts_safe_changedir): Tweak semantics to reflect that this function
78601         now calls cwd_advance_fd and hence consumes its FD argument.
78602         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
78603         [struct FTS] (fts_rft): Remove now-unused member.
78604         [struct FTS] (fts_cycle.state): Improve comment.
78605
78606         * lib/openat.c (openat_needs_fchdir): New function.
78607         * lib/openat.h (openat_needs_fchdir): Declare it.
78608
78609 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
78610
78611         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
78612         Problem and fix reported by Pádraig Brady in
78613         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
78614
78615 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78616
78617         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
78618
78619 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78620
78621         * lib/memcoll.c (memcoll): Optimize for the common case where the
78622         arguments are bytewise equal.
78623
78624 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78625
78626         * doc/regexprops-generic.texi: Add a copyright notice.
78627
78628 2006-08-15  Bruno Haible  <bruno@clisp.org>
78629
78630         * modules/tmpdir (License): Change to LGPL.
78631
78632 2006-08-15  Bruno Haible  <bruno@clisp.org>
78633
78634         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
78635         module.
78636
78637 2006-08-14  Simon Josefsson  <jas@extundo.com>
78638
78639         * config/srclist.txt: Add gnupload.
78640
78641 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78642
78643         Change copyright notice from LGPL 2 to GPL 2, since that's the
78644         standard form used in the gnulib repository.
78645         * tests/test-lock.c: Likewise.
78646         * tests/test-stdint.c: Likewise.
78647         * tests/test-tls.c: Likewise.
78648
78649         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
78650         prelude-manager.  User shorter URLs for GNU projects, without '?'.
78651         Add copyright notice.
78652
78653         * check-module: Add copyright notice.  Output a copyright
78654         notice if "--version" is specified.
78655         * modules/COPYING: New file.
78656         * tests/test-getaddrinfo.c: Add copyright notice.
78657         * tests/test-verify.c: Likewise.
78658
78659 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78660
78661         Change copyright notice from LGPL 2 to GPL 2, since that's the
78662         standard form used in the gnulib repository.
78663         * lib/lock.c: LGPL -> GPL.
78664         * lib/lock.h: Likewise.
78665         * lib/strnlen1.c: Likewise.
78666         * lib/strnlen1.h: Likewise.
78667         * lib/tls.c: Likewise.
78668         * lib/tls.h: Likewise.
78669         * lib/tmpdir.c: Likewise.
78670
78671         * lib/TODO: Remove; this belongs only in coreutils.
78672
78673 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78674
78675         Add copyright notices to long-enough files that lack them, since
78676         otherwise the files aren't clearly free.  Use the same notice that
78677         getdate.texi already uses.
78678         * doc/alloca-opt.texi: Add copyright notice.
78679         * doc/alloca.texi: Likewise.
78680         * doc/ctime.texi: Likewise.
78681         * doc/functions.texi: Likewise.
78682         * doc/gcd.texi: Likewise.
78683         * doc/gnulib-tool.texi: Likewise.
78684         * doc/inet_ntoa.texi: Likewise.
78685         * doc/visibility.texi: Likewise.
78686
78687         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
78688         * doc/quote.texi: Add copyright notice.
78689
78690         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
78691         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
78692         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
78693         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
78694         is now obsolete, and give a pointer to the Sun list.
78695         Add copyright notice.
78696
78697 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78698
78699         * config/srclistvars.sh: Add copyright notice.
78700
78701 2006-08-14  Eric Blake  <ebb9@byu.net>
78702
78703         Import the following change from libc:
78704
78705         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
78706
78707         Upstream bug 2997.
78708         * lib/misc/error.c: Add space between program name and message if file
78709         name is missing.
78710
78711 2006-08-12  Karl Berry  <karl@gnu.org>
78712
78713         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
78714         remove, these originate in gnulib now.
78715
78716 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78717
78718         * doc/Makefile (standards.info standards.html standards.dvi):
78719         Also depend on make-stds.texi.
78720
78721 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78722
78723         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
78724         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
78725
78726         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
78727         in wchar_t.  Problem reported by Eric Blake.
78728
78729         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
78730         LEN is smaller than SIZE.  Suggested by Bruno Haible.
78731         Also, help the compiler to keep LEN in a register.
78732
78733 2006-08-11  Eric Blake  <ebb9@byu.net>
78734
78735         * users.txt: Sort.  Add tar.
78736
78737 2006-08-11  Bruno Haible  <bruno@clisp.org>
78738
78739         * users.txt: New file.
78740
78741 2006-08-11  Bruno Haible  <bruno@clisp.org>
78742
78743         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
78744         before <wchar.h>. Needed for OSF/1 and BSD/OS.
78745
78746 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78747
78748         * modules/snprintf (Depends-on): Remove minmax.
78749         (Maintainer): Add self and Bruno.
78750
78751 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78752
78753         * lib/.cppi-disable: Add snprintf.h, socket_.h.
78754         * lib/snprintf.c: Include <errno.h> and <limits.h>.
78755         (EOVERFLOW): Define if the system does not.
78756         Do not include "minmax.h"; it wasn't used.
78757         (snprintf): Don't assume size_t promotes to an unsigned type.
78758         Fix bug when generated string was too long for the buffer: the
78759         buffer's contents are supposed to be the initial prefix of the
78760         output.  Don't assume vasnprintf returns EOVERFLOW if the size
78761         exceeds INT_MAX; do the check ourselves.
78762
78763         Import the following changes from libc:
78764
78765         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
78766
78767         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
78768         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
78769         set wc to the byte which couldn't be converted.
78770         (re_string_reconstruct): Don't clear valid_raw_len before calling
78771         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
78772         tip_context using re_string_context_at.
78773
78774         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
78775
78776         * lib/posix/regex.h: g++ still cannot handled [restrict].
78777
78778         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
78779
78780         * lib/posix/regex.h: Remove special handling for VMS.
78781
78782 2006-08-10  Jim Meyering  <jim@meyering.net>
78783
78784         * modules/same-inode: New module.
78785         * modules/dev-ino: New module.
78786         * modules/cycle-check: Depend on these modules, rather than simply
78787         including their .h files.
78788         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
78789         required via m4/cycle-check.m4.
78790         * modules/same: Depend on new same-inode module, rather than
78791         including same-inode.h.
78792         * modules/chdir-safer: New file.
78793
78794         * modules/chown (Depends-on): Add stat-macros.
78795
78796 2006-08-10  Jim Meyering  <jim@meyering.net>
78797
78798         * m4/cycle-check.m4: New file.
78799         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
78800         * m4/dev-ino.m4, m4/same-inode.m4: New files.
78801
78802 2006-08-10  Eric Blake  <ebb9@byu.net>
78803
78804         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
78805         in from original proposal.
78806
78807 2006-08-10  Eric Blake  <ebb9@byu.net>
78808         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78809
78810         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
78811         namespace.
78812
78813 2006-08-10  Bruno Haible  <bruno@clisp.org>
78814
78815         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
78816         as well.
78817
78818 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78819
78820         Sync from coreutils.
78821
78822         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
78823
78824         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
78825         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
78826
78827 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78828
78829         * modules/restrict: Remove; no longer needed now that we assume
78830         Autoconf 2.59 or later.
78831         * MODULES.html.sh: Remove 'restrict'.
78832         * modules/argp (Depends-on): Remove 'restrict'.
78833         * modules/base64 (Depends-on): Likewise.
78834         * modules/gc (Depends-on): Likewise.
78835         * modules/getaddrinfo (Depends-on): Likewise.
78836         * modules/glob (Depends-on): Likewise.
78837         * modules/inet_ntop (Depends-on): Likewise.
78838         * modules/inet_pton (Depends-on): Likewise.
78839         * modules/memxor (Depends-on): Likewise.
78840         * modules/regex (Depends-on): Likewise.
78841         * modules/strtok_r (Depends-on): Likewise.
78842         * modules/time_r (Depends-on): Likewise.
78843
78844 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78845
78846         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
78847         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
78848         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
78849         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
78850         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
78851         * m4/memxor.m4 (gl_MEMXOR): Likewise.
78852         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
78853         gl_C_RESTRICT replaced by AC_C_RESTRICT.
78854
78855         Merge from coreutils.
78856         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
78857         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
78858         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
78859         * m4/time_r.m4 (gl_TIME_R): Likewise.
78860
78861 2006-08-09  Karl Berry  <karl@gnu.org>
78862
78863         * config/srclist.txt: no more gettext-tools, per Bruno.
78864
78865 2006-08-08  Eric Blake  <ebb9@byu.net>
78866
78867         * modules/verror: New module.
78868         * MODULES.html.sh: Document it.
78869
78870 2006-08-08  Eric Blake  <ebb9@byu.net>
78871
78872         * lib/verror.h, lib/verror.c: New files.
78873
78874 2006-08-08  Eric Blake  <ebb9@byu.net>
78875
78876         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
78877         verror_at_line output complies with GNU Coding Standards even when
78878         file is NULL.
78879
78880 2006-08-07  Bruno Haible  <bruno@clisp.org>
78881
78882         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
78883         versions of AIX.
78884         Reported by Ralf Wildenhues.
78885
78886 2006-08-07  Bruno Haible  <bruno@clisp.org>
78887
78888         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
78889         in an AC_DEFUN. Needed so that the autoconf snippets can use
78890         AC_REQUIRE.
78891
78892 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78893
78894         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78895         Initialize pkgdata_DATA.
78896         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
78897         overriding it.
78898
78899 2006-08-06  Eric Blake  <ebb9@byu.net>
78900
78901         * lib/error.h: Fold in some upstream changes from glibc.
78902         * lib/error.c: Likewise.
78903
78904 2006-08-04  Bruno Haible  <bruno@clisp.org>
78905
78906         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78907         Make the mostlyclean-local rule depend on mostlyclean-generic.
78908         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
78909
78910 2006-07-31  Bruno Haible  <bruno@clisp.org>
78911
78912         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
78913         <stdlib.h>, <string.h>.
78914
78915 2006-07-30  Bruno Haible  <bruno@clisp.org>
78916
78917         * modules/readlink (License): Change to LGPL.
78918
78919 2006-07-30  Bruno Haible  <bruno@clisp.org>
78920
78921         * modules/javaversion (Makefile.am): Distribute javaversion.java and
78922         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
78923         set PKGDATADIR to point to it.
78924
78925 2006-07-30  Bruno Haible  <bruno@clisp.org>
78926
78927         * modules/csharpexec (configure.ac): Comment out macro invocation.
78928         * modules/javaexec (configure.ac): Likewise.
78929         * modules/javacomp-script (configure.ac): Likewise.
78930
78931         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
78932
78933 2006-07-30  Bruno Haible  <bruno@clisp.org>
78934
78935         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
78936         linked-list.
78937
78938 2006-07-30  Bruno Haible  <bruno@clisp.org>
78939
78940         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
78941
78942 2006-07-30  Bruno Haible  <bruno@clisp.org>
78943
78944         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78945         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
78946         get removed.
78947
78948 2006-07-29  Bruno Haible  <bruno@clisp.org>
78949
78950         Make it possible for gnulib-tool to work with locally modified or
78951         augmented gnulib repositories.
78952         * gnulib-tool (func_usage): Document --local-dir option.
78953         (local_gnulib_dir): New variable.
78954         Handle --local-dir option.
78955         (func_lookup_file): New function.
78956         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
78957         (func_get_description, func_get_filelist, func_get_description,
78958         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
78959         func_get_automake_snippet, func_get_include_directive,
78960         func_get_license, func_get_maintainer): Use func_lookup_file.
78961         (func_import, func_create_testdir): Use func_lookup_file.
78962
78963 2006-07-29  Bruno Haible  <bruno@clisp.org>
78964
78965         * modules/setenv (Depends-on): Add unistd.
78966
78967 2006-07-29  Bruno Haible  <bruno@clisp.org>
78968
78969         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
78970
78971 2006-07-29  Bruno Haible  <bruno@clisp.org>
78972
78973         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
78974
78975 2006-07-29  Bruno Haible  <bruno@clisp.org>
78976
78977         * gnulib-tool (import, update): If there is no Makefile.am, look at
78978         aclocal.m4, instead of bailing out.
78979
78980 2006-07-29  Bruno Haible  <bruno@clisp.org>
78981
78982         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
78983         Categorize the options by when they are useful.
78984
78985 2006-07-29  Bruno Haible  <bruno@clisp.org>
78986
78987         * gnulib-tool (func_usage): Document option --no-libtool.
78988         Handle option --no-libtool.
78989         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
78990         for changed semantics of $libtool variable.
78991         (func_import): Likewise. If libtool is not used, show this through
78992         an option --no-libtool.
78993         (func_create_testdir): Update.
78994
78995 2006-07-29  Bruno Haible  <bruno@clisp.org>
78996
78997         * gnulib-tool (func_import): Extend error message about missing
78998         --doc-base.
78999
79000 2006-07-29  Bruno Haible  <bruno@clisp.org>
79001
79002         * gnulib-tool (func_import): Don't create the $docbase directory if
79003         there is no file to store there.
79004
79005 2006-07-29  Bruno Haible  <bruno@clisp.org>
79006
79007         * gnulib-tool (autoconf_minversion): If a --dir option is given and
79008         relevant, look for configure.ac there, not in the current directory.
79009         Also use a simple search for AC_PREREQ, not "autoconf --trace".
79010
79011 2006-07-29  Bruno Haible  <bruno@clisp.org>
79012
79013         * gnulib-tool (SORT): New variable.
79014         (func_usage): Undocument --assume-autoconf option.
79015         Remove --assume-autoconf option handling.
79016         (autoconf_minversion): Determine from the contents of configure.ac.
79017         (func_import): Remove autoconf_minversion handling.
79018         Suggested by Eric Blake.
79019
79020 2006-07-29  Bruno Haible  <bruno@clisp.org>
79021
79022         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
79023
79024 2006-07-29  Bruno Haible  <bruno@clisp.org>
79025
79026         * config/srclist.txt (*setenv.[ch]): Remove rules.
79027
79028 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79029
79030         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
79031
79032 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79033
79034         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
79035         arpa/inet.h.
79036
79037 2006-07-28  Simon Josefsson  <jas@extundo.com>
79038
79039         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
79040         * modules/inet_pton (Depends-on): Likewise.
79041
79042 2006-07-28  Simon Josefsson  <jas@extundo.com>
79043
79044         * m4/netinet_in_h.m4: New file.
79045
79046 2006-07-28  Simon Josefsson  <jas@extundo.com>
79047
79048         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
79049         #include's.
79050
79051 2006-07-28  Simon Josefsson  <jas@extundo.com>
79052
79053         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
79054         #include's.
79055
79056 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
79057
79058         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
79059         setgid on directories only if they set these bits.
79060         * lib/modechange.h: Remove obsolete comment about masks.
79061
79062 2006-07-28  Eric Blake  <ebb9@byu.net>
79063
79064         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
79065         macro expansion.
79066
79067 2006-07-28  Bruno Haible  <bruno@clisp.org>
79068
79069         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
79070
79071 2006-07-28  Bruno Haible  <bruno@clisp.org>
79072
79073         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
79074
79075 2006-07-28  Bruno Haible  <bruno@clisp.org>
79076
79077         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
79078         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
79079         Define fallbacks.
79080         Avoids link error on FreeBSD 4.x.
79081         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79082
79083         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
79084         encoding.
79085         * lib/mbswidth.c (iswcntrl): Likewise.
79086
79087 2006-07-27  Bruno Haible  <bruno@clisp.org>
79088
79089         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
79090         test.
79091
79092 2006-07-27  Bruno Haible  <bruno@clisp.org>
79093
79094         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
79095         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
79096         defined.
79097
79098 2006-07-26  Eric Blake  <ebb9@byu.net>
79099
79100         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
79101
79102 2006-07-26  Eric Blake  <ebb9@byu.net>
79103
79104         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
79105         like mingw that lack mkstemp.
79106         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
79107         avoid compilation warning on mingw.
79108
79109 2006-07-26  Bruno Haible  <bruno@clisp.org>
79110
79111         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
79112         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
79113         INT_FAST*_MIN, INTPTR_MIN.
79114
79115 2006-07-25  Bruno Haible  <bruno@clisp.org>
79116
79117         * modules/version-etc (Depends-on): Add stdarg.
79118
79119 2006-07-25  Bruno Haible  <bruno@clisp.org>
79120
79121         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
79122         complex commands.
79123
79124 2006-07-25  Bruno Haible  <bruno@clisp.org>
79125
79126         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
79127         defined in <stdarg.h> or config.h.
79128
79129 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79130
79131         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
79132         (gl_STDIO_SAFER): Remove.
79133
79134 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79135
79136         * MODULES.html.sh (File stream based Input/Output):
79137         Add fopen-safer, tmpfile-safer; remove stdio-safer.
79138         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
79139         * modules/fopen-safer, modules/tmpfile-safer: New files.
79140         * modules/stdio-safer: Remove.
79141
79142 2006-07-24  Bruno Haible  <bruno@clisp.org>
79143
79144         * modules/tmpdir: New file.
79145         * MODULES.html.sh (File system functions): Add it.
79146
79147 2006-07-24  Bruno Haible  <bruno@clisp.org>
79148
79149         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
79150         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
79151
79152 2006-07-24  Bruno Haible  <bruno@clisp.org>
79153
79154         * modules/clean-temp: New file.
79155
79156 2006-07-24  Bruno Haible  <bruno@clisp.org>
79157
79158         * m4/tmpdir.m4: New file, from GNU gettext.
79159
79160 2006-07-24  Bruno Haible  <bruno@clisp.org>
79161
79162         * lib/tmpdir.h: New file, from GNU gettext.
79163         * lib/tmpdir.c: New file, from GNU gettext.
79164
79165 2006-07-24  Bruno Haible  <bruno@clisp.org>
79166
79167         * lib/clean-temp.h: New file, from GNU gettext.
79168         * lib/clean-temp.c: New file, from GNU gettext.
79169
79170 2006-07-23  Eric Blake  <ebb9@byu.net>
79171
79172         * modules/stdio-safer (Files): Add tmpfile-safer.c.
79173         (Depends-on): Add binary-io.
79174
79175 2006-07-23  Eric Blake  <ebb9@byu.net>
79176
79177         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
79178
79179 2006-07-23  Eric Blake  <ebb9@byu.net>
79180
79181         * lib/tmpfile-safer.c: New file.
79182         * lib/stdio-safer.h (fopen_safer): Add prototype.
79183         * lib/stdio--.h (tmpfile): Make safer.
79184
79185 2006-07-23  Bruno Haible  <bruno@clisp.org>
79186
79187         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
79188         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
79189         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
79190         gl_linked_remove_at): Use it.
79191
79192 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79193         and Simon Josefsson <jas@extundo.com>
79194
79195         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
79196
79197         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
79198
79199 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79200
79201         * modules/close-stream: New file.
79202         * modules/closeout (Description): Make it clear that it exits
79203         with a diagnostic on error.
79204         (Depends-on): Add close-stream.  Remove fpending, stdbool.
79205         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
79206
79207 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79208
79209         * m4/close-stream.m4: New file.
79210
79211 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79212
79213         * lib/close-stream.c, lib/close-stream.h: New files.
79214
79215 2006-07-22  Bruno Haible  <bruno@clisp.org>
79216
79217         Merge from GNU gettext 0.15.
79218
79219         2006-05-01  Bruno Haible  <bruno@clisp.org>
79220
79221                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
79222
79223         2006-07-22  Bruno Haible  <bruno@clisp.org>
79224
79225                 * modules/javaversion: New file.
79226                 * MODULES.html.sh (Java): Add javaversion.
79227
79228         2006-03-12  Bruno Haible  <bruno@clisp.org>
79229
79230                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
79231
79232         2005-12-04  Bruno Haible  <bruno@clisp.org>
79233
79234                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
79235                 (untested).
79236
79237         2006-06-21  Bruno Haible  <bruno@clisp.org>
79238
79239                 Avoid warnings from recent versions of mcs.
79240                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
79241                 -o, -L, -r any more. Use options documented since mcs-1.0
79242                 instead. Similarly for -g.
79243
79244         2005-12-04  Bruno Haible  <bruno@clisp.org>
79245
79246                 * build-aux/csharpcomp.sh.in: Suffix for resources is
79247                 .resources, not .resource.
79248
79249         2005-07-09  Bruno Haible  <bruno@clisp.org>
79250
79251                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
79252                 add a .dll suffix.
79253                 Reported by Mark Junker <mjscod@gmx.de>.
79254
79255         2006-07-22  Bruno Haible  <bruno@clisp.org>
79256
79257                 * modules/gettext: Upgrade to gettext-0.15.
79258                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
79259                 m4/visibility.m4.
79260                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
79261
79262 2006-07-22  Bruno Haible  <bruno@clisp.org>
79263
79264         Merge from GNU gettext 0.15.
79265
79266         2006-03-25  Bruno Haible  <bruno@clisp.org>
79267
79268                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
79269
79270         2006-07-21  Bruno Haible  <bruno@clisp.org>
79271
79272                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
79273                 "1.1".
79274
79275         2006-05-09  Bruno Haible  <bruno@clisp.org>
79276
79277                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
79278                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
79279                 for the conftestver execution.
79280
79281         2006-05-01  Bruno Haible  <bruno@clisp.org>
79282
79283                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
79284                 optional target-version argument. Verify that the compiler
79285                 groks source of the specified source-version, or add -source
79286                 option as necessary. Verify that the compiler produces
79287                 bytecode in the specified target-version, or add -target and
79288                 -source options as necessary. Make the result of the test
79289                 available as variable CONF_JAVAC. Also log error output in
79290                 config.log.
79291
79292         2006-03-11  Bruno Haible  <bruno@clisp.org>
79293
79294                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
79295
79296         2006-05-09  Bruno Haible  <bruno@clisp.org>
79297
79298                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
79299                 CLASSPATH_SEPARATOR to a semicolon.
79300
79301         2006-03-12  Bruno Haible  <bruno@clisp.org>
79302
79303                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
79304                 available as variable CONF_JAVA, for subsequent autoconf
79305                 tests. Also log error output in config.log.
79306
79307         2006-07-19  Bruno Haible  <bruno@clisp.org>
79308
79309                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
79310                 that getline works on glibc2 systems. Needed to avoid trouble
79311                 in relocatable.c.
79312                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
79313
79314         2005-12-04  Bruno Haible  <bruno@clisp.org>
79315
79316                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
79317                 launcher (untested).
79318
79319         2005-12-04  Bruno Haible  <bruno@clisp.org>
79320
79321                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
79322
79323         2006-07-22  Bruno Haible  <bruno@clisp.org>
79324
79325                 * gettext.m4: Update from GNU gettext-0.15.
79326                 * nls.m4: Likewise.
79327                 * po.m4: Likewise.
79328                 * inttypes-pri.m4: Likewise.
79329                 * inttypes-h.m4: Renamed from inttypes.m4.
79330                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
79331
79332 2006-07-22  Bruno Haible  <bruno@clisp.org>
79333
79334         Merge from GNU gettext 0.15.
79335
79336         2005-07-05  Bruno Haible  <bruno@clisp.org>
79337
79338                 * printf-args.c (printf_fetchargs): Work around broken
79339                 definition of wint_t on mingw.
79340
79341         2005-02-12  Bruno Haible  <bruno@clisp.org>
79342
79343                 * xallocsa.h: Add extern "C" for C++.
79344
79345         2006-05-17  Bruno Haible  <bruno@clisp.org>
79346
79347                 Cygwin portability.
79348                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
79349
79350         2006-04-30  Bruno Haible  <bruno@clisp.org>
79351
79352                 * progreloc.c: Include <mach-o/dyld.h> if available.
79353                 (find_executable): Use _NSGetExecutablePath when possible.
79354
79355         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
79356
79357                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
79358                 function.
79359
79360         2005-12-29  Bruno Haible  <bruno@clisp.org>
79361
79362                 * progreloc.c (set_program_name_and_installdir): Fix
79363                 compilation error.
79364
79365         2005-12-04  Bruno Haible  <bruno@clisp.org>
79366
79367                 Cygwin portability.
79368                 * progreloc.c: Include <windows.h> also on Cygwin.
79369                 (find_executable): Add support for Cygwin.
79370                 (set_program_name_and_installdir): Handle also platforms with
79371                 nonempty EXEEXT.
79372
79373         2006-07-11  Bruno Haible  <bruno@clisp.org>
79374
79375                 * javacomp.c: Fix a comment.
79376                 Reported by Jim Meyering.
79377
79378         2006-04-30  Bruno Haible  <bruno@clisp.org>
79379
79380                 * javacomp.h (compile_java_class): Add source_version,
79381                 target_version arguments.
79382                 * javacomp.c: Rewritten to choose only a compiler that
79383                 respects the specified source_version and target_version.
79384
79385         2006-06-27  Bruno Haible  <bruno@clisp.org>
79386
79387                 Assume correct S_ISDIR macro.
79388                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
79389
79390         2006-07-22  Bruno Haible  <bruno@clisp.org>
79391
79392                 * javaversion.h: New file, from GNU gettext.
79393                 * javaversion.c: New file, from GNU gettext.
79394                 * javaversion.java: New file, from GNU gettext.
79395                 * javaversion.class: New file, from GNU gettext.
79396
79397         2006-05-17  Bruno Haible  <bruno@clisp.org>
79398
79399                 Cygwin portability.
79400                 * javaexec.c (execute_java_class): Test for jview program
79401                 also on Cygwin.
79402
79403         2006-04-09  Bruno Haible  <bruno@clisp.org>
79404
79405                 * fatal-signal.c: Don't include string.h.
79406                 (at_fatal_signal): Use a copying loop instead of memcpy.
79407
79408         2005-12-04  Bruno Haible  <bruno@clisp.org>
79409
79410                 * csharpexec.c: Add support for 'clix' launcher (untested).
79411                 (execute_csharp_using_sscli): New function.
79412                 (execute_csharp_program): Call it.
79413
79414         2006-06-21  Bruno Haible  <bruno@clisp.org>
79415
79416                 Avoid warnings from recent versions of mcs.
79417                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
79418                 -o, -L, -r any more. Use options documented since mcs-1.0
79419                 instead. Similarly for -g.
79420
79421         2005-07-09  Bruno Haible  <bruno@clisp.org>
79422
79423                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
79424                 add a .dll suffix.
79425                 Reported by Mark Junker <mjscod@gmx.de>.
79426
79427         2006-06-17  Bruno Haible  <bruno@clisp.org>
79428
79429                 * config.charset: Update for NetBSD 3.0.
79430
79431         2006-05-17  Bruno Haible  <bruno@clisp.org>
79432
79433                 Cygwin portability.
79434                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
79435
79436         2006-05-16  Bruno Haible  <bruno@clisp.org>
79437
79438                 * localcharset.c [CYGWIN]: Include <windows.h>.
79439                 (get_charset_aliases): For Cygwin, return the same CPxxx
79440                 aliases list as under WIN32.
79441                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
79442                 the environment variables. Fall back to GetACP().
79443
79444         2006-04-05  Bruno Haible  <bruno@clisp.org>
79445
79446                 * config.charset: Update Juan Manuel Guerrero's address.
79447
79448         2005-02-12  Bruno Haible  <bruno@clisp.org>
79449
79450                 * allocsa.h: Add extern "C" for C++.
79451
79452         2005-02-10  Bruno Haible  <bruno@clisp.org>
79453
79454                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
79455                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
79456
79457         2006-07-22  Bruno Haible  <bruno@clisp.org>
79458
79459                 * gettext.h: Update to GNU gettext-0.15.
79460
79461 2006-07-22  Bruno Haible  <bruno@clisp.org>
79462
79463         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
79464         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
79465         lib-prefix.m4, longdouble.m4, ssize_t.m4.
79466
79467 2006-07-21  Eric Blake  <ebb9@byu.net>
79468
79469         * modules/stdlib-safer: New file.
79470         * MODULES.html.sh (File stream based Input/Output): Add
79471         stdlib-safer.
79472
79473 2006-07-21  Eric Blake  <ebb9@byu.net>
79474
79475         * lib/stdlib-safer.h: New file from coreutils, required by
79476         stdlib--.h.
79477
79478 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
79479
79480         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
79481
79482 2006-07-20  Bruno Haible  <bruno@clisp.org>
79483
79484         * gnulib-tool: Recognize new option --assume-autoconf.
79485         (autoconf_minversion): New variable.
79486         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
79487
79488 2006-07-20  Bruno Haible  <bruno@clisp.org>
79489
79490         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
79491
79492 2006-07-19  Derek R. Price  <derek@ximbiot.com>
79493
79494         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
79495         Reindent and repaginate.
79496
79497 2006-07-19  Derek Price  <derek@ximbiot.com>
79498
79499         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
79500         Correct grammar.
79501
79502 2006-07-17  Bruno Haible  <bruno@clisp.org>
79503
79504         * modules/list: New file.
79505         * modules/array-list: New file.
79506         * modules/carray-list, modules/carray-list-tests: New files.
79507         * modules/linked-list, modules/linked-list-tests: New files.
79508         * modules/avltree-list, modules/avltree-list-tests: New files.
79509         * modules/rbtree-list, modules/rbtree-list-tests: New files.
79510         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
79511         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
79512         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
79513         * modules/oset: New file.
79514         * modules/array-oset: New file.
79515         * modules/avltree-oset, modules/avltree-oset-tests: New files.
79516         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
79517         * tests/test-carray_list.c: New file.
79518         * tests/test-linked_list.c: New file.
79519         * tests/test-avltree_list.c: New file.
79520         * tests/test-rbtree_list.c: New file.
79521         * tests/test-linkedhash_list.c: New file.
79522         * tests/test-avltreehash_list.c: New file.
79523         * tests/test-rbtreehash_list.c: New file.
79524         * tests/test-avltree_oset.c: New file.
79525         * tests/test-rbtree_oset.c: New file.
79526         * MODULES.html.sh (Container data structures): New section.
79527
79528 2006-07-17  Bruno Haible  <bruno@clisp.org>
79529
79530         * m4/gl_list.m4: New file.
79531
79532 2006-07-17  Bruno Haible  <bruno@clisp.org>
79533
79534         * lib/gl_list.h: New file.
79535         * lib/gl_list.c: New file.
79536         * lib/gl_array_list.h: New file.
79537         * lib/gl_array_list.c: New file.
79538         * lib/gl_carray_list.h: New file.
79539         * lib/gl_carray_list.c: New file.
79540         * lib/gl_linked_list.h: New file.
79541         * lib/gl_linked_list.c: New file.
79542         * lib/gl_anylinked_list1.h: New file.
79543         * lib/gl_anylinked_list2.h: New file.
79544         * lib/gl_avltree_list.h: New file.
79545         * lib/gl_avltree_list.c: New file.
79546         * lib/gl_anyavltree_list1.h: New file.
79547         * lib/gl_anyavltree_list2.h: New file.
79548         * lib/gl_rbtree_list.h: New file.
79549         * lib/gl_rbtree_list.c: New file.
79550         * lib/gl_anyrbtree_list1.h: New file.
79551         * lib/gl_anyrbtree_list2.h: New file.
79552         * lib/gl_anytree_list1.h: New file.
79553         * lib/gl_anytree_list2.h: New file.
79554         * lib/gl_linkedhash_list.h: New file.
79555         * lib/gl_linkedhash_list.c: New file.
79556         * lib/gl_anyhash_list1.h: New file.
79557         * lib/gl_anyhash_list2.h: New file.
79558         * lib/gl_avltreehash_list.h: New file.
79559         * lib/gl_avltreehash_list.c: New file.
79560         * lib/gl_rbtreehash_list.h: New file.
79561         * lib/gl_rbtreehash_list.c: New file.
79562         * lib/gl_anytreehash_list1.h: New file.
79563         * lib/gl_anytreehash_list2.h: New file.
79564
79565         * lib/gl_oset.h: New file.
79566         * lib/gl_oset.c: New file.
79567         * lib/gl_array_oset.h: New file.
79568         * lib/gl_array_oset.c: New file.
79569         * lib/gl_avltree_oset.h: New file.
79570         * lib/gl_avltree_oset.c: New file.
79571         * lib/gl_rbtree_oset.h: New file.
79572         * lib/gl_rbtree_oset.c: New file.
79573         * lib/gl_anytree_oset.h: New file.
79574
79575 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79576
79577         * m4/mkancesdirs.m4: New file.
79578         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
79579         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
79580         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
79581         it.
79582
79583 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79584
79585         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
79586         * lib/mkancesdirs.h: New files.
79587         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
79588         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
79589         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
79590         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
79591         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
79592         callers changed.  Revamp internals significantly, by not
79593         attempting to create directories that are temporarily more
79594         permissive than the final results.  Do not attempt to use
79595         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
79596         This removes some race conditions, fixes some bugs, and simplifies
79597         things.  Use new dirchownmod function to do owner and mode changes.
79598         * lib/mkdir-p.h: Likewise.
79599         * lib/modechange.c (octal_to_mode): New function.
79600         (struct mode_change): New member mentioned.
79601         (make_node_op_equals): New arg mentioned.  All callers changed.
79602         (mode_compile): Keep track of which mode bits the user has explicitly
79603         mentioned.
79604         (mode_adjust): New arg DIR, so that we implement the X op correctly.
79605         New arg PMODE_BITS, to keep track of which mode bits the user
79606         mentioned; it treats S_ISUID and S_ISGID speciall.
79607         All callers changed.
79608         * lib/modechange.h: Likewise.
79609
79610 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79611
79612         * MODULES.html.sh: Add mkancestors.
79613         * modules/mkancesdirs: New module.
79614         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
79615         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
79616         The chdir-safer and afs files are now orphans; I'll remove them
79617         unless someone speaks up.
79618         Add lib/dirchownmod.c, lib/dirchownmod.h.
79619         (Depends-on): Remove alloca, chown, save-cwd, dirname.
79620         Add lchown, mkancesdirs.
79621         (Maintainer): Add self.
79622
79623 2006-07-15  Karl Berry  <karl@gnu.org>
79624
79625         * gnulib-tool: help message wording/arrangement.
79626
79627 2006-07-14  Simon Josefsson  <jas@extundo.com>
79628
79629         * doc/gnulib.texi (Libtool and Windows): New section.
79630
79631 2006-07-12  Simon Josefsson  <jas@extundo.com>
79632
79633         * modules/gendocs (License): Fix license, approved by Karl.
79634
79635 2006-07-12  Eric Blake  <ebb9@byu.net>
79636
79637         * MODULES.html.sh: Add gendocs.
79638
79639 2006-07-11  Eric Blake  <ebb9@byu.net>
79640
79641         * modules/fdl: New module, to install doc/fdl.texi.
79642         * MODULES.html.sh: Add new section for documentation modules.
79643         * gnulib-tool: Avoid space-tab.
79644         (--doc-base): New option, to manage files from doc.
79645
79646 2006-07-11  Eric Blake  <ebb9@byu.net>
79647
79648         * m4/absolute-header.m4: Fix comments to match recent change.
79649
79650 2006-07-11  Eric Blake  <ebb9@byu.net>
79651
79652         * gnulib-tool: List --doc-base before --tests-base.
79653
79654 2006-07-11  Derek R. Price  <derek@ximbiot.com>
79655
79656         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
79657
79658 2006-07-11  Bruno Haible  <bruno@clisp.org>
79659
79660         * README: Mention where to put documentation.
79661
79662 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79663
79664         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
79665
79666 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79667
79668         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
79669         to stdint.m4.
79670
79671 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79672
79673         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
79674         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
79675         "no/such/file/stdint.h" when there is no such file, so that
79676         the resulting C code can be parsed by dodgy compilers.
79677         Problems reported by Bob Proulx.
79678
79679 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79680
79681         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
79682         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79683         macros into the GNU _D_EXACT_NAMLEN.
79684         * lib/savedir.c:  Likewise.
79685         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
79686
79687 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79688         and Paul Eggert  <eggert@cs.ucla.edu>
79689
79690         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
79691         * m4/savedir.m4:
79692         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79693         macros into the GNU _D_EXACT_NAMLEN.
79694
79695 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79696
79697         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
79698         around the absolute name, to work around a problem with the HP-UX
79699         11.23 native C compiler, reported by Bob Proulx.
79700
79701 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79702
79703         * doc/maintain.texi, make-stds.texi: Sync from
79704         <http://savannah.gnu.org/projects/gnustandards>.
79705
79706 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79707
79708         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
79709
79710 2006-07-09  Jim Meyering  <jim@meyering.net>
79711
79712         * m4/glob.m4: Remove a doubled word in a comment.
79713
79714 2006-07-09  Jim Meyering  <jim@meyering.net>
79715
79716         * lib/argp-pv.c: Remove a doubled word in a comment.
79717         * lib/check-version.c (check_version): Likewise.
79718         * lib/javacomp.c (compile_java_class): Likewise.
79719
79720 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
79721
79722         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
79723         for the benefit of people using Autoconf 2.60.  If you want to
79724         support older Autoconf versions you can copy m4/onceonly_2_57.m4
79725         (or m4/onceonly.m4, if pre-2.57) manually.
79726
79727 2006-07-08  Jim Meyering  <jim@meyering.net>
79728
79729         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
79730         comment.
79731         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
79732         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
79733         comment.
79734
79735 2006-07-08  Jim Meyering  <jim@meyering.net>
79736
79737         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
79738
79739 2006-07-07  Simon Josefsson  <jas@extundo.com>
79740
79741         * tests/test-crc.c: Change expected crc value, the test vector
79742         were probably computed using the old broken crc.c?
79743
79744 2006-07-06  Simon Josefsson  <jas@extundo.com>
79745
79746         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
79747         now the canonical place for the M4 file).
79748
79749         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
79750         from the sys_socket dependency now.
79751
79752         * modules/inet_pton (Files): Ditto.
79753
79754         * modules/inet_ntop (Files): Ditto.
79755
79756 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79757
79758         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
79759         not gl_PREREQ_GETUSERSHELL.
79760
79761 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79762
79763         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
79764         with only one argument, for Autoconf 2.60.
79765         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
79766         expand to nothing, so add a shell command to avoid syntax error.
79767         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
79768
79769 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79770
79771         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
79772
79773 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79774
79775         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
79776         no longer needed.  Check for isblank decl.
79777         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
79778         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
79779         of existence.
79780
79781 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79782
79783         * lib/getloadavg.c: Use __VMS, not VMS.
79784         * lib/getopt.c: Likewise.
79785         * lib/getpagesize.h: Likewise.
79786         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
79787         and probably does not work.
79788
79789 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79790
79791         * lib/.cppi-disable: Add wcwidth.
79792         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
79793         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
79794         (ISGRAPH): Remove.  All uses changed to isgraph.
79795         (FOLD) [!defined _LIBC]: Remove special case.
79796         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
79797         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
79798         HAVE_ISBLANK.
79799         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
79800         case.
79801
79802 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79803
79804         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
79805         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
79806         brackets.  Other minor changes to suppress some compiler
79807         warnings.
79808
79809 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79810         and Paul Eggert  <eggert@cs.ucla.edu>
79811
79812         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
79813         of invoking obsolescent AC_HEADER_DIRENT macro.
79814         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
79815         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
79816         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
79817         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
79818         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
79819         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79820         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
79821         * m4/readdir.m4: Remove; no longer needed.
79822
79823 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79824         and Paul Eggert  <eggert@cs.ucla.edu>
79825
79826         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
79827         Don't worry about this obsolete case any more.
79828         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
79829         directories.
79830         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
79831         worry about this obsolete case any more.
79832         * lib/fts.c: Likewise.
79833         * lib/getcwd.c: Likewise.
79834         * lib/glob.h: Likewise.
79835         * lib/savedir.c: Likewise.
79836
79837 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79838
79839         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
79840         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
79841         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
79842         needed.
79843         All uses removed.
79844         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79845         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79846         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
79847         needed.
79848         * m4/getdate.m4 (gl_GETDATE): Likewise.
79849         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79850         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79851         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79852         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79853         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79854         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79855         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
79856         needed.
79857
79858 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79859
79860         * lib/memcasecmp.c: Include <limits.h>.
79861         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
79862         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
79863         Don't assume isdigit succeeds only on '0' through '9'.
79864
79865 2006-07-05  Eric Blake  <ebb9@byu.net>
79866
79867         * modules/getaddrinfo (Depends-on): Add snprintf.
79868
79869 2006-07-05  Eric Blake  <ebb9@byu.net>
79870
79871         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
79872         to avoid 'header present but could not be compiled' on cygwin.
79873
79874 2006-07-05  Eric Blake  <ebb9@byu.net>
79875
79876         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
79877         missing from netdb.h.
79878         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
79879
79880 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79881
79882         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
79883         no longer needed.
79884         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
79885         * m4/getdate.m4 (gl_GETDATE): Likewise.
79886         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79887         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79888         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79889         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79890         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79891
79892 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79893
79894         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
79895         All uses of is_space replaced by isspace.
79896         * lib/exit.h: Don't talk about STDC_HEADERS.
79897         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
79898         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
79899         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
79900         replaced by isprint etc.
79901         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
79902         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79903         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
79904         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
79905         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
79906         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79907
79908 2006-07-05  Bruno Haible  <bruno@clisp.org>
79909
79910         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
79911         the function exists, before testing against AIX.
79912         Reported by Martin Lambers <marlam@marlam.de>.
79913
79914 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79915
79916         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
79917         From Mark D. Baushke.
79918
79919 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79920
79921         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
79922         to the absolute name, not just one, to bypass Sun C 5.8's
79923         "warning: #include of /usr/include/... may be non-portable".
79924
79925 2006-07-04  Eric Blake  <ebb9@byu.net>
79926
79927         * modules/dirname-tests: New test module.
79928         * tests/test-dirname.c: New file, replacing dirname.c
79929         TEST_DIRNAME section that was recently deleted.
79930
79931 2006-07-04  Bruno Haible  <bruno@clisp.org>
79932
79933         Assume ANSI C header files and <ctype.h> functions.
79934         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
79935         (mbsnwidth): Use isprint, iscntrl instead.
79936
79937 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79938
79939         Merge from coreutils.
79940         * MODULES.html.sh: Add xstrtold.
79941         * modules/xstrtold: New file.
79942         * modules/cycle-check (Files): Add lib/same-inode.h.
79943         * modules/dirname (Files): Add m4/double-slash-root.m4.
79944         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
79945         * modules/mkdir-p (Files): Add lib/same-inode.h.
79946         * modules/same (Files): Add lib/same-inode.h.
79947
79948 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79949
79950         * m4/absolute-header.m4: Renamed from full-header-path.m4.
79951         This is to keep the terminology clean; POSIX talks about
79952         "absolute pathnames", not "full pathnames", but the GNU
79953         Coding Standards say to use "path" for something else;
79954         so use "absolute" to keep both sides happy.
79955         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
79956         Set gl_absolute_header, not gl_full_header_path.
79957         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
79958         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
79959         All uses changed.
79960
79961         Merge from coreutils.
79962
79963         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79964
79965         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
79966         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
79967         want to require the building of c-strtod.o.
79968         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
79969         needs -lm directly.
79970         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
79971
79972         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
79973
79974         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
79975         --as-needed option if available.  Problem reported by Albert Chin in
79976         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
79977         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
79978         cc merely issues a bunch of annoying warnings for --as-needed
79979         (this problem was reported by Bob Proulx).  Also, try linking with
79980         -lm to detect a bug in binutils 2.16 (this problem was reported
79981         by Ralf Wildenhues).
79982
79983         2006-06-18  Jim Meyering  <jim@meyering.net>
79984
79985         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
79986         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
79987         macro.
79988         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
79989         also check for glibc-2.4's abort-inducing bug.
79990
79991         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
79992         Low-probability clean-up should be to use rmdir to get rid of
79993         the just-created directory, not unlink.
79994
79995         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
79996         configure fail, and request a bug report to inform us about it.
79997         Add a comment that, barring reports to the contrary, in 2007 we'll
79998         assume ftruncate is universally available.
79999
80000         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80001
80002         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
80003
80004         2006-03-12  Jim Meyering  <jim@meyering.net>
80005
80006         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
80007         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
80008         * m4/same.m4 (gl_SAME): Likewise.
80009         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
80010
80011         2006-03-11  Eric Blake  <ebb9@byu.net>
80012
80013         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
80014         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
80015         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
80016         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
80017
80018 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80019
80020         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
80021         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
80022         reported by Mark D. Baushke, one in
80023         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
80024
80025         Merge from coreutils.
80026
80027         * lib/.cppi-disable: Add stdint_.h.
80028         * lib/.cvsignore: Add stdint.h.
80029
80030         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80031
80032         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
80033         both double and long double versions.
80034         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
80035         * lib/xstrtold.c: New file.
80036         * lib/xstrtod.h (xstrtold): New decl.
80037
80038         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
80039
80040         * lib/filemode.c (setst): Remove.
80041         (strmode): Rewrite to avoid setst.  This makes the code shorter,
80042         (arguably) clearer, and the generated code is a bit smaller on my
80043         Debian GNU/Linux stable x86 host.
80044
80045         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80046
80047         * lib/filemode.c: Include "filemode.h" first, to test the interface.
80048         Assume that filemode.h includes sys/types.h and sys/stat.h.
80049         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
80050         (ftypelet): Reorder to put common cases first, for efficiency.
80051         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
80052         to do 'M'.
80053         (strmode): Renamed from mode_string, and now stores 12 bytes instead
80054         of 10, for compatibility with FreeBSD.  All callers changed.
80055         (filemodestring): Now stores 12 bytes instead of 10, and sets file
80056         types that can't be deduced solely from st_mode.  First arg is now a
80057         const pointer.
80058         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
80059         (strmode): Renamed from mode_string.
80060         (filemodestring): New decl.
80061         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
80062         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
80063         needed.
80064         (S_ISPORT, S_ISWHT): New macros, if not already defined.
80065
80066         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80067
80068         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
80069         fsusage.h now does that.  Include fsusage.h first, to test interface.
80070         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
80071         at most one method (the old code could have generated decls that
80072         didn't conform to C89, not that this was ever exercised).
80073         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
80074
80075         2006-03-19  Jim Meyering  <jim@meyering.net>
80076
80077         Work even in a chroot where d_ino values for entries in "/"
80078         don't match the stat.st_ino values for the same names.
80079         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
80080         number, iterate through all entries again, using lstat instead.
80081         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
80082         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
80083
80084         * lib/getcwd.c (__getcwd): Clarify a comment.
80085         Use memcpy in place of a call to strcpy.
80086
80087         2006-03-12  Jim Meyering  <jim@meyering.net>
80088
80089         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
80090         matches that of the current directory (which we're about to chdir ".."
80091         out of), then save the dev-ino of the parent, instead.
80092
80093         * lib/same-inode.h (SAME_INODE): New file/macro.
80094         * lib/chdir-safer.c (SAME_INODE): Remove definition.
80095         Include "same-inode.h", instead.
80096         * lib/same.c: Likewise.
80097         * lib/cycle-check.h: Include "same-inode.h".
80098         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
80099         * lib/cycle-check.c (SAME_INODE): Remove definition.
80100         * lib/root-dev-ino.h: Include "same-inode.h".
80101
80102         2006-03-11  Eric Blake  <ebb9@byu.net>
80103
80104         * lib/same.c (same_name): s/base_name/last_component/
80105         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
80106         * lib/filenamecat.c (file_name_concat): Likewise.
80107
80108         2006-03-11  Eric Blake  <ebb9@byu.net>,
80109                     Paul Eggert  <eggert@cs.ucla.edu>
80110
80111         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
80112         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
80113         drive prefix.
80114         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
80115         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
80116         (last_component): New method.
80117         * lib/dirname.c (dir_len): Determine when drive letters need a
80118         subsequent slash.  Preserve // when it is special.
80119         (dir_name): Don't append dot when drive letter is absolute.
80120         [TEST_DIRNAME]: Move into a full-blown gnulib test.
80121         * lib/basename.c (base_name): New semantics - malloc the result.
80122         Preserve // when it is special.  Preserve relative files that look
80123         like drive letters.
80124         (base_len): Preserve // when it is special.
80125         (last_component): New method, similar to old base_name semantics.
80126         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
80127         base_name.  Strip redundant slashes from ///.
80128
80129 2006-07-03  Jim Meyering  <jim@meyering.net>
80130
80131         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
80132         macro is used before the first cycle_check call.
80133
80134 2006-07-03  Eric Blake  <ebb9@byu.net>
80135
80136         * modules/dirname (Depends-on): Add xstrndup.
80137
80138 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80139
80140         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
80141         test cases, so that config.log is a bit easier to follow.
80142
80143 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80144
80145         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
80146         both are 64 bits, since this seems to be the tradition, and this
80147         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
80148         we ever run into a host that prefers long long to long in this
80149         case, we'll need another configure-time test.  Problem reported by
80150         Jim Meyering.
80151
80152 2006-07-02  Eric Blake  <ebb9@byu.net>
80153
80154         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
80155
80156 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80157
80158         * modules/inttypes (Depends-on): No longer depends on stdint.
80159         * modules/stdint (Description): Say more about assumptions.
80160         Say that the fast types might differ.  Say macros are used.
80161         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
80162         (Makefile.am): Revise list of substituted symbols to match
80163         new stdint.m4.
80164         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
80165         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
80166         * tests/test-stdint.c (verify_same_types)
80167         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
80168         the code conforms to C99/C89.
80169         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
80170         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
80171
80172 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80173
80174         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
80175         but fix a bug, by requiring at least 64 bits.
80176         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
80177         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
80178         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
80179         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
80180
80181         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
80182         changes.  Make 2.59 a prerequisite.  Check and substitute for
80183         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
80184         inttypes.h.  Do not use special include files; just use the
80185         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
80186         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
80187         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
80188         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
80189         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
80190         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
80191         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
80192         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
80193         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
80194         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
80195         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
80196         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
80197         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
80198         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
80199         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
80200         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
80201         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
80202         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
80203         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
80204         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
80205         WINT_MAX.  Check for C99 conformance more strictly, by detecting
80206         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
80207         not check for things that C99 does not require, e.g., int8_t.  If
80208         a test isn't needed unless <stdint.h> isn't working, and is
80209         unlikely to be needed for any other reason, then don't do it
80210         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
80211         size_t, since we assume C89 freestanding at least.  Do not check
80212         for sig_atomic_t, wchar_t, or wint_t, since the code now does
80213         the right thing even if the types are not defined.  Instead use:
80214         (gl_STDINT_TYPE_PROPERTIES): New macro.
80215         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
80216         testing whether <sys/types.h> clashes, as Autoconf does this for
80217         us now.  All uses removed.
80218         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
80219         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
80220         (gl_CHECK_TYPE_SAME):
80221         Remove; no longer needed.
80222         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
80223         exists, since we'll return 0 anyway in that case.
80224         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
80225
80226 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80227
80228         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
80229         possible collision with system files.
80230         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
80231         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
80232         WCHAR_MIN and WCHAR_MAX in this case.
80233         (<stddef.h>): Do not include; no longer needed.
80234         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
80235         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
80236         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
80237         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
80238         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
80239         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
80240         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
80241         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
80242         !defined(__c99))]: Include in this case too, since it's harmless
80243         now.
80244         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
80245         dangerous to do so.
80246         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
80247         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
80248         (_STDINT_MIN, _STDINT_MAX): New macros.
80249         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
80250         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
80251         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
80252         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
80253         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
80254         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
80255         macros, not typedefs; this simplifies things quite a bit.
80256         Use long int for all types narrower than int64_t.
80257         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
80258         Define in terms of long long int or int64_t or long int,
80259         not int64_t or int32_t.  This saves some compile-time testing.
80260         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
80261         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
80262         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
80263         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
80264         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
80265         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
80266         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
80267         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
80268         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
80269         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
80270         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80271         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80272         undef any previous version and define our own version, for
80273         simplicity and consistency with the new macros for types.
80274         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80275         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80276         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
80277         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
80278         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
80279         @WINT_T_SUFFIX@ to keep things simple here.
80280         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
80281         Simplify by assuming typical 8/16/32/64 host, since we're
80282         already doing that elsewhere anyway.
80283         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
80284         and assume long long int is 64 bits if available.  This
80285         speeds up 'configure'.
80286
80287 2006-07-01  Eric Blake  <ebb9@byu.net>
80288
80289         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
80290         Reported by Andreas Buening.
80291
80292 2006-07-01  Eric Blake  <ebb9@byu.net>
80293
80294         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
80295
80296 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80297
80298         * lib/getaddrinfo.c: fixed typo
80299
80300 2006-06-29  Jim Meyering  <jim@meyering.net>
80301
80302         * modules/strftime (Maintainer): Add my name, since with the
80303         FPRINTFTIME changes strftime.c has forked from glibc.
80304
80305 2006-06-29  Eric Blake  <ebb9@byu.net>
80306
80307         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
80308
80309 2006-06-29  Eric Blake  <ebb9@byu.net>
80310
80311         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
80312
80313 2006-06-29  Eric Blake  <ebb9@byu.net>
80314
80315         * lib/stat_.h: New file.
80316
80317 2006-06-29  Eric Blake  <ebb9@byu.net>
80318
80319         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
80320         unused static function.
80321
80322 2006-06-29  Eric Blake  <ebb9@byu.net>
80323
80324         * doc/functions.texi (Function Portability): Document missing lstat
80325         on mingw.
80326
80327 2006-06-29  Eric Blake  <ebb9@byu.net>
80328
80329         * MODULES.html.sh: Add sys_stat.
80330         * modules/sys_stat: New module.
80331         * modules/mkstemp (Depends-on): Add sys_stat.
80332
80333 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80334
80335         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
80336
80337 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80338
80339         * m4/c-bs-a.m4: Removed.
80340
80341 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80342
80343         * lib/strftime.c: Assume strftime() exists.
80344
80345 2006-06-29  Derek Price  <derek@ximbiot.com>
80346
80347         * modules/c-bs-a: Removed - \a is C89.
80348         * MODULES.html.sh: Remove c-bs-a.
80349
80350 2006-06-29  Bruno Haible  <bruno@clisp.org>
80351
80352         * modules/wcwidth (License): Change to LGPL.
80353
80354 2006-06-28  Simon Josefsson  <jas@extundo.com>
80355
80356         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
80357         on _WIN32.
80358
80359         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
80360         getnameinfo.
80361
80362 2006-06-28  Simon Josefsson  <jas@extundo.com>
80363
80364         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
80365
80366 2006-06-28  Simon Josefsson  <jas@extundo.com>
80367
80368         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
80369         functions there.  It will succeed on Windows XP, but on Windows
80370         2000 and (presumably) earlier, it will fail, and use the internal
80371         re-implementation.
80372         (use_win32_p): New function.
80373         (getaddrinfo): Use strtoul on servname, to support numeric ports.
80374         Support AI_NUMERICSERV to disable getservbyname.
80375         (getnameinfo): New function, only supports
80376         NI_NUMERICHOST|NI_NUMERICSERV for now.
80377
80378         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
80379         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
80380         getnameinfo.
80381
80382 2006-06-28  Eric Blake  <ebb9@byu.net>
80383
80384         * modules/wcwidth: New file.
80385         * modules/mbchar (Depends-on): Add wcwidth.
80386         * modules/mbswidth (Depends-on): Add wcwidth.
80387         * MODULES.html.sh: Add wcwidth.
80388
80389 2006-06-28  Eric Blake  <ebb9@byu.net>
80390
80391         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
80392         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
80393
80394 2006-06-28  Eric Blake  <ebb9@byu.net>
80395
80396         * lib/xvasprintf.h: Fix comments.
80397
80398 2006-06-28  Eric Blake  <ebb9@byu.net>
80399
80400         * lib/mbchar.h (wcwidth): Include wcwidth.h.
80401         * lib/mbswidth.c (wcwidth): Move from here...
80402         * lib/wcwidth.h: ...to this new file.
80403
80404 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80405
80406         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
80407
80408         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
80409         it's obsolete.
80410         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
80411
80412 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80413
80414         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
80415         Autoconf 2.60 says this stuff was obsolete.
80416
80417 2006-06-28  Bruno Haible  <bruno@clisp.org>
80418
80419         * modules/wcwidth (Files): Add m4/wchar_t.m4.
80420
80421 2006-06-28  Bruno Haible  <bruno@clisp.org>
80422
80423         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
80424         gt_TYPE_WCHAR_T.
80425
80426 2006-06-28  Bruno Haible  <bruno@clisp.org>
80427
80428         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
80429         declaration for wcwidth.
80430         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
80431
80432 2006-06-28  Bruno Haible  <bruno@clisp.org>
80433
80434         * lib/mkdtemp.c [MINGW]: Include <io.h>.
80435         (mkdir): Define using _mkdir.
80436
80437 2006-06-28  Bruno Haible  <bruno@clisp.org>
80438
80439         * lib/getaddrinfo.h: Fix POSIX URL.
80440         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
80441         _WIN32.
80442         (use_win32_p): Make static.
80443         (getaddrinfo): Reject service name if it is empty or does not consist
80444         solely of decimal digits, or if its value is > 65535.
80445         (getnameinfo): Remove useless casts.
80446
80447 2006-06-27  Simon Josefsson  <jas@extundo.com>
80448
80449         * modules/sys_select: New file, suggested by Bruno Haible, Paul
80450         Eggert and Martin Lambers.
80451
80452 2006-06-27  Simon Josefsson  <jas@extundo.com>
80453
80454         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
80455         Eggert and Martin Lambers.
80456
80457 2006-06-27  Bruno Haible  <bruno@clisp.org>
80458
80459         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
80460         result to 0, not to empty.
80461         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
80462
80463 2006-06-27  Bruno Haible  <bruno@clisp.org>
80464
80465         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
80466
80467 2006-06-26  Simon Josefsson  <jas@extundo.com>
80468
80469         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
80470         present.
80471
80472 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
80473
80474         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
80475         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
80476         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
80477
80478 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
80479
80480         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
80481
80482 2006-06-26  Bruno Haible  <bruno@clisp.org>
80483
80484         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
80485
80486 2006-06-26  Bruno Haible  <bruno@clisp.org>
80487
80488         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
80489
80490 2006-06-26  Bruno Haible  <bruno@clisp.org>
80491
80492         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
80493         SGI C compiler in pre-C99 mode.
80494         Suggested by Mark D. Baushke and Larry Jones.
80495
80496 2006-06-26  Bruno Haible  <bruno@clisp.org>
80497
80498         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
80499         WCHAR_MAX.
80500         Reported by Mark D. Baushke and Larry Jones.
80501
80502 2006-06-26  Bruno Haible  <bruno@clisp.org>
80503
80504         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
80505         in pre-C99 mode.
80506         Suggested by Mark D. Baushke and Larry Jones.
80507
80508 2006-06-23  Simon Josefsson  <jas@extundo.com>
80509             Bruno Haible  <bruno@clisp.org>
80510
80511         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
80512         Emit mostlyclean-local rule.
80513         (func_emit_tests_Makefile_am): Likewise.
80514         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
80515
80516 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
80517
80518         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
80519
80520 2006-06-23  Bruno Haible  <bruno@clisp.org>
80521
80522         * tests/test-stdint.c: Update to match ISO C 99 Technical
80523         Corrigendum 1.
80524
80525 2006-06-23  Bruno Haible  <bruno@clisp.org>
80526
80527         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
80528
80529 2006-06-23  Bruno Haible  <bruno@clisp.org>
80530
80531         * lib/stdint_.h: Treat IRIX like OpenBSD.
80532
80533 2006-06-23  Bruno Haible  <bruno@clisp.org>
80534
80535         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
80536         ISO C 99 Technical Corrigendum 1.
80537
80538 2006-06-22  Simon Josefsson  <jas@extundo.com>
80539
80540         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
80541         MinGW.
80542
80543 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80544
80545         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
80546         needed.  Some compiler complained about some of them.  Problem reported
80547         by Larry Jones in
80548         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
80549
80550 2006-06-21  Simon Josefsson  <jas@extundo.com>
80551
80552         * tests/test-getaddrinfo.c: New file.
80553
80554         * modules/getaddrinfo-tests: New file.
80555
80556         * MODULES.html.sh: Add inet_pton.
80557
80558         * modules/inet_pton: New file.
80559
80560 2006-06-21  Simon Josefsson  <jas@extundo.com>
80561
80562         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
80563         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
80564         of using the (limited) gnulib implementation on Windows XP.
80565
80566         * m4/inet_pton.m4: New file.
80567
80568 2006-06-21  Simon Josefsson  <jas@extundo.com>
80569
80570         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
80571         variable.
80572
80573         * lib/socket_.h: Don't define WINVER.
80574
80575         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
80576         slightly modified to work in gnulib.
80577
80578 2006-06-21  Simon Josefsson  <jas@extundo.com>
80579
80580         * doc/gnulib.texi (Windows sockets): Add.
80581
80582 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
80583
80584         * lib/read-file.c (fread_file): Start with buffer allocation of
80585         0 bytes rather than 1 byte; this simplifies the code.
80586         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
80587         code to free buffer and save/restore errno.
80588         (internal_read_file): Remove unused local.
80589
80590 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
80591
80592         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
80593         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
80594         Problem reported by Denis Excoffier in
80595         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
80596
80597 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80598
80599         * modules/sys_socket, modules/socklen: Include sys/types since
80600         FreeBSD 4.x's sys/socket.h needs it.
80601
80602 2006-06-19  Simon Josefsson  <jas@extundo.com>
80603
80604         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
80605
80606 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80607
80608         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
80609
80610 2006-06-19  Bruno Haible  <bruno@clisp.org>
80611
80612         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
80613         and FULL_PATH_INTTYPES_H in angle brackets.
80614         Reported by Mark D. Baushke <mdb@gnu.org>.
80615
80616 2006-06-17  Eric Blake  <ebb9@byu.net>
80617
80618         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
80619         errno.
80620
80621 2006-06-17  Bruno Haible  <bruno@clisp.org>
80622
80623         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
80624         <sys/inttypes.h>.
80625
80626 2006-06-17  Bruno Haible  <bruno@clisp.org>
80627
80628         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
80629         whether errno is declared. Assume <errno.h> declares errno.
80630
80631 2006-06-17  Bruno Haible  <bruno@clisp.org>
80632
80633         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
80634
80635 2006-06-17  Bruno Haible  <bruno@clisp.org>
80636
80637         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
80638         problem on Solaris 2.5.1.
80639
80640 2006-06-16  Eric Blake  <ebb9@byu.net>
80641
80642         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
80643         * lib/unicodeio.c [!defined errno]: Likewise.
80644         * lib/strtol.c [!defined errno]: Likewise.
80645         * lib/strtod.c [!defined errno]: Likewise.
80646
80647 2006-06-15  Eric Blake  <ebb9@byu.net>
80648
80649         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
80650
80651 2006-06-15  Eric Blake  <ebb9@byu.net>
80652
80653         * config/srclist.txt (ssize_t.m4): Lose sync.
80654
80655 2006-06-15  Bruno Haible  <bruno@clisp.org>
80656
80657         * modules/stdint (Files): Include m4/full-header-path.m4,
80658         m4/size_max.m4, m4/wchar_t.m4.
80659         (Makefile.am): Many more substitutions.
80660         * modules/stdint-tests: New file.
80661         * tests/test-stdint.c: New file.
80662
80663 2006-06-15  Bruno Haible  <bruno@clisp.org>
80664
80665         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
80666         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
80667         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
80668         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
80669         gl_CHECK_TYPE_SAME): New macros.
80670
80671 2006-06-15  Bruno Haible  <bruno@clisp.org>
80672
80673         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
80674
80675 2006-06-15  Bruno Haible  <bruno@clisp.org>
80676
80677         * lib/stdint_.h: Rewritten to be fully auto-configured.
80678         Fixes bug on HP-UX/IA64.
80679
80680 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
80681
80682         * lib/getdate.y (__attribute__): Don't define if already defined.
80683         Problem reported by Larry Jones.
80684         * lib/utimens.c (__attribute__): Likewise.
80685
80686 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
80687
80688         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
80689         reported by Andreas Schwab.
80690
80691 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80692             Bruno Haible  <bruno@clisp.org>
80693
80694         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
80695         check for the declaration of strnlen and a run test that exposes the
80696         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
80697         rpl_strndup.
80698
80699 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80700             Bruno Haible  <bruno@clisp.org>
80701
80702         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
80703
80704 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80705
80706         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
80707         compile test, for Tru64 4.0D.
80708
80709 2006-05-28  Karl Berry  <karl@gnu.org>
80710
80711         * config/srclist.txt (printf-args.c): lose sync.
80712
80713 2006-05-26  Martin Lambers  <marlam@marlam.de>
80714
80715         * lib/getpass.c: Updates the test for the native W32 API, and adds
80716         missing includes, thus fixing compilation warnings.
80717
80718 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80719
80720         * lib/exclude.c (exclude_fnmatch): New function.
80721         (excluded_file_name): Call exclude_fnmatch.
80722         * lib/exclude.h (excluded_file_name): New prototype
80723
80724 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
80725
80726         * lib/tempname.c (small_open, large_open): New macros.
80727         (__open, __open64) [!_LIBC]: Remove.
80728         (__gen_tempname): Use small_open and large_open instead of __open
80729         and __open64.  This fixes a portability bug on HP-UX 11.11i
80730         reported by Simon Wing-Tang in
80731         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
80732
80733 2006-05-24  Bruno Haible  <bruno@clisp.org>
80734
80735         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
80736         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
80737         Reported by Thorsten Maerz <torte@netztorte.de> via
80738         Aaron Stone <aaron@serendipity.cx>.
80739
80740 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80741
80742         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
80743         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
80744         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
80745         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
80746         not really conditional on the cache.
80747         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
80748
80749 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80750
80751         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
80752         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
80753         (my_usleep): Don't mishandle maximum value.
80754
80755 2006-05-19  Jim Meyering  <jim@meyering.net>
80756
80757         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
80758
80759 2006-05-17  Bruno Haible  <bruno@clisp.org>
80760
80761         Cygwin portability.
80762         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
80763
80764 2006-05-17  Bruno Haible  <bruno@clisp.org>
80765
80766         * lib/stdint_.h: Fix recognition of Cygwin.
80767
80768 2006-05-15  Bruno Haible  <bruno@clisp.org>
80769
80770         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
80771         on libtool patch by Ralf Wildenhues.
80772
80773 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80774
80775         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
80776         test for C99 conformance; (bool) 0.5 is an integer constant
80777         expression, but (bool) -0.5 is not.  Problem reported by Fedor
80778         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
80779
80780 2006-05-11  Simon Josefsson  <jas@extundo.com>
80781
80782         * m4/xvasprintf.m4: Fix obvious typo.
80783
80784 2006-05-11  Jim Meyering  <jim@meyering.net>
80785
80786         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
80787         James Lemley.
80788
80789 2006-05-10  Simon Josefsson  <jas@extundo.com>
80790
80791         * lib/md4.c: Typo fix, update copyright years.
80792         (K1, K2): Don't use L because it turn computations into 64-bit on
80793         64-bit platforms.
80794
80795 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
80796
80797         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
80798         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
80799         unwanted sign propagation, e.g., on hosts with 64-bit int.
80800         There still are some problems with reeelly weird theoretical hosts
80801         (e.g., 33-bit int) but it's not worth worrying about now.
80802         * lib/sha1.c (rol): Likewise.
80803         (K1, K2, K3, K4): Remove unnecessary L suffix.
80804
80805 2006-05-10  Bruno Haible  <bruno@clisp.org>
80806
80807         * lib/des.c: Cast to avoid warnings.
80808
80809 2006-05-09  Bruno Haible  <bruno@clisp.org>
80810
80811         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
80812         (Depends-on): Depend also on xsize, stdarg.
80813         (configure.ac): Add gl_XVASPRINTF.
80814
80815 2006-05-09  Bruno Haible  <bruno@clisp.org>
80816
80817         * m4/xvasprintf.m4: New file.
80818
80819 2006-05-09  Bruno Haible  <bruno@clisp.org>
80820
80821         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
80822         (EOVERFLOW): Define fallback value.
80823         (xstrcat): New function.
80824         (xvasprintf): Recognize the special case of a string concatenation.
80825
80826 2006-05-08  Eric Blake  <ebb9@byu.net>
80827
80828         * gnulib-tool (func_version): Base copyright year on CVS date.
80829         (func_emit_copyright_notice): New function.
80830         (func_emit_lib_Makefile_am): Use it.
80831         (func_emit_tests_Makefile_am): Likewise.
80832         (func_import): Likewise.
80833
80834 2006-05-08  Bruno Haible  <bruno@clisp.org>
80835
80836         * modules/stdarg: New file.
80837         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
80838
80839 2006-05-08  Bruno Haible  <bruno@clisp.org>
80840
80841         * m4/stdarg.m4: New file, from GNU gettext.
80842
80843 2006-05-08  Bruno Haible  <bruno@clisp.org>
80844
80845         * config/srclist.txt (build-aux/config.rpath): different from latest
80846         release.
80847
80848 2006-05-08  Bruno Haible  <bruno@clisp.org>
80849
80850         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
80851
80852 2006-05-05  Jim Meyering  <jim@meyering.net>
80853
80854         * m4/warning.m4: New file, derived from bison's file by the same name.
80855
80856 2006-05-03  Bruno Haible  <bruno@clisp.org>
80857
80858         * lib/stdint_.h: Shorter URL.
80859         * lib/inttypes.h: Likewise.
80860
80861 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80862
80863         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
80864
80865 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80866
80867         * lib/verify.h: Document the internals better.  Most of this change
80868         was written by Bruno Haible.
80869
80870 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80871
80872         * doc/verify.texi: New file, partly based on a proposal by
80873         Bruno Haible.
80874
80875 2006-05-02  Bruno Haible  <bruno@clisp.org>
80876
80877         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
80878         test from here...
80879         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
80880
80881 2006-04-29  Bruno Haible  <bruno@clisp.org>
80882
80883         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
80884         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
80885
80886 2006-04-29  Bruno Haible  <bruno@clisp.org>
80887
80888         * gnulib-tool: Make --update option actually work.
80889
80890 2006-04-29  Bruno Haible  <bruno@clisp.org>
80891
80892         * doc/gcd.texi: New file.
80893         * doc/gnulib.texi: Include it.
80894
80895 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
80896
80897         * lib/getdate.y (get_date): When adding relative date, start with the
80898         initial time, not with the result of the first mktime call.
80899
80900 2006-04-25  Bruno Haible  <bruno@clisp.org>
80901
80902         * gnulib-tool (func_import): Output the include directives in three
80903         blocks, sorted separately.
80904         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80905
80906 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80907
80908         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
80909         to define main with arguments, for C++.  Reported by Eric Blake.
80910         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
80911         Prefer 'int main ()' to 'int main (void)', for C++.
80912         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
80913         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
80914         for 'main', for C99 and C++.
80915
80916 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80917
80918         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
80919         Don't assume that exit status -1 is valid.
80920         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
80921         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
80922         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
80923         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
80924         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
80925         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
80926         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
80927         functions can be used without declaring them, or that you can
80928         exit with status -1.
80929         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
80930
80931 2006-04-24  Karl Berry  <karl@gnu.org>
80932
80933         * config/srclist.txt (longdouble.m4): sync lost.
80934
80935 2006-04-24  Eric Blake  <ebb9@byu.net>
80936
80937         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
80938
80939 2006-04-24  Bruno Haible  <bruno@clisp.org>
80940
80941         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
80942         poll() implementation in AIX.
80943         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80944
80945 2006-04-24  Bruno Haible  <bruno@clisp.org>
80946
80947         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
80948         assigned exactly once.
80949
80950 2006-04-23  Claudio Fontana  <claudio@gnu.org>
80951             Bruno Haible  <bruno@clisp.org>
80952
80953         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
80954         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
80955         for AM_CPPFLAGS.
80956
80957 2006-04-23  Bruno Haible  <bruno@clisp.org>
80958
80959         * modules/copy-file: Depend on unistd.
80960         * modules/execute: Likewise.
80961         * modules/fatal-signal: Likewise.
80962         * modules/findprog: Likewise.
80963         * modules/mkdtemp : Likewise.
80964         * modules/pipe: Likewise.
80965         * modules/wait-process: Likewise.
80966
80967 2006-04-23  Bruno Haible  <bruno@clisp.org>
80968
80969         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
80970         condition was already detected.
80971         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80972
80973 2006-04-23  Bruno Haible  <bruno@clisp.org>
80974
80975         * lib/copy-file.c: Include <unistd.h> unconditionally.
80976         * lib/execute.c: Likewise.
80977         * lib/fatal-signal.c: Likewise.
80978         * lib/findprog.c: Likewise.
80979         * lib/mkdtemp.c: Likewise.
80980         * lib/pipe.h: Likewise.
80981         * lib/pipe.c: Likewise.
80982         * lib/wait-process.h: Likewise.
80983
80984 2006-04-23  Bruno Haible  <bruno@clisp.org>
80985
80986         * gnulib-tool (func_usage): Fix --import description. Document
80987         --update.
80988         (func_import): Create temporary file in a temporary directory, if
80989         --dry-run is specified. Silence errors from 'grep' when there are no
80990         m4 files in $m4dir.
80991         (func_create_testdir): Silence errors from 'grep' when there are no
80992         m4 files in $m4dir.
80993         Reported by Karl Berry <karl@freefriends.org>.
80994
80995 2006-04-20  Bruno Haible  <bruno@clisp.org>
80996
80997         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
80998         one argument, so that the code will be portable to Autoconf 2.60.
80999         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
81000         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81001         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
81002
81003 2006-04-19  Derek Price  <derek@ximbiot.com>
81004             Eric Blake  <ebb9@byu.net>
81005
81006         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
81007         rather than "/full/path.h".  Update comment to match.  Shorten &
81008         generalize m4_translit call via AS_TR_CPP.
81009
81010 2006-04-19  Derek Price  <derek@ximbiot.com>
81011             Eric Blake  <ebb9@byu.net>
81012
81013         * lib/inttypes.h: Correct grammar in comment.
81014
81015 2006-04-18  Derek Price  <derek@ximbiot.com>
81016             Paul Eggert  <eggert@cs.ucla.edu>
81017
81018         * modules/inttypes: New file.
81019         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
81020
81021 2006-04-18  Derek Price  <derek@ximbiot.com>
81022             Paul Eggert  <eggert@cs.ucla.edu>
81023
81024         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
81025         New files.
81026
81027 2006-04-18  Derek Price  <derek@ximbiot.com>
81028             Paul Eggert  <eggert@cs.ucla.edu>
81029
81030         * lib/inttypes.h: New file.
81031         * lib/strtoimax.c: Assume <inttypes.h>.
81032
81033 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
81034
81035         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
81036         isn't mounted.  Problem reported by Kir Kolyshkin.
81037
81038 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
81039
81040         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
81041         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
81042         Derek R. Price.
81043         * lib/regex.h (RE_DUP_MAX): Update comment to match current
81044         implementation.
81045
81046 2006-04-12  Eric Blake  <ebb9@byu.net>
81047
81048         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
81049         is now done automatically by the corresponding Autoconf macro.
81050
81051 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
81052
81053         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
81054         time_r.h.
81055
81056 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81057
81058         Merge regex changes from libc, removing some of our
81059         POSIX-conformance changes that were rejected and redoing them in a
81060         less-intrusive way.
81061
81062         * lib/regcomp.c (re_compile_internal, init_dfa):
81063         Length arg is now size_t, not Idx.  All uses changed.
81064         (peek_token): Forward decl now says internal_function.
81065         (__re_error_msgid, __re_error_msgid_idx):
81066         Now static rather than extern with attribute_hidden.
81067         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
81068         For some reason libc prefers K&R style defns for external functions.
81069         (regerror) [!defined _LIBC]: Likewise.
81070         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
81071         (seek_collating_symbol_entry, lookup_collation_sequence_value):
81072         (build_range_exp, build_collating_symbol):
81073         Use K&R-style defn.
81074         (re_compile_fastmap): Use '\0' to memset, not 0.
81075         (utf8_sb_map): Make the calculations more obvious.
81076         (init_dfa, parse_bracket_exp, build_charclass_op):
81077         Call calloc and cast result, as glibc does.
81078         (init_word_char, fetch_token, peek_token, peek_token_bracket):
81079         (build_range_exp, build_collating_symbol):
81080         Now internal functions.
81081
81082         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
81083
81084         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
81085         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
81086         Don't depend on VMS; depend on __VMS instead, for POSIX
81087         namespace cleanness.
81088         (regoff_t): Define to ssize_t, not long int.
81089
81090         Remove the REG_ macros named below.  Instead, make the old names
81091         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
81092         __USE_GNU_REGEX.
81093         (REG_BACKSLASH_ESCAPE_IN_LISTS):
81094         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
81095         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
81096         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
81097         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
81098         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
81099         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
81100         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
81101         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
81102         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
81103         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
81104         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
81105         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
81106         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
81107         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
81108         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
81109         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
81110         (REG_NREGS):
81111         Remove.  All uses replaced by the old RE_* names.
81112         (RE_BACKSLASH_ESCAPE_IN_LISTS):
81113         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
81114         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
81115         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
81116         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
81117         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
81118         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
81119         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
81120         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
81121         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
81122         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
81123         Don't bother having these macros be independent of each others'
81124         values, since they no longer exist in the POSIX name space.
81125
81126         Rename the following member names back to their old names,
81127         unless !__USE_GNU_REGEX.  All uses changed back.
81128         (buffer): Renamed from re_buffer.
81129         (allocated): Renamed from re_allocated.
81130         (used): Renamed from re_used.
81131         (syntax): Renamed from re_syntax.
81132         (fastmap): Renamed from re_fastmap.
81133         (translate): Renamed from re_translate.
81134         (can_be_null): Renamed from re_can_be_null.
81135         (regs_allocated): Renamed from re_regs_allocated.
81136         (fastmap_accurate): Renamed from re_fastmap_accurate.
81137         (no_sub): Renamed from re_no_sub.
81138         (not_bol): Renamed from re_not_bol.
81139         (not_eol): Renamed from re_not_eol.
81140         (newline_anchor): Renamed from re_newline_anchor.
81141         (num_regs): Renamed from rm_num_regs.
81142         (start): Renamed from rm_start.
81143         (end): Renamed from rm_end.
81144
81145         (free_state): Move up a bit.
81146
81147         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
81148         #define to be empty.
81149         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
81150         when that is what is intended.
81151         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
81152         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
81153         (MAX): New macro.
81154         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
81155         All uses changed back to re_malloc, etc.  It's now the caller's
81156         responsibility to check for overflow; all callers changed.
81157         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
81158         (re_x2nrealloc): Remove.
81159         (free_state): Remove decl.
81160
81161         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
81162         (re_set_registers, re_exec):
81163         Use K&R-style defn.
81164
81165         2006-01-31  Roland McGrath  <roland@redhat.com>
81166
81167         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
81168         Reported by Mike Frysinger <vapier@gentoo.org>.
81169
81170         2006-01-15  Andreas Jaeger  <aj@suse.de>
81171
81172         [BZ #1950]
81173         * lib/regex_internal.c (re_string_reconstruct): Adjust for
81174         build_wcs_upper_buffer change.
81175         (build_wcs_upper_buffer): Change return type.
81176
81177         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
81178
81179         * lib/regex_internal.h: Include <stdint.h> if available.
81180
81181         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
81182
81183         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
81184
81185         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
81186
81187         * lib/regcomp.c: Adjust for changed secondary hash function.
81188
81189         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
81190
81191         * lib/regex.h: Pretty printing.
81192         Clean up namespace a bit.
81193
81194         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
81195
81196         * lib/regexec.c (update_cur_sifted_state, check_arrival,
81197         check_arrival_add_next_nodes): Avoid using uninitialized variable.
81198
81199         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81200                     Ulrich Drepper  <drepper@redhat.com>
81201
81202         [BZ #1302]
81203         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
81204         changed.
81205         (bitset_word_t): Renamed from bitset_word.  All uses changed.
81206
81207         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
81208
81209         [BZ #281]
81210         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
81211         * lib/regcomp.c: Remove unnecessary uses of
81212         unsigned RE_TRANSLATE_TYPE.
81213         * lib/regex_internal.h: Likewise.
81214         * lib/regex_internal.c: Likewise.
81215         * lib/regexec.c: Likewise.
81216         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
81217
81218         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
81219
81220         * lib/regexec.c (find_recover_state): Remove unnecessary
81221         initialization.
81222         (transit_state_bkref): Make DFA a const pointer.
81223         (get_subexp): Likewise.
81224         (check_arrival): Likewise.
81225         (update_cur_sifted_state): Likewise.
81226         (re_search_internal): Likewise.
81227         (prune_impossible_nodes): Likewise.
81228         (acquire_init_state_context): Likewise.
81229         (proceed_next_node): Likewise.
81230         (set_regs): Likewise.
81231         (free_fail_stack_return): Likewise.
81232         (check_arrival_expand_ecl): Mark DFA parameter as const.
81233         (check_arrival_expand_ecl_sub): Likewise.
81234         (check_subexp_limits): Likewise.
81235         (sub_epsilon_src_nodes):  Likewise.
81236         (add_epsilon_src_nodes):  Likewise.
81237         (merge_state_array): Likewise.
81238         (update_regs): Likewise.
81239         (build_trtable): Likewise.
81240         (sift_states_backward): Mark MCTX parameter as const.
81241         (build_sifted_states): Likewise.
81242         (update_cur_sifted_state): Likewise.
81243         (sift_states_mkref): Likewise.
81244         (check_arrival_expand_ecl): Mark eclosure as const.
81245         (check_dst_limits_calc_pos_1): Likewise.
81246         * lib/regex_internal.h (re_match_context_t): Make dfa a const
81247         pointer.
81248
81249         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
81250
81251         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
81252         (transit_state_sb): Likewise.
81253         (transit_state_mb): Likewise.
81254         (sift_states_iter_mb): Likewise.
81255         (check_arrival_add_next_nodes): Likewise.
81256         (check_node_accept_bytes): Change first parameter to pointer-to-const.
81257         [_LIBC] (re_search_2_stub): Use mempcpy.
81258
81259         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
81260         mbrtowc for very simple UTF-8 case.
81261
81262         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
81263         a pointer-to-const.
81264         (re_acquire_state_context): Likewise.
81265         * lib/regex_internal.h: Adjust prototypes.
81266
81267         * lib/regex.c: Prevent using C++ compilers.
81268
81269         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
81270         (re_acquire_state_context): Likewise.
81271
81272 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81273
81274         * modules/regex (Depends-on): Add ssize_t.
81275
81276 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81277
81278         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
81279         translation table.
81280
81281 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81282
81283         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
81284
81285 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
81286             Bruno Haible  <bruno@clisp.org>
81287
81288         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
81289         <sys/types.h> and <inttypes.h>.
81290
81291 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81292
81293         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
81294         `__error_t_defined', so argp.h will not typedef the former.
81295
81296 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
81297
81298         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
81299         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
81300         glibc names.  Even if glibc is changed to conform to POSIX, the
81301         traditional names will be available anyway, since regex depends on
81302         the extensions module.  Also, fix a longstanding typo in the
81303         implementation of Spencer ERE test #75 from grep 2.3.  Problems
81304         reported by Emanuele Giaquinta.  Also, change sense of cached
81305         variable, so that the message makes sense.
81306
81307 2006-03-24  Simon Josefsson  <jas@extundo.com>
81308
81309         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
81310         including some doc fixes.
81311         (base64_encode_alloc): Fix +1 bug on allocation failures.
81312
81313 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81314
81315         * lib/base64.c (base64_encode): Do not read past end of array with
81316         unsanitized input on systems with CHAR_BIT > 8.
81317
81318 2006-03-24  Eric Blake  <ebb9@byu.net>
81319
81320         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
81321
81322 2006-03-22  Karl Berry  <karl@gnu.org>
81323
81324         * config/srclist.txt (*setenv.[ch]): get from coreutils.
81325         * config/srclistvars.sh (COREUTILS): new var.
81326
81327 2006-03-17  Jim Meyering  <jim@meyering.net>
81328
81329         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
81330         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
81331
81332 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81333
81334         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
81335         no longer needs it.  Instead, check that regoff_t is as least
81336         as wide as ptrdiff_t.
81337
81338         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
81339         so that our regex.h stays compatible with the installed regex.
81340         This is helpful for installers who configure --without-included-regex.
81341         Problem reported by Emanuele Giaquinta.
81342
81343 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81344
81345         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
81346         Typedef to long int, not to off_, as POSIX will likely change
81347         in that direction.
81348
81349 2006-03-15  Eric Blake  <ebb9@byu.net>
81350
81351         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
81352
81353 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81354
81355         * lib/argp-help.c (validate_uparams): Fix typo
81356         * lib/argp-parse.c (argp_default_options): Consistently begin help
81357         messages with a lowercase letter.
81358
81359 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
81360
81361         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
81362         overrun buffers and shouldn't be used (much as gets shouldn't be
81363         used).
81364         * lib/time_r.c (asctime_r, ctime_r): Likewise.
81365
81366 2006-03-08  Simon Josefsson  <jas@extundo.com>
81367
81368         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
81369         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81370
81371 2006-03-08  Simon Josefsson  <jas@extundo.com>
81372
81373         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
81374         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81375
81376 2006-03-08  Simon Josefsson  <jas@extundo.com>
81377
81378         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
81379         signal that configure disabled the device.
81380
81381 2006-03-08  Simon Josefsson  <jas@extundo.com>
81382
81383         * build-aux/maint.mk: Fix refresh-po, to handle no translated
81384         languages.
81385
81386 2006-03-07  Simon Josefsson  <jas@extundo.com>
81387
81388         * modules/getopt (Depends-on): Add unistd.
81389
81390         * modules/unistd: New file.
81391
81392 2006-03-07  Simon Josefsson  <jas@extundo.com>
81393
81394         * modules/gc-random: New file.
81395
81396 2006-03-07  Simon Josefsson  <jas@extundo.com>
81397
81398         * m4/unistd_h.m4: New file.
81399
81400 2006-03-07  Simon Josefsson  <jas@extundo.com>
81401
81402         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
81403         test to be side-effect free by storing the result in the cache
81404         variable gl_cv_lib_readline, and moving the assignment of
81405         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
81406         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81407
81408 2006-03-07  Simon Josefsson  <jas@extundo.com>
81409
81410         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
81411         error on missing devices (the functions will return an error).
81412
81413         * m4/gc.m4: Move random stuff to gc-random.m4
81414
81415 2006-03-07  Simon Josefsson  <jas@extundo.com>
81416
81417         * lib/unistd_.h: New file.
81418
81419 2006-03-07  Simon Josefsson  <jas@extundo.com>
81420
81421         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
81422
81423 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81424
81425         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
81426         Problem reported by Juan Manuel Guerrero.
81427
81428 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81429
81430         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
81431         the unistd module.
81432         * lib/getlogin_r.c: Likewise.
81433         * lib/getlogin_r.h: Likewise.
81434         * lib/glob.c: Likewise.
81435         * lib/pagealign_alloc.c: Likewise.
81436         * lib/unistd_.h: Remove; no longer needed.
81437
81438 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81439
81440         * MODULES.html.sh (Support for systems lacking POSIX:2001):
81441         Add unistd.
81442         * modules/c-stack (Depends-on): Add unistd.
81443         * modules/getlogin_r: Likewise.
81444         * modules/glob: Likewise.
81445         * modules/pagealign_alloc: Likewise.
81446         * modules/unistd (Files): Remove lib/unistd_.h.
81447         (EXTRA_DIST): Remove.
81448         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
81449         need unistd_.h.
81450         (MOSTLYCLEANFILES): Remove unistd.h-t.
81451
81452 2006-03-03  Simon Josefsson  <jas@extundo.com>
81453
81454         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
81455
81456 2006-03-03  Simon Josefsson  <jas@extundo.com>
81457
81458         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
81459         libidn and bison.
81460
81461 2006-03-03  Simon Josefsson  <jas@extundo.com>
81462
81463         * build-aux/maint.mk: Add indent target.
81464
81465 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
81466
81467         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
81468         our replacement poll.h in any case, to avoid a differing
81469         declaration from a system header.  Seen on AIX.
81470
81471 2006-03-01  Simon Josefsson  <jas@extundo.com>
81472
81473         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
81474         <kasal@ucw.cz>.
81475
81476 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81477
81478         * modules/gettime (Depends-on): Add extensions module.
81479         * modules/nanosleep (Depends-on): Likewise.
81480         * modules/settime (Depends-on): Likewise.
81481
81482 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81483
81484         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
81485         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
81486         pedantically.
81487         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81488         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
81489
81490         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
81491         not "==".  Reported by Ralf Wildenhues.
81492
81493 2006-03-01  Karl Berry  <karl@gnu.org>
81494
81495         * doc/Copyright/request-*: new files, synced from gnuorg.
81496
81497 2006-03-01  Karl Berry  <karl@gnu.org>
81498
81499         * config/srclist.txt (Copyright/*): new entries.
81500
81501 2006-02-28  Simon Josefsson  <jas@extundo.com>
81502
81503         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
81504
81505 2006-02-27  Simon Josefsson  <jas@extundo.com>
81506
81507         * lib/base64.h: Indent #define's.  From Jim Meyering
81508         <jim@meyering.net>.
81509
81510 2006-02-27  Jim Meyering  <jim@meyering.net>
81511
81512         Revert the change of 2006-02-24, so these files can continue
81513         to be sync'd from gettext.
81514         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
81515         of `config.h'.
81516
81517 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
81518
81519         * modules/intprops: New file.
81520         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
81521         Add intprops.
81522         * modules/getloadavg (Files): Remove lib/intprops.h.
81523         (Depends-on): Add intprops.
81524         * modules/human: Likewise.
81525         * modules/inttostr: Likewise.
81526         * modules/openat: Likewise.
81527         * modules/sig2str: Likewise.
81528         * modules/userspec: Likewise.
81529         * modules/utimecmp: Likewise.
81530         * modules/xnanosleep: Likewise.
81531         * modules/xstrtol: Likewise.
81532
81533 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
81534
81535         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
81536         * modules/lock-tests (TESTS): Use $(EXEEXT).
81537         * modules/tls-tests: Likewise.
81538         * modules/argp-tests: Likewise.
81539         (check_PROGRAMS): New var, replacing...
81540         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
81541
81542 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81543
81544         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
81545         `config.h'.
81546
81547 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
81548
81549         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
81550
81551 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81552
81553         Sync from coreutils.
81554         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
81555         gl_CHDIR_SAFER.
81556
81557 2006-02-22  Jim Meyering  <jim@meyering.net>
81558
81559         Sync from coreutils.
81560         * m4/chdir-safer.m4: New file.
81561
81562 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
81563
81564         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
81565         AT_FDCWD exceeds INT_MAX.
81566         * lib/openat.h (AT_FDCWD): Likewise.
81567
81568 2006-02-17  Eric Blake  <address@hidden>
81569
81570         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
81571
81572 2006-02-16  Simon Josefsson  <jas@extundo.com>
81573
81574         * modules/getaddrinfo (Depends-on): Add sys_socket.
81575
81576 2006-02-15  Simon Josefsson  <jas@extundo.com>
81577
81578         * build-aux/maint.mk: Add dsyntax-check rule.
81579
81580 2006-02-15  Eric Blake  <ebb9@byu.net>
81581
81582         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
81583         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
81584         'present but cannot compile' warnings on cygwin.
81585         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
81586         use ws2tcpip.h if sys/socket.h works.
81587         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
81588         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
81589
81590 2006-02-14  Simon Josefsson  <jas@extundo.com>
81591
81592         * modules/maintainer-makefile (Files): Rename.
81593
81594         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
81595         and (the local) Makefile.cfg to maint-cfg.mk.
81596
81597         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
81598         to the latter.
81599
81600         * modules/maintainer-makefile: New module.
81601
81602         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
81603         severaly stripped to make it possible to build it up from scratch
81604         with reliable tests.
81605
81606         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
81607         fixes to permit overriding the default actions when configure and
81608         makefile are not available.
81609
81610 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
81611
81612         Sync from coreutils.
81613         * modules/lstat (Depends-on): Don't depend on xalloc.
81614         (License): Change from GPL to LGPL, since this is now simply a
81615         replacement for a libc function.
81616
81617 2006-02-14  Jim Meyering  <jim@meyering.net>
81618
81619         Sync from coreutils.
81620
81621         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
81622         failure on deficient systems, and simplify gnulib lgpl dependencies.
81623         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
81624         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
81625
81626         * lib/xalloc-die.c: Remove unused definition of N_.
81627
81628 2006-02-14  Jim Meyering  <jim@meyering.net>
81629
81630         Sync from coreutils.
81631         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
81632         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
81633         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
81634         double-quote uses of that variable, to accommodate the rare case in
81635         which getmntent is available in none of the libraries checked.  This
81636         happens at least on FreeBSD 5.0.
81637
81638 2006-02-13  Simon Josefsson  <jas@extundo.com>
81639
81640         * gnulib-tool (Usage): Fix --import, from
81641         karl@freefriends.org (Karl Berry).
81642
81643 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81644
81645         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
81646
81647 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
81648
81649         * lib/argp-namefrob.h: Restore changes accidentally lost during the
81650         "autoupdate" on 2005-12-12.
81651
81652 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81653
81654         * modules/closeout (Depends-on): Remove atexit.
81655
81656 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81657
81658         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
81659         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
81660
81661 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
81662
81663         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
81664         __EXTENSIONS__ if this causes compilation to fail.  Problem
81665         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
81666         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
81667
81668 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
81669
81670         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
81671         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
81672         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
81673         All uses changed.
81674
81675 2006-01-26  Simon Josefsson  <jas@extundo.com>
81676
81677         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
81678         prototype is visible on mingw32.
81679
81680         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
81681         for mingw32.
81682
81683         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
81684         mingw32).
81685
81686 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
81687
81688         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
81689         attempt to open for write; this always fails, at least on POSIX
81690         hosts.  This reinstates the 2006-01-09 change, which was
81691         inadvertently removed.
81692
81693 2006-01-26  Bruno Haible  <bruno@clisp.org>
81694
81695         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
81696         Reported by Paul Eggert.
81697
81698 2006-01-26  Bruno Haible  <bruno@clisp.org>
81699             Paul Eggert  <eggert@cs.ucla.edu>
81700
81701         * lib/stdbool_.h (_Bool)
81702         [(! (defined __cplusplus || defined __BEOS__)
81703           && !defined __GNUC__
81704           && !(defined __HP_cc || defined __xlc__
81705                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
81706                || defined __sgi))]:
81707         #define to signed char in these cases too; this simplifies
81708         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
81709         etc., separately) and makes it more conservative.
81710
81711 2006-01-25  Simon Josefsson  <jas@extundo.com>
81712
81713         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
81714         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
81715         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
81716
81717 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81718
81719         * lib/argp-namefrob.h: Bugfix. Remove stray #
81720
81721 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
81722
81723         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
81724         so that we test the test.
81725         Check for yet another HP-UX cc bug involving *bool |= bool.
81726
81727 2006-01-25  Karl Berry  <karl@gnu.org>
81728
81729         * config/srclist.txt (vasnprintf.c): sync lost.
81730
81731 2006-01-25  Jim Meyering  <jim@meyering.net>
81732
81733         Sync from the stable (b5) branch of coreutils:
81734
81735         * lib/fts.c (fts_children): Don't let close() clobber errno from
81736         failed fchdir().
81737
81738         * lib/fts.c (fts_stat): When following a symlink-to-directory,
81739         don't necessarily interpret stat-fails+lstat-succeeds as indicating
81740         a dangling symlink.  That can also happen at least for ELOOP.
81741         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
81742         FYI, this bug predates the inclusion of fts.c in coreutils.
81743
81744         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
81745         in their own block, so pre-c99 compilers don't object.
81746
81747         Avoid the double-free (first in fts_read, second in fts_close) that
81748         would occur when an `active' directory is made inaccessible (e.g.,
81749         via chmod a-x) during a traversal.
81750         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81751         before returning.  Reproduce this failure by
81752         mkdir -p a/b; cd a; chmod a-x . b
81753         Reported by Stavros Passas.
81754
81755 2006-01-25  Jim Meyering  <jim@meyering.net>
81756
81757         * lib/fileblocks.c: Remove more useless parentheses.
81758         * lib/readutmp.h: Likewise.
81759
81760 2006-01-25  Bruno Haible  <bruno@clisp.org>
81761
81762         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
81763         warnings.
81764         Reported by Paul Eggert.
81765
81766 2006-01-25  Bruno Haible  <bruno@clisp.org>
81767
81768         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
81769         rid of a trap command. For Solaris sh.
81770         Reported by Mark D. Baushke <mdb@gnu.org>.
81771
81772 2006-01-24  Simon Josefsson  <jas@extundo.com>
81773
81774         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
81775         Bruno.
81776
81777 2006-01-24  Karl Berry  <karl@gnu.org>
81778
81779         * config/srclist.txt (argp-namefrob.h): sync lost.
81780
81781 2006-01-24  Jim Meyering  <jim@meyering.net>
81782
81783         * modules/openat (Files): Add lib/intprops.h.
81784         From Mark D. Baushke.
81785
81786 2006-01-24  Jim Meyering  <jim@meyering.net>
81787
81788         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
81789         Reported by Mark D. Baushke.
81790
81791 2006-01-24  Jim Meyering  <jim@meyering.net>
81792
81793         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
81794
81795 2006-01-24  Bruno Haible  <bruno@clisp.org>
81796
81797         * modules/strnlen (Maintainer): Change from glibc to all.
81798
81799 2006-01-24  Bruno Haible  <bruno@clisp.org>
81800
81801         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
81802         Patch by Paul Eggert.
81803
81804 2006-01-24  Bruno Haible  <bruno@clisp.org>
81805
81806         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
81807         already has it.
81808         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
81809         2005-11-26.
81810
81811         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
81812         'signed char' to avoid problems with the built-in _Bool type.
81813         Reported by Paul Eggert on 2005-11-26.
81814
81815 2006-01-24  Bruno Haible  <bruno@clisp.org>
81816
81817         * gnulib-tool (func_import): Avoid constructing complicated sed
81818         expressions inside backquote.
81819         Report and solution by Mark D. Baushke <mdb@gnu.org>.
81820
81821 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
81822
81823         These changes imported from libc.
81824         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
81825         test and two separate function calls.
81826         * lib/strndup.c (__strndup): Add libc_hidden_def.
81827
81828 2006-01-23  Simon Josefsson  <jas@extundo.com>
81829
81830         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
81831         Remove the test_*_SOURCES variable: automake infers it by default.
81832         * modules/tls-tests: Likewise.
81833
81834 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81835
81836         Work around porting bugs reported by Dieter in
81837         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
81838         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
81839         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
81840         Include "getopt.h" first, to check interface.
81841         (getenv): Declare only if defined HAVE_DECL_GETENV &&
81842         !HAVE_DECL_GETENV.
81843         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
81844         (__strndup): Revert to K&R-style function dfns, the glibc style.
81845         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
81846         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
81847         Include strnlen.h first, to get prototype properly.
81848         (strnlen): Renamed from __strnlen.
81849         Remove weak alias.
81850
81851 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81852
81853         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
81854
81855 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81856
81857         * config/srclist.txt: Adjust to reflect glibc reorganization.
81858         This affects only comments.
81859
81860 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81861
81862          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
81863          Reported by Bruce Korb <bkorb@gnu.org>.
81864
81865 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
81866
81867         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
81868         to pacify gcc -Wswitch-default.
81869
81870 2006-01-22  Bruno Haible  <bruno@clisp.org>
81871
81872         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
81873         temporary buffer for sprintf, take into account the precision also
81874         for 'd', 'i', 'u', 'o', 'x', 'X'.
81875
81876 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81877
81878         * modules/argp-tests: New module
81879         * tests/test-argp.c: New file
81880         * tests/test-argp-2.sh: New file
81881
81882 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81883
81884         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
81885         (__argp_base_name): Removed
81886         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
81887         typo.
81888         (__argp_base_name): Provide macro definition or extern declaration
81889         depending on the configuration
81890
81891 2006-01-20  Simon Josefsson  <jas@extundo.com>
81892
81893         * modules/inet_ntop (Depends-on): Depend on sys_socket.
81894
81895 2006-01-20  Simon Josefsson  <jas@extundo.com>
81896
81897         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
81898
81899 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81900
81901         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
81902         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
81903         Suggested by Bruno Haible.
81904
81905 2006-01-20  Karl Berry  <karl@gnu.org>
81906
81907         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
81908         until changes propagate, I guess.
81909
81910 2006-01-19  Simon Josefsson  <jas@extundo.com>
81911
81912         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
81913
81914 2006-01-19  Simon Josefsson  <jas@extundo.com>
81915
81916         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
81917
81918 2006-01-19  Simon Josefsson  <jas@extundo.com>
81919
81920         * gnulib-tool: Set check_PROGRAMS.
81921
81922         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81923         modules/des-tests, modules/gc-arcfour-tests,
81924         modules/gc-arctwo-tests, modules/gc-des-tests,
81925         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81926         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81927         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81928         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81929         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81930         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
81931         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
81932         test_*_SOURCES.
81933
81934 2006-01-18  Simon Josefsson  <jas@extundo.com>
81935
81936         * modules/socklen (Depends-on): Depend on sys_socket.
81937
81938 2006-01-18  Simon Josefsson  <jas@extundo.com>
81939
81940         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81941         modules/des-tests, modules/gc-arcfour-tests,
81942         modules/gc-arctwo-tests, modules/gc-des-tests,
81943         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81944         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81945         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81946         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81947         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81948         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
81949         $(EXEEXT) to automake TESTS variable, for mingw32.
81950
81951 2006-01-17  Simon Josefsson  <jas@extundo.com>
81952
81953         * modules/socklen (Include): Need sys/socket.h.
81954
81955 2006-01-17  Bruno Haible  <bruno@clisp.org>
81956
81957         * modules/ssize_t (Include): Add <sys/types.h>.
81958
81959 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
81960
81961         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
81962         it's not portable and it doesn't work with cross-compiles.
81963         Problem reported by Bruno Haible.  Fix missing-$ typo in
81964         'test "gl_cv_ignore_unused_libraries" ...' that prevented
81965         -zignore from being used with Sun's C compiler.
81966
81967 2006-01-12  Simon Josefsson  <jas@extundo.com>
81968
81969         * lib/base64.c: Fix warning, reported by Bruno Haible
81970         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
81971
81972 2006-01-12  Bruno Haible  <bruno@clisp.org>
81973
81974         * modules/ldd: New file.
81975         * build-aux/ldd.sh.in: New file.
81976         * MODULES.html.sh (Support for building libraries and executables): Add
81977         ldd.
81978
81979 2006-01-12  Bruno Haible  <bruno@clisp.org>
81980
81981         * m4/ldd.m4: New file.
81982
81983 2006-01-12  Bruno Haible  <bruno@clisp.org>
81984
81985         * gnulib-tool (func_import, func_create_testdir): Don't go into an
81986         endless loop while replacing $auxdir with build-aux.
81987
81988 2006-01-11  Simon Josefsson  <jas@extundo.com>
81989
81990         * lib/stdint_.h (SIZE_MAX): Add missing (.
81991
81992 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
81993
81994         Sync from coreutils.
81995         * lib/md5.c: Fix commentary typos.
81996         (alignof, UNALIGNED_P): No need for a GCC-specific version.
81997         * lib/md5.h (__attribute__): Remove; unused.
81998         * lib/sha1.c: Fix commentary to match md5 better.
81999         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
82000         so that we don't need to worry about alignment.  All uses changed.
82001         This merges the 2005-10-28 md5 change into sha1.
82002
82003 2006-01-11  Jim Meyering  <jim@meyering.net>
82004
82005         Sync from coreutils.
82006         * lib/md5.c (OP): Fix spacing.
82007
82008 2006-01-11  Bruno Haible  <bruno@clisp.org>
82009
82010         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82011         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
82012         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
82013
82014 2006-01-11  Bruno Haible  <bruno@clisp.org>
82015
82016         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82017         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
82018         the "early" section as well.
82019
82020 2006-01-11  Bruno Haible  <bruno@clisp.org>
82021
82022         Avoid "ar: no archive members specified" error on MacOS X.
82023         * gnulib-tool (func_modules_add_dummy): New function.
82024         (func_import, func_create_testdir): Invoke it.
82025
82026 2006-01-11  Bruno Haible  <bruno@clisp.org>
82027
82028         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
82029         with $auxdir in AC_CONFIG_FILES statements.
82030
82031 2006-01-11  Bruno Haible  <bruno@clisp.org>
82032
82033         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
82034         Initialize also noinst_HEADERS to empty.
82035
82036 2006-01-11  Bruno Haible  <bruno@clisp.org>
82037
82038         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
82039         variables.
82040         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
82041         autoreconf.
82042
82043 2006-01-11  Bruno Haible  <bruno@clisp.org>
82044
82045         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
82046         overridable by the user.
82047         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82048
82049 2006-01-10  Simon Josefsson  <jas@extundo.com>
82050
82051         * modules/sys_socket: New file.
82052
82053 2006-01-10  Simon Josefsson  <jas@extundo.com>
82054
82055         * m4/sys_socket_h.m4: New file.
82056
82057 2006-01-10  Simon Josefsson  <jas@extundo.com>
82058
82059         * lib/socket_.h: New file.
82060
82061 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82062
82063         * modules/readutmp (Maintainer): Add myself.
82064
82065 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82066
82067         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
82068         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
82069         People who are still concerned with buggy memcmp implementations
82070         can invoke gl_FUNC_MEMCMP themselves.
82071
82072 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82073
82074         * lib/regex_internal.h (BITSET_WORD_BITS):
82075         Work around a bug in 64-bit PGC (before version 6.1-2), where the
82076         preprocessor mishandles large unsigned values as if they were signed.
82077         Problem reported by Claudio Fontana in
82078         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
82079
82080 2006-01-10  Jim Meyering  <jim@meyering.net>
82081
82082         Avoid the double-free (first in fts_read, second in fts_close) that
82083         would occur when an `active' directory is made inaccessible (e.g.,
82084         via chmod a-x) during a traversal.
82085         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82086         before returning.  Reproduce this failure by
82087         mkdir -p a/b; cd a; chmod a-x . b
82088         Reported by Stavros Passas.
82089
82090         Sync from coreutils.
82091         * lib/sha1.c: Tweak grammar in a comment.
82092
82093 2006-01-10  Jim Meyering  <jim@meyering.net>
82094
82095         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
82096         Patch by Joerg Sonnenberger.
82097
82098 2006-01-10  Bruno Haible  <bruno@clisp.org>
82099
82100         * modules/readutmp: Depend on module free.
82101         * modules/strtok_r: Depend on module restrict.
82102
82103 2006-01-10  Bruno Haible  <bruno@clisp.org>
82104
82105         * modules/gettext (configure.ac): Add an invocation of
82106         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
82107
82108 2006-01-10  Bruno Haible  <bruno@clisp.org>
82109
82110         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
82111         Reported by Werner Lemberg <wl@gnu.org>.
82112
82113 2006-01-10  Bruno Haible  <bruno@clisp.org>
82114
82115         * lib/localcharset.c: Update from GNU gettext.
82116
82117 2006-01-10  Bruno Haible  <bruno@clisp.org>
82118
82119         * lib/argp.h (__const): Remove macro. Use const instead.
82120         * lib/argp-fmtstream.h (__const): Likewise.
82121         * lib/glob_.h (__const): Remove macro.
82122         * lib/glob-libc.h: Use const instead of __const.
82123
82124 2006-01-10  Bruno Haible  <bruno@clisp.org>
82125
82126         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
82127         variable.
82128         Needed to avoid an automake error regarding the 'gettext' module.
82129
82130 2006-01-09  Simon Josefsson  <jas@extundo.com>
82131
82132         * modules/inet_ntop (Depends-on): Add restrict.
82133
82134 2006-01-09  Simon Josefsson  <jas@extundo.com>
82135
82136         * modules/gc-rijndael-tests (License): Put under LGPL.
82137
82138         * modules/gc-des-tests (License): Likewise.
82139
82140         * modules/gc-arcfour-tests (License): Likewise.
82141
82142         * modules/gc-arctwo-tests (License): Likewise.
82143
82144         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
82145
82146         * modules/gc-hmac-sha1-tests (Files): Likewise.
82147
82148         * modules/gc-hmac-md5-tests (License): Likewise.
82149
82150         * modules/gc-sha1-tests (License): Likewise.
82151
82152         * modules/gc-md5-tests (License): Likewise.
82153
82154         * modules/gc-md4-tests (License): Likewise.
82155
82156         * modules/gc-md2-tests (License): Likewise.
82157
82158         * modules/gc-tests (License): Likewise.
82159
82160         * modules/des-tests (License): Likewise.
82161
82162         * modules/md4-tests (License): Likewise.
82163
82164         * modules/md2-tests (License): Likewise.
82165
82166 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82167
82168         Sync from coreutils:
82169
82170         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
82171         * modules/lib-ignore: New file.
82172         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
82173         chdir-safer.m4, lchmod.m4.
82174         * modules/openat: Add mkdirat.c, openat-priv.h.
82175
82176 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82177
82178         Sync from coreutils.
82179         * m4/lib-ignore.m4: New file.
82180         * m4/lchmod.m4: New file.
82181
82182 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82183
82184         Sync from coreutils.
82185         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
82186         for write access: POSIX says that must fail.
82187         * lib/fts.c (diropen): Likewise.
82188         * lib/save-cwd.c (save_cwd): Likewise.
82189         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
82190         well, for minor improvements on hosts that lack O_DIRECTORY.
82191         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
82192         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
82193         Fall back on chown if open failed with EACCES.
82194
82195         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
82196         Report an error at compile-time if only a 1-second nominal clock
82197         resolution is found.
82198
82199         * lib/lchmod.h: New file.
82200         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
82201         (make_dir_parents): Use lchown rather than chown, and
82202         lchmod rather than chmod.
82203
82204         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
82205         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
82206         "proc" reported by n0dalus.
82207
82208         * lib/mountlist.c: Include <limits.h>.
82209         (dev_from_mount_options)
82210         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
82211         New function.  It no longer assumes "dev=" has the System V meaning
82212         on Linux (since it doesn't).  It also parses "dev=" more carefully.
82213         (read_file_system_list)
82214         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
82215         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
82216         dev= in that case.
82217
82218         * lib/posixtm.h (PDS_PRE_2000): New macro.
82219         * lib/posixtm.c (year): Arg is now syntax_bits rather than
82220         allow_century.  All usages changed.  Reject dates outside the range
82221         1969-1999 if PDS_PRE_2000 is used.
82222
82223 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82224
82225         Sync from coreutils.
82226         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
82227         (Time of day items): Mention the possibility of leap seconds.
82228         Problem reported by Dr. David Alan Gilbert.
82229
82230 2006-01-09  Jim Meyering  <jim@meyering.net>
82231
82232         Sync from coreutils.
82233
82234         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
82235
82236         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
82237
82238         * lib/modechange.c (mode_compile): Reject an invalid mode string
82239         that starts with an octal digit.  From Andreas Gruenbacher.
82240
82241         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
82242         and dup to open_safer and dup_safer, respectively.
82243         (openat_permissive): Fix typo in comment.
82244
82245         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
82246         "gettext.h"; either no longer needed or are guaranteed by openat.h.
82247         (_): Remove; no longer needed.
82248         (openat): Renamed from rpl_openat; no need for rpl_openat
82249         since openat.h renames openat for us.
82250         Replace most of the body with a call to openat_permissive,
82251         to avoid duplicate code.
82252         Port to (probably hypothetical) environments were mode_t is
82253         wider than int.
82254         (openat_permissive): Require mode arg, so that we can check
82255         types better.  Put it just after flags.  Change cwd failure
82256         indicator from pointer-to-bool to pointer-to-errno-value.
82257         All callers changed.
82258         Invoke openat_save_fail and/or openat_restore_fail if
82259         cwd_errno is null, so that openat can call us.
82260         (openat_permissive, fdopendir, fstatat, unlinkat):
82261         Simplify errno handling to avoid some duplicate code,
82262         as it's OK to set errno on success.
82263         * lib/openat.h: Revamp code so that function macros depend on
82264         __OPENAT_PREFIX only, not also on AT_FDCWD.
82265         (openat_ro): Remove.  Caller changed to use openat_permissive.
82266         (openat_permissive): Now a macro, if not a function.
82267         (openat_restore_fail, openat_save_fail): Now always functions,
82268         since mkdirat needs them even if __OPENAT_PREFIX is defined.
82269
82270         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
82271         and openat.c.
82272         * lib/mkdirat.c: Include openat-priv.h.
82273         Remove definitions of macros defined therein.
82274         * lib/openat.c: Likewise.
82275
82276         * lib/mkdirat.c (mkdirat): New file and function.
82277         * lib/openat.h (mkdirat): Declare.
82278
82279         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
82280
82281         * lib/openat.h (openat_permissive): Declare.
82282         (openat_ro): Define.
82283
82284         * lib/openat.c (EXPECTED_ERRNO): New macro.
82285         (openat_permissive): New function -- used in remove.c rewrite.
82286         (all functions): Set errno just before returning, only if there
82287         was an actual failure.
82288         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
82289
82290         Emulate openat-family functions using Linux's procfs, if possible.
82291         Idea and some code based on Ulrich Drepper's glibc changes.
82292
82293         * lib/openat.c: (BUILD_PROC_NAME): New macro.
82294         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
82295         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
82296         before falling back on save_cwd and restore_cwd.
82297         (fdopendir, fstatat, unlinkat): Likewise.
82298
82299         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
82300         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
82301
82302         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
82303         as second argument to va_arg.  Otherwise, some versions of gcc
82304         warn that `if this code is reached, the program will abort'.
82305
82306 2006-01-09  Jim Meyering  <jim@meyering.net>
82307
82308         Sync from coreutils.
82309         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
82310         Require openat-priv.h.
82311
82312 2006-01-09  Bruno Haible  <bruno@clisp.org>
82313
82314         * modules/strnlen (Include): Use strnlen.h.
82315
82316 2006-01-09  Bruno Haible  <bruno@clisp.org>
82317
82318         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
82319
82320 2006-01-09  Bruno Haible  <bruno@clisp.org>
82321
82322         * lib/sysexit_.h (EX_OK): New macro.
82323         Suggested by Martin Lambers <marlam@marlam.de>.
82324
82325 2006-01-09  Bruno Haible  <bruno@clisp.org>
82326
82327         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
82328         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
82329
82330 2006-01-09  Bruno Haible  <bruno@clisp.org>
82331
82332         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
82333         numbers.
82334
82335 2006-01-09  Bruno Haible  <bruno@clisp.org>
82336
82337         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
82338         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
82339         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
82340         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
82341
82342 2006-01-09  Bruno Haible  <bruno@clisp.org>
82343
82344         * build-aux/javacomp.sh.in: New file, moved from lib/.
82345         * modules/javacomp-script (Files): Update.
82346         (configure.ac): Add AC_CONFIG_FILES invocation.
82347         (EXTRA_DIST): Remove variable.
82348
82349         * build-aux/javaexec.sh.in: New file, moved from lib/.
82350         * modules/javaexec (Files): Update.
82351         (configure.ac): Add AC_CONFIG_FILES invocation.
82352         (EXTRA_DIST): Remove javaexec.sh.in.
82353
82354         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
82355         * modules/csharpcomp-script (Files): Update.
82356         (configure.ac): Add AC_CONFIG_FILES invocation.
82357         (EXTRA_DIST): Remove variable.
82358
82359         * build-aux/csharpexec.sh.in: New file, moved from lib/.
82360         * modules/csharpexec (Files): Update.
82361         (configure.ac): Add AC_CONFIG_FILES invocation.
82362         (EXTRA_DIST): Remove csharpexec.sh.in.
82363
82364 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82365
82366         Sync from coreutils.
82367
82368         Add POSIX ACL support
82369         * lib/acl.h (copy_acl, set_acl): Add declarations.
82370         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
82371         systems other than Linux.
82372         (chmod_or_fchmod): New function: use fchmod when possible,
82373         and chmod otherwise.
82374         (file_has_acl): Add a POSIX ACL implementation, with a
82375         Linux-specific subcase.
82376         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
82377         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
82378         acls are unsupported.
82379         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
82380         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
82381         are unsupported.
82382
82383 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82384
82385         Sync from coreutils.
82386         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
82387
82388 2006-01-07  Bruno Haible  <bruno@clisp.org>
82389
82390         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
82391         gl_EARLY.
82392
82393 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82394
82395         * lib/strftime.c (tzname): Don't declare if it is already #defined.
82396         Problem reported for Mingw by Mark Junker.
82397
82398 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82399
82400         * README: Gnulib normally doesn't generate a tarball.
82401
82402 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
82403
82404         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
82405         long int, not int, for nanosecond counts, so that people who are
82406         used to POSIX struct timespec won't be surprised.  Reported by Jim
82407         Meyering.
82408
82409 2005-12-28  Bruno Haible  <bruno@clisp.org>
82410
82411         * build-aux/config.rpath: Update from GNU gettext.
82412
82413 2005-12-16  Jim Meyering  <jim@meyering.net>
82414
82415         * modules/fprintftime: New module.
82416         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
82417
82418 2005-12-16  Jim Meyering  <jim@meyering.net>
82419
82420         * m4/fprintftime.m4: New file.
82421
82422 2005-12-16  Jim Meyering  <jim@meyering.net>
82423
82424         * lib/fprintftime.c, lib/fprintftime.h: New files.
82425
82426 2005-12-15  Simon Josefsson  <jas@extundo.com>
82427
82428         * modules/socklen (configure.ac): Fix M4 macro name, to align with
82429         new m4/socklen.m4.
82430
82431 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82432
82433         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
82434         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
82435
82436 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82437
82438         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
82439         * lib/argp-help.c (fill_in_uparams): Check if the constructed
82440         struct uparams is valid. Fall back to the default values if it is
82441         not.
82442
82443 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82444
82445         * modules/argp (Files): Add argp-pin.c
82446         (Depends-on): dirname
82447         (lib_SOURCES): Add argp-pin.c
82448
82449 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82450
82451         * m4/argp.m4:  Check if program_invocation_name and
82452         program_invocation_short_name are declared and define appropriate
82453         macros if they are not.
82454
82455 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82456
82457         * lib/argp-help.c (__argp_base_name): New function
82458         (__argp_short_program_name): Rewrite using __argp_base_name
82459         * lib/argp-namefrob.h: Define program_invocation_name and
82460         program_invocation_short_name if requested
82461         (__argp_base_name): Add prototype
82462         * lib/argp-parse.c (argp_def): Use gettext wrappers
82463         (argp_default_parser): Use __argp_base_name
82464         * lib/argp-pin.c: New file. Defines program_invocation_name and
82465         program_invocation_short_name on systems that lack them.
82466
82467 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82468
82469         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
82470         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82471         porting problem reported by Georg Schwarz in
82472         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82473
82474 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82475
82476         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
82477         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82478         porting problem reported by Georg Schwarz in
82479         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82480
82481 2005-12-05  Bruno Haible  <bruno@clisp.org>
82482
82483         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
82484         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
82485         Reported by Mark Junker <mjscod@gmx.de>.
82486
82487 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
82488
82489         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
82490         Use implementation from Albert Chin, with some
82491         comments/corrections by Stepan Kasal and myself.
82492
82493 2005-12-02  Bruno Haible  <bruno@clisp.org>
82494
82495         * gnulib-tool (func_import): Accept GPLed build tool modules when
82496         --lgpl is given.
82497         * modules/csharpcomp-script: New file.
82498         * modules/csharpcomp: Depend on it.
82499         * modules/javacomp-script: New file.
82500         * modules/javacomp: Depend on it.
82501         Suggested by Simon Josefsson.
82502
82503 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
82504
82505         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
82506         statement, to work around an HP-UX 10.20 compiler bug reported by
82507         Peter O'Gorman.
82508
82509 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82510
82511         * modules/savedir (Depends-on): Add openat.
82512
82513 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82514
82515         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
82516         (uintmax_t) [defined uintmax_t]: Do not declare.
82517         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
82518         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
82519         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
82520         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
82521         sake of portability to weird hosts that C allows (though we don't
82522         know of any practical examples).
82523
82524         * lib/savedir.h (fdsavedir): New decl.
82525         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
82526         contains most of the former guts of savedir.
82527         (savedir): Use savedirstream.
82528         Include "openat.h".
82529
82530 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
82531
82532         * modules/obstack (Files): Add m4/ulonglong.m4.
82533         Problem reported by Davide Angelocola.
82534
82535 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
82536
82537         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
82538         coreutils no longer futzes with rounding modes.
82539
82540 2005-11-14  Jim Meyering  <jim@meyering.net>
82541
82542         * lib/mkstemp-safer.c: Include <config.h>, required for possible
82543         replacement of mkstemp.
82544
82545 2005-11-10  Simon Josefsson  <jas@extundo.com>
82546
82547         * lib/readline.c: Remove EOL.
82548
82549 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82550
82551         * modules/gethrxtime (Depends-on): Add gettime.
82552
82553 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82554
82555         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
82556         or gettimeofday; no longer needed.
82557
82558 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82559
82560         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
82561         time business.
82562         (gethrxtime) [! (HAVE_NANOUPTIME
82563         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
82564         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
82565         our own approximation.
82566
82567 2005-11-08  Eric Blake  <ebb9@byu.net>
82568
82569         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82570
82571 2005-11-08  Eric Blake  <ebb9@byu.net>
82572
82573         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82574
82575 2005-11-04  Bruno Haible  <bruno@clisp.org>
82576
82577         * gnulib-tool: Implement --update mode.
82578
82579 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82580
82581         Fix porting problem reported by Theodoros V. Kalamatianos.
82582         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
82583         Don't assume that futimes failing means we must fail.
82584
82585 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82586
82587         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
82588         variables to suggest the intended function of the PATH_MAX check.
82589
82590 2005-10-30  Kean Johnston  <jkj@sco.com>
82591
82592         Trivial changes to support SCO systems.
82593         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
82594         as PATH_MAX.
82595         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
82596         where __ptr is null when no I/O is pending.
82597
82598 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82599
82600         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
82601         leave errno alone.  Problem reported by Dmitry V. Levin.
82602
82603 2005-10-28  Simon Josefsson  <jas@extundo.com>
82604
82605         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
82606         Test more.
82607
82608         * tests/test-gc-md2.c, tests/test-md2.c: New files.
82609
82610         * modules/md2, modules/md2-tests: New files.
82611
82612 2005-10-28  Simon Josefsson  <jas@extundo.com>
82613
82614         * m4/inet_ntop.m4: More tests.
82615
82616         * m4/gc-md2.m4, md2.m4: New file.
82617
82618 2005-10-28  Simon Josefsson  <jas@extundo.com>
82619
82620         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
82621         "restrict" keywords, as per POSIX.  Protect the function
82622         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
82623         Don't use K&R prototypes.  Check the sprintf return values.
82624         Re-define EAFNOSUPPORT if not present.  Indent.
82625
82626         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
82627         suggested by Bruno Haible <bruno@clisp.org>.
82628
82629         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
82630
82631         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
82632
82633         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
82634         libgcrypt).
82635
82636         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
82637
82638         * lib/md2.h, lib/md2.c: New files.
82639
82640 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
82641
82642         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
82643         errno alone.  Problem reported by Frederic Jolliton.
82644
82645 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
82646
82647         * modules/verify (License): Change from GPL to LGPL.  This is a
82648         tiny module and there are apparently near-equivalents that are
82649         under the BSD license.
82650
82651 2005-10-24  Simon Josefsson  <jas@extundo.com>
82652
82653         * modules/sha1: Relicense to LGPL.
82654
82655 2005-10-24  Simon Josefsson  <jas@extundo.com>
82656
82657         * lib/md4.h: Shrink buffer size, now that we changed the type.
82658
82659 2005-10-23  Simon Josefsson  <jas@extundo.com>
82660
82661         * gnulib-tool (func_import): Fix --tests-base.
82662
82663 2005-10-22  Simon Josefsson  <jas@extundo.com>
82664
82665         * modules/arcfour (Depends-on): Need stdint.
82666
82667 2005-10-22  Simon Josefsson  <jas@extundo.com>
82668
82669         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
82670         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
82671
82672 2005-10-22  Simon Josefsson  <jas@extundo.com>
82673
82674         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
82675         suggested by Bruno Haible <bruno@clisp.org>.
82676
82677 2005-10-22  Simon Josefsson  <jas@extundo.com>
82678
82679         * lib/crc.h: Include stddef.h, for size_t.
82680
82681 2005-10-22  Simon Josefsson  <jas@extundo.com>
82682
82683         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
82684         arcfour_context struct (simplify test vector testing in GNU
82685         Shishi).
82686
82687 2005-10-21  Simon Josefsson  <jas@extundo.com>
82688
82689         * modules/des, modules/des-tests: New files.
82690
82691         * modules/gc-des, modules/gc-des-tests: New files.
82692
82693         * tests/test-des.c, tests/test-gc-des.c: New file.
82694
82695 2005-10-21  Simon Josefsson  <jas@extundo.com>
82696
82697         * modules/arctwo, modules/arctwo-tests: New files.
82698
82699         * tests/test-arctwo.c: New file.
82700
82701         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
82702
82703         * tests/test-gc-arctwo.c: New file.
82704
82705 2005-10-21  Simon Josefsson  <jas@extundo.com>
82706
82707         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
82708         Bruno Haible <bruno@clisp.org>.
82709
82710         * m4/gc-des.m4: New file.
82711
82712 2005-10-21  Simon Josefsson  <jas@extundo.com>
82713
82714         * m4/arctwo.m4: New file.
82715
82716         * m4/gc-arctwo.m4: New file.
82717
82718 2005-10-21  Simon Josefsson  <jas@extundo.com>
82719
82720         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
82721         block.
82722
82723 2005-10-21  Simon Josefsson  <jas@extundo.com>
82724
82725         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
82726         <bruno@clisp.org>.
82727
82728         * lib/hmac-sha1.c (hmac_sha1): Likewise.
82729
82730         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
82731         Bruno Haible <bruno@clisp.org>.
82732
82733         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
82734         <bruno@clisp.org>.
82735
82736 2005-10-21  Simon Josefsson  <jas@extundo.com>
82737
82738         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
82739
82740 2005-10-21  Simon Josefsson  <jas@extundo.com>
82741
82742         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
82743
82744 2005-10-21  Simon Josefsson  <jas@extundo.com>
82745
82746         * lib/des.h, lib/des.c: New files.
82747
82748         * lib/gc-gnulib.c: Support DES.c
82749
82750 2005-10-21  Simon Josefsson  <jas@extundo.com>
82751
82752         * lib/arctwo.h, lib/arctwo.c: New files.
82753
82754         * lib/gc-gnulib.c: Support ARCTWO.
82755
82756 2005-10-21  Simon Josefsson  <jas@extundo.com>
82757
82758         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
82759         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82760
82761 2005-10-21  Simon Josefsson  <jas@extundo.com>
82762
82763         * gnulib-tool (func_import, func_create_testdir): Define automake
82764         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
82765         Makefile.am snippet),
82766         suggested by Bruno Haible <bruno@clisp.org>.
82767
82768         * modules/gc (Makefile.am): Use it.
82769
82770 2005-10-21  Bruno Haible  <bruno@clisp.org>
82771
82772         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
82773         patch.
82774
82775 2005-10-19  Simon Josefsson  <jas@extundo.com>
82776
82777         * tests/test-gc-rijndael.c: New file.
82778
82779         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
82780
82781 2005-10-19  Simon Josefsson  <jas@extundo.com>
82782
82783         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
82784         interface too.
82785
82786 2005-10-19  Simon Josefsson  <jas@extundo.com>
82787
82788         * tests/test-gc-arcfour.c: New file.
82789
82790         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
82791
82792 2005-10-19  Simon Josefsson  <jas@extundo.com>
82793
82794         * modules/gc-md4, modules/gc-md4-tests: New file.
82795
82796         * tests/test-gc-md4.c: New file.
82797
82798 2005-10-19  Simon Josefsson  <jas@extundo.com>
82799
82800         * m4/gc-md4.m4: New file.
82801
82802 2005-10-19  Simon Josefsson  <jas@extundo.com>
82803
82804         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
82805         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
82806         <kasal@ucw.cz>.
82807
82808 2005-10-19  Simon Josefsson  <jas@extundo.com>
82809
82810         * m4/gc-arcfour.m4: New file.
82811
82812         * m4/gc-rijndael.m4: New file.
82813
82814 2005-10-19  Simon Josefsson  <jas@extundo.com>
82815
82816         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
82817
82818 2005-10-19  Simon Josefsson  <jas@extundo.com>
82819
82820         * lib/gc-gnulib.c: Support ARCFOUR.
82821
82822 2005-10-19  Simon Josefsson  <jas@extundo.com>
82823
82824         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
82825         support.
82826
82827         * lib/gc.h: Add ECB enum type.
82828
82829         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
82830
82831 2005-10-18  Simon Josefsson  <jas@extundo.com>
82832
82833         * tests/test-md5.c: New file.
82834
82835         * modules/md5-tests: New file.
82836
82837 2005-10-18  Simon Josefsson  <jas@extundo.com>
82838
82839         * tests/test-md4.c: New file.
82840
82841         * modules/md4, modules/md4-tests: New files.
82842
82843 2005-10-18  Simon Josefsson  <jas@extundo.com>
82844
82845         * m4/md4.m4: New file.
82846
82847 2005-10-18  Simon Josefsson  <jas@extundo.com>
82848
82849         * lib/md4.h, lib/md4.c: New files, based on md5.?.
82850
82851 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
82852
82853         * gnulib-tool (func_create_testdir): Omit the second check whether
82854         BUILT_SOURCES in nonempty.
82855
82856 2005-10-17  Simon Josefsson  <jas@extundo.com>
82857
82858         * tests/test-rijndael.c: New file.
82859
82860 2005-10-17  Simon Josefsson  <jas@extundo.com>
82861
82862         * modules/sha1: Depend on stdint instead of md5.
82863
82864         * modules/md5: Depend on stdint, remove uint32_t.
82865
82866 2005-10-17  Simon Josefsson  <jas@extundo.com>
82867
82868         * modules/gc-sha1-tests: New file.
82869
82870         * tests/test-gc-sha1.c: New file.
82871
82872 2005-10-17  Simon Josefsson  <jas@extundo.com>
82873
82874         * m4/md5.m4: Remove call to uint32_t.m4.
82875
82876 2005-10-17  Simon Josefsson  <jas@extundo.com>
82877
82878         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
82879
82880         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
82881         md5.h.
82882
82883         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
82884
82885         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
82886
82887 2005-10-17  Simon Josefsson  <jas@extundo.com>
82888
82889         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
82890
82891 2005-10-17  Simon Josefsson  <jas@extundo.com>
82892
82893         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
82894
82895 2005-10-17  Simon Josefsson  <jas@extundo.com>
82896
82897         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
82898
82899         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
82900
82901 2005-10-17  Bruno Haible  <bruno@clisp.org>
82902
82903         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
82904         that it can also be used in a test.
82905
82906 2005-10-16  Bruno Haible  <bruno@clisp.org>
82907
82908         * gnulib-tool (func_emit_tests_Makefile_am): Also define
82909         TESTS_ENVIRONMENT, so that individual tests can augment it.
82910
82911         * gnulib-tool (func_create_testdir): Use an intermediate target for
82912         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
82913         macros, like $(ALLOCA_H), which cannot be passed through the command
82914         line.
82915
82916 2005-10-15  Simon Josefsson  <jas@extundo.com>
82917
82918         * modules/rijndael-tests: New file.
82919
82920         * modules/rijndael: New file.
82921
82922 2005-10-15  Simon Josefsson  <jas@extundo.com>
82923
82924         * m4/rijndael.m4: New file.
82925
82926 2005-10-15  Simon Josefsson  <jas@extundo.com>
82927
82928         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
82929
82930         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
82931
82932 2005-10-14  Simon Josefsson  <jas@extundo.com>
82933
82934         * tests/test-arcfour.c: New file.
82935
82936         * modules/arcfour, modules/arcfour-tests: New files.
82937
82938 2005-10-14  Simon Josefsson  <jas@extundo.com>
82939
82940         * m4/arcfour.m4: New file.
82941
82942 2005-10-14  Simon Josefsson  <jas@extundo.com>
82943
82944         * lib/arcfour.h, lib/arcfour.c: New files.
82945
82946 2005-10-14  Roland McGrath  <roland@redhat.com>
82947
82948         Import from libc.  [BZ #1331]
82949         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
82950         macro argument.
82951         Reported by Matej Vela <vela@debian.org>.
82952
82953 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82954
82955         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
82956         include <wchar.h>; no longer needed.
82957
82958 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82959
82960         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
82961
82962 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
82963         and  Ulrich Drepper  <drepper@redhat.com>
82964
82965         Import from libc.
82966         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
82967         instead of inline stream orientation test and two separate
82968         function calls.  Pay no attention to USE_IN_LIBIO.
82969
82970 2005-10-13  Simon Josefsson  <jas@extundo.com>
82971
82972         * modules/gc-hmac-md5-tests: New file.
82973
82974         * tests/test-gc-hmac-sha1.c: New file.
82975
82976         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
82977
82978         * modules/gc-hmac-md5-tests: New file.
82979
82980         * tests/test-gc-md5.c: New file.
82981
82982         * modules/gc-md5-tests: New file.
82983
82984 2005-10-13  Simon Josefsson  <jas@extundo.com>
82985
82986         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
82987         Move memory allocation outside of loop.
82988
82989 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
82990
82991         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
82992         intermediate directory is in a read-only file system.  Problem
82993         reported by Eric Blake.
82994
82995 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
82996
82997         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
82998
82999 2005-10-12  Simon Josefsson  <jas@extundo.com>
83000
83001         * tests/test-hmac-sha1.c: New file.
83002
83003         * modules/hmac-sha1-tests: New file.
83004
83005         * modules/hmac-sha1: New file.
83006
83007 2005-10-12  Simon Josefsson  <jas@extundo.com>
83008
83009         * modules/gc-sha1: New file.
83010
83011 2005-10-12  Simon Josefsson  <jas@extundo.com>
83012
83013         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
83014
83015         * tests/test-gc-pbkdf2-sha1.c: New file.
83016
83017 2005-10-12  Simon Josefsson  <jas@extundo.com>
83018
83019         * modules/gc-md5, modules/gc-hmac-md5: New files.
83020
83021         * modules/gc (Files): Remove md5, memxor and hmac files.
83022
83023 2005-10-12  Simon Josefsson  <jas@extundo.com>
83024
83025         * m4/gc-pbkdf2-sha1.m4: New file.
83026
83027         * m4/gc-hmac-sha1.m4: New file.
83028
83029         * m4/gc-sha1: New file.
83030
83031         * m4/hmac-sha1.m4: New file.
83032
83033 2005-10-12  Simon Josefsson  <jas@extundo.com>
83034
83035         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
83036
83037         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
83038
83039 2005-10-12  Simon Josefsson  <jas@extundo.com>
83040
83041         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
83042         suggested by Bruno Haible <bruno@clisp.org>.
83043
83044 2005-10-12  Simon Josefsson  <jas@extundo.com>
83045
83046         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
83047
83048 2005-10-12  Simon Josefsson  <jas@extundo.com>
83049
83050         * lib/gc-pbkdf2-sha1.c: New file.
83051
83052         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
83053
83054 2005-10-12  Simon Josefsson  <jas@extundo.com>
83055
83056         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
83057
83058         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
83059
83060 2005-10-12  Simon Josefsson  <jas@extundo.com>
83061
83062         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
83063         GC_USE_HMAC_MD5, respectively.
83064
83065         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
83066         (gc_md5): Fix typo.
83067
83068         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
83069
83070         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
83071
83072         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
83073
83074 2005-10-12  Bruno Haible  <bruno@clisp.org>
83075
83076         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
83077         Reported by Stepan Kasal <kasal@ucw.cz>.
83078
83079 2005-10-11  Simon Josefsson  <jas@extundo.com>
83080
83081         * tests/test-crc.c: New file.
83082
83083         * modules/crc, modules/crc-tests: New files.
83084
83085 2005-10-11  Simon Josefsson  <jas@extundo.com>
83086
83087         * m4/crc.m4: New file.
83088
83089 2005-10-11  Simon Josefsson  <jas@extundo.com>
83090
83091         * lib/gc.h: Add gc_hash and gc_hash_buffer.
83092
83093         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
83094
83095         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
83096
83097 2005-10-11  Simon Josefsson  <jas@extundo.com>
83098
83099         * lib/crc.h, lib/crc.c: New files.
83100
83101         * lib/gc.h (gc_hash_buffer): Add doc.
83102
83103 2005-10-11  Bruno Haible  <bruno@clisp.org>
83104
83105         * modules/c-strcasestr: New file.
83106         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
83107
83108 2005-10-11  Bruno Haible  <bruno@clisp.org>
83109
83110         * modules/c-strcase: New file.
83111         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
83112
83113 2005-10-11  Bruno Haible  <bruno@clisp.org>
83114
83115         * lib/strcasecmp.c: Include limits.h.
83116         (strcasecmp): Avoid integer overflow on exotic platforms.
83117         * lib/strncasecmp.c: Include limits.h.
83118         (strncasecmp): Avoid integer overflow on exotic platforms.
83119         Reported by Paul Eggert.
83120
83121 2005-10-11  Bruno Haible  <bruno@clisp.org>
83122
83123         * lib/c-strcasestr.h: New file, from GNU gettext.
83124         * lib/c-strcasestr.c: New file, from GNU gettext.
83125
83126 2005-10-11  Bruno Haible  <bruno@clisp.org>
83127
83128         * lib/c-strcase.h: New file, from GNU gettext.
83129         * lib/c-strcasecmp.c: New file, from GNU gettext.
83130         * lib/c-strncasecmp.c: New file, from GNU gettext.
83131
83132 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
83133
83134         * modules/mempcpy (License): GPL -> LGPL.
83135         * modules/strchrnul (License): Likewise.
83136         * modules/sysexits (License): Likewise.
83137
83138 2005-10-08  Simon Josefsson  <jas@extundo.com>
83139
83140         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
83141
83142 2005-10-07  Simon Josefsson  <jas@extundo.com>
83143
83144         * m4/memxor.m4: Remove gl_C_RESTRICT call.
83145
83146 2005-10-06  Simon Josefsson  <jas@extundo.com>
83147
83148         * tests/test-hmac-md5.c: New file.
83149
83150         * modules/hmac-md5-tests: New file.
83151
83152         * modules/hmac-md5: New file.
83153
83154 2005-10-06  Simon Josefsson  <jas@extundo.com>
83155
83156         * m4/hmac-md5.m4: New file.
83157
83158         * m4/memxor.m4: Require gl_C_RESTRICT.
83159
83160 2005-10-06  Simon Josefsson  <jas@extundo.com>
83161
83162         * lib/memxor.c (memxor): Avoid casts and warnings.
83163
83164 2005-10-06  Simon Josefsson  <jas@extundo.com>
83165
83166         * lib/hmac-md5.c: New file.
83167
83168         * lib/hmac.h: New file.
83169
83170 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
83171
83172         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
83173         promotes to int, not unsigned int, to catch the AIX 5.3
83174         compiler bug.
83175
83176 2005-10-05  Simon Josefsson  <jas@extundo.com>
83177
83178         * modules/memxor: New file.
83179
83180         * modules/iconv (Files): Move config.rpath to havelib, it is used
83181         there.
83182
83183         * modules/havelib (Files): Add config.rpath.
83184
83185 2005-10-05  Simon Josefsson  <jas@extundo.com>
83186
83187         * m4/memxor.m4: New file.
83188
83189 2005-10-05  Simon Josefsson  <jas@extundo.com>
83190
83191         * lib/memxor.c (memxor): Fix compiler error.
83192
83193         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
83194         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
83195
83196         * lib/memxor.h, lib/memxor.c: New files.
83197
83198         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
83199         we assume all systems have it, suggested by Jim Meyering
83200         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
83201         any systems lack sys/socket.h; mingw32 is known to lack it, but we
83202         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
83203         same reasons.
83204
83205 2005-10-05  Simon Josefsson  <jas@extundo.com>
83206
83207         * config/srclist.txt: Add glibc bug 1423 for md5.h.
83208
83209 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
83210
83211         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
83212         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
83213         needed, since the source code now assumes these .h files.
83214
83215 2005-10-05  Derek Price  <derek@ximbiot.com>
83216
83217         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
83218
83219 2005-10-05  Bruno Haible  <bruno@clisp.org>
83220
83221         * modules/stdint (License): Change to LGPL.
83222
83223 2005-10-04  Simon Josefsson  <jas@extundo.com>
83224
83225         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
83226         D. Baushke" <mdb@gnu.org>.
83227
83228 2005-10-04  Bruno Haible  <bruno@clisp.org>
83229
83230         * lib/verify.h (verify_true): Provide alternative definition for C++.
83231
83232 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
83233
83234         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
83235         (SSIZE_MAX): New macro, if not already defined.
83236         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
83237         than 2 GiB.
83238
83239 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83240
83241         Sync from coreutils.
83242         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
83243         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
83244         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
83245         ULLONG_MAX doesn't work with 2.7.2.1.
83246
83247 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83248
83249         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
83250         From Ben Pfaff.
83251
83252         * modules/exclude (Depends-on): Depend on verify.
83253         * modules/strtoimax (Depends-on): Likewise.
83254         * modules/utimecmp (Depends-on): Likewise.
83255
83256 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83257
83258         * lib/exclude.c: Include verify.h.
83259         (verify): Remove.  All callers changed to use verify.h's version.
83260         * lib/strtoimax.c: Likewise.
83261         * lib/utimecmp.c: Likewis.e
83262
83263         Sync from coreutils.
83264         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
83265         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
83266         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
83267         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
83268         bother returning ENOSYS if settimeofday or stime fails; just let
83269         them return whatever errno they want to return.
83270         * lib/utimens.c: Include unistd.h, for dup2.
83271         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
83272         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
83273
83274 2005-10-02  Jim Meyering  <jim@meyering.net>
83275
83276         Sync from coreutils.
83277         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
83278         from glibc-2.2.5 that fails for read-only files.
83279
83280 2005-10-02  Jim Meyering  <jim@meyering.net>
83281
83282         Sync from coreutils.
83283         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
83284         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
83285         `#if HAVE_CONFIG_H'.
83286         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
83287         Remove AT_FDCWD test.
83288         Do not consume the fd unless successful.
83289         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
83290         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
83291         block, so that we don't even try to compile it if settimeofday is
83292         available.  This works around a compilation failure on OSF1 V5.1,
83293         due to stime requiring a `long int*' while tv_sec is `int'.
83294
83295 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
83296
83297         Sync from coreutils.
83298         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
83299         against `yes', rather than just testing for nonempty.
83300
83301 2005-10-01  Simon Josefsson  <jas@extundo.com>
83302
83303         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
83304         and Darwin.
83305
83306         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
83307         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
83308         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
83309         freeaddrinfo and gai_strerror are declared by the POSIX headers.
83310         Check if struct addrinfo is declared.
83311
83312 2005-10-01  Simon Josefsson  <jas@extundo.com>
83313
83314         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
83315         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
83316         AI_* and EAI_* definitions.  Protect function declarations.
83317
83318 2005-10-01  Jim Meyering  <jim@meyering.net>
83319
83320         Sync from coreutils.
83321
83322         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
83323         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
83324         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
83325         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83326         in the inet and nsl libraries.  Required on Solaris 5.7.
83327
83328 2005-10-01  Jim Meyering  <jim@meyering.net>
83329
83330         Sync from coreutils.
83331         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83332         in the inet and nsl libraries.  Required on Solaris 5.7.
83333
83334 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
83335
83336         * lib/getdelim.c (getdelim): Remove unused variables.
83337
83338 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
83339
83340         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
83341         so that the code works even with ancient cpp.  Portability problem
83342         with GCC 2.7.2.1 reported by Thomas M.Ott.
83343
83344 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
83345
83346         * modules/regex (Depends-on): Add strcase.
83347
83348         * modules/gethostname (Licence): Change from GPL to LGPL, since
83349         gethostname.c is a trivial implementation of a standard library
83350         function.
83351         * modules/poll (License): Change from GPL to LGPL, since it's
83352         derived from LGPL code.
83353
83354 2005-09-27  Jim Meyering  <jim@meyering.net>
83355
83356         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
83357         HAVE_CONFIG_H.
83358
83359         * lib/intprops.h (signed_type_or_expr__): Define.
83360         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
83361         for unsigned types.
83362
83363 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
83364
83365         * lib/verify.h (verify_expr): Remove, replacing with:
83366         (verify_true): New macro that returns true instead of void.
83367         (verify_type__): Remove.
83368         (verify): Use verify_true rather than verify_type__.
83369
83370 2005-09-26  Bruno Haible  <bruno@clisp.org>
83371
83372         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
83373         is necessary.
83374         (lib_SOURCES): Remove mbchar.c.
83375         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
83376         (Files): Add m4/mbrtowc.m4.
83377         * modules/mbiter: Likewise.
83378         * modules/mbuiter: Likewise.
83379
83380 2005-09-26  Bruno Haible  <bruno@clisp.org>
83381
83382         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
83383         compile mbchar.c if they are not both present.
83384         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
83385         * m4/mbiter.m4 (gl_MBITER): Likewise.
83386         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
83387         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
83388         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
83389
83390 2005-09-25  Jim Meyering  <jim@meyering.net>
83391
83392         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
83393         also uses socklen_t.
83394
83395 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
83396
83397         * lib/utimens.c (ENOSYS): Define if not already defined.
83398         (futimens): Support having a null PATH if the file descriptor
83399         is nonnegative.
83400
83401         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
83402         Remove.
83403         (__attribute): Define to empty unless GCC 3.1 or later.
83404         This works around a core dump on OpenBSD 3.4, which has GCC
83405         2.95.3, which dumps core when given __attribute__(()).  It also
83406         simplifies other tests, since we really don't want to bother with
83407         worrying about which ancient version of GCC supported what.
83408         Original problem reported by Yoann Vandoorselaere, with part of
83409         the fix suggested by Derek Price.
83410
83411 2005-09-24  Jim Meyering  <jim@meyering.net>
83412
83413         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
83414         so we can once again use a positive bitfield width of 1 -- now we
83415         don't have to explain why we were using a bitfield width of 2.
83416
83417 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83418
83419         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
83420         and similarly for the other external symbols.  Problem reported
83421         by James Gallager.
83422
83423         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
83424         bug reported by Jim Meyering.
83425
83426         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
83427         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
83428         not needed, since socklen is a prerequisite module.
83429
83430 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83431
83432         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
83433         Problem reported by Eric Blake.
83434         (getaddrinfo): Initialize se so that it's not garbage.
83435         Redo internal storage allocation so that it doesn't make unportable
83436         assumptions about alignment.
83437         Fix a memory leak.
83438
83439         * lib/utimens.c (futimens): Use futimesat if available.
83440         Prefer it to futimes since it doesn't have the futimes bug.
83441
83442         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
83443         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
83444         Instead, declare a function that returns a pointer to an array,
83445         and use verify_type__ to declare the size of the array.
83446         Problem and germ of a solution reported by Bruno Haible.
83447         (verify_type__): Use 2, not 1, for bitfield size, to avoid
83448         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
83449
83450 2005-09-23  Jim Meyering  <jim@meyering.net>
83451
83452         Sync from coreutils.
83453         Correct build failure (socklen_t not defined) on at least
83454         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
83455         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
83456
83457 2005-09-23  Jim Meyering  <jim@meyering.net>
83458
83459         * modules/getaddrinfo (Depends-on): Add socklen.
83460
83461 2005-09-23  Bruno Haible  <bruno@clisp.org>
83462
83463         * tests/test-verify.c: New file.
83464
83465 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83466
83467         Sync from coreutils.
83468
83469         * modules/argmatch (Depends-on): Add verify.
83470         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
83471         unistd-safer.
83472         * modules/save-cwd (Depends-on): Likewise.
83473
83474         * modules/openat (Files): Add lib/openat-die.c.
83475         (Depends-on): Remove error, exitfail.
83476         Add dirname.
83477
83478         * modules/verify: New file.
83479         * MODULES.html.sh (Diagnostics <assert.h>): New section,
83480         with "verify" module.
83481
83482 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83483
83484         Sync from coreutils.
83485
83486         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
83487         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
83488         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
83489         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
83490         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
83491         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
83492         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
83493         Don't bother checking for string.h, stdlib.h, unistd.h.
83494         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
83495         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
83496         module's job.
83497         * m4/jm-macros.m4 (gl_MACROS): Likewise.
83498         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
83499
83500         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
83501         (gl_GETDATE): Use it.
83502
83503         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
83504
83505 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83506
83507         Sync from coreutils.
83508
83509         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
83510         stat-time.h.
83511         * lib/argmatch.h: Include verify.h
83512         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
83513         (ARGMATCH_ASSERT): Remove; unused.
83514         * lib/canonicalize.c: Assume STDC_HEADERS.
83515         * lib/exclude.c: Include "strcase.h".
83516         * lib/regex_internal.h [!defined _LIBC]: Likewise.
83517         * lib/getusershell.c: Include stdio--.h rather than stdio.h
83518         and stdio-safer.h.
83519         (getusershell): Call fopen, not fopen_safer.
83520         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
83521         Do not include unistd-safer.h.
83522         (save_cwd): Don't call fd_safer; no longer needed
83523         now that we include fcntl--.h.
83524
83525         * lib/getdate.y (relative_time): New type.
83526         (RELATIVE_TIME_0): New constant.
83527         (parser_control): Use relative_time instead of doing it ourselves.
83528         (%union): Add new relative_time rel member.
83529         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
83530         Now typeless.
83531         (relunit, relunit_snumber): Now of type rel.
83532         (zone, rel, relunit, get_date): Adjust to above changes.
83533
83534         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
83535         Do not include unistd-safer.h.
83536         (getloadavg): Don't call fd_safer; no longer needed
83537         now that we include fcntl--.h.
83538
83539         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
83540         (make_dir_parents): Treat ENOSYS like EEXIST.
83541
83542         Improve quality of diagnostics on restore_cwd failure.
83543         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
83544         (make_dir_parents): Last arg is now int * (for errno), not bool *.
83545         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
83546         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
83547         each time through the loop.  Do not diagnose restore_cwd failure;
83548         that is the caller's job (and perhaps the caller does not care).
83549
83550         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
83551         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
83552         If the file already exists but is not a directory, don't bother
83553         to try to make its parents.
83554         Close potential file descriptor leak if we can't chdir("/") (!).
83555         Don't always return true if chdir($PWD) fails; return true only
83556         if the requested action was done successfully (except for the
83557         chdir($PWD)).
83558         Don't log final directory unless we actually made it.
83559         Refactor to avoid duplicate code to fix up permissions.
83560         Don't attempt to fix up parent permissions if chdir($PWD) fails.
83561
83562         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
83563         to make it a bit faster and (I hope) clearer.
83564         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
83565         Fix bug in formats like %2N.
83566
83567         * lib/verify.h: New file.
83568
83569 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83570
83571         Sync from coreutils.
83572         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
83573
83574 2005-09-22  Jim Meyering  <jim@meyering.net>
83575
83576         Sync from coreutils.
83577
83578         * m4/lstat.m4 (gl_FUNC_LSTAT):
83579         Use AC_LIBSOURCES to require lstat.c and lstat.h.
83580         Remove obsolete comment.
83581         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
83582         * m4/xstrtod.m4: Likewise.
83583
83584         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
83585
83586 2005-09-22  Jim Meyering  <jim@meyering.net>
83587
83588         Sync from coreutils.
83589
83590         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
83591
83592         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
83593         the .tm_year member, since otherwise gcc-4.0 would now warn about
83594         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
83595
83596         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
83597         order to avoid an unsuppressible warning from gcc on 64-bit systems.
83598
83599         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
83600         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
83601         when run in a time zone for which daylight savings time is in effect
83602         for the starting date.
83603
83604         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
83605         stop us from restricting permissions of just-created absolute-named
83606         directories.
83607         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
83608         to restore initial working directory.
83609         * lib/mkdir-p.c (make_dir_parents): New parameter:
83610         different_working_dir, to tell caller if/when we change the working
83611         directory and are unable to return to the initial one.
83612         * lib/mkdir-p.h (make_dir_parents): Update prototype.
83613         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
83614         `return false'.  This fixes a bug introduced on 2004-07-30.
83615
83616         * lib/openat.c (fdopendir): Be sure to close the supplied
83617         file descriptor before returning.  This makes our replacement
83618         implementation a little closer to Solaris's, where fdopendir
83619         ties the file descriptor to the returned DIR* pointer.
83620         * lib/openat.c (unlinkat): New function.
83621         * lib/openat.h (unlinkat): Add prototype.
83622         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
83623         (openat_restore_fail): Rename from openat_restore_die.
83624         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
83625
83626         Provide an alternative to exiting immediately upon save_cwd or
83627         restore_cwd failure.  Now, an application can arrange e.g.,
83628         to perform a longjump in that case.
83629         * lib/openat.c: Include dirname.h.
83630         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
83631         (rpl_openat, fdopendir, fstatat): Call openat_save_die
83632         and openat_restore_die rather than calling error directly.
83633         Don't include "error.h" or "exitfail.h"; they're no longer needed.
83634
83635         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
83636         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
83637         define.
83638
83639         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
83640         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
83641                             int utc, int nanoseconds);
83642         Background:
83643         date should not have to allocate a megabyte of virtual memory to
83644         handle a format argument like +%1048575T.  When implemented with
83645         strftime, it must allocate such a buffer, use strftime to fill it
83646         in, print it, then free it.
83647         With fprintftime, it simply prints everything and exits.
83648         With no need for memory allocation, that's one fewer way to fail.
83649         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
83650         optional field width, not before, so we accept %9:z, not %:9z.
83651         (my_strftime): Be sure to use L_('x') for literals.
83652
83653         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
83654         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
83655         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
83656         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
83657         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
83658         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
83659         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
83660         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
83661         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
83662         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
83663         * lib/xgethostname.c, lib/xreadlink.c:
83664         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
83665
83666         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
83667         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
83668         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
83669         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83670         and don't include <sys/file.h>).
83671
83672 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
83673
83674         Sync from coreutils.
83675
83676         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
83677         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
83678         [!LDAV_DONE]: Avoid unused variable warning.
83679
83680 2005-09-21  Bruno Haible  <bruno@clisp.org>
83681
83682         * lib/unicodeio.h (unicode_to_mb): New declaration.
83683
83684 2005-09-20  Derek Price  <derek@ximbiot.com>
83685
83686         * lib/getaddrinfo.c: Don't include <netdb.h> included from
83687         getaddrinfo.h.
83688
83689 2005-09-20  Bruno Haible  <bruno@clisp.org>
83690
83691         * gnulib-tool: Remove trailing slashes from the values specified for
83692         --source-base, --m4-base, --tests-base, --aux-dir.
83693         Suggested by Simon Josefsson <jas@extundo.com>.
83694
83695 2005-09-20  Bruno Haible  <bruno@clisp.org>
83696
83697         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
83698         func_modules_to_filelist, func_import, func_create_testdir): Make all
83699         sorting results locale-independent, so that gnulib-cache.m4 doesn't
83700         change when gnulib-tool is invoked in a different locale.
83701
83702 2005-09-19  Simon Josefsson  <jas@extundo.com>
83703
83704         * m4/socklen.m4: Fix typo.
83705
83706 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83707
83708         Use a consistent style for including <config.h>.
83709         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
83710         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
83711         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
83712         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
83713         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
83714         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
83715         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
83716         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
83717         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
83718         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
83719         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
83720         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
83721         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
83722         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
83723         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
83724         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
83725         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
83726         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
83727         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
83728         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
83729         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
83730         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
83731         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
83732         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
83733         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
83734         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
83735         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
83736         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
83737         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
83738         lib/xstrtoumax.c, lib/yesno.c:
83739         Standardize inclusion of config.h.
83740         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
83741         lib/inttostr.h:  Removed inclusion of config.h from header files.
83742         * lib/inttostr.c:  Adjusted in-tree users.
83743         * lib/timespec.h: Remove superfluous warning to include config.h.
83744         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
83745         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
83746         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
83747         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
83748         config.h with HAVE_CONFIG_H.
83749
83750 2005-09-19  Jim Meyering  <jim@meyering.net>
83751
83752         * modules/pathmax (License): Change to LGPL.
83753
83754 2005-09-19  Derek Price  <derek@ximbiot.com>
83755
83756         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
83757
83758 2005-09-19  Bruno Haible  <bruno@clisp.org>
83759
83760         * gnulib-tool (import): Provide default for --tests-base.
83761
83762 2005-09-19  Bruno Haible  <bruno@clisp.org>
83763
83764         * doc/quote.texi: New file, extracted from gnulib.texi.
83765         * doc/ctime.texi: New file, extracted from gnulib.texi.
83766         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
83767         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
83768         * doc/gnulib.texi: Include them.
83769
83770 2005-09-18  Bruno Haible  <bruno@clisp.org>
83771
83772         Portability fix.
83773         * gnulib-tool (func_readlink): New function.
83774         (func_ln_if_changed): Use it.
83775
83776 2005-09-18  Bruno Haible  <bruno@clisp.org>
83777
83778         * gnulib-tool: Support --with-tests also with --import.
83779         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
83780         (func_import): Use variables $testsbase and $inctests. Emit a
83781         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
83782         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
83783         SUBDIRS += $testsdir.
83784         (func_create_testdir): Update.
83785
83786 2005-09-18  Bruno Haible  <bruno@clisp.org>
83787
83788         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
83789         instead of $dry_run.
83790         (func_cp_if_changed, func_mv_if_changed): Remove functions.
83791         (func_ln_if_changed): Don't handle dry-run here.
83792         (func_import): In dry-run mode, detect more precisely which actions
83793         would be performed, and don't use "...ing" verbs.
83794
83795 2005-09-18  Bruno Haible  <bruno@clisp.org>
83796
83797         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
83798         (func_import): Use join on two temporary files instead of three nested
83799         loops, in order to determine which files are new or old.
83800
83801 2005-09-18  Bruno Haible  <bruno@clisp.org>
83802
83803         * gnulib-tool (func_import): Comment out code that spits out the
83804         new files with --dry-run.
83805
83806 2005-09-18  Bruno Haible  <bruno@clisp.org>
83807
83808         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
83809
83810 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83811
83812         * lib/stat-time.h: New file.
83813         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
83814         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
83815         in a different way.
83816         (timespec_cmp): New function.
83817         * lib/utimecmp.c: Include stat-time.h.
83818         (SYSCALL_RESOLUTION): Depend on whether various struct stat
83819         members exist, not on the obsolescent ST_MTIM_NSEC.
83820         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
83821
83822 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83823
83824         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
83825
83826 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83827
83828         * MODULES.html.sh (File system functions): Add stat-time.
83829         * modules/stat-time: New file.
83830         * modules/timespec (Files): Remove m4/st_mtim.m4; this
83831         is now done in a different way, by the stat-time module.
83832         * modules/utimecmp (Depends-on): Add stat-time.
83833
83834 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
83835
83836         * m4/st_mtim.m4: Remove.  Superseded by...
83837         * m4/stat-time.m4: New file.
83838         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
83839         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
83840
83841 2005-09-15  Derek Price  <derek@ximbiot.com>
83842
83843         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
83844
83845 2005-09-15  Derek Price  <derek@ximbiot.com>
83846
83847         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
83848         * lib/regex_internal.c: Ditto, using this...
83849         (__GNUC_PREREQ): ...new macro.
83850         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
83851         using...
83852         (__GNUC_PREREQ): ...this new macro.
83853
83854         * lib/strstr.h: Include string.h. Define strstr as a macro here.
83855
83856 2005-09-15  Derek Price  <derek@ximbiot.com>
83857             Paul Eggert  <eggert@cs.ucla.edu>
83858
83859         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
83860         changes, consolidating in...
83861         * lib/regex_internal.h: ...this file.
83862
83863 2005-09-13  Jim Meyering  <jim@meyering.net>
83864
83865         * lib/canon-host.c: Filter through gnu indent and reword comments
83866         slightly.
83867         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
83868
83869 2005-09-13  Derek Price  <derek@ximbiot.com>
83870
83871         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
83872         failure.
83873         Reported by Jim Meyering  <jim@meyering.net>.
83874
83875 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83876
83877         * lib/base64.c: Typo.
83878         (base64_encode): Put b64str in initialized data section.
83879
83880 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
83881
83882         Merge glibc and coreutils changes into gnulib, plus a few
83883         extra fixes.
83884         * lib/md5.c: Use #error rather than a string.
83885         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
83886         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
83887         (__attribute__): Define to empty for non recent-GCC.
83888         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
83889         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
83890         Renamed from their non-__ counterparts, with new macros replacing
83891         them if not _LIBC.  Add __THROW attribute.
83892         (rol): Remove.
83893         (struct md5_ctx): Align buffer if using GCC.
83894         * lib/sha1.h (struct sha1_ctx): Likewise.
83895         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
83896         The old name was backwards.
83897         (NOTSWAP): Remove; not used.
83898         (rol): New macro, moved here from md5.h.
83899         (sha1_process_block): Remove a FIXME that doesn't make sense.
83900
83901 2005-09-12  Derek Price  <derek@ximbiot.com>
83902
83903         Return usable errors from canon-host.
83904         * lib/canon-host.h: New file.
83905         * lib/canon-host.c (canon_host): Wrap...
83906         (canon_host_r): ...this new function, which now relies exclusively on
83907         getaddrinfo.
83908         (ch_strerror): New function.
83909         (last_cherror): New global.
83910         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
83911         interface.
83912         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
83913         void *.
83914         (freeaddrinfo): Free ai->ai_canonname when set.
83915
83916 2005-09-12  Derek Price  <derek@ximbiot.com>
83917
83918         Make canon-host require getaddrinfo.
83919         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
83920         AC_LIBSOURCE canon-host.h.  Call...
83921         (gl_PREREQ_CANON_HOST): ...this new function, which requires
83922         gl_GETADDRINFO.
83923         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
83924
83925 2005-09-12  Derek Price  <derek@ximbiot.com>
83926
83927         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
83928         LGPL.
83929         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
83930
83931 2005-09-12  Derek Price  <derek@ximbiot.com>
83932
83933         * lib/gai_strerror.c: Include config.h when available.  Include
83934         getaddrinfo.h before other headers to test interface.
83935         Reported by Larry Jones <lawrence.jones@ugs.com>.
83936
83937 2005-09-12  Derek Price  <derek@ximbiot.com>
83938             Paul Eggert  <eggert@cs.ucla.edu>
83939
83940         * modules/glob (Files): Add glob-libc.h.
83941
83942 2005-09-12  Derek Price  <derek@ximbiot.com>
83943             Paul Eggert  <eggert@cs.ucla.edu>
83944
83945         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
83946         glob_.h, glob-libc.h.
83947         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
83948
83949 2005-09-12  Derek Price  <derek@ximbiot.com>
83950             Paul Eggert  <eggert@cs.ucla.edu>
83951
83952         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
83953         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
83954         protecting things that should be done only in gnulib contexts.
83955         * lib/glob_.h: New file, containing only the glob things needed for
83956         gnulib.
83957         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
83958         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
83959         (glob, globfree, glob_pattern_p): Now defined simply in terms of
83960         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
83961         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
83962         and to respect the namespace rules better.
83963
83964 2005-09-08  Simon Josefsson  <jas@extundo.com>
83965
83966         * modules/socklen: New file.
83967
83968 2005-09-08  Simon Josefsson  <jas@extundo.com>
83969
83970         * m4/socklen.m4: New file.
83971
83972 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83973
83974         * modules/utimens (Files): Add m4/utimbuf.m4, since
83975         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
83976         Reported by Sergey Poznyakoff.
83977
83978 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83979
83980         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
83981         definitions, since that's the preferred style in glibc.
83982         Fix a minor spacing issue, and update copyright notice to match
83983         glibc's.
83984
83985 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83986
83987         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
83988
83989 2005-09-06  Simon Josefsson  <jas@extundo.com>
83990
83991         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
83992         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
83993
83994 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83995
83996         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
83997         warning.
83998
83999 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84000
84001         * config/srclist.txt: Add glibc bug 1302.
84002
84003 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
84004
84005         Change bitset word type from unsigned int to unsigned long int,
84006         as this has better performance on typical 64-bit hosts.
84007         Port bitset code to hosts with unusual word sizes.
84008         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
84009         (build_collating_symbol):
84010         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
84011         argument is a bitset.  This is merely a style issue, but it makes
84012         it clearer that an entire array is expected.
84013         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
84014         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
84015         Port to the case where bitset_word is not the same as unsigned int.
84016         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84017         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
84018         Likewise.
84019         * lib/regexec.c (check_dst_limits_calc_pos_1,
84020         check_subexp_matching_top):
84021         (build_trtable, group_nodes_into_DFAstates):
84022         Likewise.
84023         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
84024         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
84025         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
84026         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
84027         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
84028         * lib/regcomp.c (optimize_subexps, lower_subexp):
84029         Work even if bitset_word has holes in its bitwise representation.
84030         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
84031         * lib/regexec.c (check_dst_limits_calc_pos_1,
84032         check_subexp_matching_top):
84033         Likewise.
84034         * lib/regex_internal.c (re_string_reconstruct):
84035         Don't assume UCHAR_MAX == 255.
84036         * lib/regex_internal.h (bitset_set_all): Likewise.
84037         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
84038         All uses changed.
84039         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
84040         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
84041         All uses changed.
84042         (BITSET_WORD_MAX): New macro.
84043         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
84044         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
84045         (bitset_empty, bitset_copy):
84046         Prefer sizeof (bitset) to multiplying it out ourselves.
84047         (bitset_not_merge): Remove; unused.
84048         (bitset_contain): Return bool, not unsigned int with one bit on.
84049         All callers changed.
84050         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
84051         alignment than re_node_set; do this by defining a new internal
84052         type struct dests_alloc and using it to allocate memory.
84053
84054 2005-09-05  Bruno Haible  <bruno@clisp.org>
84055
84056         * gnulib-tool (func_import): Fix comparison in handling of symbolic
84057         links.
84058
84059 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
84060
84061         * modules/size_max (Makefile.am): Add size_max.h
84062
84063 2005-09-04  Derek Price  <derek@ximbiot.com>
84064
84065         * gnulib-tool (func_import): Fix reversed $symbolic logic.
84066
84067 2005-09-03  Simon Josefsson  <jas@extundo.com>
84068
84069         * gnulib-tool: Fix typo.
84070
84071 2005-09-03  Simon Josefsson  <jas@extundo.com>
84072
84073         * config/srclist.txt: Add glibc bug 1293.
84074
84075 2005-09-03  Derek Price  <derek@ximbiot.com>
84076
84077         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
84078         From Larry Jones <lawrence.jones@ugs.com>.
84079
84080 2005-09-02  Simon Josefsson  <jas@extundo.com>
84081
84082         * modules/socklen: New file.
84083
84084 2005-09-02  Simon Josefsson  <jas@extundo.com>
84085
84086         * modules/havelib: New module.
84087
84088         * modules/gettext, modules/iconv, modules/lock, modules/readline:
84089         Use havelib.
84090
84091 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84092
84093         Check for arithmetic overflow when calculating sizes, to prevent
84094         some buffer-overflow issues.  These patches are conservative, in the
84095         sense that when I couldn't determine whether an overflow was possible,
84096         I inserted a run-time check.
84097         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
84098         macros.
84099         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
84100         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
84101         (re_xnrealloc, re_x2nrealloc): New inline functions.
84102         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
84103         parse_bracket_exp):
84104         (build_equiv_class, build_charclass): Check for arithmetic overflow
84105         in size expression calculations.
84106         * lib/regex_internal.c (re_string_realloc_buffers):
84107         (build_wcs_upper_buffer, re_node_set_add_intersect):
84108         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
84109         (re_dfa_add_node, register_state): Likewise.
84110         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
84111         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
84112         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
84113         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
84114
84115 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84116
84117         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84118         m4/ulonglong.m4.  Problem reported by Martin Lambers.
84119
84120 2005-09-02  Bruno Haible  <bruno@clisp.org>
84121
84122         Support for lib vs. lib64 distinction on biarch platforms.
84123         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
84124         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
84125         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
84126
84127 2005-09-02  Bruno Haible  <bruno@clisp.org>
84128
84129         * gnulib-tool (import): In the other first-use case, provide defaults
84130         as well.
84131
84132 2005-09-02  Bruno Haible  <bruno@clisp.org>
84133
84134         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
84135         patches not yet found in the latest gettext release.
84136
84137 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84138
84139         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
84140         to avoid a collision with bits/local_lim.h in glibc.
84141         All uses changed.  Problem reported by Dmitry V. Levin in
84142         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
84143
84144         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
84145         bugs in int versus size_t comparisons.
84146         (re_string_context_at): Fix bug where the code assumed that
84147         Idx is signed.
84148
84149         Use bool where appropriate.
84150         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
84151         All callers changed.
84152         (calc_eclosure_iter): Likewise, for ROOT arg.
84153         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
84154         (build_charclass_op): Likewise, for NON_MATCH arg.
84155         * lib/regex_internal.c (re_string_allocate, re_string_construct):
84156         (re_string_construct_common): Likewise, for ICASE arg.
84157         * lib/regexec.c (re_search_2_stub, re_search_stub):
84158         Likewise, for RET_LEN arg.
84159         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
84160         (set_regs): Likewise, for FL_BACKTRACK arg.
84161         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
84162         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
84163         (calc_eclosure_iter, parse_bracket_exp):
84164         Use bool for internal variables that are booleans.
84165         * lib/regexec.c (re_search_internal, check_matching,
84166         proceed_next_node):
84167         (set_regs, build_sifted_states, sift_states_bkref):
84168         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
84169         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84170         (find_collation_sequence_value):
84171         Likewise.
84172         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
84173         (re_node_set_compare):
84174         Return bool, not int. All callers changed.
84175         * lib/regexec.c (check_halt_node_context, check_dst_limits):
84176         (build_trtable, check_node_accept): Likewise.
84177         * lib/regex_internal.h: Include stdbool.h.
84178
84179         Fix bugs uncovered when converting to bool.
84180         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
84181         failure instead of charging ahead blindly.
84182         * lib/regex_internal.c (register_state): Likewise.
84183         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
84184         for freeing internal storage.
84185         (group_nodes_into_DFA_states): Use unsigned int, not int, for
84186         bitset pieces used as boolean, to avoid undefined behavior
84187         on hosts that do int overflow checking.
84188
84189 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84190
84191         * config/srclist.txt: Add glibc bugs 1285-1287.
84192
84193 2005-09-01  Jim Meyering  <jim@meyering.net>
84194
84195         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
84196         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
84197         Require gl_STAT_MACROS, too.
84198
84199 2005-09-01  Bruno Haible  <bruno@clisp.org>
84200
84201         * gnulib-tool (import): In the first-use case, provide defaults.
84202
84203 2005-09-01  Bruno Haible  <bruno@clisp.org>
84204
84205         * gnulib-tool (func_import): Remove the .tmp files.
84206
84207 2005-09-01  Bruno Haible  <bruno@clisp.org>
84208
84209         * gnulib-tool (func_import): Fix handling of symbolic links.
84210
84211 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84212
84213         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
84214         old glibc regex code mishandles strings longer than 2**31 bytes.
84215         This patch fixes this when the regex code is used in gnulib
84216         (i.e., outside glibc).
84217
84218         This patch should not affect the use of the regex code inside
84219         glibc.  No doubt this problem also needs to be handled for glibc
84220         as well, but the result will be an incompatible change to the
84221         glibc ABI, and the old ABI will have to be supported too.  That
84222         can be the the subject for another patch.
84223
84224         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
84225         governing whether the rest of this patch is active.  By default,
84226         the macro is disabled and the patch has no effect.
84227         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
84228         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
84229         (struct re_pattern_buffer, re_search, re_search_2, re_match):
84230         (re_match_2, re_set_registers): Use the new types.
84231         * lib/regex_internal.h (Idx, re_hashval_t): New types.
84232         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
84233         New macros.
84234         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
84235         (re_string_context_at, bin_tree_t, re_dfastate_t):
84236         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
84237         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
84238         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
84239         (re_string_char_size_at, re_string_wchar_at):
84240         (re_string_elem_size_at):
84241         Use the new types and macros to port to 64-bit hosts.
84242         Use unsigned types for internal values, so that the code
84243         mostly works even for arrays larger than SSIZE_MAX.
84244         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
84245         (search_duplicated_node, calc_eclosure_iter, fetch_number):
84246         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
84247         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
84248         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
84249         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
84250         (calc_inveclosure, parse_dup_op, build_range_exp):
84251         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
84252         (fetch_number, create_token_tree, mark_opt_subexp):
84253         Likewise.
84254         * lib/regex_internal.c (re_string_construct_common,
84255         create_ci_newstate):
84256         (create_cd_newstate, re_string_allocate, re_string_construct):
84257         (re_string_realloc_buffers, build_wcs_upper_buffer):
84258         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84259         (re_string_reconstruct, re_string_peek_byte_case):
84260         (re_string_fetch_byte_case, re_string_context_at):
84261         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84262         (re_node_set_init_copy, re_node_set_add_intersect):
84263         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84264         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84265         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84266         (re_acquire_state, re_acquire_state_context, register_state):
84267         Likewise.
84268         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
84269         search_cur_bkref_entry):
84270         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
84271         (re_search_internal, re_search_2_stub, re_search_stub)
84272         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
84273         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
84274         (update_cur_sifted_state, check_dst_limits):
84275         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84276         (check_subexp_limits, sift_states_bkref, merge_state_array):
84277         (check_subexp_matching_top, get_subexp, get_subexp_sub):
84278         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
84279         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84280         (expand_bkref_cache, check_node_accept_bytes):
84281         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
84282         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
84283         (acquire_init_state_context, check_halt_node_context):
84284         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
84285         (sift_states_backward, clean_state_log_if_needed):
84286         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
84287         (find_recover_state, transit_state_sb, transit_state_mb):
84288         (transit_state_bkref, build_trtable, match_ctx_clean):
84289         Likewise.
84290         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
84291         to work around an assumption that REG_MISSING is negative.
84292
84293         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
84294         (seek_collating_symbol_entry) [defined _LIBC]:
84295         (lookup_collation_sequence_value) [defined _LIBC]:
84296         (build_range_exp, build_collating_symbol) [defined _LIBC]:
84297         Use prototypes rather than old-style function definitions.
84298         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
84299         (transit_state_sb) [0]:
84300         (find_collation_sequence_value) [defined _LIBC]: Likewise.
84301
84302         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
84303         rm_eo.
84304
84305         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
84306         (optimize_subexps, lower_subexp):
84307         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
84308         since the signed shift might overflow.  Use 1u<<31 instead.
84309         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84310         Likewise.
84311         * lib/regexec.c (check_dst_limits_calc_pos_1,
84312         check_subexp_matching_top): Likewise.
84313
84314         * lib/regcomp.c (optimize_subexps, lower_subexp):
84315         Use CHAR_BIT rather than 8, for clarity.
84316         * lib/regexec.c (check_dst_limits_calc_pos_1):
84317         (check_subexp_matching_top): Likewise.
84318         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
84319         have to worry about portability issues when shifting it left.
84320         Remove no-longer-needed test for table_size > 0.
84321         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
84322         in a word, as the resulting behavior is undefined.
84323         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
84324         in one case, a <= should have been an <, and in another case the
84325         whole test was missing.
84326         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
84327         the standard name CHAR_BIT.
84328         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
84329         this is not true on one's complement and signed-magnitude hosts.
84330
84331         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
84332         next_last_offset.
84333         (struct re_dfa_t): Remove unused member states_alloc.
84334         * lib/regcomp.c (init_dfa): Don't initialize unused members.
84335
84336 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84337
84338         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
84339         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
84340         and large-file glibc and in 32-bit large-file Solaris.
84341
84342 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84343
84344         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
84345         lengths fit in regoff_t; this isn't true if regoff_t is the same
84346         width as size_t.
84347         * lib/regex.c (re_search_internal): 5th arg is LAST_START
84348         (= START + RANGE) instead of RANGE.  This avoids overflow
84349         problems when regoff_t is the same width as size_t.
84350         All callers changed.
84351         (re_search_2_stub): Check for overflow when adding the
84352         sizes of the two strings.
84353         (re_search_stub): Check for overflow when adding START
84354         to RANGE; if it occurs, substitute the extreme value.
84355
84356 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84357
84358         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
84359
84360 2005-08-31  Jim Meyering  <jim@meyering.net>
84361
84362         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
84363         a pointer-to-const.
84364         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
84365         (register_state): Likewise.
84366         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
84367         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84368         (group_nodes_into_DFAstates): Likewise.
84369
84370 2005-08-31  Jim Meyering  <jim@meyering.net>
84371
84372         * check-module: Add a FIXME comment.
84373
84374 2005-08-31  Eric Blake  <ebb9@byu.net>
84375
84376         * modules/unistd-safer (Files): Add unistd--.h.
84377         * modules/stdio-safer (Files): Add stdio--.h.
84378
84379 2005-08-31  Derek Price  <derek@ximbiot.com>
84380
84381         * lib/getdelim.c (getdelim): Return EOF on EOF.
84382         Reported by Larry Jones <lawrence.jones@ugs.com>.
84383
84384 2005-08-31  Bruno Haible  <bruno@clisp.org>
84385
84386         Avoid unnecessary diffs in the generated lib/Makefile.am.
84387         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
84388         the generated files.
84389         (func_import): Don't set cmd.
84390
84391 2005-08-31  Bruno Haible  <bruno@clisp.org>
84392
84393         * lib/strstr.c: Include <stddef.h>, for NULL.
84394         * lib/strcasestr.c: Likewise.
84395         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84396
84397 2005-08-31  Bruno Haible  <bruno@clisp.org>
84398
84399         * gnulib-tool: New option --macro-prefix.
84400         (func_import): Use macro_prefix.
84401         (import): Handle option --macro-prefix.
84402
84403 2005-08-31  Bruno Haible  <bruno@clisp.org>
84404
84405         * gnulib-tool (import): Rename most ac_* variables to cached_*.
84406         Also use new variables cached_lgpl, cached_libtool.
84407
84408 2005-08-31  Bruno Haible  <bruno@clisp.org>
84409
84410         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
84411         always instantiating them.
84412
84413 2005-08-31  Bruno Haible  <bruno@clisp.org>
84414
84415         * gnulib-tool (func_import): Read the previous cached settings
84416         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
84417         earlier added by gnulib but are now dropped. Warn when a gnulib file
84418         overwrites a non-gnulib file.
84419
84420 2005-08-31  Bruno Haible  <bruno@clisp.org>
84421
84422         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
84423         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
84424         projects that don't keep autogenerated files in CVS. Put into
84425         actioncmd only the specified modules, not the transitive closure.
84426
84427 2005-08-31  Bruno Haible  <bruno@clisp.org>
84428
84429         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
84430         Create directories that shall be filled.
84431         (import): Don't look for gl_* macros in configure.ac. Recurse across
84432         all directories containing a gnulib-cache.m4 files, if meaningful.
84433
84434 2005-08-31  Bruno Haible  <bruno@clisp.org>
84435
84436         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
84437         (import): Set seen_libtool when we see gl_LIBTOOL.
84438
84439 2005-08-31  Bruno Haible  <bruno@clisp.org>
84440
84441         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
84442         declaration macro definitions from generated gnulib.m4.
84443
84444 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
84445
84446         * lib/iconvme.h: Add prototype for iconv_alloc.
84447
84448 2005-08-29  Simon Josefsson  <jas@extundo.com>
84449
84450         * lib/iconvme.c: Fix errno.
84451
84452 2005-08-29  Bruno Haible  <bruno@clisp.org>
84453
84454         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
84455         that it works when the directory contains spaces.
84456
84457 2005-08-29  Bruno Haible  <bruno@clisp.org>
84458
84459         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
84460
84461 2005-08-29  Bruno Haible  <bruno@clisp.org>
84462
84463         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
84464         Emit more advice.
84465
84466 2005-08-29  Bruno Haible  <bruno@clisp.org>
84467         and Stepan Kasal  <kasal@ucw.cz>
84468
84469         * check-module: If more parameters are given, check each of them
84470         separately; add more exceptions, as noted by Jim Meyering.
84471         (check_module): New procedure.
84472         (%exempt_header): Now contains all exceptions.
84473
84474 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
84475
84476         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
84477
84478 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84479
84480         * lib/iconvme.c: Split iconv_string into iconv_alloc.
84481
84482 2005-08-28  Bruno Haible  <bruno@clisp.org>
84483
84484         * m4/gnulib-tool.m4: New file.
84485
84486 2005-08-27  Jim Meyering  <jim@meyering.net>
84487
84488         * modules/unistd-safer (Files): Add pipe-safer.c.
84489         * modules/fcntl-safer (Files): Add creat-safer.c.
84490
84491 2005-08-27  Jim Meyering  <jim@meyering.net>
84492
84493         * m4/stdlib-safer.m4: New file.  From coreutils.
84494         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
84495         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
84496         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
84497         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
84498         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
84499
84500 2005-08-27  Jim Meyering  <jim@meyering.net>
84501
84502         * lib/fopen-safer.c: Merge minor changes from coreutils.
84503         * lib/dup-safer.c: Likewise.
84504         * lib/fd-safer.c: Likewise.
84505
84506         Merge from coreutils.
84507         * lib/stdio--.h: New file.
84508         * lib/stdlib--.h: New file.
84509         * lib/mkstemp-safer.c: New file.
84510
84511         GNU tar needs these.
84512         * lib/pipe-safer.c: New file.
84513         * lib/creat-safer.c: New file.
84514         * lib/fcntl--.h (creat): Define to creat_safer.
84515         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
84516         * lib/unistd--.h (pipe): Define to pipe_safer.
84517         * lib/unistd-safer.h: Declare pipe_safer.
84518
84519 2005-08-26  Simon Josefsson  <jas@extundo.com>
84520
84521         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
84522         Haible <bruno@clisp.org>.
84523
84524 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
84525
84526         * lib/regex_internal.h: Remove all references to
84527         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
84528         or better.
84529         (bitset_not, bitset_merge, bitset_not_merge):
84530         (bitset_mask, re_string_allocate, re_string_construct):
84531         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
84532         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
84533         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
84534         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
84535         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84536         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84537         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
84538         (re_acquire_state_context):
84539         Remove unnecessary forward decls.
84540         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
84541         Put __attribute at function definition,
84542         now that the function decl has been removed.
84543         * lib/regex_internal.c (re_string_peek_byte_case):
84544         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
84545         Likewise.
84546
84547 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
84548
84549         * m4/regex.m4: Add AC_PREREQ(2.50).
84550         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
84551
84552 2005-08-25  Simon Josefsson  <jas@extundo.com>
84553
84554         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
84555         __fsetlocking.
84556
84557 2005-08-25  Simon Josefsson  <jas@extundo.com>
84558
84559         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
84560         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
84561         GLIBC specific code.
84562
84563 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84564
84565         Make regex safe for g++.  This fixes one real bug (an "err"
84566         that should have been "*err").  g++ problem reported by
84567         Sam Steingold.
84568         * lib/regex_internal.h (re_calloc): New macro, consistent with
84569         re_malloc etc.  All callers of calloc changed to use re_calloc.
84570         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
84571         not int.  All callers changed.
84572         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
84573         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
84574         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
84575         (find_recover_state): Change "err" to "*err"; this fixes what
84576         appears to be a real bug.
84577         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
84578         versus int.
84579
84580 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84581
84582         * modules/regex (Depends-on): Add malloc, since the code
84583         assumes that !malloc(0) means failure.
84584
84585 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84586
84587         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
84588
84589         alloca modernization/simplification for regex.
84590         * lib/regex.c: Remove portability cruft for alloca.  This no longer
84591         needs to be at the start of the file, and can be moved into
84592         regex_internal.h and simplified.
84593         * lib/regex_internal.h: Include <alloca.h>.
84594         (__libc_use_alloca) [!defined _LIBC]: New macro.
84595         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
84596         now works outside glibc.
84597
84598 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84599
84600         * config/srclist.txt: Add glibc bugs 1241, 1245.
84601
84602 2005-08-25  Jim Meyering  <jim@meyering.net>
84603
84604         * lib/open-safer.c: Include <config.h>.
84605         Otherwise, we'd lose LARGEFILE support in any file using
84606         e.g. "fcntl--.h"
84607
84608 2005-08-25  Bruno Haible  <bruno@clisp.org>
84609
84610         * m4/minmax.m4: Require autoconf 2.52.
84611         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
84612         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
84613         alternatives of translit over the alphabet.
84614         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
84615
84616 2005-08-24  Simon Josefsson  <jas@extundo.com>
84617
84618         * tests/test-getpass.c: New file.
84619
84620 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84621
84622         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
84623         for GNU regex features.
84624
84625 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84626
84627         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
84628         * lib/regex.h (regerror): Likewise.
84629
84630         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
84631         requires this.  (The code never needed it.)
84632
84633         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
84634         All uses of recently-renamed identifiers changed to use the new,
84635         POSIX-compliant names.  The code will build and run just fine
84636         without these changes, but it's better to eat our own dog food
84637         and use the standard-conforming names.
84638
84639         * lib/regex.h: Fix a multitude of POSIX name space violations.
84640         These changes have an effect only for programs that define
84641         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
84642         do not change anything for programs compiled in the normal way.
84643         Also, there is no effect on the ABI.
84644
84645         (_REGEX_SOURCE): New macro.
84646         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
84647         defined and _GNU_SOURCE is not; this fixes a name space violation.
84648
84649         Rename the following macros to obey POSIX requirements.
84650         The old names are still visible as macros if _REGEX_SOURCE is defined.
84651         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
84652         RE_BACKSLASH_ESCAPE_IN_LISTS.
84653         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
84654         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
84655         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
84656         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
84657         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
84658         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
84659         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
84660         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
84661         (REG_INTERVALS): renamed from RE_INTERVALS.
84662         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
84663         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
84664         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
84665         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
84666         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
84667         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
84668         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
84669         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
84670         RE_UNMATCHED_RIGHT_PAREN_ORD.
84671         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
84672         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
84673         (REG_DEBUG): renamed from RE_DEBUG.
84674         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
84675         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
84676         unusual, since we can't clash with the POSIX REG_ICASE.
84677         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
84678         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
84679         (REG_NO_SUB): renamed from RE_NO_SUB.
84680         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
84681         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
84682         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
84683         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
84684         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
84685         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
84686         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
84687         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
84688         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
84689         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
84690         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
84691         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
84692         RE_SYNTAX_POSIX_MINIMAL_BASIC.
84693         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
84694         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
84695         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
84696         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
84697         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
84698         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
84699         (REG_FIXED): Renamed from REGS_FIXED.
84700         (REG_NREGS): Renamed from RE_NREGS.
84701
84702         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
84703         of other REG_* macros, since POSIX says the user is allowed to
84704         #undef these macros selectively.
84705
84706         (reg_errcode_t): Update comment stating what other tables need
84707         to be consistent.
84708
84709         Rename the following enum values to obey POSIX requirements.
84710         The old names are still visible as macros.
84711         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
84712         is not defined, since GNU is supposed to be a superset of POSIX as
84713         much as possible, and since we want reg_errcode_t to be a signed
84714         type for implementation consistency.
84715         (_REG_NOERROR): Renamed from REG_NOERROR.
84716         (_REG_NOMATCH): Renamed from REG_NOMATCH.
84717         (_REG_BADPAT): Renamed from REG_BADPAT.
84718         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
84719         (_REG_ECTYPE): Renamed from REG_ECTYPE.
84720         (_REG_EESCAPE): Renamed from REG_EESCAPE.
84721         (_REG_ESUBREG): Renamed from REG_ESUBREG.
84722         (_REG_EBRACK): Renamed from REG_EBRACK.
84723         (_REG_EPAREN): Renamed from REG_EPAREN.
84724         (_REG_EBRACE): Renamed from REG_EBRACE.
84725         (_REG_BADBR): Renamed from REG_BADBR.
84726         (_REG_ERANGE): Renamed from REG_ERANGE.
84727         (_REG_ESPACE): Renamed from REG_ESPACE.
84728         (_REG_BADRPT): Renamed from REG_BADRPT.
84729         (_REG_EEND): Renamed from REG_EEND.
84730         (_REG_ESIZE): Renamed from REG_ESIZE.
84731         (_REG_ERPAREN): Renamed from REG_ERPAREN.
84732         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
84733         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
84734         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
84735         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
84736
84737         (_REG_RE_NAME, _REG_RM_NAME): New macros.
84738         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
84739         changed.  But support the old name if the new one is not defined
84740         and if _REGEX_SOURCE.
84741
84742         Change the following member names in struct re_pattern_buffer.
84743         The old names are still supported if !_REGEX_SOURCE.
84744         The new names are always supported, regardless of _REGEX_SOURCE.
84745         (re_buffer): Renamed from buffer.
84746         (re_allocated): Renamed from allocated.
84747         (re_used): Renamed from used.
84748         (re_syntax): Renamed from syntax.
84749         (re_fastmap): Renamed from fastmap.
84750         (re_translate): Renamed from translate.
84751         (re_can_be_null): Renamed from can_be_null.
84752         (re_regs_allocated): Renamed from regs_allocated.
84753         (re_fastmap_accurate): Renamed from fastmap_accurate.
84754         (re_no_sub): Renamed from no_sub.
84755         (re_not_bol): Renamed from not_bol.
84756         (re_not_eol): Renamed from not_eol.
84757         (re_newline_anchor): Renamed from newline_anchor.
84758
84759         Change the following member names in struct re_registers.
84760         The old names are still supported if !_REGEX_SOURCE.
84761         The new names are always supported, regardless of _REGEX_SOURCE.
84762         (rm_num_regs): Renamed from num_regs.
84763         (rm_start): Renamed from start.
84764         (rm_end): Renamed from end.
84765
84766         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
84767         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
84768         Prepend __ to parameter names.
84769
84770         Undo yesterday's changes.
84771
84772 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84773
84774         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
84775         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
84776         lib/regex.c.
84777
84778 2005-08-24  Jim Meyering  <jim@meyering.net>
84779
84780         Sync from coreutils.
84781         * m4/fcntl-safer.m4: New file.
84782
84783         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
84784         and object files for this module.
84785
84786 2005-08-24  Jim Meyering  <jim@meyering.net>
84787
84788         Sync from coreutils.
84789         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
84790
84791 2005-08-24  Jim Meyering  <jim@meyering.net>
84792
84793         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
84794         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
84795
84796 2005-08-24  Jim Meyering  <jim@meyering.net>
84797
84798         * modules/fcntl-safer: New module.
84799         * modules/fts (Depends-on): Add fcntl-safer.
84800         * MODULES.html.sh (File descriptor based Input/Output):
84801         Add fcntl-safer.
84802
84803 2005-08-24  Bruno Haible  <bruno@clisp.org>
84804
84805         Support for unit test modules.
84806         * modules/README: Mention tests modules.
84807         * modules/TEMPLATE-TESTS: New file.
84808         * gnulib-tool: New options --extract-tests-module, --with-tests and
84809         --tests-base (unused for the moment).
84810         (testsbase, inctests): New variables.
84811         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
84812         (func_verify_module): Exclude TEMPLATE-TESTS.
84813         (func_verify_nontests_module, func_verify_tests_module): New functions.
84814         (func_get_dependencies): Add implicit dependency for tests modules.
84815         (func_get_tests_module): New function.
84816         (func_modules_transitive_closure): When --with-tests was specified,
84817         include the unit tests as well, unless explicitly avoided.
84818         (func_emit_lib_Makefile_am): Ignore the tests modules here.
84819         (func_emit_tests_Makefile_am): New function.
84820         (func_create_testdir): When --with-tests was specified, emit a
84821         tests/ directory.
84822         * MODULES.html.sh (Future developments): Update.
84823
84824 2005-08-24  Bruno Haible  <bruno@clisp.org>
84825
84826         * modules/tls-tests: New file.
84827         * tests/test-tls.c: New file, from GNU gettext.
84828
84829 2005-08-24  Bruno Haible  <bruno@clisp.org>
84830
84831         * modules/lock-tests: New file.
84832         * tests/test-lock.c: New file, from GNU gettext.
84833
84834 2005-08-24  Bruno Haible  <bruno@clisp.org>
84835
84836         * lib/lock.h: Add multiple inclusion guard.
84837         * lib/tls.h: Add multiple inclusion guard.
84838
84839 2005-08-24  Bruno Haible  <bruno@clisp.org>
84840
84841         * gnulib-tool: Add support for the --aux-dir option to
84842         --create-testdir, --create-megatestdir, --test, --megatest.
84843         (func_create_testdir, func_create_megatestdir): Optionally emit a
84844         AC_CONFIG_AUX_DIR directive.
84845         (create-testdir, create-megatestdir, test, megatest): Provide a
84846         default value for $auxdir.
84847
84848 2005-08-24  Bruno Haible  <bruno@clisp.org>
84849
84850         * gnulib-tool (import): Use compound statement instead of subshell
84851         where possible.
84852
84853 2005-08-24  Bruno Haible  <bruno@clisp.org>
84854
84855         * gnulib-tool (import): Change --aux-dir default to "build-aux".
84856
84857 2005-08-24  Bruno Haible  <bruno@clisp.org>
84858
84859         * gnulib-tool (func_version): Update.
84860
84861 2005-08-24  Bruno Haible  <bruno@clisp.org>
84862
84863         * gnulib-tool (func_import, func_create_testdir,
84864         func_create_megatestdir): Quote all autoconf macro arguments.
84865
84866 2005-08-24  Bruno Haible  <bruno@clisp.org>
84867
84868         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
84869         option --force, because --force causes the aclocal.m4 of each
84870         subdirectory to be newer than the corresponding config.h.in.
84871
84872 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84873
84874         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
84875         All contents moved to gl_REGEX.
84876         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
84877         assume that it does.
84878
84879 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84880
84881         * lib/regex.h (REG_NOSYS)
84882         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
84883         Define, since POSIX requires it as of 2001.
84884         (_REG_ENOSYS)
84885         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
84886         New private symbol, used to keep the enum signed in all cases.
84887         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
84888         Youngman in
84889         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
84890
84891         * lib/regex_internal.c (re_string_skip_chars, register_state):
84892         (calc_state_hash):
84893         Remove forward decls; no longer needed now that we use prototypes.
84894         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
84895         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
84896         (clean_state_log_if_needed): Likewise.
84897
84898 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84899
84900         * config/srclist.txt: Add glibc bugs 1231-1233.
84901
84902 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84903
84904         Fix problems reported by Sam Steingold in
84905         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
84906         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
84907         assumed that reg_errcode_t is a signed type, which is not
84908         necessarily true if _XOPEN_SOURCE is not defined.
84909         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
84910         since some compilers warn about it otherwise.
84911
84912 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84913
84914         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
84915         (init_word_char, create_initial_state, duplicate_node_closure):
84916         (fetch_token, peek_token_bracket, build_range_exp):
84917         (build_collating_symbol): Remove forward decls; no longer needed
84918         now that we use prototypes.
84919
84920         * lib/regcomp.c:
84921         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
84922         (re_compile_fastmap_iter, regcomp, regerror, regfree):
84923         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
84924         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
84925         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
84926         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
84927         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
84928         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
84929         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
84930         (build_range_exp, build_collating_symbol, parse_bracket_exp):
84931         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
84932         (build_charclass, build_charclass_op, fetch_number, create_tree):
84933         (create_token_tree, mark_opt_subexp, duplicate_tree):
84934         Use prototypes rather than old-style definitions.
84935
84936         * lib/regex_internal.c:
84937         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
84938         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
84939         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84940         (re_string_reconstruct, re_string_peek_byte_case):
84941         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
84942         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84943         (re_node_set_init_copy, re_node_set_add_intersect):
84944         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84945         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84946         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84947         (re_acquire_state, re_acquire_state_context, register_state):
84948         (create_ci_newstate, create_cd_newstate, free_state):
84949         Likewise.
84950         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
84951         re_search_2):
84952         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
84953         (re_search_internal, prune_impossible_nodes):
84954         (acquire_init_state_context, check_matching, static):
84955         (check_halt_node_context, check_halt_state_context, proceed_next_node):
84956         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
84957         (update_regs, sift_states_backward, build_sifted_states):
84958         (clean_state_log_if_needed, merge_state_array):
84959         (update_cur_sifted_state, add_epsilon_src_nodes):
84960         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
84961         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
84962         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
84963         (find_recover_state, check_subexp_matching_top, transit_state_mb):
84964         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
84965         (check_arrival, check_arrival_add_next_nodes):
84966         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84967         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84968         (check_node_accept_bytes, check_node_accept, extend_buffers):
84969         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
84970         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
84971         (sift_ctx_init):
84972         Likewise.
84973
84974         * lib/regex_internal.h:
84975         (re_string_allocate, re_string_construct, re_string_reconstruct):
84976         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
84977         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
84978         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
84979         (re_string_context_at, re_string_peek_byte_case):
84980         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
84981         is defined, since we now use prototypes always.
84982
84983         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
84984         C89 or better.  All uses removed.
84985
84986 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84987
84988         * config/srclist.txt: Add glibc bugs 1220-1227.
84989
84990 2005-08-20  Jim Meyering  <jim@meyering.net>
84991
84992         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
84993         of unused local, dfa.
84994
84995 2005-08-20  Bruno Haible  <bruno@clisp.org>
84996
84997         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
84998
84999 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85000
85001         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
85002         (re_node_set_insert_last, re_dfa_add_node):
85003         Rename local variables to avoid GCC shadowing warnings.
85004
85005 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85006
85007         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
85008         [defined lint]: Suppress bogus uninitialized-variable warnings.
85009
85010         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
85011         and let the caller return REG_ESPACE if out of space.  This
85012         removes an uninitialied-variable warning with GCC 4.0.1, and also
85013         avoids taking the address of a local variable.  All callers
85014         changed.
85015
85016 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85017
85018         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
85019         $LIBCSRC/posix/regexec.c.
85020         Add glibc bug 1217 for regcomp.c.
85021
85022 2005-08-19  Jim Meyering  <jim@meyering.net>
85023
85024         * lib/regexec.c (proceed_next_node): Redo local variables to
85025         avoid GCC shadowing warnings.
85026
85027 2005-08-18  Bruno Haible  <bruno@clisp.org>
85028
85029         * lib/strstr.c (strstr): Fix return value in multibyte case.
85030         * lib/strcasestr.c (strcasestr): Likewise.
85031
85032 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85033
85034         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
85035
85036 2005-08-17  Jim Meyering  <jim@meyering.net>
85037
85038         Make the %s format (seconds since the epoch) work for a negative
85039         number and when used with a zero-padded field width, e.g. %015s.
85040
85041         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
85042         label so that it precedes the code to set `digits'.  Otherwise,
85043         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
85044         print `00-22'.  Now, it prints `-0022', as it should.
85045
85046 2005-08-17  Bruno Haible  <bruno@clisp.org>
85047
85048         * modules/strstr (Files): Add m4/mbrtowc.m4.
85049         (Depends-on): Add mbuiter.
85050
85051 2005-08-17  Bruno Haible  <bruno@clisp.org>
85052
85053         * modules/strcasestr: New file.
85054         * MODULES.html.sh (String handling, based on ANSI C 89): Add
85055         strcasestr.
85056
85057 2005-08-17  Bruno Haible  <bruno@clisp.org>
85058
85059         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
85060
85061 2005-08-17  Bruno Haible  <bruno@clisp.org>
85062
85063         * modules/mbuiter: New file.
85064         * MODULES.html.sh (Extended multibyte and wide character utilities):
85065         Add mbuiter.
85066
85067 2005-08-17  Bruno Haible  <bruno@clisp.org>
85068
85069         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
85070         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
85071
85072 2005-08-17  Bruno Haible  <bruno@clisp.org>
85073
85074         * m4/strcasestr.m4: New file.
85075
85076 2005-08-17  Bruno Haible  <bruno@clisp.org>
85077
85078         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
85079         * lib/strstr.c: Completely rewritten, with multibyte locale support.
85080
85081 2005-08-17  Bruno Haible  <bruno@clisp.org>
85082
85083         * lib/strcasestr.h: New file.
85084         * lib/strcasestr.c: New file.
85085
85086 2005-08-17  Bruno Haible  <bruno@clisp.org>
85087
85088         * lib/strcasecmp.c: Use mbuiter.h.
85089
85090 2005-08-17  Bruno Haible  <bruno@clisp.org>
85091
85092         * lib/mbuiter.h: New file.
85093
85094 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
85095
85096         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
85097         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
85098         and gl_GETOPT are both invoked via different paths (as happens
85099         with GNU tar CVS because it uses both argp and getopt), the former
85100         wins.
85101
85102 2005-08-16  Bruno Haible  <bruno@clisp.org>
85103
85104         * modules/tls: New file.
85105         * MODULES.html.sh (Multithreading): Add tls.
85106
85107 2005-08-16  Bruno Haible  <bruno@clisp.org>
85108
85109         * modules/strnlen1: New file.
85110         * MODULES.html.sh (String handling): Add strnlen1.
85111
85112 2005-08-16  Bruno Haible  <bruno@clisp.org>
85113
85114         * modules/strcase (Files): Add m4/mbrtowc.m4.
85115         (Depends-on): Add strnlen1, mbchar.
85116
85117 2005-08-16  Bruno Haible  <bruno@clisp.org>
85118
85119         * modules/mbiter: New file.
85120         * MODULES.html.sh (Extended multibyte and wide character utilities):
85121         Add mbiter.
85122
85123 2005-08-16  Bruno Haible  <bruno@clisp.org>
85124
85125         * modules/mbfile: New file.
85126         * MODULES.html.sh (Extended multibyte and wide character utilities):
85127         Add mbfile.
85128
85129 2005-08-16  Bruno Haible  <bruno@clisp.org>
85130
85131         * modules/mbchar: New file.
85132         * MODULES.html.sh (Extended multibyte and wide character utilities):
85133         New section.
85134
85135 2005-08-16  Bruno Haible  <bruno@clisp.org>
85136
85137         * m4/tls.m4: New file, from GNU gettext.
85138
85139 2005-08-16  Bruno Haible  <bruno@clisp.org>
85140
85141         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
85142         always.
85143         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
85144
85145 2005-08-16  Bruno Haible  <bruno@clisp.org>
85146
85147         * m4/mbiter.m4: New file.
85148
85149 2005-08-16  Bruno Haible  <bruno@clisp.org>
85150
85151         * m4/mbfile.m4: New file.
85152
85153 2005-08-16  Bruno Haible  <bruno@clisp.org>
85154
85155         * m4/mbchar.m4: New file.
85156
85157 2005-08-16  Bruno Haible  <bruno@clisp.org>
85158
85159         * lib/tls.h: New file, from GNU gettext.
85160         * lib/tls.c: New file, from GNU gettext.
85161
85162 2005-08-16  Bruno Haible  <bruno@clisp.org>
85163
85164         * lib/strnlen1.h: New file.
85165         * lib/strnlen1.c: New file.
85166
85167 2005-08-16  Bruno Haible  <bruno@clisp.org>
85168
85169         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
85170         (mbi_init): Update.
85171         (mbi_avail, mbi_advance): Let the iteration end before the terminating
85172         NUL byte, not after it.
85173
85174 2005-08-16  Bruno Haible  <bruno@clisp.org>
85175
85176         * lib/strcase.h (strcasecmp): Add note in comments.
85177         * lib/strncasecmp.c: Use code from strcasecmp.c.
85178         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
85179         (strcasecmp): Work correctly in multibyte locales.
85180
85181 2005-08-16  Bruno Haible  <bruno@clisp.org>
85182
85183         * lib/mbiter.h: New file.
85184
85185 2005-08-16  Bruno Haible  <bruno@clisp.org>
85186
85187         * lib/mbfile.h: New file.
85188
85189 2005-08-16  Bruno Haible  <bruno@clisp.org>
85190
85191         * lib/mbchar.h: New file.
85192         * lib/mbchar.c: New file.
85193
85194 2005-08-16  Bruno Haible  <bruno@clisp.org>
85195
85196         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
85197         the valid ones. Makes the comparison operations transitive:
85198         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
85199         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
85200
85201 2005-08-15  Simon Josefsson  <jas@extundo.com>
85202
85203         * modules/ssize_t (License): Change to 'unlimited'.
85204
85205         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
85206
85207 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
85208
85209         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
85210         Add comments for each pending glibc patch.
85211
85212 2005-08-15  Bruno Haible  <bruno@clisp.org>
85213
85214         * lib/regex.h (__restrict_arr): Don't define to __restrict if
85215         __cplusplus is defined.
85216
85217 2005-08-14  Jim Meyering  <jim@meyering.net>
85218
85219         Sync from coreutils.
85220
85221         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
85222         Use the hash-table-based cycle-detection code not just when
85223         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
85224         Reported by James Youngman in
85225         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
85226         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
85227         FTS_TIGHT_CYCLE_CHECK.
85228         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
85229         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
85230         once again.
85231         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
85232         * lib/fts.c (fd_safer): Remove decl.
85233         Include fcntl--.h rather than unistd-safer.h
85234         (fts_safe_changedir): Don't call fd_safer; no longer needed
85235         now that we include fcntl--.h.
85236
85237 2005-08-12  Simon Josefsson  <jas@extundo.com>
85238
85239         * modules/getndelim2: Use ssize_t module.
85240         * modules/getnline: Likewise.
85241         * modules/safe-read: Likewise.
85242         * modules/xreadlink: Likewise.
85243
85244         * modules/ssize_t: New file.
85245
85246 2005-08-12  Simon Josefsson  <jas@extundo.com>
85247
85248         * m4/readline.m4: Look for termcap, curses or ncurses if required.
85249
85250 2005-08-12  Simon Josefsson  <jas@extundo.com>
85251
85252         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85253         ssize_t.
85254
85255 2005-08-12  Simon Josefsson  <jas@extundo.com>
85256
85257         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
85258         readline, getdelim and check_version.
85259         (Support for systems lacking ISO C 99: Sizes of integer types):
85260         Add size_max.
85261
85262 2005-08-12  Bruno Haible  <bruno@clisp.org>
85263
85264         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
85265
85266 2005-08-11  Simon Josefsson  <jas@extundo.com>
85267
85268         * modules/readline: New file.
85269
85270         * modules/strnlen (Files): Add strnlen.h.
85271
85272 2005-08-11  Simon Josefsson  <jas@extundo.com>
85273
85274         * m4/readline.m4: New file.
85275
85276 2005-08-11  Simon Josefsson  <jas@extundo.com>
85277
85278         * lib/readline.h, readline.c: New file.
85279
85280 2005-08-11  Simon Josefsson  <jas@extundo.com>
85281
85282         * doc/gnulib.texi (Initial import, Finishing touches): Mention
85283         gl_AVOID.
85284
85285 2005-08-11  Bruno Haible  <bruno@clisp.org>
85286
85287         * lib/strnlen.h (strnlen): Change parameter name to match comment.
85288
85289 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
85290
85291         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
85292
85293 2005-08-10  Simon Josefsson  <jas@extundo.com>
85294
85295         * tests/test-iconvme.c: New file.
85296
85297 2005-08-10  Simon Josefsson  <jas@extundo.com>
85298
85299         * m4/strnlen.m4: New file.
85300
85301         * m4/strndup.m4: Don't check for strnlen declaration, done in
85302         strnlen.m4.
85303
85304 2005-08-10  Simon Josefsson  <jas@extundo.com>
85305
85306         * lib/strndup.c: Use strnlen.h.
85307
85308         * lib/strnlen.h: New file.
85309
85310 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85311
85312         * README: Typos.
85313
85314 2005-08-02  Simon Josefsson  <jas@extundo.com>
85315
85316         * modules/readline: New file.
85317
85318 2005-08-02  Simon Josefsson  <jas@extundo.com>
85319
85320         * modules/getdelim: New file.
85321
85322         * modules/getline: Rewrite, don't use getndelim2.
85323
85324 2005-08-02  Simon Josefsson  <jas@extundo.com>
85325
85326         * m4/getline.m4: Separate out getdelim stuff into separate module.
85327
85328         * m4/getdelim.m4: New file.
85329
85330 2005-08-02  Simon Josefsson  <jas@extundo.com>
85331
85332         * lib/getline.h, getline.c: Rewrite.
85333
85334         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
85335
85336 2005-07-31  Bruno Haible  <bruno@clisp.org>
85337
85338         * lib/lock.h (gl_lock_initializer): New macro.
85339         (gl_lock_define_initialized): Use it.
85340         (gl_rwlock_initializer): New macro.
85341         (gl_rwlock_define_initialized): Use it.
85342         (gl_recursive_lock_initializer): New macro.
85343         (gl_recursive_lock_define_initialized): Use it.
85344
85345 2005-07-30  Karl Berry  <karl@gnu.org>
85346
85347         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
85348         Report from Ben Pfaff, regarding getopt.
85349
85350 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
85351
85352         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
85353         normal way.
85354         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
85355         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
85356         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
85357         (gl_GETOPT): Use the new macros.  Most of the implementation
85358         is moved to the new macros.  This is for programs like Emacs
85359         that don't want all the functionality of gl_GETOPT.
85360
85361 2005-07-26  Bruno Haible  <bruno@clisp.org>
85362
85363         * m4/lock.m4: Update from GNU gettext.
85364
85365 2005-07-26  Bruno Haible  <bruno@clisp.org>
85366
85367         * lib/lock.h: Update from GNU gettext.
85368         * lib/lock.c: Update from GNU gettext.
85369
85370 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
85371
85372         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
85373         obsolescent AC_TRY_RUN.  Include the default includes files, for
85374         'exit'.
85375
85376 2005-07-24  Bruno Haible  <bruno@clisp.org>
85377
85378         * modules/visibility: New file.
85379         * MODULES.html.sh (Misc): Add visibility.
85380
85381 2005-07-24  Bruno Haible  <bruno@clisp.org>
85382
85383         * m4/visibility.m4: New file.
85384
85385 2005-07-24  Bruno Haible  <bruno@clisp.org>
85386
85387         * doc/visibility.texi: New file.
85388
85389 2005-07-22  Bruno Haible  <bruno@clisp.org>
85390
85391         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
85392         $(ALLOCA_H), redundant through BUILT_SOURCES.
85393         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
85394         redundant through BUILT_SOURCES.
85395         * modules/byteswap (Makefile.am): Remove explicit dependency on
85396         $(BYTESWAP_H), redundant through BUILT_SOURCES.
85397         * modules/fnmatch (Makefile.am): Remove explicit dependency on
85398         $(FNMATCH_H), redundant through BUILT_SOURCES.
85399         * modules/getopt (Makefile.am): Remove explicit dependency on
85400         $(GETOPT_H), redundant through BUILT_SOURCES.
85401         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
85402         redundant through BUILT_SOURCES.
85403         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
85404         redundant through BUILT_SOURCES.
85405         * modules/stdbool (Makefile.am): Remove explicit dependency on
85406         $(STDBOOL_H), redundant through BUILT_SOURCES.
85407         * modules/stdint (Makefile.am): Remove explicit dependency on
85408         $(STDINT_H), redundant through BUILT_SOURCES.
85409         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
85410         Remove explicit dependency on $(SYSEXITS_H).
85411         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
85412
85413 2005-07-18  Simon Josefsson  <jas@extundo.com>
85414
85415         * lib/check-version.c (check_version): Accept identical versions too.
85416
85417 2005-07-18  Bruno Haible  <bruno@clisp.org>
85418
85419         * modules/lock: New file.
85420         * MODULES.html.sh (Multithreading): New section.
85421
85422 2005-07-18  Bruno Haible  <bruno@clisp.org>
85423
85424         * m4/lock.m4: New file, from GNU gettext.
85425
85426 2005-07-18  Bruno Haible  <bruno@clisp.org>
85427
85428         * lib/lock.h: New file, from GNU gettext.
85429         * lib/lock.c: New file, from GNU gettext.
85430
85431 2005-07-18  Bruno Haible  <bruno@clisp.org>
85432
85433         * lib/lock.h (gl_once_t): New type.
85434         (gl_once_define, gl_once): New macros.
85435         * lib/lock.c (fresh_once): New variable.
85436         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
85437         functions.
85438
85439 2005-07-16  Simon Josefsson  <jas@extundo.com>
85440
85441         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
85442         workaround, suggested by Bruno.
85443
85444 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85445
85446         * modules/xalloc (Depends-on): Add xalloc-die.
85447         * modules/xvasprintf (Depends-on): Add xalloc-die.
85448
85449 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85450
85451         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
85452         with a minor change.
85453
85454 2005-07-15  Bruno Haible  <bruno@clisp.org>
85455
85456         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
85457         When using lib/poll.c, define poll as rpl_poll.
85458
85459 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
85460
85461         * modules/argp (Depends-on): Remove unlocked-io.
85462
85463 2005-07-14  Derek Price  <derek@ximbiot.com>
85464
85465         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
85466         for glob symlink bug.
85467
85468 2005-07-14  Bruno Haible  <bruno@clisp.org>
85469
85470         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
85471         Instead, test for *_unlocked function declarations directly.
85472
85473 2005-07-11  Simon Josefsson  <jas@extundo.com>
85474
85475         * modules/size_max: New file.
85476
85477         * modules/xsize: Depend on size_max module for size_max.m4.
85478
85479 2005-07-11  Simon Josefsson  <jas@extundo.com>
85480
85481         * lib/size_max.h: New file.
85482
85483 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
85484
85485         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
85486         copyright symbol and the year.
85487         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
85488         (version_etc_va): Use parameterized copyright notice.
85489         Reword to conform to the current GNU coding standards.
85490
85491 2005-07-11  Karl Berry  <karl@gnu.org>
85492
85493         * doc/gnulib.texi (Quoting): new node.
85494         (Initial import): more info, from Patrice.
85495
85496 2005-07-11  Bruno Haible  <bruno@clisp.org>
85497
85498         * gnulib-tool (func_usage): Document option --avoid.
85499         (Command line options): Handle --avoid.
85500         (func_acceptable): New function.
85501         (func_modules_transitive_closure): Use it.
85502
85503 2005-07-11  Bruno Haible  <bruno@clisp.org>
85504
85505         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
85506         Reported by Jim Meyering.
85507
85508 2005-07-10  Bruno Haible  <bruno@clisp.org>
85509
85510         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
85511         Needed when size_t is smaller than 'unsigned int'.
85512         Reported by Paul Eggert.
85513
85514 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85515
85516         * modules/argp (Depends-on): Add unlocked-io
85517
85518 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85519
85520         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
85521         block of defines.
85522
85523 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
85524
85525         * config/srclist.txt: Comment out regcomp.c, since we have a porting
85526         fix now.
85527
85528 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
85529         and Paul Eggert  <eggert@cs.ucla.edu>
85530
85531         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
85532         in wint_t, not wchar_t.  Remove now-unnecessary cast.
85533
85534 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85535
85536         * modules/regex (Files): Add lib/regex_internal.c,
85537         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
85538         (Depends-on): Add extensions.
85539         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
85540
85541 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85542
85543         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
85544         pathconf.
85545         * m4/same.m4 (gl_SAME): Likewise.
85546         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
85547
85548         * m4/regex.m4: Adjust to new libc regex implementation.
85549         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
85550         all the .c and .h parts of (the new) regex.
85551         Quote the m4 stuff better.
85552         Check for RE_ICASE bug of old gnulib.
85553         Check for REG_STARTEND of recent libc.
85554         Rename local variables from jm_* to gl_*.
85555         Quote operand of "test -f".
85556         Say "recent enough" version of libc, not "version 2".
85557         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
85558         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
85559         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
85560         Remove check for btowc, isascii.
85561         Require AM_LANGINFO_CODESET.
85562
85563 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85564
85565         * lib/regex.c, regex.h: Sync from libc.
85566         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
85567         * lib/regexec.c:
85568         New files, synced from libc, except that regex_internal.h
85569         currently has a small porting fix.
85570
85571 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85572
85573         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
85574         regex_internal.c, regexec.c.
85575         Add regex_internal.h too, but as a comment, since the libc version
85576         is currently broken in gnulib mode.
85577
85578 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
85579
85580         Support programs like Emacs that use gnulib but not gettext.
85581         * MODULES.html.sh (Internationalization functions): Add gettext-h.
85582         * modules/gettext-h: New file.
85583         * modules/gettext (Files): Remove lib/gettext.h.
85584         (Depends-on): Add gettext-h.
85585         (Makefile.am): Remove lib_SOURCES.
85586         * modules/argmatch, modules/c-stack, modules/closeout:
85587         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
85588         * modules/execute, modules/file-type, modules/getaddrinfo:
85589         * modules/getopt, modules/human, modules/javacomp:
85590         * modules/javaexec, modules/mkdir-p, modules/obstack:
85591         * modules/openat, modules/pagealign_alloc, modules/pipe:
85592         * modules/quotearg, modules/regex, modules/rpmatch:
85593         * modules/unicodeio, modules/userspec, modules/version-etc:
85594         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
85595         * modules/xsetenv:
85596         Depend on gettext-h, not gettext.
85597
85598 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
85599
85600         * gnulib-tool (func_import): Add support for 'public domain' license.
85601         * modules/alloca, modules/atexit, modules/memmove:
85602         Now public domain, not GPL.
85603         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
85604         * modules/realloc, modules/strerror, modules/strtod:
85605         Now LGPL, not GPL.
85606
85607 2005-07-05  Bruno Haible  <bruno@clisp.org>
85608
85609         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
85610         autoconf CVS. Needed for mingw.
85611
85612 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85613
85614         Remove the dependency of the strftime module on the tzset module.
85615         * modules/strftime (Depends-on): Remove dependency on tzset.
85616
85617 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85618
85619         Remove the dependency of the strftime module on the tzset module.
85620         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
85621         gl_FUNC_TZSET_CLOBBER.
85622
85623 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85624
85625         Remove the dependency of the strftime module on the tzset module.
85626         * lib/strftime.c (my_strftime)
85627         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
85628         Copy the input structure, to work around some of the bug with
85629         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
85630         Solaris releases, you should also use the tzset module, but we won't
85631         require it as a dependency any more since we don't want LGPLed code
85632         to depend on GPLed code.
85633
85634 2005-07-02  Jim Meyering  <jim@meyering.net>
85635
85636         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
85637         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
85638         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
85639         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
85640
85641 2005-07-02  Jim Meyering  <jim@meyering.net>
85642
85643         * lib/backupfile.c (backup_args): Change a `0' to NULL.
85644
85645 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
85646
85647         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
85648         declares only 'struct timespec;' (!).
85649
85650 2005-07-01  Jim Meyering  <jim@meyering.net>
85651
85652         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
85653         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
85654         * lib/save-cwd.c, tempname.c:
85655         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85656         and don't include <sys/file.h>).
85657
85658 2005-06-29  Jim Meyering  <jim@meyering.net>
85659
85660         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
85661         type name.  Use the variable name instead.
85662         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
85663         Likewise.
85664
85665 2005-06-28  Simon Josefsson  <jas@extundo.com>
85666
85667         * modules/check-version (Files): Add check-version.m4.
85668
85669 2005-06-28  Simon Josefsson  <jas@extundo.com>
85670
85671         * m4/check-version.m4: New file, suggested by Jim Meyering
85672         <jim@meyering.net>.
85673
85674 2005-06-28  Simon Josefsson  <jas@extundo.com>
85675
85676         * lib/check-version.h, lib/check-version.c: New files.
85677
85678 2005-06-28  Simon Josefsson  <jas@extundo.com>
85679
85680         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
85681         collision with global variable.  Better indentation.  Don't
85682         increment buffer pointer beyond buffer end.  Based on comments
85683         from Paul Eggert <eggert@cs.ucla.edu>.
85684
85685         * lib/base64.h: Indent.
85686
85687 2005-06-28  Simon Josefsson  <jas@extundo.com>
85688
85689         * doc/gnulib.texi (Library version handling): New section.
85690
85691 2005-06-28  Jim Meyering  <jim@meyering.net>
85692
85693         * check-module (find_included_lib_files): Hard-code another
85694         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
85695         but modules/fts-lgpl (correctly) does not list those files.
85696
85697         * modules/canonicalize (Files): Add lib/pathmax.h.
85698
85699 2005-06-25  Simon Josefsson  <jas@extundo.com>
85700
85701         * modules/check-version: New file.
85702
85703 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
85704
85705         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
85706         initializer of struct addrinfo, as an indication that we don't
85707         care how many members the structure has.
85708
85709 2005-06-24  Derek Price  <derek@ximbiot.com>
85710         and Bruno Haible  <bruno@clisp.org>
85711
85712         Remove stat module & update lstat.
85713         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
85714         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85715         * m4/stat.m4: Remove this file.
85716
85717 2005-06-24  Derek Price  <derek@ximbiot.com>
85718         and Bruno Haible  <bruno@clisp.org>
85719
85720         Remove stat module & update lstat.
85721         * lib/stat.c: Remove this file...
85722         (slash_aware_lstat): ...moving this content and its support...
85723         * lib/lstat.c (rpl_lstat): ...into here.
85724         * lib/lstat.h: New file.
85725
85726 2005-06-24  Derek Price  <derek@ximbiot.com>
85727         and Bruno Haible  <bruno@clisp.org>
85728
85729         Remove stat module & update lstat.
85730         * config/srclist.txt (libc sources): Remove stat.
85731
85732 2005-06-24  Derek Price  <derek@ximbiot.com>
85733         and Bruno Haible  <bruno@clisp.org>
85734
85735         Remove stat module & update lstat.
85736         * MODULES.html.sh (stat): Remove.
85737         * MODULES.html: Regenerated.
85738         * modules/lstat (Description): Correct function name.
85739         (Files): Add "lstat.h".
85740         (Depends-on): Remove stat, add xalloc, stat-macros.
85741         * modules/stat: Remove this file.
85742         (Include): Add "lstat.h", remove <sys/stat.h>.
85743
85744 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
85745
85746         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
85747         (ranged_convert): Don't save conversion in a temporary struct.
85748         This causes a warning with GCC 4.0.0, and anyway in the typical
85749         case it's not worth the extra 100 bytes or so of code.
85750         (ranged_convert, __mktime_internal): When calling a function via a
85751         pointer P, use P () rather than (*P) (), as we now assume C89 or
85752         better.
85753
85754 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85755
85756         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
85757         "who -r" failed to give output.  Problem reported by Tim Waugh.
85758
85759         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
85760         (xcalloc): Use it to avoid needless tests.
85761         Problem reported by Jim Meyering.
85762
85763 2005-06-20  Derek Price  <derek@ximbiot.com>
85764
85765         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
85766         unnecessary for Autoconfs > 2.59c.
85767
85768 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85769
85770         * lib/argp.h (__option_is_short): Check upper limit of
85771         __key. Isprint() requires its argument to have the value
85772         of an unsigned char or EOF.
85773
85774 2005-06-16  Jim Meyering  <jim@meyering.net>
85775
85776         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
85777         when either N or S is zero.
85778
85779 2005-06-16  Derek Price  <derek@ximbiot.com>
85780
85781         * m4/bison.m4: Declare YACC & YFLAGS precious.
85782
85783 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
85784
85785         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
85786         multibyte string or pattern, fall back on unibyte matching.
85787         Problem reported by James Youngman.
85788
85789 2005-06-08  Bruno Haible  <bruno@clisp.org>
85790
85791         * modules/csharpcomp: New file.
85792         * MODULES.html.sh (C#): Add csharpcomp.
85793
85794 2005-06-08  Bruno Haible  <bruno@clisp.org>
85795
85796         * m4/csharpcomp.m4: New file, from GNU gettext.
85797
85798 2005-06-08  Bruno Haible  <bruno@clisp.org>
85799
85800         * lib/csharpcomp.h: New file, from GNU gettext.
85801         * lib/csharpcomp.c: New file, from GNU gettext.
85802         * lib/csharpcomp.sh.in: New file, from GNU gettext.
85803
85804 2005-06-08  Bruno Haible  <bruno@clisp.org>
85805
85806         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
85807         warning on mingw.
85808
85809 2005-06-07  Derek Price  <derek@ximbiot.com>
85810
85811         Sync from CVS.
85812         * lib/glob_.h: Indent nested #ifdef.
85813
85814 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85815
85816         Sync from coreutils.
85817         Use "file name" when talking about file names, instead of "filename"
85818         or "path", as per the GNU coding standards.
85819         * lib/mkdir-p.c: Renamed from makepath.c.
85820         (make_dir_parents): Renamed from make_path.  All callers changed.
85821         * lib/mkdir-p.h: Likewise.  All includers changed.
85822         * lib/filenamecat.c: Renamed from path-concat.c.
85823         (file_name_concat): Renamed from path_concat.  All callers changed.
85824         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
85825         * lib/filenamecat.h: Likewise.  All includers changed.
85826         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
85827         in comments or local variable names.
85828         * lib/basename.c: Likewise.
85829         * lib/canonicalize.c, canonicalize.h: Likewise.
85830         * lib/dirname.c, dirname.h: Likewise.
85831         * lib/euidaccess.c: Likewise.
85832         * lib/exclude.c: Likewise
85833         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
85834         * lib/fsusage.c, fsuage.h: Likewise.
85835         * lib/fts.c, fts_.h: Likewise.
85836         * lib/getcwd.c: Likewise.
85837         * lib/getloadavg.c: Likewise.
85838         * lib/mkstemp.c: Likewise.
85839         * lib/mountlist.c, mountlist.h: Likewise.
85840         * lib/openat.c, openat.h: Likewise.
85841         * lib/readlink-stub.c: Likewise.
85842         * lib/readutmp.c, readutmp.h: Likewise.
85843         * lib/rename.c: Likewise.
85844         * lib/rmdir.c: Likewise.
85845         * lib/same.c: Likewise.
85846         * lib/savedir.c: Likewise.
85847         * lib/stripslash.c: Likewise.
85848         * lib/tempname.c: Likewise.
85849         * lib/xreadlink.c: Likewise.
85850         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
85851         All uses changed.
85852         * lib/exclude.h: Likewise.
85853
85854         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
85855         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85856         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
85857         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85858         * lib/pathmax.h: Include <limits.h> unconditionally, since other
85859         files have been getting away with it for years (MORE/BSD 4.3
85860         is extinct now).
85861         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
85862         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85863
85864         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
85865         Define to 256, not 255, as per modern POSIX.
85866
85867 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85868
85869         Sync from coreutils.
85870         Use "file name" when talking about file names, instead of "filename"
85871         or "path", as per the GNU coding standards.
85872         * MODULES.html.sh: mkdir-p renamed from makepath.
85873         filenamecat renamed from path-concat.
85874         * modules/filenamecat: Renamed from modules/path-concat.
85875         (Files): filenamecat.h and filenamecat.c renamed from
85876         path-concat.h and path-concat.c.
85877         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
85878         (Include): filenamecat.h, not path-concat.h.
85879         * modules/mkdir-p: Renamed from modules/makepath.
85880         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
85881         makepath.c.
85882         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
85883         (Include): mkdir-p.h, not makepath.h.
85884
85885 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85886
85887         Sync from coreutils.
85888         * m4/mkdir-p.m4: Renamed from makepath.m4.
85889         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
85890         Rename files from makepath.c to mkdir-p.c, and from
85891         makepath.h to mkdir-p.h.
85892         * m4/filenamecat.m4: Renamed from path-concat.m4.
85893         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
85894         Rename files from path-concat.c to filenamecat.c,
85895         and from path-concat.h to filenamecat.h.
85896         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
85897         "file name" in local variables or comments.
85898         * m4/rename.m4: Likewise.
85899
85900 2005-06-01  Bruno Haible  <bruno@clisp.org>
85901
85902         * modules/csharpexec: New file.
85903         * MODULES.html.sh (C#): New section.
85904
85905 2005-06-01  Bruno Haible  <bruno@clisp.org>
85906
85907         * m4/csharp.m4: New file, from GNU gettext.
85908         * m4/csharpexec.m4: New file, from GNU gettext.
85909
85910 2005-06-01  Bruno Haible  <bruno@clisp.org>
85911
85912         * lib/csharpexec.h: New file, from GNU gettext.
85913         * lib/csharpexec.c: New file, from GNU gettext.
85914         * lib/csharpexec.sh.in: New file, from GNU gettext.
85915
85916 2005-05-31  Derek Price  <derek@ximbiot.com>
85917             Paul Eggert  <eggert@cs.ucla.edu>
85918
85919         Sync from cvs.
85920         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85921
85922 2005-05-31  Derek Price  <derek@ximbiot.com>
85923             Paul Eggert  <eggert@cs.ucla.edu>
85924
85925         Sync from cvs.
85926         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85927
85928 2005-05-29  Derek Price  <derek@ximbiot.com>
85929
85930         * config/srclist.txt (glob_.h, glob.c): Add these files.
85931
85932 2005-05-29  Derek Price  <derek@ximbiot.com>
85933
85934         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
85935         * modules/glob: New file.
85936         * modules/getlogin_r: Add link to POSIX spec in description.
85937
85938 2005-05-29  Derek Price  <derek@ximbiot.com>
85939             Paul Eggert  <eggert@cs.ucla.edu>
85940
85941         * m4/glob.m4: New file.
85942
85943 2005-05-29  Derek Price  <derek@ximbiot.com>
85944             Paul Eggert  <eggert@cs.ucla.edu>
85945
85946         * lib/glob_.h, lib/glob.c: New files.
85947
85948 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85949
85950         * modules/fts (Files): Remove m4/inttypes-pri.m4.
85951         * modules/fts-lgpl (Depends-on): Remove gettext.
85952
85953 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85954
85955         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
85956         and don't require gt_INTTYPES_PRI.
85957
85958 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85959
85960         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
85961
85962         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
85963         the configuration hassle isn't worth it.
85964         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
85965         (LONGEST_MODIFIER, PRIuMAX): Remove.
85966
85967 2005-05-27  Bruno Haible  <bruno@clisp.org>
85968
85969         * lib/getlogin_r.h: Remove second include of <stddef.h>.
85970
85971 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
85972
85973         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
85974         _POSIX_PTHREAD_SEMANTICS for Solaris.
85975
85976 2005-05-25  Derek Price  <derek@ximbiot.com>
85977
85978         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
85979
85980 2005-05-25  Derek Price  <derek@ximbiot.com>
85981             Paul Eggert  <eggert@cs.ucla.edu>
85982
85983         * modules/getlogin_r, m4/getlogin_r.m4: New files.
85984         * lib/getlogin_r.c, getlogin_r.h: New files.
85985
85986 2005-05-25  Bruno Haible  <bruno@clisp.org>
85987             Derek Price  <derek@ximbiot.com>
85988
85989         * lib/getlogin_r.h: Simplify API documentation.
85990
85991 2005-05-23  Derek Price  <derek@ximbiot.com>
85992
85993         * modules/minmax (Files): Add m4/minmax.m4.
85994         (configure.ac): Add gl_MINMAX.
85995
85996 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
85997
85998         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
85999         so that unistd-safer.h (GPL'ed code) need not be included.
86000
86001 2005-05-22  Bruno Haible  <bruno@clisp.org>
86002
86003         * m4/minmax.m4: New file.
86004         Based on a patch by Derek Price <derek@ximbiot.com>.
86005
86006 2005-05-22  Bruno Haible  <bruno@clisp.org>
86007
86008         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
86009         (INT64_MIN): Fix definition.
86010         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
86011
86012         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
86013         NEED_SIGNED_INT_TYPES.
86014
86015         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
86016         HAVE_SYSTEM_INTTYPES.
86017
86018 2005-05-22  Bruno Haible  <bruno@clisp.org>
86019
86020         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
86021         Also include <sys/param.h> if it defines MIN, MAX.
86022         Based on a patch by Derek Price <derek@ximbiot.com>.
86023
86024 2005-05-21  Jim Meyering  <jim@meyering.net>
86025
86026         * modules/fts (Files): Add m4/inttypes-pri.m4.
86027         (Depends-on): Add lstat and remove gettext.  Alphabetize.
86028
86029 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86030
86031         New fts module.
86032         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
86033         (setup_dir, free_dir): New functions.
86034         (enter_dir, leave_dir): Define trivial
86035         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
86036         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
86037         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
86038         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
86039         Move to fts-cycle.c.
86040         (fts_open): Use setup_dir.
86041         (fts_close): Use free_dir.
86042         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
86043         This adds a label and some gotos, but the alternatives were messier.
86044         Check for memory allocation failure when entering a dir.
86045         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
86046         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
86047         (FTS): New member fts_cycle, that is a union that contains the
86048         old active_dir_ht and cycle_state.  All uses changed to mention
86049         fts_cycle.ht and fts_cycle.state.
86050         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
86051         fts.c, with the following changes:
86052         (setup_dir, free_dir): New functions.
86053         (enter_dir): Now returns bool.  Return true if successful, false
86054         if memory exhausted.  All callers changed.
86055         Do not bother partly cleaning up on
86056         memory allocation failure; that is free_dir's job.
86057         However, free ad if hash_insert fails, to avoid memory leak.
86058         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
86059         fts->fts_options to see which union member to use.
86060
86061 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86062
86063         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
86064         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
86065
86066 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86067
86068         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
86069
86070 2005-05-20  Jim Meyering  <jim@meyering.net>
86071
86072         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
86073         Now a macro, to pacify GCC.
86074
86075 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86076
86077         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
86078         of -1.
86079
86080 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86081
86082         * lib/chown.c (rpl_chown): Return -1 on failure.
86083
86084 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86085
86086         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
86087         Don't check for stddef.h.
86088         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
86089         don't use its results.
86090         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
86091         since we include them unconditionally.  Don't require
86092         AM_STDBOOL_H, since stdbool is a prerequisite.
86093         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
86094         since we assume C89 or better.
86095         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
86096         as we don't use their results.
86097         Don't check for fchdir, memmove, memset, strrchr, as we use
86098         them unconditionally.
86099         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
86100         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
86101
86102 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86103
86104         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
86105         Include <stddef.h> unconditionally, since we assume C89 now.
86106         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
86107         * lib/fts.c: Include fts_.h first, to check interface.
86108         Do not include intprops.h; no longer needed.
86109         Include cycle-check.h and hash.h, since fts_.h no longer does.
86110         Remove unnecessary casts of closedir to void.
86111         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
86112         decide whether to decrement nlinks.
86113         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
86114         (FTS): Use struct hash_table * instead of Hash_table, so that
86115         we no longer need to include hash.h here.
86116
86117 2005-05-18  Jim Meyering  <jim@meyering.net>
86118
86119         * modules/dirfd (License): Change to LGPL.  Most of the code
86120         is already in the public domain.
86121
86122 2005-05-18  Jim Meyering  <jim@meyering.net>
86123
86124         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
86125         Reported by Yoann Vandoorselaere.
86126
86127 2005-05-17  Jim Meyering  <jim@meyering.net>
86128
86129         * m4/fts.m4: New file, from coreutils.
86130
86131 2005-05-17  Jim Meyering  <jim@meyering.net>
86132
86133         * lib/fts.c, lib/fts_.h: New files, from coreutils.
86134
86135 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86136
86137         Sync from coreutils.
86138         * m4/unlinkdir.m4: New file.
86139
86140 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86141
86142         Sync from coreutils.
86143         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
86144         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
86145         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
86146         White space changes only.
86147         * lib/makepath.c (make_path): Port to hosts where leading "//" is
86148         special.
86149         * lib/yesno.c: Include getline.h, not ctype.h.
86150         (yesno): Don't remove leading white space; POSIX doesn't allow it.
86151         Use getline to remove arbitrary restriction on response length.
86152
86153 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86154
86155         * config/srclist-update: Spell out "Street" in FSF postal
86156         mail address; this is the style the FSF seems to prefer.
86157
86158         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
86159         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
86160         this updates FSF postal mail address.
86161
86162         Sync from coreutils.
86163         * modules/unlinkdir: New file.
86164         * modules/yesno (Depends-on): Add getline.
86165         * MODULES.html.sh (File system functions): Add unlinkdir.
86166
86167 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86168
86169         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
86170         lib/strsep.h:
86171         Change the initial comment to refer to GPL, not LGPL.
86172         gnulib-tool will change it to LGPL as needed.
86173
86174         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
86175         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
86176         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
86177         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
86178         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
86179         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
86180         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
86181         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
86182         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
86183         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
86184         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
86185         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
86186         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
86187         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
86188         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
86189         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
86190         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
86191         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
86192         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
86193         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
86194         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
86195         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
86196         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
86197         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
86198         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
86199         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
86200         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
86201         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
86202         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
86203         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
86204         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
86205         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
86206         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
86207         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
86208         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
86209         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
86210         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
86211         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
86212         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
86213         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
86214         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
86215         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
86216         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
86217         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
86218         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
86219         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
86220         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
86221         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
86222         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
86223         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
86224         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86225         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
86226         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
86227         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
86228         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
86229         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
86230         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
86231         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
86232         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
86233         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
86234         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
86235         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
86236         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
86237         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
86238         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
86239         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
86240         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
86241         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
86242         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
86243         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
86244         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
86245         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
86246         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
86247         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
86248         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
86249         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
86250         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
86251         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
86252         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
86253         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
86254         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
86255         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
86256         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
86257         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
86258         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
86259         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
86260         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
86261         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
86262         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
86263         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
86264         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
86265         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
86266         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
86267         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
86268         lib/yesno.c, lib/yesno.h:
86269         Update FSF postal mail address.
86270
86271 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86272
86273         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
86274         tests/test-memmem.c, tests/test-stpncpy.c:
86275         Update FSF postal mail address.
86276
86277 2005-05-13  Bruno Haible  <bruno@clisp.org>
86278
86279         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
86280         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
86281         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
86282         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
86283         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
86284         Add support for 64-bit integers in the MSVC compiler.
86285
86286 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86287
86288         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
86289
86290 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
86291
86292         * gnulib-tool (func_import): Sort and uniquify recommended includes.
86293
86294 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
86295
86296         * doc/getdate.texi (General date syntax): Don't say that date
86297         date --iso-8601=ns generates acceptable dates; it doesn't yet.
86298         Problem reported by Nic Ferrier.
86299
86300 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86301
86302         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
86303         specified in ai_socktype. Fix invalid ai_protocol
86304         check. ai_protocol is usually set to 0 or depending on
86305         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
86306         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
86307         ai_socktype / ai_protocol in the returned addrinfo structure.
86308
86309 2005-05-10  Simon Josefsson  <jas@extundo.com>
86310
86311         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
86312         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86313
86314 2005-05-10  Karl Berry  <karl@gnu.org>
86315
86316         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
86317         (from http://www.gnu.org/licenses).
86318         * doc/COPYING.LIB: also rename to COPYING.LESSER.
86319         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
86320         fdl.texi suffices.
86321
86322 2005-05-10  Karl Berry  <karl@gnu.org>
86323
86324         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
86325         (COPYING.DOC): remove.
86326
86327         * config/srclist-update: new FSF address.
86328
86329 2005-05-10  Derek Price  <derek@ximbiot.com>
86330
86331         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
86332         possible.
86333
86334 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86335             Bruno Haible  <bruno@clisp.org>
86336
86337         * modules/inet_ntop: New file.
86338         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86339         inet_ntop.
86340
86341 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86342             Bruno Haible  <bruno@clisp.org>
86343
86344         * m4/inet_ntop.m4: New file.
86345
86346 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86347             Bruno Haible  <bruno@clisp.org>
86348
86349         * lib/inet_ntop.h: New file.
86350         * lib/inet_ntop.c: New file, from glibc with modifications.
86351
86352 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
86353
86354         * modules/time_r (License): Change to LGPL.
86355         * modules/extensions (License): Change to LGPL.  Actually,
86356         the license is more permissive than that, but currently gnulib-tool
86357         doesn't know how to handle more-permissive licenses.
86358
86359         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
86360         Problem reported by Dave Love.
86361
86362 2005-05-08  Jim Meyering  <jim@meyering.net>
86363
86364         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
86365         blank.
86366
86367 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86368
86369         * modules/argmatch (Depends-on): Add stdbool.
86370         * modules/backupfile (Depends-on): Likewise.
86371         * modules/chdir-long (Depends-on): Likewise.
86372         * modules/closeout (Depends-on): Likewise.
86373         * modules/cycle-check (Depends-on): Likewise.
86374         * modules/dirname (Depends-on): Likewise.
86375         * modules/fnmatch (Depends-on): Likewise.
86376         * modules/fsusage (Depends-on): Likewise.
86377         * modules/fwriteerror (Depends-on): Likewise.
86378         * modules/getcwd (Depends-on): Likewise.
86379         * modules/getloadavg (Depends-on): Likewise.
86380         * modules/hard-locale (Depends-on): Likewise.
86381         * modules/makepath (Depends-on): Likewise.
86382         * modules/mountlist (Depends-on): Likewise.
86383         * modules/nanosleep (Depends-on): Likewise.
86384         * modules/posixtm (Depends-on): Likewise.
86385         * modules/quotearg (Depends-on): Likewise.
86386         * modules/readtokens (Depends-on): Likewise.
86387         * modules/readtokens0 (Depends-on): Likewise.
86388         * modules/readutmp (Depends-on): Likewise.
86389         * modules/save-cwd (Depends-on): Likewise.
86390         * modules/strftime (Depends-on): Likewise.
86391         * modules/userspec (Depends-on): Likewise.
86392         * modules/utimecmp (Depends-on): Likewise.
86393         * modules/xgetcwd (Depends-on): Likewise.
86394         * modules/xnanosleep (Depends-on): Likewise.
86395         * modules/xstrtod (Depends-on): Likewise.
86396         * modules/yesno (Depends-on): Likewise.
86397
86398 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
86399
86400         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
86401         needless checks.
86402
86403 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86404
86405         Merge from coreutils.  Among other things,
86406         add bulletproofing for cases where stdin, stdout, or stderr are closed.
86407         * lib/fd-safer.c: New file.
86408         * lib/fcntl-safer.h, open-safer.c: Remove.
86409         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
86410         * lib/dup-safer.c: Include unistd-safer.h first.
86411         Don't include errno.h.
86412         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
86413         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
86414         * lib/file-type.c: Rely on file-type.h change.
86415         * lib/getloadavg.c: Include unistd-safer.h.
86416         (getloadavg): Use safer open.
86417         * lib/getusershell.c: Include "stdio-safer.h".
86418         (getusershell): Use safer fopen.
86419         * lib/long-options.c (long_options): Use NULL rather than 0.
86420         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
86421         'free'.
86422         * lib/modechange.c: Likewise.
86423         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
86424         (MODE_DONE): New constant.
86425         (struct mode_change): Remove 'next' member.
86426         (make_node_op_equals): New function; like the old one of the
86427         same name, except it allocates an array.
86428         (mode_compile, mode_create_from_ref): Use it.
86429         (mode_compile): Allocate result as an array, not a linked list.
86430         Parse octal string ourself, so that we catch mistakes like "+0".
86431         (mode_adjust): Arg is an array, not a linked list.
86432         * lib/modechange.c: Include stat-macros.h, xalloc.h.
86433         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
86434         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
86435         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
86436         Remove.  This is now stat-macros.h's job.
86437         (talloc): Remove.  All callers replaced by xalloc, so that
86438         our invokers don't have to worry about reporting memory failures.
86439         (make_node_op_equals): Remove.
86440         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86441         New constants.
86442         (struct mode_change): Moved here from modechange.h.
86443         (mode_append_entry): Remove.
86444         (mode_compile): Remove MASKED_OPS arg, since it encouraged
86445         apps to have incorrect behavior.  Use simpler algorithm for head
86446         and tail.  Don't futz with umask; that's now the job of mode_adjust.
86447         Detect more invalid usages rather than having somewhat-random behavior.
86448         Don't insert an "a=" action, as that leads to incorrect behavior.
86449         (mode_compile, mode_create_from_ref): Return NULL on error instead
86450         of an enum, since now there's only one way to have an error.  All
86451         callers changed.
86452         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
86453         at the correct time.  Simplify calculation of "+u" and its ilk.
86454         Don't mishandle "+X".
86455         (mode_free): Remove "register" and localize decls.
86456         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86457         (struct mode_change): Move to modechange.c; callers don't
86458         need to see this stuff.
86459         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
86460         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
86461         (mode_change, mode_adjust): Reflect the new signatures noted above.
86462         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
86463         that might redefine system include files.
86464         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
86465         (my_usleep): Use NULL rather than (void *) 0.
86466         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
86467         Use siginterrupt to specify that system calls should be interrupted.
86468         (rpl_nanosleep): Move initialization of suspended closer to call of
86469         my_usleep.
86470         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
86471         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
86472         (desirable_utmp_entry): New function.
86473         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
86474         using x2nrealloc, to simplify logic.
86475         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
86476         size calculation.  Do not assume utmp file is a regular file.
86477         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
86478         (READ_UTMP_CHECK_PIDS): New constant.
86479         * lib/save-cwd.c: Include unistd-safer.h.
86480         (save_cwd): Use fd_safer.
86481         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
86482         [!_LIBC] Include "stat-macros.h" instead.
86483         * lib/unistd-safer.h (fd_safer): New decl.
86484
86485 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86486
86487         * modules/getloadavg (Depends-on): Add unistd-safer.
86488         * modules/getusershell (Depends-on): Add stdio-safer.
86489         * modules/lstat (Depends-on): Remove xalloc.
86490         * modules/mkstemp (Depends-on): Add stat-macros.
86491         * modules/modechange (Depends-on): Remove xstrtol.
86492         Add stat-macros, xalloc.
86493         * modules/save-cwd (Depends-on): Add unistd-safer.
86494         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
86495         * modules/unistd-safer (Files): Add lib/fd-safer.c
86496         (Makefile.am): Remove lib_SOURCES.
86497
86498         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
86499         Remove fcntl-safer; unistd-safer supersedes it.
86500
86501 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86502
86503         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
86504         AC_HEADER_STAT.
86505         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
86506         (gl_PREREQ_CHOWN): Remove.
86507         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
86508         it.  Don't require AC_HEADER_STAT.
86509         (gl_PREREQ_LSTAT): Remove.
86510         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
86511         Don't require AC_HEADER_STAT.
86512         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
86513         (gl_PREREQ_RMDIR): Remove.
86514         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
86515         mention stat-macros.h or AC_HEADER_STAT, since we'll make
86516         the stat-macros module a prerequisite.
86517         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
86518         * m4/filemode.m4 (gl_FILEMODE): Likewise.
86519         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
86520         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
86521         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
86522         variable names.
86523         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
86524         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
86525         variable prefixes.
86526         * m4/fcntl-safer.m4: Remove.
86527         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
86528         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
86529         Invoke gl_PREREQ_FD_SAFER.
86530         (gl_PREREQ_FD_SAFER): New macro.
86531         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
86532         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
86533         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
86534         Remove duplicate call to AC_LIBOBJ(readutmp).
86535         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
86536
86537         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
86538         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
86539
86540 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86541
86542         * MODULES.html.sh (Misc): Add byteswap.
86543
86544 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86545
86546         * modules/getcwd (Depends-on): Add extensions.
86547         * modules/openat (Depends-on): Likewise.
86548
86549 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86550
86551         * modules/byteswap: New file.
86552
86553 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86554
86555         * m4/byteswap.m4: New file.
86556
86557 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86558
86559         * lib/byteswap_.h: New file.
86560
86561 2005-04-25  Karl Berry  <karl@gnu.org>
86562
86563         * m4/gettext.m4: Update from GNU gettext 0.14.4.
86564
86565 2005-04-25  Albert Chin  <china@thewrittenword.com>
86566
86567         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
86568         Toolkit C bug.
86569
86570 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
86571
86572         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
86573         (func_ln_if_changed): Remove forcibly for no error message
86574         in case file does not exist.
86575
86576 2005-04-19  Simon Josefsson  <jas@extundo.com>
86577
86578         * gnulib-tool (Options): Make --symlink mean --symbolic.
86579
86580 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
86581
86582         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
86583
86584 2005-04-16  Simon Josefsson  <jas@extundo.com>
86585
86586         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
86587
86588 2005-04-15  Simon Josefsson  <jas@extundo.com>
86589
86590         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
86591
86592 2005-04-15  Simon Josefsson  <jas@extundo.com>
86593
86594         * gnulib-tool: Rename --symlink to --symbolic.
86595
86596 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
86597
86598         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
86599         symbolic links to files instead of copying/moving.  Add --aux-dir,
86600         specifying directory relative --dir where auxiliary build tools
86601         are placed.
86602
86603 2005-04-14  Bruno Haible  <bruno@clisp.org>
86604
86605         * modules/allocsa (License): Change to LGPL.
86606         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86607
86608 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
86609
86610         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
86611         that "UTC +1 second" continues to work.  Problem reported
86612         by Dmitry V. Levin.
86613         (relunit_snumber): New rule.
86614         (relunit): Use it.
86615
86616 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
86617
86618         * lib/getdate.y (universal_time_zone_table): New constant.
86619         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
86620         universal_time_zone_table.
86621         (lookup_zone): Prefer universal_time_zone_table to
86622         local_time_zone_table, so that "GMT" time stamps are allowed in
86623         London during the summer.  Problem reported by Ian Abbott.
86624
86625 2005-04-12  Jim Meyering  <jim@meyering.net>
86626
86627         * lib/human.c (humblock): Set *options even when returning due to
86628         xstrtoumax conversion failure.  Thanks to a used-uninitialized
86629         warning from gcc-4.
86630
86631 2005-04-09  Jim Meyering  <jim@meyering.net>
86632
86633         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
86634         -Wuninitialized: initialize tm0.tm_year.
86635
86636 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
86637
86638         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
86639         count, since there's no maximum.  All uses changed.
86640         Add member dsts_seen.
86641         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
86642         not being INT_MAX.
86643         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
86644         Use pc_rels_seen to decide whether a date is absolute.
86645
86646         * lib/getdate.y (number): Don't overwrite year.
86647         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
86648         check.
86649
86650 2005-04-02  Simon Josefsson  <jas@extundo.com>
86651
86652         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
86653         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
86654
86655 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
86656
86657         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
86658         where no absolute path name can be longer than PATH_MAX.
86659
86660 2005-03-27  Jim Meyering  <jim@meyering.net>
86661
86662         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
86663
86664 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
86665
86666         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
86667         "one's complement" -> "ones' complement" in comment, as per Knuth.
86668         "value of type" -> "type or expression" in comment.
86669         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
86670
86671 2005-03-26  Jim Meyering  <jim@meyering.net>
86672
86673         Comment nits.
86674         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
86675         Correct typos: s/or/of/.
86676
86677 2005-03-26  Jim Meyering  <jim@meyering.net>
86678
86679         * modules/check-include-files: Move to ../ and rename to...
86680         * check-module: ...this.
86681
86682 2005-03-25  Jim Meyering  <jim@meyering.net>
86683
86684         * modules/xvasprintf (Files): Add xalloc.h.
86685
86686 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
86687
86688         * modules/gettext (Files): config/config.rpath ->
86689         build-aux/config.rpath
86690         * modules/iconv (Files): Likewise.
86691         Problem reported by Oskar Liljeblad.
86692
86693 2005-03-23  Jim Meyering  <jim@meyering.net>
86694
86695         * modules/check-include-files: New script to check for
86696         missing dependencies, multiple includes, etc.
86697
86698         * modules/c-strtold (Depends-on): Add xalloc.
86699         * modules/c-strtod (Depends-on): Add xalloc.
86700         * modules/hash (Depends-on): Add xalloc.
86701         (Files): Remove lib/xalloc.h.
86702
86703         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
86704         * modules/userspec (Files): Add lib/inttostr.h.
86705
86706 2005-03-23  Jim Meyering  <jim@meyering.net>
86707
86708         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
86709
86710 2005-03-22  Jim Meyering  <jim@meyering.net>
86711
86712         * modules/stat-macros: New module.
86713         * modules/canonicalize, modules/euidaccess, modules/file-type,
86714         * modules/filemode, modules/lchown, modules/makepath,
86715         * modules/rmdir, modules/stat: Depend on new stat-macros module
86716         rather than listing lib/stat-macros.h manually.
86717         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
86718
86719 2005-03-22  Jim Meyering  <jim@meyering.net>
86720
86721         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
86722
86723 2005-03-22  Bruno Haible  <bruno@clisp.org>
86724
86725         * config/srclist.txt: Replace target directory 'config' with
86726         'build-aux'.
86727         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
86728         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
86729         ../build-aux/.
86730
86731 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
86732
86733         * modules/chdir-long (Depends-on): Add mempcpy.
86734
86735         * modules/acl, modules/backupfile, modules/c-strtod,
86736         modules/c-strtold, modules/canon-host, modules/canonicalize,
86737         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
86738         modules/exclude, modules/exitfail, modules/file-type,
86739         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
86740         modules/getdate, modules/getline, modules/getpagesize,
86741         modules/getpass, modules/getugroups, modules/group-member,
86742         modules/hard-locale, modules/hash, modules/human, modules/idcache,
86743         modules/inttostr, modules/long-options, modules/makepath,
86744         modules/md5, modules/memcasecmp, modules/memcoll,
86745         modules/modechange, modules/mountlist, modules/path-concat,
86746         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
86747         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
86748         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
86749         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
86750         modules/strftime, modules/strndup, modules/strverscmp,
86751         modules/timespec, modules/unlocked-io, modules/userspec,
86752         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
86753         modules/yesno:
86754         Remove lib_SOURCES line from Makefile.am section, as this is now
86755         done automatically by the corresponding Autoconf macro.
86756
86757 2005-03-21  Jim Meyering  <jim@meyering.net>
86758
86759         Changes imported from coreutils.
86760
86761         * lib/cycle-check.c: Don't include xalloc.h.
86762
86763         * lib/path-concat.c: Don't include assert.h.
86764         (path_concat): Remove assertion that would have triggered
86765         for ABASE starting with more than one slash.
86766         Reported by Andreas Schwab.
86767
86768         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
86769         properly when ABASE is an absolute file name.
86770         Correct the description of this function.
86771         Include <assert.h>.
86772         Add an assertion and a test driver.
86773         This fixes a bug introduced on 2004-07-02.
86774         Andreas Schwab reported the resulting failure of cp --parents:
86775         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
86776
86777 2005-03-21  Jim Meyering  <jim@meyering.net>
86778
86779         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
86780         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
86781
86782 2005-03-21  Jim Meyering  <jim@meyering.net>
86783         and  Paul Eggert  <eggert@cs.ucla.edu>
86784
86785         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
86786         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
86787         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
86788         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
86789         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
86790         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
86791         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
86792         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
86793         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
86794         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
86795         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
86796         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
86797         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
86798         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
86799         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
86800         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
86801         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
86802         for these modules.
86803
86804 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
86805
86806         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
86807         (which shouldn't happen), generate nothing instead of returning 0
86808         immediately, so that nstrftime (NULL, ...) doesn't return 0.
86809
86810 2005-03-16  Bruno Haible  <bruno@clisp.org>
86811
86812         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
86813         HAVE_LONGLONG_64BIT.
86814
86815 2005-03-16  Bruno Haible  <bruno@clisp.org>
86816
86817         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
86818         HAVE_LONGLONG_64BIT.
86819
86820 2005-03-16  Bruno Haible  <bruno@clisp.org>
86821
86822         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
86823         HAVE_LONGLONG_64BIT.
86824
86825 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86826
86827         * lib/strftime.c (my_strftime): Prepend space to format so that we can
86828         reliably distinguish strftime failure from empty output on POSIX
86829         hosts.
86830
86831 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86832
86833         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
86834         (iconv_string): Don't guess a size-zero buffer, as that might cause
86835         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
86836         result would be 'too large', where 'too large' is (heuristically)
86837         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
86838         overflow concerns.  This will prevent some unwanted malloc failures
86839         when the inputs are very large.
86840
86841 2005-03-15  Karl Berry  <karl@gnu.org>
86842
86843         * config/srclist.txt (config.rpath): from gettext.
86844         * config/config.rpath: update.
86845
86846 2005-03-15  Bruno Haible  <bruno@clisp.org>
86847
86848         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
86849         to 'negate'.
86850
86851         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
86852         variable.
86853
86854         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
86855         results.
86856
86857 2005-03-14  Simon Josefsson  <jas@extundo.com>
86858
86859         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
86860         <fx@gnu.org>.
86861
86862 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
86863
86864         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
86865         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
86866         intprops.h.
86867         * lib/strtol.c: Likewise.
86868
86869 2005-03-14  Jim Meyering  <jim@meyering.net>
86870
86871         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
86872         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
86873         to be nonzero so that we (and caller) can detect the difference
86874         between a valid zero-length expansion and an error return, even
86875         when the underlying strftime fails before writing anything into
86876         that location.
86877
86878 2005-03-14  Bruno Haible  <bruno@clisp.org>
86879
86880         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
86881         Update from GNU gettext 0.14.3.
86882
86883 2005-03-10  Jim Meyering  <jim@meyering.net>
86884
86885         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
86886
86887 2005-03-10  Jim Meyering  <jim@meyering.net>
86888
86889         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
86890         so that this module works on systems without fchdir.
86891
86892 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
86893
86894         Factor int-properties macros into a single file, except for
86895         glibc-related files.
86896         * lib/intprops.h: New file.
86897         * lib/getloadavg.c: Include it instead of limits.h.
86898         (INT_STRLEN_BOUND): Remove.
86899         * lib/human.c: Include intprops.h.
86900         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
86901         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
86902         302/1000.
86903         * lib/inttostr.h: Include intprops.h instead of limits.h.
86904         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
86905         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
86906         for consistency with intprops.h.
86907         (time_t_is_integer, twos_complement_arithmetic): Use them.
86908         * lib/sig2str.h: Include <signal.h>, intprops.h.
86909         (INT_STRLEN_BOUND): Remove.
86910         * lib/strftime.c (TYPE_SIGNED): Remove.
86911         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
86912         * lib/strtol.c: Adjust comments to match intprops.h.
86913         * lib/userspec.c: Include intprops.h.
86914         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
86915         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
86916         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
86917         instead of rolling our own expressions.
86918         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
86919
86920         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
86921         instead of int.
86922         (my_strftime): Do not mishandle years close to INT_MAX, by doing
86923         the right thing even if adding 1900 would overflow.  Similarly
86924         for tm_mon + 1 and tm_yday + 1.
86925         Make %Y always equivalent to %C%y, and similarly for %G and %g.
86926         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
86927         (DO_SIGNED_NUMBER): New macro.
86928         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
86929
86930 2005-03-07  Bruno Haible  <bruno@clisp.org>
86931
86932         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
86933
86934 2005-03-07  Bruno Haible  <bruno@clisp.org>
86935
86936         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
86937
86938 2005-03-04  Derek R. Price  <derek@ximbiot.com>
86939
86940         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
86941         (func_import): Only replace files via --import when they have actually
86942         changed.
86943
86944 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86945
86946         * m4/mmap-anon.m4: New file.
86947         * m4/pagealign_alloc.m4: New file.
86948
86949 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86950             Bruno Haible  <bruno@clisp.org>
86951
86952         * modules/pagealign_alloc: New file.
86953         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
86954
86955 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86956             Bruno Haible  <bruno@clisp.org>
86957
86958         * lib/pagealign_alloc.h: New file.
86959         * lib/pagealign_alloc.c: New file.
86960
86961 2005-03-03  Bruno Haible  <bruno@clisp.org>
86962
86963         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
86964         Use an all-permissive copyright notice, recommended by RMS.
86965
86966 2005-03-02  Bruno Haible  <bruno@clisp.org>
86967
86968         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
86969         of AIX, the replacement has to be done only after <string.h> is
86970         included, therefore not in config.h. stpncpy.h does the replacement,
86971         and stpncpy.c uses it.
86972
86973 2005-03-02  Bruno Haible  <bruno@clisp.org>
86974
86975         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
86976         stpncpy.c uses it.
86977
86978 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86979
86980         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
86981         The workaround isn't strictly needed for POSIX conformance, and
86982         it's too much of a pain to configure and maintain.  We'll ask
86983         people to fix their kernels instead.
86984         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
86985         (NANOSLEEP_BUG_WORKAROUND): Remove.
86986         (xnanosleep): Remove the workaround.
86987
86988 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86989
86990         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
86991         Reported by Derek Price.
86992         (Include): Add "timespec.h".
86993
86994         * modules/xnanosleep (Depends-on): Remove gethrxtime.
86995
86996 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86997
86998         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
86999         to detect nanosleep bug.
87000
87001 2005-03-01  Bruno Haible  <bruno@clisp.org>
87002
87003         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
87004
87005 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
87006
87007         * modules/gethrxtime: New file.
87008         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
87009         (Depends-on): Add gethrxtime.
87010         (configure.ac): Add gl_XNANOSLEEP.
87011         (Makefile.am): Remove lib_SOURCES line.
87012
87013 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87014
87015         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
87016         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
87017
87018 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87019
87020         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
87021         * lib/timespec.h (gettime): Return void, since it always
87022         succeeds now.  All uses changed.
87023         * lib/gettime.c (gettime): Likewise.
87024         [HAVE_NANOTIME]: Prefer nanotime.
87025         Assume gettimeofday succeeds, as POSIX requires.
87026         Assime time () succeeds, since other code already does.
87027         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
87028         (timespec_subtract): Remove.
87029         (NANOSLEEP_BUG_WORKAROUND): New constant.
87030         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
87031         things considerably.  Use it only on GNU/Linux hosts, since the
87032         workaround shouldn't be needed elsewhere.
87033
87034 2005-02-24  Bruno Haible  <bruno@clisp.org>
87035
87036         * modules/gettext (Files): Add m4/glibc2.m4.
87037
87038 2005-02-24  Bruno Haible  <bruno@clisp.org>
87039
87040         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
87041         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
87042         * m4/progtest.m4:
87043         Update from GNU gettext 0.14.2.
87044         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
87045
87046 2005-02-24  Bruno Haible  <bruno@clisp.org>
87047
87048         * lib/localcharset.c: Update from GNU gettext 0.14.2.
87049         * lib/config.charset: Update from GNU gettext 0.14.2.
87050
87051 2005-02-24  Bruno Haible  <bruno@clisp.org>
87052
87053         * lib/gettext.h: Update from GNU gettext 0.14.2.
87054
87055 2005-02-23  Simon Josefsson  <jas@extundo.com>
87056
87057         * m4/iconvme.m4: New file.
87058
87059 2005-02-23  Jim Meyering  <jim@meyering.net>
87060
87061         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
87062         change.
87063         Thanks to Bruno Haible for catching it.
87064
87065 2005-02-22  Simon Josefsson  <jas@extundo.com>
87066
87067         * modules/iconvme: New file.
87068
87069         * MODULES.html.sh: Add iconvme.
87070
87071 2005-02-22  Simon Josefsson  <jas@extundo.com>
87072
87073         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
87074
87075 2005-02-22  Simon Josefsson  <jas@extundo.com>
87076
87077         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
87078
87079 2005-02-22  Jim Meyering  <jim@meyering.net>
87080
87081         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
87082         s/ifndef/ifdef/.
87083
87084 2005-02-20  Neil Conway  <neilc@samurai.com>
87085
87086         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
87087         returned by OSX/Darwin if the specified buffer is not large
87088         enough for the hostname.
87089
87090 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87091
87092         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
87093         pass it to _help, otherwise the latter coredumps trying to
87094         dereference state.root_argp.
87095
87096 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87097
87098         * modules/chdir-long (Depends-on): Add memrchr.
87099         * modules/memrchr (Files): Add lib/memrchr.h.
87100         (Include): "memrchr.h".
87101
87102 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87103
87104         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
87105
87106 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87107
87108         * lib/memrchr.h: New file.
87109         * lib/chdir-long.c: Include it.
87110         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
87111         Don't bother including stddef.h.
87112
87113 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
87114
87115         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
87116         inclusion.
87117         Include <sys/types.h>, for dev_t.
87118         (ME_DUMMY, ME_REMOTE): Move from here....
87119         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
87120         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
87121         Dmitry V. Levin.
87122         Include mountlist.h first, to test the interface.
87123
87124 2005-01-29  Bruno Haible  <bruno@clisp.org>
87125
87126         * lib/progname.c (program_name): Initialize.
87127         Needed when linking statically on MacOS X.
87128
87129 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87130
87131         Sync from coreutils.
87132         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
87133         (Depends-on): Add c-strtod.
87134         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
87135
87136 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87137
87138         Sync from coreutils.
87139         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
87140
87141         Remove files that are specific to coreutils.
87142         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
87143
87144 2005-01-28  Bruno Haible  <bruno@clisp.org>
87145
87146         * modules/javacomp: New file.
87147         * MODULES.html.sh (Java): Add javacomp.
87148
87149 2005-01-28  Bruno Haible  <bruno@clisp.org>
87150
87151         * m4/javacomp.m4: New file, from GNU gettext.
87152
87153 2005-01-28  Bruno Haible  <bruno@clisp.org>
87154
87155         * lib/javacomp.sh.in: New file, from GNU gettext.
87156         * lib/javacomp.h: New file, from GNU gettext.
87157         * lib/javacomp.c: New file, from GNU gettext.
87158
87159 2005-01-26  Simon Josefsson  <jas@extundo.com>
87160
87161         * lib/gai_strerror.c: Use GPL in header.
87162
87163 2005-01-26  Bruno Haible  <bruno@clisp.org>
87164
87165         * modules/javaexec: New file.
87166         * MODULES.html.sh (Java): Add javaexec.
87167
87168 2005-01-26  Bruno Haible  <bruno@clisp.org>
87169
87170         * m4/javaexec.m4: New file, from GNU gettext.
87171
87172 2005-01-26  Bruno Haible  <bruno@clisp.org>
87173
87174         * lib/javaexec.sh.in: New file, from GNU gettext.
87175         * lib/javaexec.h: New file, from GNU gettext.
87176         * lib/javaexec.c: New file, from GNU gettext.
87177
87178 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87179
87180         * modules/lchown (Depends-on): Remove lchown.h
87181
87182 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87183
87184         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
87185         must be defined if the header file was not found, in order
87186         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
87187
87188 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87189
87190         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
87191         initializers for struct pentry_state.
87192         (__argp_error): Check return value of __asprintf
87193         (__argp_failure): Translate error message
87194
87195         * lib/argp-parse.c: Removed braces around the expansion of N_()
87196
87197 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
87198
87199         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
87200         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
87201         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
87202         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
87203         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
87204         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
87205         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
87206         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
87207         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
87208         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
87209         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
87210         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
87211         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
87212         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
87213         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
87214         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
87215         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
87216         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
87217         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
87218         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
87219         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
87220         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
87221         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
87222         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
87223         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
87224         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
87225         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
87226         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
87227         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
87228         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
87229         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
87230         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
87231         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
87232         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
87233         xstrtol.m4, xstrtoumax.m4, yesno.m4:
87234         Use an all-permissive copyright notice, recommended by RMS.
87235
87236 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
87237
87238         * modules/chdir-long (Depends-on): Remove mempcpy.
87239
87240 2005-01-21  Jim Meyering  <jim@meyering.net>
87241
87242         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
87243         same value as for Solaris 9.
87244
87245         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
87246         component length.  This included changing the parameter to be
87247         of type `char *' rather than `char const *'.
87248         * lib/chdir-long.h (chdir_long): Update prototype.
87249
87250         * lib/openat.c (fdopendir, fstatat): New functions.
87251         * lib/openat.h: Include headers required for use of DIR and struct
87252         stat.
87253         [AT_SYMLINK_NOFOLLOW]: Define.
87254         (fdopendir, fstatat): Add prototypes.
87255
87256 2005-01-21  Bruno Haible  <bruno@clisp.org>
87257
87258         * modules/classpath: New file.
87259         * MODULES.html.sh (Java): Add classpath.
87260
87261 2005-01-21  Bruno Haible  <bruno@clisp.org>
87262
87263         * lib/classpath.h: New file, from GNU gettext.
87264         * lib/classpath.c: New file, from GNU gettext.
87265
87266 2005-01-20  Simon Josefsson  <jas@extundo.com>
87267
87268         * modules/version-etc-fsf: New file.
87269
87270 2005-01-20  Simon Josefsson  <jas@extundo.com>
87271
87272         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
87273         * lib/version-etc.c: Remove version_etc_copyright.
87274         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
87275         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
87276
87277 2005-01-20  Simon Josefsson  <jas@extundo.com>
87278
87279         * lib/base64.h (isbase64): Add.
87280
87281         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
87282         using a unsigned prototype, don't inline.
87283         (base64_decode): Use it.
87284
87285 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87286
87287         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
87288         it.
87289
87290 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87291
87292         * lib/save-cwd.c (save_cwd): Remove code to support the case
87293         where fchdir is missing or flaky.
87294
87295 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87296
87297         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
87298
87299 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
87300
87301         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
87302         AC_LIBSOURCES now does this.
87303         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
87304         with new ullong_max module.
87305
87306 2005-01-19  Bruno Haible  <bruno@clisp.org>
87307
87308         * modules/sh-quote: New file.
87309         * MODULES.html.sh (Executing programs): Add sh-quote.
87310
87311 2005-01-19  Bruno Haible  <bruno@clisp.org>
87312
87313         * lib/sh-quote.h: New file, from GNU gettext.
87314         * lib/sh-quote.c: New file, from GNU gettext.
87315
87316 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87317
87318         Merge from coreutils.
87319         * m4/ullong_max.m4: New file.
87320         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
87321         (gl_MACROS): Assume localeconv exists.
87322
87323 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87324
87325         Merge changes from coreutils, as described below in several
87326         changelogs dated today.
87327
87328         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
87329         (O_DIRECTORY): Remove; not needed here, since "." must be
87330         a directory.  All uses removed.
87331         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
87332         universal on Suns, and we also need to test for IRIX.
87333         Revamp code to use 'if' rather than '#if'.
87334         Avoid unnecessary comparison of cwd->desc to 0.
87335
87336         * lib/utimens.c (futimens): Robustify the previous patch, by checking
87337         for known valid error numbers rather than observed invalid ones.
87338
87339 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87340
87341         * modules/ullong_max: New file.
87342
87343         * modules/chdir-long, modules/openat: New files.
87344         * modules/save-cwd (Depends-on): Depend on chdir-long.
87345         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
87346
87347 2005-01-18  Jim Meyering  <jim@meyering.net>
87348
87349         Merge from coreutils.
87350         * m4/chdir-long.m4, m4/openat.m4: New files.
87351         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
87352         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
87353         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
87354         is sane and DOES follow symlinks.  Besides, testing 20 different
87355         systems found no broken chown implementations.
87356         Prompted by a change in rsync's copy of this macro.
87357         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
87358
87359         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
87360
87361         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
87362         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
87363         NULL-means-set-to-current-time semantics.
87364         Remove temporary file immediately, rather than waiting
87365         for configure's at-exit trap code to do it.
87366
87367 2005-01-18  Jim Meyering  <jim@meyering.net>
87368
87369         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87370
87371         * lib/utimens.c (futimens): Account for the fact that futimes
87372         can also fail with errno == ENOSYS or errno == ENOENT.
87373         Patch from Dmitry V. Levin.
87374
87375         Change the name of the robust chdir function from chdir to chdir_long.
87376         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
87377         (restore_cwd): Use chdir_long, not chdir.
87378         * lib/chdir-long.c: Renamed from chdir.c.
87379         * lib/chdir-long.h: Renamed from chdir.h.
87380         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
87381         Hurd.
87382
87383 2005-01-18  Bruno Haible  <bruno@clisp.org>
87384
87385         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
87386         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
87387         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
87388         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
87389         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
87390         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
87391         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
87392         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
87393         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
87394         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
87395         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
87396         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
87397         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
87398         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
87399         Use an all-permissive copyright notice, recommended by RMS.
87400
87401 2005-01-18  Bob Proulx  <bob@proulx.com>
87402
87403         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
87404         simplify offsetof() macro construct to avoid compile failure with
87405         native HP-UX 11.0 ANSI C compiler.
87406
87407 2005-01-17  Bruno Haible  <bruno@clisp.org>
87408
87409         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
87410         redundant because stpncpy.m4 takes care of it.
87411
87412 2005-01-17  Bruno Haible  <bruno@clisp.org>
87413
87414         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
87415
87416 2005-01-17  Bruno Haible  <bruno@clisp.org>
87417
87418         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
87419         used.
87420
87421 2005-01-17  Bruno Haible  <bruno@clisp.org>
87422
87423         * lib/fwriteerror.h (fwriteerror): Change specification to include
87424         fclose.
87425         * lib/fwriteerror.c: Include <stdbool.h>.
87426         (fwriteerror): At the end, close the file stream. Record whether
87427         stdout was already closed.
87428
87429 2005-01-17  Bruno Haible  <bruno@clisp.org>
87430
87431         * lib/execute.c (environ): Declare if needed.
87432         * lib/pipe.c (environ): Likewise.
87433         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
87434
87435 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87436
87437         * modules/argp: Depend on vsnprintf
87438
87439 2005-01-10  Jim Meyering  <jim@meyering.net>
87440
87441         * modules/closeout (Depends-on): Add atexit.
87442
87443 2005-01-06  Bruno Haible  <bruno@clisp.org>
87444
87445         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
87446
87447 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
87448
87449         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
87450         definitions to be after all include files, to avoid collisions.
87451         Problem reported by Bob Proulx.
87452
87453 2005-01-04  Jim Meyering  <jim@meyering.net>
87454
87455         Changes imported from coreutils.
87456         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
87457         as the mkstemp template, use a temporary directory and an
87458         8.3-friendly template to avoid trouble on systems like DJGPP.
87459         Reported by Juan M. Guerrero via Stepan Kasal.
87460         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
87461         close. Remove the temporary directory right away, rather than waiting
87462         for configure's at-exit trap code to do it.
87463         Suggestion from Stepan Kasal.
87464
87465 2005-01-01  Simon Josefsson  <jas@extundo.com>
87466
87467         * gnulib-tool: Print #include directives when --import'ing.
87468
87469 2004-12-28  Simon Josefsson  <jas@extundo.com>
87470
87471         * tests/test-base64.c: Include required header files.  Remove
87472         unused variables.
87473
87474 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87475
87476         * modules/error (Depends-on): Remove gettext.
87477
87478 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87479
87480         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
87481         not needed.  This removes a dependency on the gettext module.
87482         [defined _LIBC]: Do not include <libintl.h>; not needed.
87483
87484 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87485
87486         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
87487         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
87488
87489 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87490
87491         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
87492         HAVE_DECL_STRTOLD.
87493
87494 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87495
87496         * modules/getdate (Depends-on): Remove alloca-opt.
87497
87498 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87499
87500         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
87501
87502 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87503
87504         * lib/argp-parse.c: Include <stddef.h>.
87505         (alignof, alignto): New macros.
87506         (parser_init): Don't assume that void * is aligned sufficiently
87507         for struct option.
87508
87509         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
87510         need to extend the stack.
87511         (YYINITDEPTH): New macro, so that the initial stack isn't overly
87512         large.
87513
87514 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87515
87516         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
87517
87518 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87519
87520         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
87521         (2004-10-24) change.  Apparently this was a false alarm.
87522
87523         * modules/getdate: Depend on alloca-opt, not alloca.
87524
87525 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87526
87527         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
87528         Remove now-obsolete comment about AIX.
87529         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
87530         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
87531         (YYMAXDEPTH): New macro.
87532
87533 2004-12-18  Simon Josefsson  <jas@extundo.com>
87534
87535         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
87536
87537 2004-12-18  Bruno Haible  <bruno@clisp.org>
87538
87539         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
87540
87541 2004-12-18  Bruno Haible  <bruno@clisp.org>
87542
87543         * lib/fatal-signal.c (fatal_signals): Make non-const.
87544         (init_fatal_signals): New function.
87545         (uninstall_handlers, install_handlers): Ignore signals that were set to
87546         SIG_IGN.
87547         (at_fatal_signal): Call init_fatal_signals.
87548         (init_fatal_signal_set): Likewise. Ignore signals that were set to
87549         SIG_IGN.
87550         Reported by Paul Eggert.
87551
87552 2004-12-18  Bruno Haible  <bruno@clisp.org>
87553
87554         * doc/alloca.texi: New file.
87555         * doc/alloca-opt.texi: New file.
87556
87557 2004-12-17  Jim Meyering  <jim@meyering.net>
87558
87559         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
87560         Otherwise, install-sh could exit with improper exit status when
87561         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
87562
87563 2004-12-16  Simon Josefsson  <jas@extundo.com>
87564
87565         * tests/test-base64.c: Add license.
87566
87567 2004-12-15  Stepan Kasal  <address@hidden>
87568
87569         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
87570
87571 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
87572
87573         * modules/getcwd (Files): Add m4/d-ino.m4.
87574         Suggested by Mark D. Baushke.
87575
87576 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87577
87578         * lib/getdate.y (textint): New member "negative".
87579         (time_zone_hhmm): New function.
87580         Expect 14 shift-reduce conflicts, not 13.
87581         (o_colon_minutes): New rule.
87582         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
87583         (yylex): Set the "negative" member of signed numbers.
87584
87585 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87586
87587         * doc/getdate.texi (Time of day items, Time zone items):
87588         Describe new formats +00:00, UTC+00:00.
87589
87590 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
87591
87592         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
87593         spurious "-l"s.  Problem reported by Stepan Kasal.
87594
87595 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
87596
87597         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
87598         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
87599
87600 2004-12-04  Simon Josefsson  <jas@extundo.com>
87601
87602         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
87603         Vandoorselaere <yoann@prelude-ids.org>.
87604
87605 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87606
87607         Changes imported from coreutils.
87608         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
87609         exist.
87610         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
87611
87612 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87613
87614         Changes imported from coreutils.
87615         * lib/hard-locale.c: Assume <locale.h> exists.
87616         Include "strdup.h".
87617         (GLIBC_VERSION): New macro.
87618         (hard_locale): Assume setlocale exists.
87619         Rewrite to avoid #ifdef.
87620         Use strdup rather than malloc + strcpy.
87621         * lib/human.c: Assume <locale.h> exists.
87622         (human_readable): Assume localeconv exists.
87623
87624 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87625
87626         * modules/hard-locale (Depends-on): Add strdup.
87627
87628 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
87629
87630         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
87631         convert T2, not T.  (Imported from libc.)
87632
87633 2004-11-30  Simon Josefsson  <jas@extundo.com>
87634
87635         * modules/restrict (License): Change to LGPL.
87636
87637 2004-11-30  Simon Josefsson  <jas@extundo.com>
87638
87639         * m4/restrict.m4: Add copyright and copying conditions.
87640
87641 2004-11-30  Simon Josefsson  <jas@extundo.com>
87642
87643         * m4/base64.m4: New file.
87644
87645 2004-11-30  Simon Josefsson  <jas@extundo.com>
87646
87647         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
87648         base64.
87649
87650         * tests/test-base64.c: New file.
87651
87652         * modules/base64: New file.
87653
87654 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87655
87656         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
87657         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
87658
87659         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
87660
87661 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87662
87663         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
87664         (__getcwd.c): Don't restore errno; glibc doesn't.
87665         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
87666         first, falling back to our code only if its results look suspicious.
87667         Ensure that the resulting buffer is only as large as necessary.
87668
87669         * lib/readutmp.c: Include readutmp.h first.
87670         Include <errno.h>, since readutmp.h no longer does that.
87671         * lib/readutmp.h: Don't include <errno.h>,
87672         <sys/param.h>, <time.h>; not needed to establish interface.
87673         (errno): Remove decl.
87674         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
87675         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
87676         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
87677
87678 2004-11-28  Simon Josefsson  <jas@extundo.com>
87679
87680         * lib/base64.h, base64.c: New file.
87681
87682 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
87683
87684         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
87685
87686 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
87687
87688         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
87689         (Depends-on): Remove pathmax, same.  Add mempcpy.
87690         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
87691         (Makefile.am): Append getcwd.h to lib_SOURCES.
87692         (Include): Add getcwd.h.
87693         (Maintainer): Change from Jim Meyering to "all, glibc",
87694         since getdate now uses intended-for-glibc code.
87695         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
87696         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
87697
87698 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87699
87700         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
87701         HP's ANSI C compiler.
87702         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
87703         Declaring int functions causes warnings on some modern systems and
87704         shouldn't be needed to compile on ancient ones.
87705         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
87706         defined.
87707
87708         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
87709         with the following changes.
87710         (__set_errno): Parenthesize properly.
87711         Include <stdbool.h>.
87712         (MIN, MAX, MATCHING_INO): New macros.
87713         (__getcwd): Define with prototype, not K&R form.
87714         Use heuristics to allocate default buffer on stack if possible.
87715         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
87716         behavior, and to avoid the PATH_MAX limit when computing
87717         ../../../../...
87718         Use MATCHING_INO to compare inode number to file.
87719         Check for arithmetic overflow in size calculations.
87720         Fix bug in reallocation of dot array that caused getcwd to fail
87721         on directories nested deeper than 75.
87722         Be more careful about saving errno on error.
87723         Do not use realloc; use only free+malloc, as this is a bit
87724         more flexible and avoids a needless copy operation.
87725         Do not inspect st_dev and st_ino for symbolic links; POSIX
87726         doesn't specify the latter.
87727         Check for closedir errors.
87728         Avoid needless casts.
87729         Use "#ifdef weak_alias" around weak_alias, to be like other
87730         glibc code.
87731         The following changes to getcwd.c have effect only when used in
87732         gnulib; they have no effect inside glibc proper.
87733         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
87734         as alloca isn't used.
87735         (alloca, __alloca): Likewise.
87736         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
87737         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87738         unconditionally, as gnulib assumes C89 or better.
87739         Do not include <sys/param.h>.
87740         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
87741         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
87742         better.
87743         (NULL) [!defined NULL]: Remove; we assume C89 or better.
87744         Include <dirent.h> in a way that is compatible with modern Autoconf.
87745         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
87746         New macros, if not already defined.
87747         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
87748         Use "_LIBC", not "defined _LIBC", for consistency.
87749         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
87750         a mempcpy module.
87751         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
87752         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
87753         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
87754         credit only to Jim Meyering and adjust the copyright dates.
87755         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
87756         <stdlib.h>, <unistd.h>, "pathmax.h".
87757         Instead, include "xgetcwd.h" (first) and "getcwd.h".
87758         (INITIAL_BUFFER_SIZE): Remove.
87759         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
87760
87761 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87762
87763         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
87764         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
87765         Use the _ONCE methods, for efficiency.
87766         Check for fcntl.h.  In test program, include <errno.h>
87767         and <fcntl.h> if available.  Remove old K&R cruft from
87768         test program.  Check for common errors in GNU/Linux,
87769         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
87770         don't do AC_LIBOBJ, as that's getcwd.m4's job.
87771         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
87772         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
87773         name accordingly.
87774         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
87775         accommodate new getcwd.c.
87776         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
87777         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
87778         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
87779         that's all we need now.
87780
87781 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87782
87783         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
87784         argp-parse.c depends on getopt internals, that means we should
87785         always use our getopt, to be on the safe side.
87786         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
87787         order not to spoil the result of an eventual previous invocation
87788         of gl_GETOPT_SUBSTITUTE.
87789
87790 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87791
87792         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
87793         redefinition warnings. To avoid them, include the defines
87794         in `#if !defined __need_getopt ... #endif'. The only place
87795         where __getopt_argv_const is used is in definitions
87796         of getopt_long and getopt_long_only below, which are as well
87797         protected by `#ifndef __need_getopt'.
87798         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
87799         __need_getopt after including <stdio.h> and <unistd.h> These
87800         headers might have defined it.
87801
87802 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87803
87804         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
87805
87806 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87807
87808         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
87809         (futimens): New function, which uses futimes if available.
87810         (futimens, utimens): Support timespec==NULL, with same semantics
87811         as utime and utimens.
87812         * lib/utimens.h (futimens): New decl.
87813
87814 2004-11-23  Jim Meyering  <jim@meyering.net>
87815
87816         * lib/getopt_.h: Remove trailing blanks.
87817
87818 2004-11-23  Jim Meyering  <jim@meyering.net>
87819
87820         * lib/__fpending.c: Add comment.
87821
87822 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
87823
87824         * modules/canonicalize (Depends-on): Add xreadlink.
87825         Problem reported by James Youngman.
87826
87827 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
87828
87829         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
87830         New macros.
87831         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
87832         optopt): Use them instead of invoking ## directly; otherwise, the
87833         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
87834
87835 2004-11-19  Bruno Haible  <bruno@clisp.org>
87836
87837         * lib/strtok_r.c: Move comments from here...
87838         * lib/strtok_r.h: ... to here.
87839
87840 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87841
87842         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
87843         implementations that mishandle size_t overflow.
87844
87845 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87846
87847         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
87848         might fail.  Problem reported by Yoann Vandoorselaere.
87849         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
87850         implementations that mishandle size_t overflow.
87851
87852 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87853
87854         * modules/canon-host (Depends-on): Add strdup.
87855
87856 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87857
87858         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
87859
87860 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87861
87862         * lib/canon-host.c: Include "strdup.h".
87863         (canon_host): Use getaddrinfo if available, so that IPv6 works.
87864         Use strdup instead of malloc/strcpy to duplicate strings.
87865
87866         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
87867         (human_space_before_unit): New constant.
87868         * lib/human.c (human_readable): Support it.
87869
87870         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
87871         (xgetcwd): Set errno correctly when failing.
87872         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
87873         the failure is actually due to a PATH_MAX problem.
87874
87875         Further getopt changes to make it more likely that glibc will
87876         buy the changes back.
87877         * lib/getopt.c (POSIXLY_CORRECT): New constant.
87878         (getopt): Use it, so to preserve glibc semantic
87879         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
87880         when compiling for libc.
87881         * lib/getopt_.h (__getopt_argv_const): Bring it back.
87882         (getopt_long, getopt_long_only): Use it.
87883
87884         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87885         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
87886         (getopt): Argv is now char * const *, as per standard.
87887         (_getopt_internal_r, _getopt_internal): Argv is now char **,
87888         not char *__getopt_argv_const *.
87889         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87890         _getopt_long_only_r): Likewise.
87891         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
87892         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87893         _getopt_long_r, _getopt_long_only_r): Likewise.
87894         * lib/getopt_.h (__getopt_argv_const): Remove.
87895         (getopt): Argv is now char * const *, as per standard.
87896
87897         * lib/getdate.y (tORDINAL): New token.
87898         (day, relunit): Allow it for relative times.
87899         (relative_time_table): Use tORDINAL for ordinals.
87900
87901 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87902
87903         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
87904         Document that "second" isn't allowed as an ordinal number.
87905
87906 2004-11-16  Jim Meyering  <jim@meyering.net>
87907
87908         * modules/closeout (Depends-on): Add fpending.
87909
87910 2004-11-15  Jim Meyering  <jim@meyering.net>
87911
87912         * lib/closeout.c: Include "__fpending.h" once again.
87913         Include <stdbool.h>.
87914         (close_stdout): Don't fail just because stdout was closed initially,
87915         since some programs don't write to stdout in the normal course of
87916         operation (other than --version and --help), and we don't want this
87917         function to make e.g. `touch file >&-' fail.
87918         But do fail if it was closed and someone has tried to write to it.
87919         E.g., `printf foo >&-' must fail.
87920
87921 2004-11-13  Jim Meyering  <jim@meyering.net>
87922
87923         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
87924
87925 2004-11-12  Simon Josefsson  <jas@extundo.com>
87926
87927         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
87928         small doc fix is still pending.
87929
87930 2004-11-11  Simon Josefsson  <jas@extundo.com>
87931
87932         * modules/strtok_r: New file.
87933
87934         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87935         strtok_r.
87936
87937 2004-11-11  Simon Josefsson  <jas@extundo.com>
87938
87939         * m4/strtok_r.m4: New file.
87940
87941         * m4/getopt.m4: Replace opterr.
87942
87943 2004-11-11  Simon Josefsson  <jas@extundo.com>
87944
87945         * lib/strtok_r.h, strtok_r.c: New file.
87946
87947 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87948
87949         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
87950         of replacing opterr, getopt, etc.  This should handle the
87951         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
87952
87953 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87954
87955         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
87956         we can stop lying to compilers about the constness of argv when we
87957         are compiled outside glibc.
87958         (getopt, getopt_long, getopt_long_only): Use it.
87959         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87960         _getopt_internal, getopt): Likewise.
87961         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87962         _getopt_long_only_r): Likewise.
87963         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87964         _getopt_long_r, _getopt_long_only_r): Likewise.
87965
87966         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
87967         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
87968         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
87969         the other external symbols.
87970         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
87971         declaration, since the above renaming now works around collisions.
87972
87973 2004-11-11  Jim Meyering  <jim@meyering.net>
87974
87975         * lib/linebreak.c: Remove trailing blanks.
87976         * lib/alloca_.h: Likewise.
87977         * lib/acosl.c: Likewise.
87978         * lib/euidaccess.c: Likewise.
87979         * lib/allocsa.h: Likewise.
87980
87981 2004-11-10  Simon Josefsson  <jas@extundo.com>
87982
87983         * m4/getaddrinfo.m4: New file.
87984
87985 2004-11-10  Simon Josefsson  <jas@extundo.com>
87986
87987         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
87988
87989 2004-11-10  Simon Josefsson  <jas@extundo.com>
87990
87991         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87992         getaddrinfo.
87993
87994         * modules/getaddrinfo: New file.
87995
87996 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87997
87998         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
87999
88000 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88001
88002         * lib/mktime.c (SHR): New macro, which is a portable
88003         substitute for >> that should work even on Crays.
88004         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
88005         Problem reported by Mark D. Baushke in
88006         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
88007         * lib/getdate.y (SHR): Likewise.
88008         (tm_diff): Use it.
88009         * lib/strftime.c (SHR): Likewise.
88010         (tm_diff): Use it.
88011         * lib/quotearg.c (struct quoting_options): Use unsigned int for
88012         quote_these_too, so that right shifts are well defined.  All uses
88013         changed.
88014
88015 2004-11-10  Jim Meyering  <jim@meyering.net>
88016
88017         Ensure that no close failure goes unreported.
88018         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
88019         return early when it seems there's nothing to flush.
88020         Don't include __fpending.h.
88021
88022 2004-11-10  Jim Meyering  <jim@meyering.net>
88023
88024         * modules/closeout (Depends-on): Remove fpending.
88025
88026 2004-11-10  Jim Meyering  <jim@meyering.net>
88027
88028         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
88029
88030 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88031
88032         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
88033         gl_FUNC_STRFTIME.
88034         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
88035         and AC_REQUIRE when possible, to avoid duplicate checks.
88036         Check for <wchar.h>.
88037
88038 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88039
88040         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
88041
88042 2004-11-09  Bruno Haible  <bruno@clisp.org>
88043
88044         * m4/sockpfaf.m4: New file.
88045
88046 2004-11-05  Bruno Haible  <bruno@clisp.org>
88047
88048         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
88049         Reported by Mark D. Baushke <mdb@cvshome.org>.
88050
88051 2004-11-04  Bruno Haible  <bruno@clisp.org>
88052
88053         2004-09-11  Bruno Haible  <bruno@clisp.org>
88054                 * allocsa.valgrind: New file.
88055         2004-02-06  Bruno Haible  <bruno@clisp.org>
88056                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
88057                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
88058                 Reported by Christopher Seip <chris.seip@hp.com>.
88059
88060 2004-11-04  Bruno Haible  <bruno@clisp.org>
88061
88062         * modules/allocsa (Files): Add lib/allocsa.valgrind.
88063         (Makefile.am): Distribute it.
88064
88065 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
88066
88067         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
88068         with errno == ERANGE if the buffer is too small.
88069         Problem reported by Mark D. Baushke.
88070
88071 2004-11-03  Albert Chin  <china@thewrittenword.com>
88072             Paul Eggert  <eggert@cs.ucla.edu>
88073
88074         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
88075         equivalent, substitute $ac_type for equivalent type rather than
88076         blindly using uint32_t *always* which won't work if uint32_t is not
88077         available.  Define _UINT32_T to work around typedef of uint32_t if
88078         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
88079         2.5.1.
88080
88081 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88082
88083         * m4/jm-macros.m4: Sync from coreutils.
88084         (gl_MACROS): Check for mbrlen, for pathchk.
88085         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
88086
88087 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88088
88089         * lib/xreadlink.c (MAXSIZE): New macro.
88090         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
88091         size does not exceed MAXSIZE.  Avoid cast.
88092         As suggested by Mark D. Baushke in
88093         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
88094         if readlink fails with buffer size just under MAXSIZE, try again
88095         with MAXSIZE.
88096
88097 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88098
88099         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
88100
88101 2004-11-02  Derek R. Price  <derek@ximbiot.com>
88102         and  Paul Eggert  <eggert@cs.ucla.edu>
88103
88104         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
88105         (get_date): Overparenthesize to avoid GCC warning.
88106
88107 2004-11-02  Bruno Haible  <bruno@clisp.org>
88108
88109         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
88110         returns void.
88111
88112 2004-11-02  Bruno Haible  <bruno@clisp.org>
88113
88114         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
88115         function returns void.
88116
88117 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88118
88119         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
88120         fflush_unlocked, flockfile, funlockfile, funlockfile,
88121         fputs_unlocked, putc_unlocked.
88122
88123 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88124
88125         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88126         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
88127         already declared.
88128
88129 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88130
88131         * modules/getdate (Files): Add doc/getdate.texi.
88132         (Depends-on): Add setenv, xalloc.
88133
88134 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88135
88136         * lib/getdate.y: Add support for TZ="foo" within a date string.
88137         Fix some bugs near time_t boundaries.  Reject dates with
88138         out-of-range components, e.g., "Sept 31".
88139         Include <stdlib.h>, "setenv.h", "xalloc.h".
88140         (ISDIGIT_LOCALE): Remove; unused.
88141         Note that the TZ and time functions used here are not reentrant.
88142         (mktime_ok, get_tz): New functions.
88143         (TZBUFSIZE): New constant.
88144         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
88145         This requires that we sometimes generate our own TZ="XXX..." setting.
88146
88147 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88148
88149         * doc/getdate.texi: New file, from coreutils with modifications for
88150         the new TZ parsing.
88151
88152 2004-10-27  Derek R. Price  <derek@ximbiot.com>
88153
88154         * lib/mktime.c (not_equal_tm): Remove redundant check.
88155
88156 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88157
88158         * modules/regex (lib_SOURCES): Add regex.c.
88159         Reported by James Youngman in
88160         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
88161
88162 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88163
88164         * lib/getdate.y: Use Bison 1.875 features, and some minor
88165         code cleanups.  This change does not affect semantics.
88166         Don't include <stdlib.h>; no longer needed.
88167         Don't include unlocked-io.h; only the "#if TEST" code uses
88168         stdio, and performance isn't crucial there.
88169         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
88170         Bison 1.875 features as described below.
88171         All uses of "PC." replaced by "pc->".
88172         (YYSTYPE): Add a forward declaration.
88173         (yylex, yyerror): Use full prototypes in forward decls.
88174         Use "%pure-parser" rather than obsolescent "%pure_parser".
88175         Use %parse-param and %lex-param instead of obsolescent
88176         YYPARSE_PARAM and YYLEX_PARAM.
88177         (meridian_table, month_and_day_table, time_units_table,
88178         relative_time_table, time_zone_table, military_table,
88179         lookup_zone, lookup_word, get_date):
88180         Use NULL instead of 0 where appropriate.
88181         (to_hour): Avoid abort (), to avoid a dependency on
88182         stdlib.h.
88183         (yyerror, yylex): Now accepts parser_control * arg.
88184         (main) [TEST]: Use '\0' rather than 0 for char.
88185
88186 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88187
88188         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
88189
88190 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88191
88192         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
88193         It's now the caller's responsibility to handle the case where
88194         !HAVE_GETPAGESIZE && !defined getpagesize.
88195
88196         * lib/mktime.c (leapyear): Arg is long int, not int.
88197
88198 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
88199
88200         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
88201
88202 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
88203
88204         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
88205         missing.  Problem reported by James Youngman.
88206
88207 2004-10-16  Simon Josefsson  <jas@extundo.com>
88208
88209         * gnulib-tool: Fix comments.  Fix parse problem.
88210         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
88211
88212 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
88213
88214         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
88215         implementation of getopt_long.  Problem reported by Alexander Taler in:
88216         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
88217
88218 2004-10-15  Bruno Haible  <bruno@clisp.org>
88219
88220         * gnulib-tool: Untabify. Initialize supplied_libname.
88221         (func_usage): More homogenous output.
88222         (func_modules_transitive_closure, func_modules_to_filelist,
88223         func_emit_lib_Makefile_am): New functions.
88224         (func_import): New function, extracted from big case statement. Use
88225         func_get_license, func_modules_transitive_closure,
88226         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
88227         opt_lgpl. Don't use test -a, as it's not portable.
88228         (func_create_testdir): Use func_modules_transitive_closure,
88229         func_modules_to_filelist, func_emit_lib_Makefile_am.
88230
88231 2004-10-15  Bruno Haible  <bruno@clisp.org>
88232
88233         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
88234
88235 2004-10-15  Bruno Haible  <bruno@clisp.org>
88236
88237         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
88238         the portions belonging to each module.
88239         Suggested by Derek Robert Price <derek@ximbiot.com>.
88240
88241 2004-10-12  Simon Josefsson  <jas@extundo.com>
88242
88243         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88244         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
88245         to real functions.
88246
88247 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88248
88249         * modules/vsnprintf: New file.
88250
88251 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88252
88253         * m4/vsnprintf.m4: New file.
88254
88255 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88256
88257         * lib/vsnprintf.h: New file.
88258         * lib/vsnprintf.c: New file.
88259
88260 2004-10-11  Bruno Haible  <bruno@clisp.org>
88261
88262         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
88263         vsnprintf.
88264
88265 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
88266
88267         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
88268
88269 2004-10-07  Bruno Haible  <bruno@clisp.org>
88270
88271         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
88272         fits into the provided buffer.
88273
88274 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
88275
88276         * lib/diacrit.c, diacrit.h: Add GPL notice.
88277
88278         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
88279         notice.
88280         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
88281         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
88282         This avoids a potential constant-folding bug.
88283
88284 2004-10-05  Bruno Haible  <bruno@clisp.org>
88285
88286         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
88287         for the declaration of strsep.
88288
88289 2004-10-05  Bruno Haible  <bruno@clisp.org>
88290
88291         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
88292
88293 2004-10-04  Simon Josefsson  <jas@extundo.com>
88294
88295         * modules/memmem: New file.
88296         * tests/test-memmem.c: New file.
88297         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
88298
88299 2004-10-04  Simon Josefsson  <jas@extundo.com>
88300
88301         * m4/memmem.m4: New file.
88302
88303 2004-10-04  Simon Josefsson  <jas@extundo.com>
88304
88305         * lib/memmem.h: New file.
88306         * lib/memmem.c: New file, taken from glibc.
88307
88308 2004-10-04  Simon Josefsson  <jas@extundo.com>
88309
88310         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
88311         '#ifdef USE_UNLOCKED_IO'.
88312
88313 2004-10-04  Simon Josefsson  <jas@extundo.com>
88314
88315         * config/srclist.txt: Add memmem from glibc.
88316
88317 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88318
88319         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
88320
88321         * modules/argmatch, modules/argp, modules/closeout, modules/error,
88322         modules/exclude, modules/getdate, modules/getline,
88323         modules/getndelim2, modules/getpass, modules/getpass-gnu,
88324         modules/getusershell, modules/linebuffer, modules/md5,
88325         modules/mountlist, modules/posixtm, modules/readtokens,
88326         modules/readutmp, modules/regex, modules/sha1,
88327         modules/version-etc, modules/yesno:
88328         Remove dependency on unlocked-io.
88329
88330 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88331
88332         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
88333
88334         * m4/unlocked-io.m4: Add copyright notice.
88335         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
88336
88337 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88338
88339         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
88340         * lib/xmalloc.c (xmemdup): Likewise.
88341         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
88342         XFREE): Remove these long-obsolescent macros.
88343         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
88344         * lib/xstrdup.c: Remove.
88345
88346         * lib/regex.c (re_comp): Cast gettext return value to char *,
88347         Problem reported by Martin Neitzel via Mark D. Baushke.
88348
88349 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88350
88351         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
88352         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
88353         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
88354         regex.c, sha1.c, version-etc.c, yesno.c:
88355         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
88356         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
88357         the includer's responsibility.
88358
88359         Sync from coreutils.
88360
88361         * lib/modechange.c (mode_compile): Don't decrement a pointer that
88362         points to the start of a string, as the C Standard says the
88363         resulting behavior is undefined.
88364
88365         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
88366         simple -> simple_backups, numbered_existing ->
88367         numbered_existing_backups, numbered -> numbered_backups
88368         to avoid shadowing problems.  All uses changed.
88369         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
88370         * lib/backupfile.c (check_extension, numbered_backup):
88371         Rename locals to avoid shadowing 'basename'.
88372         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
88373         once.
88374
88375         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
88376         * lib/.cvsignore: Add getopt.h.
88377
88378 2004-10-04  Bruno Haible  <bruno@clisp.org>
88379
88380         * modules/README: New file.
88381         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
88382         not a module.
88383
88384 2004-10-02  Jim Meyering  <jim@meyering.net>
88385
88386         * lib/dirfd.h, getpagesize.h: Add copyright notice.
88387
88388 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88389
88390         * modules/strsep: New file.
88391
88392 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88393
88394         * m4/strsep.m4: New file.
88395
88396 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88397
88398         * lib/strsep.h: New file.
88399         * lib/strsep.c: New file.
88400
88401 2004-10-01  Simon Josefsson  <jas@extundo.com>
88402
88403         * lib/snprintf.c (snprintf): Handle size==0.
88404
88405 2004-10-01  Simon Josefsson  <jas@extundo.com>
88406             Bruno Haible  <bruno@clisp.org>
88407
88408         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
88409         (snprintf): Declare 'args'.
88410
88411 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
88412
88413         * lib/snprintf.c: Remove comments as to why each header is needed.
88414
88415 2004-10-01  Bruno Haible  <bruno@clisp.org>
88416
88417         * MODULES.html.sh: Add strsep.
88418
88419 2004-09-30  Simon Josefsson  <jas@extundo.com>
88420
88421         * modules/snprintf: New file.
88422
88423 2004-09-30  Simon Josefsson  <jas@extundo.com>
88424
88425         * m4/snprintf.m4: New file.
88426
88427 2004-09-30  Simon Josefsson  <jas@extundo.com>
88428
88429         * lib/snprintf.h, lib/snprintf.c: New files.
88430
88431 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88432
88433         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
88434         (hol_entry_help): Never translate an empty string.
88435         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
88436         * lib/argp.h (OPTION_NO_TRANS): New option.
88437
88438 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88439
88440         * modules/argp (Maintainer): Replace Simon Josefsson
88441         by Sergey Poznyakoff.
88442
88443 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88444
88445         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
88446         changes merged back into glibc.
88447
88448 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88449
88450         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
88451
88452 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
88453
88454         * lib/xvasprintf.c: Include xalloc.h.
88455         (xvasprintf): Use xalloc_die, not xmalloc_die.
88456
88457 2004-09-29  Bruno Haible  <bruno@clisp.org>
88458
88459         * modules/alloca-opt: New file, derived from modules/alloca.
88460         * modules/allocsa: Depend on alloca-opt instead of alloca.
88461         * modules/setenv: Likewise.
88462         * modules/vasnprintf: Likewise.
88463         * MODULES.html.sh: Add alloca-opt.
88464
88465 2004-09-28  Simon Josefsson  <jas@extundo.com>
88466
88467         * gnulib-tool: New parameter --lgpl, to asseert that modules are
88468         LGPL, and to replace license template from GPL to LGPL.
88469
88470 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88471
88472         * modules/dummy: Change license to LGPL.
88473
88474 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88475
88476         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
88477
88478 2004-09-24  Simon Josefsson  <jas@extundo.com>
88479
88480         * modules/minmax (License): Change from GPL to LGPL.
88481
88482 2004-09-23  Simon Josefsson  <jas@extundo.com>
88483
88484         * gnulib-tool (--import): Typo.
88485
88486 2004-09-23  Simon Josefsson  <jas@extundo.com>
88487
88488         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
88489
88490 2004-09-22  Bruno Haible  <bruno@clisp.org>
88491
88492         * modules/*: Add 'License' field.
88493         * gnulib-tool: Accept --extract-license option.
88494         (func_get_license): New function.
88495
88496 2004-09-21  Bruno Haible  <bruno@clisp.org>
88497
88498         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
88499         Reported by Simon Josefsson.
88500
88501 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88502
88503         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
88504         gl_AC_TYPE_LONG_LONG.
88505
88506 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88507
88508         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
88509
88510 2004-09-18  Simon Josefsson  <jas@extundo.com>
88511         and  Paul Eggert  <eggert@cs.ucla.edu>
88512
88513         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
88514         calls with autoreconf.  Define GL_LIB.
88515
88516 2004-09-14  Karl Berry  <karl@gnu.org>
88517
88518         * config/srclist.txt: unsync setenv.c, sigh.
88519
88520 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88521
88522         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
88523         Problem reported by Bruno Haible in:
88524         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
88525
88526 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88527
88528         * config/srclist.txt: Comment out argp-pvh.c.
88529
88530 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
88531
88532         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
88533         in case some system header has #define'd it.  Problem reported by
88534         Soeren D. Schulze in
88535         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
88536
88537 2004-09-09  Karl Berry  <karl@gnu.org>
88538
88539         * regex.[ch]: delete from the root.  These were supposed to be
88540                 synced with emacs cvs, but this has not happened for about
88541                 a year, and anyway nothing else uses emacs regex.[ch].
88542                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
88543                 lib/regex[.ch] is untouched.
88544
88545 2004-09-09  Bruno Haible  <bruno@clisp.org>
88546
88547         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
88548
88549 2004-09-09  Bruno Haible  <bruno@clisp.org>
88550
88551         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
88552         modifications.
88553         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
88554
88555 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88556
88557         * modules/xvasprintf: New file.
88558         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
88559
88560 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88561
88562         * lib/xvasprintf.h: New file.
88563         * lib/xvasprintf.c: New file.
88564         * lib/xasprintf.c: New file.
88565
88566 2004-09-08  Bruno Haible  <bruno@clisp.org>
88567
88568         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
88569
88570 2004-09-08  Bruno Haible  <bruno@clisp.org>
88571
88572         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
88573         length is > INT_MAX.
88574         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
88575         more.
88576
88577 2004-09-08  Bruno Haible  <bruno@clisp.org>
88578
88579         * lib/stdint_.h: New file, taken from GNU clisp.
88580
88581 2004-09-08  Bruno Haible  <bruno@clisp.org>
88582             Oskar Liljeblad  <oskar@osk.mine.nu>
88583
88584         * modules/stdint: New file.
88585         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
88586
88587 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88588
88589         Import from coreutils.
88590         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
88591         strings on unbounded length.  alloca's performance benefits aren't
88592         that important here.
88593         (V_STRDUP): Remove.
88594         (parse_with_separator): New function, with most of the internals
88595         of the old parse_user_spec.  Allow user to omit both user and group,
88596         for compatibility with FreeBSD.
88597         Clone only the user name, not the entire spec.
88598         Do not set *uid, *gid unless entirely successful.
88599         Avoid memory leak in some failing cases.
88600         Fix regression for USER.GROUP reported by Dmitry V. Levin in
88601         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
88602         (parse_user_spec): Rewrite to use parse_with_separator.
88603
88604 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88605
88606         * modules/userspec: Don't depend on alloca.
88607
88608 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88609
88610         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
88611
88612 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
88613
88614         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
88615         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
88616         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
88617
88618 2004-08-16  Simon Josefsson  <jas@extundo.com>
88619
88620         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
88621         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
88622         Add --dry-run for --import.
88623         Let user provided command line parameters override configure.ac
88624         settings.
88625
88626 2004-08-12  Simon Josefsson  <jas@extundo.com>
88627
88628         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
88629         as discussed with Paul Eggert in threads rooted at
88630         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
88631         and
88632         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
88633         Before, the test was empty, and relied on ELIDE_CODE in source
88634         code.)
88635         (gl_PREREQ_GETOPT): New macro.
88636         (gl_GETOPT): Use them.
88637
88638 2004-08-12  Simon Josefsson  <jas@extundo.com>
88639
88640         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
88641         * lib/getopt_.h: Renamed from getopt.h.
88642
88643 2004-08-12  Simon Josefsson  <jas@extundo.com>
88644
88645         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
88646         Change default library name from libfoo to libgnu.
88647         Now, if you have a configure.ac that says:
88648                 gl_SOURCE_BASE(gl)
88649                 gl_M4_BASE(gl/m4)
88650                 gl_MODULES(error getopt etcetera)
88651                 gl_INIT
88652         you can import all you need by running:
88653                 ../gnulib/gnulib-tool --import
88654
88655         * modules/getopt (Files): Rename getopt.h to getopt_.h.
88656         (Makefile.am): Rewrite, use logic from argz.
88657         (Include): Use <getopt.h> instead of "getopt.h".
88658
88659 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88660
88661         * modules/argp (Files): Add m4/unlocked-io.m4.
88662         (Depends-on): Add extensions.
88663
88664 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88665
88666         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
88667         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
88668         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
88669         Check for program_invocation_name, program_invocation_short_name,
88670         flockfile, funlockfile, features.h, _getopt_long_only_r.
88671
88672 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88673
88674         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
88675         its complicated substitute.
88676         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
88677         and program_invocation_name.
88678         (__argp_basename) [!_LIBC]: Remove; the only use was
88679         replaced by its body.
88680         (__argp_short_program_name): Change condition from
88681         !defined __argp_short_program_name to
88682         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
88683         to match argp-namefrob.h.
88684         (__argp_failure): Don't assume strerror_r returns char *.
88685         * lib/argp-parse.c (N_): Define unconditionally.
88686         (argp_default_options): Fill out initializers with 0 to avoid
88687         gcc warnings.
88688
88689 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88690
88691         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
88692         getopt1.c.
88693
88694 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88695
88696         Merge from coreutils.
88697
88698         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
88699
88700         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
88701         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
88702
88703 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88704
88705         Merge from coreutils.
88706
88707         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
88708         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
88709         for Reliant Unix 5.43.
88710
88711         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
88712         (union fooround): Use uintmax_t, not long int.
88713         The rest is a merge from libc:
88714         [defined _LIBC]: Include <shlib-compat.h>.
88715         (_obstack) [defined _LIBC]: Remove after 2.3.4.
88716
88717         * lib/settime.c (settime): Recode to avoid warning with
88718         Sun Forte C 6U2.
88719
88720         * lib/strverscmp.c: Convert to UTF-8.
88721
88722 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88723
88724         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
88725         m4/uintmax_t.m4.
88726
88727 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88728
88729         * modules/xalloc-die: New file.
88730         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
88731
88732         * modules/md5 (Files): Add m4/uint32_t.m4.
88733         * modules/sha1: Renamed from modules/sha.
88734         (Files):
88735         Rename lib/sha.h to lib/sha1.h.
88736         Rename lib/sha.c to lib/sha1.c.
88737         Rename m4/sha.m4 to m4/sha1.m4.
88738         (lib_SOURCES): Likewise.
88739         (configure.ac): Rename gl_SHA to gl_SHA1.
88740         (Include): sha.h -> sha1.h.
88741
88742 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88743
88744         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
88745         * m4/sha1.m4: Renamed from sha.m4.
88746         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
88747
88748 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88749
88750         * lib/obstack.h (obstack_empty_p):
88751         Don't assume that chunk->contents is suitably aligned.
88752         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
88753         Likewise. Problem reported by Benno in
88754         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
88755
88756         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
88757         readable.  This could be improved further but it'd take some work.
88758
88759 2004-08-08  Simon Josefsson  <jas@extundo.com>
88760
88761         * modules/xgethostname (Depends-on): Remove exit and error (not
88762         used).
88763
88764         * modules/getpass-gnu: Add getpass.h.
88765         (Depends-on): Add stdbool.
88766         * modules/getpass: Add getpass.h.
88767
88768 2004-08-08  Simon Josefsson  <jas@extundo.com>
88769
88770         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
88771         Check getpass declaration.
88772
88773 2004-08-08  Simon Josefsson  <jas@extundo.com>
88774
88775         * lib/xgethostname.c: Don't include error.h (not used).
88776
88777         * lib/getpass.h: Add.
88778         * lib/getpass.c: Include getpass.h first.
88779
88780 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
88781
88782         * lib/xalloc-die.c: New file.
88783         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
88784         All uses removed.
88785         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
88786         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
88787         xalloc-die.c.
88788         (_, N_, xalloc_die): Move to xalloc-die.c.
88789         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
88790         so that we needn't mess with xalloc_msg_memory_exhausted.
88791
88792         * lib/sha1.h: Renamed from sha.h.
88793         (SHA1_H): Renamed from _SHA_H.
88794         (sha1_ctx): Renamed from sha_ctx.
88795         (sha1_init_ctx): Renamed from sha_init_ctx.
88796         (sha1_process_block): Renamed from sha_process_block.
88797         (sha1_process_bytes): Renamed from sha_process_bytes.
88798         (sha1_finish_ctx): Renamed from sha_finish_ctx.
88799         (sha1_read_ctx): Renamed from sha_read_ctx.
88800         (sha1_stream): Renamed from sha_stream.
88801         (sha1_buffer): Renamed from sha_buffer.
88802         * lib/sha1.c: Likewise; renamed from sha.c.
88803         Do not include <sys/types.h>.
88804         Include <stddef.h> rather than <stdlib.h>.
88805
88806 2004-08-08  Bruno Haible  <bruno@clisp.org>
88807
88808         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
88809         FILESYSTEM_PREFIX_LEN.
88810         * lib/progreloc.c: Likewise.
88811         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
88812
88813 2004-08-06  Simon Josefsson  <jas@extundo.com>
88814
88815         * modules/progname (Depends-on): Don't depend on stdbool.
88816
88817 2004-08-06  Simon Josefsson  <jas@extundo.com>
88818
88819         * modules/getsubopt: New file.
88820         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88821         getsubopt.
88822
88823 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88824
88825         More merge from coreutils.
88826
88827         * m4/utimens.m4, m4/utimecmp.m4: New files.
88828         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
88829         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
88830         prereq.m4, sha.m4: Import changes from coreutils.
88831
88832 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88833
88834         More merge from coreutils.
88835         * modules/raise, modules/readtokens0, modules/utimens:
88836         * modules/utimecmp, module/xnanosleep: New files.
88837         * modules/strftime: Add lib/strftime.h.
88838         Change include from <time.h> to "strftime.h".
88839         * modules/yesno: Add lib/yesno.h.
88840         * modules/backupfile: Remove lib/addext.c.
88841         * modules/euidaccess: Add stat-macros.h.
88842         * modules/canonicalize, modules/euidaccess,
88843         modules/filemode, modules/lchown, modules/makepath,
88844         modules/rmdir, modules/stat: Likewise.
88845
88846 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88847
88848         Merge from tar.
88849         * lib/argp-help.c (make_hol, hol_append): Don't assume that
88850         SIZE_MAX is a valid preprocessor constant.
88851         (__argp_basename): Change from "#ifndef _LIBC"
88852         to "#ifndef __argp_short_program_name", so that
88853         we don't compile these functions for tar.
88854
88855         More merges from coreutils.
88856         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
88857         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
88858         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
88859         * lib/addext.c: Remove; no longer needed.
88860         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
88861         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
88862         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
88863         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
88864         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
88865         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
88866         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
88867         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
88868         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
88869         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88870         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
88871         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
88872         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
88873         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
88874         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
88875         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
88876         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
88877         Import changes from coreutils.
88878
88879 2004-08-05  Simon Josefsson  <jas@extundo.com>
88880
88881         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
88882
88883 2004-08-05  Simon Josefsson  <jas@extundo.com>
88884
88885         * m4/getsubopt.m4: New file.
88886
88887 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88888
88889         Merge from coreutils.
88890
88891         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
88892         * m4/getcwd-path-max.m4: New files.
88893
88894         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
88895         FILESYSTEM_PREFIX_LEN ->
88896         FILE_SYSTEM_PREFIX_LEN.
88897         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
88898         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
88899         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
88900         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
88901
88902         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
88903         prerequisite modules now handle the DOS stuff.
88904         Don't check for unistd.h.
88905
88906 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88907
88908         Merge from coreutils.
88909
88910         * lib/.gdb-history: Remove; this doesn't belong here.
88911
88912         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
88913         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
88914         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
88915         * lib/getcwd.c: New files.
88916
88917         * lib/dirname.h: Include <stdbool.h>.
88918         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
88919         for consistency with POSIX terminology.  All uses changed.
88920         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
88921         (strip_trailing_slashes): Use bool for booleans.
88922         * lib/stripslash.c (strip_trailing_slashes): Likewise.
88923
88924         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
88925         sometimes returns a positive errno value even when it succeeds.
88926         (print_errno_message) [!LIBC]: Fall back on strerror if
88927         __strerror_r fails.
88928
88929         * lib/path-concat.c (mempcpy): Don't define if a system header defines
88930         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
88931         (longest_relative_suffix): New function.
88932         (path_concat): Use it.  Assume first argument is not NULL.
88933         Port to DOS.  Omit redundant separators.
88934         Report an error instead of returning NULL.
88935         Use mempcpy instead of memcpy.
88936         (xpath_concat): Remove: not declared or used.
88937
88938         * lib/same.h: Include <stdbool.h>
88939         (same_name): Return bool, not int.
88940         * lib/same.c (same_name): Likewise.
88941         (errno): Don't declare; we assume C89 or better now.
88942
88943         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
88944         if not already defined.
88945
88946         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
88947         * lib/dup-safer.c (errno): Likewise.
88948
88949 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88950
88951         Merge from coreutils.
88952         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
88953         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
88954         * modules/path-concat: Don't depend on strdup.
88955
88956 2004-08-03  Simon Josefsson  <jas@extundo.com>
88957
88958         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
88959         * lib/progname.h: Don't include stdbool.h.
88960
88961 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88962
88963         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
88964         * MODULES.html.sh (func_all_modules): Remove fatal.
88965
88966 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88967
88968         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
88969
88970 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88971
88972         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
88973         working.
88974
88975 2004-08-02  Simon Josefsson  <jas@extundo.com>
88976
88977         * lib/getsubopt.h: New file, with comments from Bruno Haible.
88978         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
88979         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
88980
88981 2004-08-01  Simon Josefsson  <jas@extundo.com>
88982
88983         * lib/xgetdomainname.c: Include stdlib.h, for free().
88984
88985 2004-07-19  Bruno Haible  <bruno@clisp.org>
88986
88987         * MODULES.html.sh (func_all_modules): Add dummy.
88988
88989 2004-07-16  Simon Josefsson  <jas@extundo.com>
88990
88991         * modules/dummy: New file.
88992
88993 2004-07-16  Simon Josefsson  <jas@extundo.com>
88994
88995         * lib/dummy.c: New file.
88996
88997 2004-07-16  Bruno Haible  <bruno@clisp.org>
88998
88999         * lib/backupfile.h: Add extern "C" for C++.
89000         * lib/closeout.h: Likewise.
89001         * lib/copy-file.h: Likewise.
89002         * lib/findprog.h: Likewise.
89003         * lib/full-write.h: Likewise.
89004         * lib/pathname.h: Likewise.
89005         * lib/progname.h: Likewise.
89006         * lib/stpcpy.h: Likewise.
89007         * lib/stpncpy.h: Likewise.
89008         * lib/strcase.h: Likewise.
89009         * lib/strstr.h: Likewise.
89010         * lib/xalloc.h: Likewise.
89011
89012         * lib/mbswidth.h: Add extern "C" for C++.
89013         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
89014
89015 2004-07-13  Robert Millan  <robertmh@gnu.org>
89016
89017         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
89018
89019 2004-07-09  Simon Josefsson  <jas@extundo.com>
89020
89021         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
89022         failed without this.)
89023
89024 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89025
89026         * modules/chown (Files): Add lib/fchown-stub.c, since
89027         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
89028
89029 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89030
89031         * lib/fchown-stub.c: New file.
89032
89033 2004-06-24  Jim Meyering  <jim@meyering.net>
89034
89035         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
89036
89037 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89038
89039         * modules/argz: Omit "#include".
89040
89041         * MODULES.html.sh (func_all_modules): Add calloc, to match
89042         2004-06-01 addition of calloc module.
89043
89044 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89045
89046         * m4/argz.m4: New file, which is autoupdated from libtool.
89047
89048 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89049
89050         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
89051         libtool.
89052
89053 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89054
89055         * config/srclist-update: Don't insist on "USA." before the
89056         close-comment, as libtool omits the period and puts the */ on a
89057         separate line.
89058         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
89059         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
89060
89061 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
89062
89063         * modules/argz: New file.
89064         * MODULES.html.sh (func_all_modules): Add argz.
89065
89066 2004-06-12  Jim Meyering  <jim@meyering.net>
89067         and  Paul Eggert  <eggert@cs.ucla.edu>
89068
89069         * modules/hash (Files): Add lib/xalloc.h.
89070         * modules/pipe (Depends-on): Add wait-process.
89071         * modules/stat (Depends-on): Add xalloc.
89072         * modules/userspec (Files): Add lib/userspec.h.
89073         * modules/xstrto
89074
89075         Upgrade from gettext-0.13.
89076         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
89077         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
89078         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
89079
89080 2004-06-10  Jim Meyering  <jim@meyering.net>
89081
89082         * lib/calloc.c: New file.
89083
89084 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
89085
89086         * lib/getdate.y (yylex): Allow space between sign and number.
89087         Problem reported by Dan Jacobson.
89088
89089 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89090
89091         Merge from coreutils CVS.
89092
89093         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
89094         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
89095         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
89096         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
89097         xstrtol.m4: Fix copyright date and/or serial number.
89098
89099         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
89100         See if we need an fchown replacement.
89101         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
89102         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
89103         and use the replacement function if we detect either defect.
89104
89105         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
89106         gl_UTIMECMP.
89107
89108 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89109         and  Jim Meyering  <jim@meyering.net>
89110
89111         Merge from coreutils CVS.
89112
89113         * lib/stat-macros.h: New file, with contents from file-type.h
89114         and coreutils' system.h.
89115         * lib/file-type.c: Include "stat-macros.h".
89116         * lib/file-type.h (file_type): Move all macro definitions to new file,
89117         stat-macros.h.
89118
89119         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
89120         Wrap old code with this conditional.
89121         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
89122         function that does not dereference symlinks.
89123         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
89124
89125         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
89126         dependency problems.
89127         (xreadlink): Accept new arg SIZE, for efficiency.
89128         All decls and uses changed.
89129         * lib/xreadlink.h: Include <stddef.h>, for size_t.
89130
89131         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
89132         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
89133
89134         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
89135         sysexits.h.
89136
89137 2004-06-01  Jim Meyering  <jim@meyering.net>
89138
89139         * m4/calloc.m4: New file.
89140
89141 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
89142
89143         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
89144         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
89145         Also, fix a typo in a diagnostic.
89146
89147 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89148
89149         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
89150         or AC_FUNC_REALLOC.
89151
89152 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89153
89154         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
89155         macros to be defined.
89156         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
89157         the allocator returns NULL because the requested size is zero.
89158
89159 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
89160
89161         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
89162         var.  Add comment explaining why libc still defines it.  This
89163         merges the following patch from glibc:
89164         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
89165
89166 2004-05-20  Andreas Schwab  <schwab@suse.de>
89167
89168         * m4/free.m4: Replace free if it not known to work, not the other
89169         way round.
89170
89171 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
89172
89173         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
89174         present in glibc since revision 1.1 of this file.
89175         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
89176         obstack_alignment_mask, obstack_alloc, obstack_base,
89177         obstack_blank, obstack_blank_fast, obstack_chunk_size,
89178         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
89179         obstack_grow0, obstack_init, obstack_int_grow,
89180         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
89181         obstack_next_free, obstack_object_size, obstack_ptr_grow,
89182         obstack_ptr_grow_fast, obstack_room): Remove declarations of
89183         nonexistent functions.
89184
89185 2004-05-18  Karl Berry  <karl@gnu.org>
89186
89187         * config/srclist.txt: break link for vasnprintf.c.
89188
89189 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89190
89191         Port obstack to the AS/400, where pointers are 16 bytes wide and
89192         you cannot cast an integer to a valid pointer.  This patch is
89193         currently waiting to be integrated into glibc; see
89194         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
89195
89196         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
89197         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
89198         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
89199         (struct obstack): temp member is now a union of a pointer and
89200         an integer, instead of an integer.  All integer uses changed.
89201         This does not affect the physical layout of struct obstack,
89202         except on hosts (like the AS/400) where the size or alignment of
89203         void * is greater than that of ptrdiff_t.
89204         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
89205         __STDC__)]: Store temporary in pointer member of union, not
89206         integer member.
89207         * lib/obstack.c: Include <stddef.h>, for offsetof.
89208         (struct fooalign): Remove; it doesn't need a name.
89209         (union fooround): Change double to long double, and add void *.
89210         (DEFAULT_ALIGNMENT): Use offsetof to compute.
89211         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
89212         not a macro.  Hence the values are always int; so remove all
89213         casts-to-int in uses.
89214
89215 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89216
89217         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
89218         we can get this patch merged into glibc.
89219
89220 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89221             Paul Eggert  <eggert@cs.ucla.edu>
89222
89223         * m4/argp: Depend on alloca.
89224
89225 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89226             Paul Eggert  <eggert@cs.ucla.edu>
89227
89228         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
89229         freecoding.
89230
89231 2004-05-17  Bruno Haible  <bruno@clisp.org>
89232
89233         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
89234         precision that consists of a '.' followed by an empty digit string.
89235         Patch by Tor Lillqvist <tml@iki.fi>.
89236
89237 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89238
89239         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
89240         for backward compatibility with older code.  We need our own
89241         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
89242         it under some other name, and our alloca.h will define it.
89243
89244 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89245             Derek Price  <derek@ximbiot.com>
89246
89247         * lib/alloca.c: Include <alloca.h>, to get our interface.
89248         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
89249         include <alloca.h> first.  Use C89 prototype for alloca; this
89250         requires including <stddef.h> for size_t.  Use extern "C" if C++.
89251         Use #elif for simplicity, since we can assume C89 now.
89252         Don't try to source the system alloca.h since it will not be found
89253         and to prevent recursively including its replacement.
89254         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
89255         * lib/regex.c: Likewise.
89256
89257 2004-05-16  Derek Price  <derek@ximbiot.com>
89258             Paul Eggert  <eggert@cs.ucla.edu>
89259
89260         getline cleanup.  This changes the getndelim2 API: both order of
89261         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
89262         no delimiter).
89263
89264         * lib/getline.c: Don't include stddef.h or stdio.h, since our
89265         interface does that.
89266         (getline): Always use getdelim, so that we don't have two
89267         copies of this code.
89268         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
89269         if available.
89270         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
89271         (GETNDELIM2_MAXIMUM): New macro.
89272         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
89273         instead of the old practice of delim2==0.  All callers changed.
89274         Return -1 on overflow, instead of returning junk.
89275         Do not set *linesize unless allocation succeeds.
89276         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
89277         that we include sys/types.h.
89278         * lib/getnline.h: Likewise.
89279         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
89280         (getndelim2): Reorder arguments.
89281         * lib/getnline.c (getnline, getndelim):
89282         Don't discard the NMAX argument.
89283         (getnline): Invoke getndelim, to avoid code duplication.
89284         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
89285         of (size_t) -1 by callers of the getnline family.
89286
89287 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89288
89289         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
89290         Check for gettimeofday.
89291         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
89292         Check for settimeofday, stime.
89293
89294 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89295
89296         * lib/nanosleep.c (suspended): Change its type from int to
89297         sig_atomic_t volatile.
89298         (first_call): Make it private to rpl_nanosleep, and have it
89299         be zero initially as that's a bit faster.
89300         (my_usleep): Round up fractional times instead of truncating them,
89301         as this is the usual meaning for 'sleep'.
89302
89303         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
89304         doesn't work.
89305         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
89306         (ENOSYS): Define if not defined.
89307         (settime): Fall back on stime if it exists and settimeofday fails.
89308         But don't bother with fallbacks if a method fails with errno == EPERM.
89309
89310 2004-05-11  Jim Meyering  <jim@meyering.net>
89311
89312         Prior to this change, the save_cwd caller required read access to the
89313         current directory on most systems (ones with the fchdir function).
89314
89315         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
89316         fails, try write-only, and finally, resort to using xgetcwd.
89317
89318 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
89319
89320         * lib/obstack.c, obstack.h: Import changes from libc.
89321
89322 2004-04-28  Bruno Haible  <bruno@clisp.org>
89323
89324         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
89325         also implicitly appends .exe to executables.
89326         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
89327         accepts Windows pathnames.
89328         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89329         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89330         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89331         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89332         Reported by Derek Robert Price <derek@ximbiot.com>.
89333
89334 2004-04-21  Karl Berry  <karl@gnu.org>
89335
89336         * config/srclist.txt (localcharset.c): break sync.
89337
89338 2004-04-20  Paul Eggert  <eggert@twinsun.com>
89339
89340         * m4/host-os.m4: Add a copyright notice.
89341
89342 2004-04-20  Jim Meyering  <jim@meyering.net>
89343
89344         Change UTILS_ to gl_ in AC_DEFINE'd names.
89345         Change utils_- and jm_-prefixed variables, too.
89346         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
89347         UTILS_FUNC_MKDIR_TRAILING_SLASH.
89348         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
89349
89350         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
89351         Don't emit trailing blanks.
89352         Also rename jm_-prefixed variables to have gl_ prefix.
89353
89354         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
89355         Also rename jm_-prefixed variables to have gl_ prefix.
89356
89357         * m4/jm-macros.m4: Reflect the renamings.
89358         * m4/prereq.m4: Likewise.
89359
89360 2004-04-20  Jim Meyering  <jim@meyering.net>
89361
89362         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
89363         memory.
89364
89365 2004-04-20  Jim Meyering  <jim@meyering.net>
89366             Bruno Haible  <bruno@clisp.org>
89367
89368         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
89369         memory when realloc fails.
89370
89371 2004-04-19  Jim Meyering  <jim@meyering.net>
89372
89373         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
89374         now that readutmp.c may call `free (0)'.
89375
89376 2004-04-19  Bruno Haible  <bruno@clisp.org>
89377
89378         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
89379         * m4/inttypes_h.m4: Likewise.
89380         * m4/stdint_h.m4: Likewise.
89381         * m4/intmax_t.m4: Likewise.
89382         * m4/uintmax_t.m4: Likewise.
89383
89384 2004-04-18  Jim Meyering  <jim@meyering.net>
89385
89386         * m4/prereq.m4: Don't forbid jm_ prefix.
89387
89388         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
89389         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
89390         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
89391         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
89392         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
89393         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
89394         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
89395         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
89396         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
89397         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
89398         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
89399         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
89400         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
89401         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
89402         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
89403         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
89404         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
89405         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
89406         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
89407
89408 2004-04-18  Jim Meyering  <jim@meyering.net>
89409
89410         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
89411         failure, don't leak memory and do call END_UTMP_ENT.
89412
89413 2004-04-16  Jim Meyering  <jim@meyering.net>
89414
89415         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
89416         coreutils' stat program.
89417         (gl_PREREQ): Don't require jm_PREREQ_STAT.
89418
89419 2004-04-11  Paul Eggert  <eggert@twinsun.com>
89420
89421         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
89422         C89.
89423         (CHAR_BIT): Remove, since we assume C89.
89424         Include <stdint.h> if available, as per current Autoconf CVS advice.
89425
89426 2004-03-31  Jim Meyering  <jim@meyering.net>
89427
89428         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
89429         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
89430         * m4/xalloc.m4: Likewise.
89431
89432 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89433
89434         Merge from coreutils.
89435
89436         * m4/inttostr.m4: New file.
89437         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
89438         Require AM_STDBOOL_H and gl_TIMESPEC instead.
89439         Require gl_CLOCK_TIME.
89440         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
89441
89442 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89443
89444         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
89445         not bool, to be more consistent with Unix conventions.
89446         Suggested by Bruno Haible.
89447
89448         Merge from coreutils.
89449
89450         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
89451         * lib/umaxtostr.c: New files.
89452
89453         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
89454         the usual <time.h> dance.
89455         (get_date): Change signature to support fractional time stamps.
89456         All callers changed.
89457         * lib/getdate.y: Include "getdate.h" first, as we can now
89458         assume C89 and don't need to worry about 'const'.
89459         Similarly, include "unlocked-io.h" near start, not in middle.
89460         Include <limits.h>.
89461         (textint.value): Use long int rather than int.
89462         (textint.digits): Use size_t rather than int.
89463         (BILLION, LOG10_BILLION): New constants.
89464         (parser_control): New member rel_ns.  Members day_ordinal,
89465         time_zone, month, day, hour, minutes, rel_year, rel_month,
89466         rel_day, rel_hour, rel_minutes, rel_seconds
89467         are now long int, not int.  Member seconds is now struct timespec,
89468         not int.  New member timespec_seen.  Members dates_seen, days_seen,
89469         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
89470         not int.
89471         (%union.intval): Now long int, not int.
89472         New member timespec.
89473         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
89474         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
89475         (spec): Now is a timespec or an item list.
89476         (timespec, items): New nonterminals.
89477         (time, rel, relunit, number, get_date):
89478         Add support for fractional seconds.
89479         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
89480         (gmtime, localtime, mktime): Remove decls; not needed with C89.
89481         (to_hour): First arg is now long int, not int.
89482         (to_year): Returns long int, not int.
89483         Don't treat year -70 like 70.
89484         (tm_diff): Returns long int, not int.
89485         (lookup_word): Use bool instead of int when appropriate.
89486         (yylex): Use size_t for count, not int.
89487         Detect overflow when parsing large integer constants.
89488         Add support for fractions.
89489         (get_date): Make pointers 'const' if possible.
89490         Use more-portable code to detect integer overflow.
89491         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
89492         Don't use ctime; it's not reliable if the year has >4 digits.
89493
89494         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
89495         This is for compatibility with BSD.
89496
89497         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
89498         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
89499         From coreutils' system.h.
89500
89501         * lib/userspec.c: Don't include "posixver.h".
89502         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
89503         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
89504         compatible extension.  Simplify code by removing a boolean int
89505         that was always nonzero if a string was nonnull.
89506
89507 2004-03-30  Jim Meyering  <jim@meyering.net>
89508
89509         Merge from coreutils.
89510
89511         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
89512         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
89513         on some systems one must include <grp.h> before it.
89514         Reported by Christian Krackowizer.
89515
89516 2004-03-30  Jim Meyering  <jim@meyering.net>
89517
89518         Merge from coreutils.
89519
89520         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
89521
89522         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
89523         an empty input stream.
89524
89525         * lib/readtokens.c: Include <stdbool.h>.
89526         (readtoken): Use `size_t' rather than int/long.
89527         All callers adjusted.
89528         Use `bool' rather than `int' where appropriate.
89529         Use memset rather than an explicit loop.
89530         Use x2nrealloc rather than xrealloc.
89531         Allow the use of `\0' as a delimiter.
89532         (readtokens): Likewise.
89533         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
89534
89535 2004-03-30  Jim Meyering  <jim@meyering.net>
89536
89537         * m4/realloc.m4: Remove file, since now it does no more than
89538         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
89539         the `configure.ac' section of module/realloc.
89540         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
89541
89542 2004-03-30  Bruno Haible  <bruno@clisp.org>
89543
89544         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
89545         nonnull.
89546
89547 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89548
89549         Merge changes to getloadavg.c from coreutils and Emacs.
89550
89551         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
89552         Define to an expression, not to the empty string.
89553         Include cloexec.h and xalloc.h.
89554         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
89555         Use set_cloexec_flag rather than rolling our own.
89556         * lib/cloexec.c, lib/cloexec.h: New files.
89557
89558 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89559
89560         * m4/cloexec.m4: New file.
89561
89562 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89563
89564         * lib/getopt.h: Sync with libc CVS.
89565
89566 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89567             Bruno Haible  <bruno@clisp.org>
89568
89569         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
89570         mbswidth.
89571
89572 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89573             Bruno Haible  <bruno@clisp.org>
89574
89575         * lib/mbswidth.h: Include <wchar.h> only if
89576         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
89577         <wchar.h>.
89578         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
89579
89580 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89581
89582         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
89583         Sync with libc CVS.
89584         * lib/getopt_int.h: New file, also synced from libc.
89585
89586 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89587
89588         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
89589         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
89590         Bring back getopt.c, getopt.h, getopt1.c.
89591
89592 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89593
89594         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
89595         All uses changed.  Check for sa_sigaction member; this fixes
89596         a bug first reported by Jason Andrade in
89597         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89598
89599 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89600
89601         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
89602         '#if' expressions.  Unlike the code it replaces, it does not
89603         depend on (defined _SC_PAGESIZE).  However, it does depend on
89604         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
89605         first reported by Jason Andrade in
89606         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89607
89608 2004-02-25  Simon Josefsson  <jas@extundo.com>
89609
89610         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
89611
89612 2004-02-25  Simon Josefsson  <jas@extundo.com>
89613
89614         * lib/strdup.h: New file.
89615         * lib/strdup.c: Include it.
89616         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
89617         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
89618
89619 2004-02-23  Karl Berry  <karl@gnu.org>
89620
89621         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
89622         (from fencepost.gnu.org:/gd/gnuorg).
89623
89624 2004-02-23  Karl Berry  <karl@gnu.org>
89625
89626         * config/srclistvars.sh (GNUORG) [karl]: redefine.
89627         * config/srclist.txt: add maintain/standards documents.
89628
89629 2004-02-18  Bruno Haible  <bruno@clisp.org>
89630
89631         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
89632         Reported by Derek Robert Price <derek@ximbiot.com>.
89633
89634 2004-02-16  Karl Berry  <karl@gnu.org>
89635
89636         * config/mkinstalldirs, install-sh: update from automake.
89637
89638 2004-02-06  Karl Berry  <karl@gnu.org>
89639
89640         * m4/po.m4: update from gettext 0.14.1.
89641
89642 2004-02-06  Karl Berry  <karl@gnu.org>
89643
89644         * lib/config.charset: update from gettext 0.14.1.
89645
89646 2004-02-05  Paul Eggert  <eggert@twinsun.com>
89647
89648         Add comments and code, prompted by suggestions from Bruno Haible
89649         for sh-quote.
89650         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
89651         describing the enum quoting_style values.
89652         * lib/quotearg.c (quotearg_alloc): New function.
89653         (quotearg_buffer_restyled): Treat lone { and } as special.
89654         Treat = as special.  Work around bug with older shells
89655         that "see" a '\' that is really the 2nd byte of a multibyte char.
89656         Quote empty string with shell_quoting_style.
89657
89658 2004-02-03  Bruno Haible  <bruno@clisp.org>
89659
89660         * m4/pipe.m4: New file, from GNU gettext.
89661
89662 2004-02-03  Bruno Haible  <bruno@clisp.org>
89663
89664         * lib/pipe.h: New file, from GNU gettext.
89665         * lib/pipe.c: New file, from GNU gettext.
89666
89667 2004-01-27  Bruno Haible  <bruno@clisp.org>
89668
89669         * m4/execute.m4: New file, from GNU gettext.
89670
89671 2004-01-27  Bruno Haible  <bruno@clisp.org>
89672
89673         * lib/execute.h: New file, from GNU gettext.
89674         * lib/execute.c: New file, from GNU gettext.
89675         * lib/w32spawn.h: New file, from GNU gettext.
89676
89677 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89678
89679         Merge from diffutils.
89680
89681         * lib/file-type.c (file_type): Add typed memory objects.
89682         * lib/file-type.h (S_TYPEISTMO): New macro.
89683
89684         * lib/c-stack.h (c_stack_action): Remove argv argument.
89685         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
89686         (die): Don't calculate message unless segv_action returns.
89687         (get_stack_location, min_address_from_argv, max_address_from_argv,
89688         volatile stack_base, volatile_stack_size): Remove.
89689         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
89690         that every segmentation violation is a stack overflow.  (Ouch!)
89691         See Debian bug 136249 (still outstanding) for more info about why
89692         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
89693
89694 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89695
89696         Exit-status fix from coreutils.
89697
89698         Use exit_failure consistently in place of EXIT_FAILURE,
89699         so that program exit statuses are consistent on failure.
89700
89701         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
89702         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
89703         * lib/argmatch.h: Comment fix to match the above.
89704         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
89705         Now a macro referring to exit_failure, instead of a separate
89706         variable.  Include "exitfail.h" to get it.
89707         * lib/xstrtol.h: Include "exitfail.h".
89708         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
89709
89710         * lib/long-options.c (parse_long_options): Use prototype
89711         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
89712         for clarity.
89713
89714 2004-01-21  Jim Meyering  <jim@meyering.net>
89715
89716         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
89717         so as not to conflict with a different-sized __mktime_internal
89718         function in GNU libc.
89719         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
89720         Problem building statically-linked `ls' reported by Michael Brunnbauer.
89721
89722 2004-01-20  Karl Berry  <karl@gnu.org>
89723
89724         * config/config.guess: update from config.
89725
89726         * config/srclistvars.sh: GNUWWWLICENSES for karl.
89727
89728 2004-01-20  Bruno Haible  <bruno@clisp.org>
89729
89730         Safer stack allocation.
89731         * lib/setenv.c: Include allocsa.h.
89732         (alloca): Remove fallback definition.
89733         (freea): Remove macro.
89734         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
89735         instead of freea.
89736
89737 2004-01-20  Bruno Haible  <bruno@clisp.org>
89738
89739         * m4/eealloc.m4: New file, from GNU gettext.
89740
89741 2004-01-20  Bruno Haible  <bruno@clisp.org>
89742
89743         * m4/allocsa.m4: New file, from GNU gettext.
89744
89745 2004-01-20  Bruno Haible  <bruno@clisp.org>
89746
89747         * lib/xallocsa.h: New file, from GNU gettext.
89748         * lib/xallocsa.c: New file, from GNU gettext.
89749
89750 2004-01-20  Bruno Haible  <bruno@clisp.org>
89751
89752         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
89753
89754 2004-01-20  Bruno Haible  <bruno@clisp.org>
89755
89756         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
89757         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
89758         specially.
89759
89760 2004-01-20  Bruno Haible  <bruno@clisp.org>
89761
89762         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
89763         patch.
89764
89765 2004-01-20  Bruno Haible  <bruno@clisp.org>
89766
89767         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
89768
89769 2004-01-20  Bruno Haible  <bruno@clisp.org>
89770
89771         * lib/eealloc.h: New file.
89772
89773 2004-01-20  Bruno Haible  <bruno@clisp.org>
89774
89775         * lib/binary-io.h: Avoid warnings on Cygwin.
89776
89777 2004-01-20  Bruno Haible  <bruno@clisp.org>
89778
89779         * lib/allocsa.h: New file, from GNU gettext.
89780         * lib/allocsa.c: New file, from GNU gettext.
89781
89782 2004-01-18  Karl Berry  <karl@gnu.org>
89783
89784         * doc/gpl.texi, doc/lgpl.texi: new files.
89785
89786 2004-01-18  Karl Berry  <karl@gnu.org>
89787
89788         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
89789         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
89790
89791 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89792
89793         Merge from coreutils.
89794
89795         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
89796         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
89797         (gl_DEFAULT_POSIX2_VERSION): Move
89798         the documentation from 'configure' into 'config.hin',
89799         so that 'configure --help' isn't burdened by it and
89800         we don't have to worry about its formatting there.
89801         Reword the documentation so that it's more succinct
89802         and can be run together into a single paragraph.
89803         * m4/same.m4 (gl_SAME): Check for pathconf.
89804
89805 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89806
89807         Merge from coreutils.
89808
89809         * lib/posixver.c: Include posixver.h.
89810
89811         * lib/same.c: Include <stdbool.h>, <limits.h>.
89812         (_POSIX_NAME_MAX): Define if not defined.
89813         (MIN): New macro.
89814         (same_name): If file names are silently truncated, report
89815         that the file names are the same if they are the same after
89816         the silent truncation.
89817
89818         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
89819         conversion function.
89820         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
89821         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
89822         longer needed.
89823
89824 2004-01-15  Jim Meyering  <jim@meyering.net>
89825
89826         Merge from coreutils.
89827
89828         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
89829         if no library is required.
89830         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
89831         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
89832         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
89833         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
89834         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
89835         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
89836         value, $ac_cv_search_crypt, if it's "none required".
89837         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
89838         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
89839         not gl_FUNC_GETLOADAVG.
89840         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
89841         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
89842
89843 2004-01-15  Jim Meyering  <jim@meyering.net>
89844
89845         Merge from coreutils.
89846
89847         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
89848         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
89849         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
89850
89851         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
89852         optional configure-time default.
89853
89854         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89855
89856         * lib/xreadlink.c (xreadlink): Correct outdated comment.
89857
89858 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
89859
89860         Merge from coreutils.
89861
89862         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
89863         value, $ac_cv_search_nanosleep, if it's "none required".
89864
89865 2004-01-14  Paul Eggert  <eggert@twinsun.com>
89866
89867         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
89868         with like-named macro in fnmatch.c.
89869         (EXT): Use an internal constant instead.
89870
89871         Merge fnmatch patches from glibc.
89872         * lib/fnmatch.c (mbsinit): Remove define.
89873         Add libc_hidden_ver (__fnmatch, fnmatch).
89874         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
89875         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
89876
89877 2004-01-14  Karl Berry  <karl@gnu.org>
89878
89879         * config/install-sh: update from automake.
89880
89881 2004-01-13  Karl Berry  <karl@gnu.org>
89882
89883         * config/install-sh: update from automake.
89884
89885 2004-01-09  Karl Berry  <karl@gnu.org>
89886
89887         * config/install-sh: update from automake.
89888
89889 2004-01-05  Karl Berry  <karl@gnu.org>
89890
89891         * config/config.{sub,guess}: update from config.
89892
89893 2003-12-31  Karl Berry  <karl@gnu.org>
89894
89895         * config/depcomp: update from automake.
89896
89897 2003-12-14  Karl Berry  <karl@gnu.org>
89898
89899         * lib/config.charset: update from gettext-runtime.
89900
89901 2003-12-03  Paul Eggert  <eggert@twinsun.com>
89902
89903         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
89904         Bug reported by Alfred M. Szmidt.
89905
89906 2003-12-03  Bruno Haible  <bruno@clisp.org>
89907
89908         * m4/gettext.m4: Upgrade from gettext-0.13.
89909         * m4/po.m4: Upgrade from gettext-0.13.
89910         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
89911         * m4/intmax.m4: New file, from gettext-0.13.
89912         * m4/printf-posix.m4: New file, from gettext-0.13.
89913
89914 2003-11-29  Karl Berry  <karl@gnu.org>
89915
89916         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
89917
89918 2003-11-25  Paul Eggert  <eggert@twinsun.com>
89919             Bruno Haible  <bruno@clisp.org>
89920
89921         * lib/printf-parse.h: Don't include sys/types.h.
89922         (ARG_NONE): New macro.
89923         (char_directive): Change type of *arg_index fields to size_t.
89924         * lib/printf-parse.c: Don't include sys/types.h.
89925         (SSIZE_MAX): Remove macro.
89926         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
89927         Remove unnecessary overflow check.
89928         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
89929         fields.
89930
89931 2003-11-25  Bruno Haible  <bruno@clisp.org>
89932
89933         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
89934
89935 2003-11-25  Bruno Haible  <bruno@clisp.org>
89936
89937         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
89938         gt_TYPE_SSIZE_T.
89939
89940 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89941
89942         * modules/alloca: Remove dependency on xalloc.
89943
89944 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89945
89946         * lib/alloca.c: Remove dependency on xalloc module.
89947         (xalloc_die): Remove.
89948         (memory_full) [!defined emacs]: New macro.
89949         [!defined emacs]: Don't include xalloc.h.
89950         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
89951         address arithmetic overflows.  Change datatypes a bit to avoid
89952         unnecessary casts.
89953
89954 2003-11-22  Jim Meyering  <jim@meyering.net>
89955
89956         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
89957         s/size/size_t/.
89958
89959 2003-11-21  Karl Berry  <karl@gnu.org>
89960
89961         * config/config.{sub,guess}: update from config.
89962
89963 2003-11-18  Karl Berry  <karl@gnu.org>
89964
89965         * config/config.{sub,guess}: update from config.
89966
89967         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
89968
89969 2003-11-17  Paul Eggert  <eggert@twinsun.com>
89970
89971         * README: Mention that S+T cannot overflow if S is the size of
89972         an existing object and T is sufficiently small.
89973
89974 2003-11-17  Jim Meyering  <jim@meyering.net>
89975
89976         On systems without utime and without a utimes function capable of
89977         dealing with a NULL struct utimbuf* argument, this utime replacement
89978         could -- in unusual circumstances -- leak a file descriptor.
89979         * lib/utime.c: Include <unistd.h> and <errno.h>.
89980         (utime_null): Be sure to close `fd' and to preserve errno.
89981         Reported by Geoff Collyer via Arnold Robbins.
89982
89983 2003-11-17  Bruno Haible  <bruno@clisp.org>
89984
89985         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
89986         (Depends-on): Add xsize.
89987
89988 2003-11-17  Bruno Haible  <bruno@clisp.org>
89989
89990         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
89991
89992 2003-11-17  Bruno Haible  <bruno@clisp.org>
89993
89994         * lib/vasnprintf.c (alloca): Remove fallback definition.
89995         (freea): Remove definition.
89996         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
89997         Reported by Paul Eggert.
89998
89999 2003-11-16  Paul Eggert  <eggert@twinsun.com>
90000             Bruno Haible  <bruno@clisp.org>
90001
90002         Protect against address arithmetic overflow.
90003         * lib/printf-args.h: Include stddef.h.
90004         (arguments): Change type of field 'count' to size_t.
90005         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
90006         'unsigned int' where appropriate.
90007         * lib/printf-parse.h: Include sys/types.h.
90008         (char_directive): Change type of *arg_index fields to ssize_t.
90009         (char_directives): Change type of fields 'count', max_*_length to
90010         size_t.
90011         * lib/printf-parse.c: Include sys/types.h and xsize.h.
90012         (SSIZE_MAX): Define fallback value.
90013         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
90014         instead of 'int' where appropriate. Check a_allocated, d_allocated
90015         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
90016         * lib/vasnprintf.c: Include xsize.h.
90017         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
90018         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
90019         overflow. Avoid wraparound when converting a width or precision from
90020         decimal to binary.
90021
90022 2003-11-16  Bruno Haible  <bruno@clisp.org>
90023
90024         Update from GNU gettext.
90025         * lib/printf-parse.c: Generalize to it can be compiled for wide
90026         strings.
90027         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
90028         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
90029         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
90030         SNPRINTF): New macros.
90031         Don't include <alloca.h> if the file is used inside libintl.
90032         (local_wcslen): New function, for Solaris 2.5.1.
90033         (VASNPRINTF): Use it instead of wcslen.
90034
90035 2003-11-16  Bruno Haible  <bruno@clisp.org>
90036
90037         * lib/xsize.h (xmax): New function.
90038         (xsum, xsum3, xsum4): Declare as "pure" functions.
90039
90040 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90041
90042         * modules/xalloc (Files): Undo latest change, since xalloc.h
90043         no longer needs SIZE_MAX or PTRDIFF_MAX.
90044
90045 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90046
90047         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
90048         gl_PTRDIFF_MAX.
90049
90050 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90051
90052         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
90053         "return", to pacify some unknown compiler.  Problem reported
90054         by Joerg Schilling.
90055
90056 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90057
90058         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
90059         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
90060         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
90061         heuristic is just as accurate as far as we know, and it removes a
90062         dependency on size_max.m4 and ptrdiff_max.m4.
90063
90064 2003-11-11  Bruno Haible  <bruno@clisp.org>
90065
90066         * modules/xsize (Files): Add m4/size_max.m4.
90067         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
90068
90069 2003-11-11  Bruno Haible  <bruno@clisp.org>
90070
90071         * m4/size_max.m4: New file.
90072         * m4/ptrdiff_max.m4: New file.
90073         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
90074         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
90075         (gl_XALLOC): Invoke it.
90076
90077 2003-11-11  Bruno Haible  <bruno@clisp.org>
90078
90079         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
90080         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
90081         defined.
90082
90083 2003-11-10  Paul Eggert  <eggert@twinsun.com>
90084
90085         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
90086         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
90087         rejected some allocations of exactly SIZE_MAX - 2 bytes.
90088         From Bruno Haible.
90089         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
90090         not (size_t) -1, since it's defined here.
90091
90092 2003-11-09  Karl Berry  <karl@gnu.org>
90093
90094         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
90095
90096 2003-11-06  Paul Eggert  <eggert@twinsun.com>
90097
90098         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
90099         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
90100         Reject sizes of exactly SIZE_MAX bytes.
90101         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
90102         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
90103
90104 2003-11-05  Bruno Haible  <bruno@clisp.org>
90105
90106         * lib/xsize.h: Include limits.h, to avoid a possible collision with
90107         SIZE_MAX defined in <limits.h> on Solaris.
90108
90109 2003-11-04  Jim Meyering  <jim@meyering.net>
90110
90111         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
90112         variable names, rather than @VAR@.
90113         * modules/poll: Likewise.
90114
90115 2003-11-04  Bruno Haible  <bruno@clisp.org>
90116
90117         * modules/xsize: New file.
90118         * modules/linebreak: Depend on xsize.
90119         * MODULES.html.sh (func_all_modules): Add xsize.
90120
90121 2003-11-04  Bruno Haible  <bruno@clisp.org>
90122
90123         * m4/xsize.m4: New file.
90124
90125 2003-11-04  Bruno Haible  <bruno@clisp.org>
90126
90127         * lib/xsize.h: New file.
90128         * lib/linebreak.c: Include xsize.h.
90129         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
90130         argument for overflow.
90131         Suggested by Paul Eggert.
90132
90133 2003-11-03  Karl Berry  <karl@gnu.org>
90134
90135         * config/config.{guess,sub}: update from config.
90136
90137 2003-11-03  Jim Meyering  <jim@meyering.net>
90138
90139         * modules/userspec (lib_SOURCES): Add userspec.h.
90140         (Include): Add "userspec.h".
90141         Improve description.
90142
90143 2003-11-03  Jim Meyering  <jim@meyering.net>
90144
90145         * lib/userspec.c: Include "userspec.h".
90146         * lib/userspec.h: New file.
90147
90148 2003-11-03  Bruno Haible  <bruno@clisp.org>
90149
90150         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
90151
90152 2003-11-03  Bruno Haible  <bruno@clisp.org>
90153
90154         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
90155         available, to avoid (extremely rare) race condition.
90156         Suggested by Paul Eggert.
90157
90158 2003-11-02  Karl Berry  <karl@gnu.org>
90159
90160         * config/srclist.txt (vasprintf.c): sync broken, sigh.
90161
90162 2003-10-31  Paul Eggert  <eggert@twinsun.com>
90163
90164         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
90165         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
90166         (read_filesystem_list): Set and use me_type_malloced.
90167         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
90168         whatever the type happens to be), for brevity and consistency.
90169         Check for size calculation overflow on Alphas running OSF/1.
90170
90171 2003-10-31  Jim Meyering  <jim@meyering.net>
90172
90173         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
90174
90175         * lib/linebuffer.c: Include <string.h> for declaration of memset.
90176
90177 2003-10-30  Paul Eggert  <eggert@twinsun.com>
90178             Bruno Haible  <bruno@clisp.org>
90179
90180         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
90181         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
90182
90183 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
90184
90185         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
90186         netbsd*-gnu*.  Suggested by Robert Millan.
90187
90188 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90189
90190         * modules/group-member: Depend on stdbool.
90191
90192 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90193
90194         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
90195
90196 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90197
90198         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
90199         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
90200         after the 'gnu' in these cases.  This fixes some bugs in the
90201         previous change, and is based on suggestions by Robert Millan.
90202
90203 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90204
90205         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
90206         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
90207         no longer needed.
90208         * lib/quotearg.c (quotearg_n_options): Use it.
90209         * lib/group-member.c: Include <stdbool.h>.
90210         (free_group_info): Arg is now const *; don't free arg.
90211         (get_group_info): Now returns bool and accepts struct group_info *,
90212         rather than returning a malloc'ed struct group_info *.
90213         All uses changed.  Check for overflow in internal size calculation.
90214
90215         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
90216         rather than xmalloc/xrealloc.
90217         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
90218         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
90219         conformance bug: the old code used a pointer after freeing the
90220         storage that it addressed.
90221         * lib/hash.c (hash_initialize): Simplify the code by using
90222         xalloc_oversized rather than doing it by hand.
90223         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
90224         the buffer preserved.  Use free and xmalloc instead.
90225         * lib/quotearg.c (quotearg_n_options): Likewise.
90226         Use a simpler test for size overflow.  Don't use xalloc_oversized
90227         because unsigned int might be wider than size_t (!); this suggests
90228         that we should switch from unsigned int to size_t for slot numbers.
90229
90230 2003-10-28  Paul Eggert  <eggert@twinsun.com>
90231
90232         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
90233         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
90234         NetBSD kernels.  Requested by Richard Stallman.
90235
90236 2003-10-27  Paul Eggert  <eggert@twinsun.com>
90237
90238         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
90239         to allocate the returned structure.  Do not allocate a subarray,
90240         as x2nrealloc will do that.
90241         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
90242         instead of xnrealloc.
90243         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
90244
90245 2003-10-27  Bruno Haible  <bruno@clisp.org>
90246
90247         * lib/stdbool_.h: Better support for BeOS.
90248
90249 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90250
90251         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
90252         now uses inline.
90253
90254 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90255
90256         * lib/xalloc.h (xalloc_oversized): New static inline function, for
90257         callers that want to do their own size-overflow checking.  Include
90258         <stdbool.h>, since xalloc_oversized returns bool.
90259         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
90260         to use xalloc_oversized.
90261
90262         Add two functions x2realloc, x2nrealloc, for programs that grow
90263         arrays dynamically by doubling their sizes.
90264         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
90265         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
90266         New functions.
90267
90268         Port to C99 semantics for 'inline' of external functions.
90269         Bug reported by Bruno Haible.
90270         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
90271         with the old contents of xnmalloc.
90272         (xnmalloc, xmalloc): Use it.
90273         (xnrealloc_inline): New static inline function,
90274         with the old contents of xnrealloc.
90275         (xnrealloc, xrealloc): Use it.
90276
90277         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
90278         that.
90279
90280 2003-10-26  Karl Berry  <karl@gnu.org>
90281
90282         * config/srclist.txt (COPYING.DOC): no longer available from
90283         /gd/gnuorg; don't know where the ultimate source is.
90284
90285 2003-10-25  Paul Eggert  <eggert@twinsun.com>
90286
90287         Fix several address-calculation bugs in the hash modules,
90288         plus some minor code cleanup.
90289
90290         * lib/hash.h: Include <stdbool.h>, for bool.
90291         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
90292         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
90293         hash_get_n_entries, hash_get_max_bucket_length,
90294         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
90295         hash_rehash): Use size_t rather than unsigned.
90296         * lib/hash.c (struct hash_table, hash_get_n_buckets,
90297         hash_get_n_buckets_used, hash_get_n_entries,
90298         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
90299         hash_get_entries, hash_do_for_each, hash_string, is_prime,
90300         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
90301         Likewise.
90302         (SIZE_MAX): Define if not defined.
90303         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
90304         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
90305         hash_print):
90306         Use const * when possible.
90307         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
90308         (check_tuning): Fix bug: if tuning parameters were very close to
90309         0 or 1, rounding errors could have caused subscript violations.
90310         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
90311         (hash_initialize): Add 'fail:' label
90312         to free table and return NULL, and use it to simplify code.
90313         Use calloc rather than clearing the storage ourself.
90314         (hash_initialize, hash_rehash): Check for arithmetic overflow in
90315         buffer size calculations.
90316         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
90317         Include <stddef.h>, for size_t.
90318         * lib/hash-pjw.c (hash_pjw): Likewise.
90319         Switch to method described by Bruno Haible.
90320         Include <limits.h>, for CHAR_BIT.
90321         (SIZE_BITS): New macro.
90322
90323 2003-10-23  Paul Eggert  <eggert@twinsun.com>
90324
90325         * m4/getline.m4 (AM_FUNC_GETLINE):
90326         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
90327         hosts.  Problem reported by Derek Robert Price in
90328         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
90329         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
90330         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
90331
90332 2003-10-21  Paul Eggert  <eggert@twinsun.com>
90333
90334         * lib/getndelim2.c (getndelim2): When size calculation overflows,
90335         ceiling the allocation at NMAX bytes rather than silently
90336         discarding input bytes before NMAX is reached.  This makes
90337         a difference only if NMAX exceeds SIZE_MAX / 2.
90338
90339         * lib/obstack.c: Merge from glibc.
90340         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
90341         Add libc_hidden_def (_obstack_newchunk).
90342         (_obstack_free) [! defined _LIBC]: Remove.
90343         [defined _LIBC]: Make a strong alias from obstack_free, rather than
90344         a clone of the function body.
90345         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
90346         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
90347
90348         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
90349         glibc.
90350         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
90351         arg to memcpy.
90352
90353         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
90354         (obstack_ptr_grow_fast, obstack_int_grow_fast):
90355         Don't use lvalue casts, as GCC plans to remove support for them
90356         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
90357         was also present in the non-GCC version, indicating that this
90358         code had always been buggy and had never been widely used.
90359         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
90360         Use the fast variant of each macro, rather than copying the
90361         definiens of the fast variant; that way, we'll be more likely to
90362         catch future bugs in the fast variants.
90363
90364 2003-10-20  Bruno Haible  <bruno@clisp.org>
90365
90366         * modules/wait-process: New file.
90367         * MODULES.html.sh (func_all_modules): Add wait-process.
90368
90369 2003-10-20  Bruno Haible  <bruno@clisp.org>
90370
90371         * m4/wait-process.m4: New file.
90372
90373 2003-10-20  Bruno Haible  <bruno@clisp.org>
90374
90375         * lib/wait-process.h: New file, from GNU gettext.
90376         * lib/wait-process.c: New file, from GNU gettext.
90377
90378 2003-10-19  Jim Meyering  <jim@meyering.net>
90379
90380         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
90381         HPUX 10.20.
90382
90383 2003-10-18  Karl Berry  <karl@gnu.org>
90384
90385         * config/config.guess: update from config.
90386
90387 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90388
90389         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
90390         (getgroups): First arg is int, not size_t.
90391         Don't let 'free' mangle errno.
90392
90393 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90394
90395         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
90396
90397 2003-10-16  Karl Berry  <karl@gnu.org>
90398
90399         * config/config.{guess,sub}: update from config.
90400
90401 2003-10-16  Jim Meyering  <jim@meyering.net>
90402
90403         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
90404         memcpy.
90405
90406 2003-10-15  Paul Eggert  <eggert@twinsun.com>
90407
90408         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
90409         (SIZE_MAX): Remove.
90410         (new_exclude, add_exclude_file): Initial size no longer needs to
90411         be a power of 2.
90412         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
90413         our own address arithmetic overflow checking.
90414
90415         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
90416         (fnmatch): Do not alloca more than 2000 wide characters;
90417         instead, use malloc for large buffers.
90418         Check for address arithmetic overflow, and return -1
90419         with errno set to ENOMEM in that case.
90420         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
90421         (NEW_PATTERN): Do not alloca more than 8000 bytes;
90422         instead, return -1.  Check for address arithmetic overflow.
90423
90424 2003-10-14  Paul Eggert  <eggert@twinsun.com>
90425
90426         Handle invalid suffixes and overflow independently, so that
90427         callers can treat them independently as needed.  Fix some bugs in
90428         suffix handling, e.g., "100k@" was not diagnosed as an invalid
90429         suffix for a human-readable blocksize.  The major caller-visible
90430         change is the addition of a new
90431         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
90432         that both overflow and suffix chars were found.
90433
90434         * lib/human.c (humblock): Don't check separately for invalid suffix
90435         char; that is xstrtoumax's job (now that its bug is fixed).
90436         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
90437         INTMAX_MAX]: New macros.
90438         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
90439         TYPE_MAXIMUM): New macros.
90440         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
90441         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
90442         if overflow occurs, as it's what __strtol does and it's more useful
90443         in practice.
90444         (__xstrtol): If __strtol reports some error other than ERANGE,
90445         reflect it to the caller as LONGINT_INVALID.  If it reports
90446         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
90447         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
90448         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
90449         value.
90450         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
90451         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
90452         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
90453         [defined UINTMAX_MAX]: New macros.
90454
90455 2003-10-14  Bruno Haible  <bruno@clisp.org>
90456
90457         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
90458
90459 2003-10-14  Bruno Haible  <bruno@clisp.org>
90460
90461         * m4/sig_atomic_t: New file, from GNU gettext.
90462         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
90463
90464 2003-10-14  Bruno Haible  <bruno@clisp.org>
90465
90466         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
90467         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
90468         Also use volatile where needed.
90469
90470 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90471
90472         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
90473         Change maintainer from Bruno Haible to 'all'.
90474
90475 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90476
90477         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
90478
90479 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90480
90481         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
90482         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
90483         and define in terms of the other primitives.
90484         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
90485         (SIZE_MAX): Define if not already defined.
90486         (array_size_overflow): New function.
90487         (xalloc_die): Abort instead of exiting if 'error' returns.
90488         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
90489         (xmalloc, xrealloc): Use them.
90490         (xcalloc): Check for address arithmetic overflow.
90491         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
90492         a bit faster than strcpy.
90493
90494 2003-10-10  Simon Josefsson  <jas@extundo.com>
90495
90496         * modules/argp (Depends-on): Add restrict and strcase.
90497
90498 2003-10-10  Simon Josefsson  <jas@extundo.com>
90499
90500         * m4/argp.m4: Add AC_C_INLINE.
90501
90502 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90503
90504         Merge getpass from libc, plus a few fixes.
90505
90506         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
90507         Include <stdbool.h>.
90508         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
90509         __fsetlocking to empty.
90510         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
90511         do include <bits/libc-lock.h>.
90512         Do not include <fcntl.h>; not needed.
90513         [_LIBC]: Include <wchar.h>.
90514         (NOTCANCEL_MODE): New macro.
90515         (flockfile, funlockfile) [_LIBC]: New macros.
90516         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
90517         [!_LIBC]: New macros.
90518         (call_fclose): New function.
90519         (getpass): Use it.  Save tty stream separately; this simplifies the
90520         code and makes it more reliable if stdin happens to equal stdout.
90521         Invoke __fsetlocking on tty.
90522         Handle thread cancellation if needed.
90523         Namespace cleanup (use __tcgetattr, __getline).
90524         Use bool for Booleans.
90525         [USE_IN_LIBIO]: Handle wide streams.
90526         [!_LIBC]: Unconditionally do the fseek, since we don't know what
90527         stream might go where.
90528
90529         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
90530         doesn't have to include <stdio.h> before us.
90531         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
90532         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
90533         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
90534         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
90535         if not declared, so that we can use getpass.c code from libc without
90536         rewriting it.
90537         (flockfile, ftrylockfile, funlockfile): New macros.
90538
90539 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90540
90541         * modules/getpass: Depend on stdbool.
90542
90543 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90544
90545         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
90546
90547 2003-10-07  Karl Berry  <karl@gnu.org>
90548
90549         * config/config.{guess,sub}: update from config.
90550
90551 2003-10-06  Jim Meyering  <jim@meyering.net>
90552             Bruno Haible  <bruno@clisp.org>
90553
90554         This lets translators provide better translations for the
90555         "Written by ..." part of --version output.
90556         * lib/version-etc.h: Include stdarg.h.
90557         (version_etc_copyright): Declare as readonly.
90558         (version_etc): Make this function variadic with a NULL-terminated list
90559         of author name strings.
90560         (version_etc_va): New declaration.
90561         * lib/version-etc.c: Include stdarg.h, stdlib.h.
90562         (version_etc_copyright): Declare as readonly.
90563         (version_etc_va): New function. Provide a different translatable string
90564         for each possible number of authors < 10. Abbreviate when there are 10
90565         authors or more.
90566         (version_etc): Make this function variadic. Call version_etc_va.
90567         Suggestion from Gary V. Vaughan.
90568
90569         * lib/long-options.h (parse_long_options): Change prototype: the
90570         authors string is moved to the end and becomes variadic.
90571         * lib/long-options.c: Include stdarg.h.
90572         (parse_long_options): Make this function variadic, too.
90573         Call version_etc_va, not version_etc.
90574
90575 2003-10-06  Bruno Haible  <bruno@clisp.org>
90576
90577         * modules/version-etc-2: Remove file.
90578         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
90579
90580 2003-10-06  Bruno Haible  <bruno@clisp.org>
90581
90582         * modules/fatal-signal: New file.
90583         * MODULES.html.sh (func_all_modules): Add fatal-signal.
90584
90585 2003-10-06  Bruno Haible  <bruno@clisp.org>
90586
90587         * m4/fatal-signal.m4: New file.
90588         * m4/signalblocking.m4: New file, from GNU gettext.
90589
90590 2003-10-06  Bruno Haible  <bruno@clisp.org>
90591
90592         * lib/version-etc-2.h: Remove file.
90593         * lib/version-etc-2.c: Remove file.
90594
90595 2003-10-06  Bruno Haible  <bruno@clisp.org>
90596
90597         * lib/fatal-signal.h: New file, from GNU gettext.
90598         * lib/fatal-signal.c: New file, from GNU gettext.
90599
90600 2003-10-05  Paul Eggert  <eggert@twinsun.com>
90601
90602         * README: Rework advice for preventing empty .o files.
90603         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
90604         not <sys/types.h>.
90605
90606 2003-10-04  Karl Berry  <karl@gnu.org>
90607
90608         * lib/argp*: update from libc.
90609
90610 2003-10-04  Karl Berry  <karl@gnu.org>
90611
90612         * config/config.{guess,sub}: update from config.
90613
90614 2003-10-02  Bruno Haible  <bruno@clisp.org>
90615
90616         * modules/lchown (Include): Add lchown.h.
90617         * modules/time_r (Include): Use "..." syntax.
90618         * modules/xgetdomainname (Include): Add xgetdomainname.h.
90619
90620 2003-10-01  Simon Josefsson  <jas@extundo.com>
90621
90622         * MODULES.html.sh (func_all_modules): Move gethostname from section
90623         'based on' to section 'lacking' POSIX:2001.
90624
90625 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
90626
90627         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
90628         to output mode on the same stream.
90629
90630 2003-09-29  Paul Eggert  <eggert@twinsun.com>
90631
90632         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
90633         Fix arg typo in previous patch.
90634
90635 2003-09-28  Jim Meyering  <jim@meyering.net>
90636
90637         * lib/error.c: Correct cpp indentation.
90638
90639 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90640
90641         * modules/free: New file.
90642
90643 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90644
90645         * m4/free.m4: New file.
90646
90647 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90648
90649         * lib/minmax.h (MIN, MAX)
90650         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
90651         Omit the special code that used __typeof__, since we worry that
90652         it could be more trouble than it's worth.  See:
90653         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
90654         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
90655
90656         * lib/free.c: New file.
90657
90658 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
90659
90660         Trivial fixes to Makefile.am parts of module listings.
90661         * modules/strstr: Append strstr.h to lib_SOURCES.
90662         * modules/strcase: Likewise, for strcase.h.
90663
90664 2003-09-27  Karl Berry  <karl@gnu.org>
90665
90666         * config/mkinstalldirs: update from automake.
90667
90668 2003-09-26  Paul Eggert  <eggert@twinsun.com>
90669
90670         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
90671         (error_tail): Do not loop, reallocating temporary buffer, since
90672         the output cannot contain more wide characters than the input
90673         contains bytes, the size must be big enough already.  This avoids
90674         one potential size overflow calculation.  Check for size overflow
90675         when calculating temporary buffer size.  Free temporary buffer
90676         when done, if it was allocated with malloc; this plugs a memory
90677         leak.  Remove casts from void * to pointers, that are no longer
90678         needed now that we're assuming C89 or better.
90679
90680         Merge error changes from glibc.
90681
90682         * lib/error.c, error.h: Update copyright notice header to match glibc.
90683         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
90684         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
90685         Disable cancellation while printing error.
90686         * lib/error.h: Prepend __ to parameter names.
90687
90688 2003-09-26  Jim Meyering  <jim@meyering.net>
90689
90690         * lib/error.c (error_tail): Move some declarations
90691         into inner scope where the local variables are used.
90692
90693 2003-09-26  Bruno Haible  <bruno@clisp.org>
90694
90695         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
90696         stpncpy().
90697         Don't define stpncpy through config.h; it's now done through stpncpy.h.
90698
90699 2003-09-26  Bruno Haible  <bruno@clisp.org>
90700
90701         * lib/stpncpy.h (gnu_stpncpy): New declaration.
90702         (stpncpy): Define as alias for gnu_stpncpy.
90703         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
90704
90705 2003-09-25  Simon Josefsson  <jas@extundo.com>
90706
90707         * lib/xgetdomainname.h: New file.
90708         * lib/xgetdomainname.c: New file.
90709
90710 2003-09-25  Simon Josefsson  <jas@extundo.com>
90711             Bruno Haible  <bruno@clisp.org>
90712
90713         * modules/getdomainname: New file.
90714         * modules/xgetdomainname: New file.
90715         * MODULES.html.sh (func_all_modules): Add getdomainname,
90716         xgetdomainname.
90717
90718 2003-09-25  Simon Josefsson  <jas@extundo.com>
90719             Bruno Haible  <bruno@clisp.org>
90720
90721         * m4/getdomainname.m4: New file.
90722
90723 2003-09-25  Simon Josefsson  <jas@extundo.com>
90724             Bruno Haible  <bruno@clisp.org>
90725
90726         * lib/getdomainname.h: New file.
90727         * lib/getdomainname.c: New file.
90728
90729 2003-09-25  Karl Berry  <karl@gnu.org>
90730
90731         * lib/argp-fmtstream.c, argp-help.c: update from libc.
90732
90733 2003-09-25  Karl Berry  <karl@gnu.org>
90734
90735         * config/install-sh: update from automake.
90736
90737 2003-09-25  Bruno Haible  <bruno@clisp.org>
90738
90739         * modules/version-etc-2: New file, from modules/version-etc with
90740         modifications.
90741         * MODULES.html.sh (func_all_modules): Add version-etc-2.
90742
90743 2003-09-25  Bruno Haible  <bruno@clisp.org>
90744
90745         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
90746         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
90747
90748 2003-09-24  Simon Josefsson  <jas@extundo.com>
90749
90750         * modules/xgethostname: Add xgethostname.h.
90751
90752 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90753
90754         * lib/linebuffer.c (freebuffer): Don't free the argument, just
90755         the buffer associated with the argument.  Bug reported by
90756         Simon Josefsson.
90757
90758 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90759
90760         * README: Document assumptions that 'int' is at least 32 bits
90761         wide, that integer arithmetic is 2's complement without overflow,
90762         that there are no holes in integer values, that adding sizes of
90763         two nonoverlapping objects can't overflow, and that all-bits-zero
90764         yields scalar zero.  Fix spelling and capitalization typos.
90765
90766 2003-09-19  Karl Berry  <karl@gnu.org>
90767
90768         * lib/argp.h: update from libc.
90769
90770 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90771
90772         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
90773         to avoid spurious warnings like "AC_RUN_IFELSE was called before
90774         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
90775
90776 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90777
90778         * gnulib-tool: Use "test -h", not "test -L", for portability
90779         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
90780         (tags_regexp): Remove, since \| doesn't conform to POSIX.
90781         (sed_extract_prog): Issue s commands one-by-one, rather than
90782         using \| in one s command.
90783
90784 2003-09-16  Paul Eggert  <eggert@twinsun.com>
90785
90786         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
90787         input error, instead of returning NULL the next time we are called
90788         (and therefore losing track of errno).
90789
90790 2003-09-16  Bruno Haible  <bruno@clisp.org>
90791
90792         * gnulib-tool (func_create_testdir): Warn about duplicated
90793         dependencies.
90794
90795 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90796
90797         * modules/argmatch, modules/fatal, modules/obstack,
90798         modules/xalloc, modules/xgethostname: Sort dependencies by
90799         importance, not alphabetically.
90800
90801 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90802
90803         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
90804         fails, so that the caller gets the proper errno.
90805
90806         * lib/readutmp.c (read_utmp): Likewise.
90807         Check for fstat error.  Close stream and free storage
90808         when failing.
90809
90810 2003-09-14  Karl Berry  <karl@gnu.org>
90811
90812         * config/srclist.txt (strdup.c): disable for c89 changes.
90813
90814 2003-09-14  Jim Meyering  <jim@meyering.net>
90815
90816         * lib/getloadavg.c: Correct cpp indentation.
90817         * lib/strdup.c: Likewise.
90818         * lib/vasnprintf.c: Likewise.
90819
90820 2003-09-14  Bruno Haible  <bruno@clisp.org>
90821
90822         * modules/fwriteerror: New file.
90823         * MODULES.html.sh (func_all_modules): Add fwriteerror.
90824
90825 2003-09-14  Bruno Haible  <bruno@clisp.org>
90826
90827         * lib/fwriteerror.h: New file.
90828         * lib/fwriteerror.c: New file.
90829
90830 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90831
90832         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
90833         modules/xgethostname, modules/xalloc: Depend on exit.
90834
90835 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90836
90837         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
90838
90839         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
90840         and AC_MINIX, too, so that their extensions are available.
90841
90842         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
90843         This macro has been superseded by gl_BACKUPFILE.
90844
90845         More patches to assume C89 or better.
90846
90847         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
90848
90849         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
90850         unconditionally.
90851         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
90852         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
90853         Include <string.h>, <stdlib.h> unconditionally.
90854         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
90855         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
90856         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
90857         headers or for string.h.
90858         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
90859         or strtoul.
90860
90861         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
90862         headers.
90863         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
90864         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90865         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
90866         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
90867         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90868         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
90869         memcpy, memset.
90870         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
90871         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
90872         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
90873         strtol.
90874         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
90875         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
90876         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
90877         strtoul.
90878
90879 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90880
90881         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
90882         * lib/obstack.c [!defined _LIBC]: Likewise.
90883         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
90884         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
90885         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
90886
90887         More changes to assume C89 or better.
90888
90889         * lib/error.c (error_tail): Assume vprintf.
90890
90891         * lib/argmatch.c (getenv): Remove decl.
90892         * lib/progreloc.c (get_full_program_name): Define via prototype.
90893         * lib/setenv.c (clearenv): Likewise.
90894         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
90895         needed.
90896         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
90897         (malloc, memcpy): Remove decls.
90898         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
90899         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
90900         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90901         (memcpy): Remove macro.
90902         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
90903         (__P): Remove.  All uses removed.
90904         (PTR): Remove.  All uses changed to void *.
90905         (CHAR_BIT, NULL): Remove.
90906         (spaces, zeros, memset_space, memset_zero)
90907         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
90908         Remove.
90909         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
90910         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
90911         Define with prototype.
90912         Remove now-unnecessary prototype decl.
90913         (extra_args_spec): Assume ANSI C.  All uses changed.
90914         (extra_args_spec_iso): Remove.
90915         (my_strftime, emacs_strftimeu): Define via prototype.
90916         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
90917         unconditionally.
90918         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
90919         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
90920         (strtoul, strtol): Remove decls.
90921         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
90922         LONG_MAX): Remove.
90923         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90924         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
90925         (LOCALE_PARAM_PROTO): New macro.
90926         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
90927         (INTERNAL (strtol), strtol): Define with a prototype.
90928         (PARAMS): Remove.  All uses removed.
90929         * lib/tempname.c: Include <string.h> unconditionally.
90930         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
90931         * lib/xgethostname.c (main): Define with a prototype.
90932         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
90933         Include <stdlib.h> unconditionally.
90934         (calloc, malloc, realloc, free): Remove decls.
90935         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
90936         Include <stdlib.h> unconditionally.  Sort include file names.
90937         (strtod): Remove.
90938         (xstrtod): Define with a prototype.
90939         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
90940         (strtol, strtoul): Remove decls.
90941
90942 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90943
90944         More patches to assume C89 or better.
90945         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
90946         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
90947         string.h, memchr, STDC_HEADERS.
90948
90949 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90950
90951         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
90952         Include <stdlib.h>, <string.h> unconditionally.
90953         Remove now-unnecessary cast to char *.
90954         * lib/strnlen.c: Include <string.h> unconditionally.
90955         * lib/yesno.c (yesno): Define with a prototype.
90956
90957 2003-09-11  Bruno Haible  <bruno@clisp.org>
90958
90959         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
90960
90961 2003-09-10  Jim Meyering  <jim@meyering.net>
90962
90963         * lib/error.c: Correct indentation of cpp directives.
90964
90965 2003-09-10  Bruno Haible  <bruno@clisp.org>
90966
90967         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
90968         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
90969         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
90970         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
90971         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
90972         <stdlib.h> and <string.h> checks.
90973         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
90974         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
90975
90976 2003-09-10  Bruno Haible  <bruno@clisp.org>
90977
90978         * lib/strcspn.c: Include <string.h> unconditionally.
90979         * lib/strpbrk.c: Include <string.h> unconditionally.
90980         * lib/strstr.c: Include <string.h> unconditionally.
90981         * lib/unicodeio.c: Include <string.h> unconditionally.
90982         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
90983         * lib/unsetenv.c: Likewise.
90984         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
90985         * lib/yesno.c: Include <stdlib.h> unconditionally.
90986         (rpmatch): Add prototype.
90987
90988 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90989
90990         More patches to assume C89 or better.
90991         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
90992         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
90993         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
90994         or for string.h.
90995         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
90996         stdlib.h.
90997         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
90998         C headers.
90999         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
91000         string.h.
91001         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
91002         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
91003         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
91004         or for string.h.
91005         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
91006         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
91007         C headers.
91008         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
91009         memcpy.
91010         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
91011         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
91012         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
91013         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
91014         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
91015         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
91016         string.h, free.
91017         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
91018         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
91019         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
91020         C headers, or for string.h.
91021         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
91022         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
91023         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
91024         headers, memory.h, stdlib.h, string.h, strings.h.
91025         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
91026         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
91027         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
91028         strchr.
91029         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
91030         headers, memory.h, string.h.
91031         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
91032         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
91033         free.
91034         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
91035         headers.
91036         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
91037         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
91038         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
91039         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
91040         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
91041
91042 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91043
91044         More K&R removal.
91045
91046         * lib/acosl.c (main): Use a prototype.
91047         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
91048         tanl.c: Likewise.
91049
91050         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
91051
91052         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
91053         (getopt, etopt_long, getopt_long_only, _getopt_internal)
91054         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
91055         with a prototype.
91056         * lib/getopt.c (const): Remove macro.
91057         Include <string.h> unconditionally.
91058         (my_index): Remove; all uses changed to strchr.
91059         (strlen): Remove decl.
91060         (exchange): Remove forward decl; no longer needed.
91061         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
91062         Define with prototype.
91063         * lib/getopt1.c (const): Remove macro.
91064         (getopt_long, getopt_long_only, main): Define with prototype.
91065
91066         * lib/getugroups.c: Include <string.h> unconditionally.
91067
91068         * lib/getusershell.c: Include <stdlib.h> unconditionally.
91069         (getusershell, setusershell, endusershell, readname, main):
91070         Define with prototypes.
91071
91072         * lib/group-member.c: Include group-member.h first.
91073         Include <stdlib.h> unconditionally.
91074
91075         * lib/hard-locale.c: Include hard-locale.h first.
91076         Include <stdlib.h>, <string.h> unconditionally.
91077
91078         * lib/hash.c (free, malloc): Remove decls.
91079         Include <stdlib.h> unconditionally.
91080
91081         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
91082         (getenv): Do not declare.
91083
91084         * lib/idcache.c: Include <string.h> unconditionally.
91085
91086         * lib/long-options.c: Include long-options.h first, to test interface.
91087         Include <stdlib.h> unconditionally.
91088
91089         * lib/makepath.c: Include makepath.h first, to test interface.
91090         Include <stdlib.h> and <string.h> unconditionally.
91091
91092         * lib/linebuffer.c: Include <stdlib.h>.
91093         (free): Remove decl.
91094
91095         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
91096         stddef.h. rpl_malloc returns void *, not char *.
91097         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
91098         prototype.
91099
91100         * lib/md5.h: Include <limits.h> unconditionally.
91101         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
91102         (__P): Remove; all uses removed.
91103         * lib/md5.c: Include "md5.h" first.
91104         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
91105         md5_buffer, md5_process_bytes, md5_process_block):
91106         Define with prototypes.
91107         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
91108         * lib/sha.c: Include "sha.h" first.
91109         Include <stdlib.h>, <string.h> unconditionally.
91110
91111         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
91112         * lib/memcmp.c (__ptr_t): Likewise.
91113         * lib/memrchr.c (__ptr_t): Likewise.
91114         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
91115         Include <string.h> unconditionally.
91116         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
91117         * lib/memchr.c: Include <stdlib.h> unconditionally.
91118         * lib/memchr.c (LONG_MAX): Remove.
91119         * lib/memrchr.c (LONG_MAX): Likewise.
91120         * lib/memchr.c (__memchr): Define via a prototype.
91121         * lib/memrchr.c (__memrchr): Likewise.
91122         * lib/memcmp.c (__P): Remove, and remove all uses.
91123         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
91124         Remove forward decls; no longer needed.
91125         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
91126         Use types required by C89 in prototype.
91127
91128         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
91129         * lib/savedir.c: Likewise.
91130         * lib/mkdir.c (free): Remove decl.
91131         * lib/rmdir.c (rmdir): Define with a prototype.
91132         * lib/savedir.c: Include savedir.h first, to test interface.
91133
91134         * lib/mktime.c (STDC_HEADERS): Remove.
91135         Include <stdlib.h>, <string.h> unconditionally.
91136
91137         * lib/modechange.c: Include <stdlib.h> unconditionally.
91138         (malloc): Remove decl.
91139
91140         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
91141         (free): Remove decl.
91142
91143         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
91144         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
91145         (This type really should be intptr_t, but that's a C99ism.)
91146         (_obstack_memcpy): Remove: all uses changed to memcpy.
91147         Include <string.h> unconditionally.
91148         (struct obstack): Assume __STDC__ for types of members
91149         chunkfun, freefun, extra_arg.
91150         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
91151         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
91152         obstack_begin, obstack_specify_allocation,
91153         obstack_specify_allocation_with_arg, obstack_chunkfun,
91154         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
91155         Remove unprototyped decls and the macros that use them.
91156         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
91157         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
91158         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
91159         (defined __STDC__ && __STDC__)]:
91160         Remove nonprototyped code.
91161         Include <stdlib.h> unconditionally.
91162         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
91163         _obstack_allocated_p, _obstack_free, obstack_free,
91164         _obstack_memory_used, print_and_abort):
91165         Define using prototypes.
91166         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
91167         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
91168         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
91169         obstack_next_free, obstack_object_size, obstack_room) [0]:
91170         Remove unused, unprototyped code.
91171
91172         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
91173
91174         * lib/physmem.c (physmem_total, physmem_available, main): Define
91175         with prototypes.
91176
91177         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
91178         (main): Define with a prototype.
91179
91180         * lib/posixver.c (getenv): Remove decl.
91181
91182         * lib/putenv.c (malloc): Returns void *, not char *.
91183         Include <string.h> unconditionally.
91184         (strchr, memcpy, NULL): Do not define.
91185
91186         * lib/readtokens.c: Include readtokens.h first, to test interface.
91187         Include <stdlib.h>, <string.h> unconditionally.
91188         (init_tokenbuffer): Define with a prototype.
91189
91190         * lib/regex.c (PARAMS): Remove.  All uses removed.
91191         All uses of _RE_ARGS removed, too.
91192         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
91193         unconditionally.
91194         (bzero): Assume memset exists.
91195         (memcmp, memcpy, NULL): Remove.
91196         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
91197         char, or assignments to local vars of type signed char.
91198         (init_syntax_once, PREFIX(extract_number_and_incr),
91199         PREFIX(print_partial_compiled_pattern),
91200         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
91201         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
91202         PREFIX(regex_grow_registers), PREFIX(regex_compile),
91203         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
91204         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
91205         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
91206         wcs_compile_range, byte_compile_range, truncate_wchar,
91207         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
91208         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
91209         count_mbs_length, wcs_re_match_2_internal,
91210         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
91211         PREFIX(alt_match_null_string_p),
91212         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
91213         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
91214         regfree, PREFIX(extract_number)): Define with prototype.  Remove
91215         now-unnecessary declaration, if any.
91216         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
91217         regcomp, regexec):
91218         Remove now-unnecessary casts among pointer types.
91219         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
91220
91221         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
91222         (free): Remove decl.
91223
91224         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
91225
91226         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
91227         (free): Remove decl.
91228
91229         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
91230         * lib/xgetcwd.c: Likewise.
91231
91232         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
91233         (free): Remove decl.
91234
91235         * lib/strchrnul.c (strchrnul): Define with a prototype.
91236         Fix bug: c_in was not converted to char before searching.
91237
91238         The following changes are not K&R related:
91239
91240         * lib/group-member.h: Include <sys/types.h>, so that this file is
91241         self-contained.
91242         * lib/makepath.h: Likewise.
91243
91244         * lib/getusershell.c (readname, default_index, line_size, readname):
91245         Use size_t, not int, for sizes.
91246         (readname): If the size overflows, report an error instead of
91247         looping forever.
91248
91249 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91250
91251         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
91252         libc.
91253
91254 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91255
91256         * README: New section: portability guidelines.
91257
91258 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91259
91260         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
91261         C89 spec.
91262
91263 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91264
91265         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
91266
91267 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91268
91269         Assume C89 or better; remove K&R cruft.
91270         A few of these changes were first proposed by Derek Robert Price
91271         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
91272
91273         * lib/addext.c: Include <string.h> unconditionally.
91274         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
91275         Don't declare getenv or malloc.
91276
91277         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
91278         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
91279         (NULL): Remove.
91280         (find_stack_direction, alloca): Use prototypes.
91281
91282         * lib/atexit.c (atexit): Define using a prototype.
91283
91284         * lib/basename.c, dirname.c, stripslash.c:
91285         Include <string.h> unconditionally.
91286
91287         * lib/bcopy.c: Include <stddef.h>.
91288         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
91289
91290         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
91291
91292         * lib/error.h (error, error_at_line, error_print_progname)
91293         [! (defined (__STDC__) && __STDC__)]: Remove decls.
91294         * lib/error.c: Include error.h first, to check interface.
91295         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91296         (VA_START): Remove; all uses changeed to va_start.
91297         (exit, strerror): Remove decls.
91298         (error_print_progname): Prototype uncondionally.
91299         Don't include <errno.h>; no longer needed.
91300         (private_strerror): Remove.
91301         (error_tail): Always define.
91302         (error, error_at_line): Assume C89 or better; always use prototypes.
91303         * lib/fatal.c: Include "fatal.h" first, to test interface.
91304         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91305         (VA_START): Remove; all uses changed to va_start.
91306         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
91307         this case.
91308         (exit): Remove decl.
91309         (fatal): Prototype unconditionally.  Assume va_start works.
91310         Abort at end, to pacify gcc.
91311
91312         * lib/euidaccess.c (main): Define with a prototype.
91313
91314         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
91315
91316         * lib/exitfail.c: Include <stdlib.h> unconditionally.
91317
91318         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
91319         prototypes.
91320         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
91321         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
91322         (getenv): Remove decl.
91323         (fnmatch): Define using a prototype.
91324         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
91325         (FCT): Define using a prototype.
91326
91327         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
91328
91329         * lib/gethostname.c: Include <stddef.h>.
91330         (gethostname): Define with prototype.  Length is size_t, not int.
91331
91332 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91333
91334         Assume C89 or better; remove K&R cruft.
91335         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
91336         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
91337         string.h, getenv, malloc.
91338         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
91339         headers.
91340         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
91341         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
91342         do not check for strerror.
91343         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
91344         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
91345         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
91346         do not check for doprnt or vprintf.
91347         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
91348         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
91349
91350 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91351
91352         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
91353         getversion.c should have been removed then, but was accidentally
91354         preserved.
91355
91356         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
91357         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
91358
91359 2003-09-08  Karl Berry  <karl@gnu.org>
91360
91361         * config/config.sub, config.guess, srclistvars.sh: update from savannah
91362                 config, forget about prep.
91363
91364         * config/depcomp, missing: update from automake.
91365
91366 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91367
91368         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
91369         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91370
91371 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91372
91373         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
91374         copy_tm_result.  Bug reported by Simon Josefsson in
91375         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91376
91377 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91378
91379         * m4/time_r.m4: New file.
91380         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
91381         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
91382         is. Check for timegm declaration.
91383         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
91384         Do not check for gmtime_r.
91385         Replace mktime if __mktime_internal does not exist and if mktime
91386         hasn't been replaced already.
91387
91388 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91389
91390         * lib/time_r.c, lib/time_r.h: New files.
91391
91392         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
91393         __localtime_r.
91394         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
91395         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
91396
91397         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
91398         __gmtime_r.
91399         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
91400         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
91401         Include <time_r.h>.
91402
91403         * lib/timegm.c: Switch to glibc implementation, with the following
91404         changes:
91405         [defined HAVE_CONFIG_H]: Include <config.h>.
91406         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
91407         (__mktime_internal) [!defined _LIBC]: New decl.
91408         (__gmtime_r) [!defined _LIBC]: New macro and function.
91409         (timegm): Use a prototype, since gnulib assumes C89.
91410         Do not bother declaring tmp to be const, as it's not really usefu.
91411         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
91412         (timegm): Declare only if HAVE_DECL_TIMEGM.
91413
91414 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91415
91416         * MODULES.html.sh (func_all_modules): Add time_r.
91417         * modules/time_r: New file.
91418         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
91419         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
91420
91421 2003-09-03  Paul Eggert  <eggert@twinsun.com>
91422
91423         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
91424         Bug reported by Lute Kamstra in
91425         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
91426
91427         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
91428         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
91429         course with correspondingly smaller numbers for tomorrow and
91430         yesterday.  From Tadayoshi Funaba.  Originally installed into
91431         sh-utils on 1999-08-07, but the patch got lost (I guess during the
91432         coreutils merge?).
91433
91434 2003-08-31  Simon Josefsson  <jas@extundo.com>
91435
91436         * modules/timegm: New file.
91437         * MODULES.html.sh (func_all_modules): Add timegm.
91438
91439 2003-08-31  Simon Josefsson  <jas@extundo.com>
91440
91441         * m4/timegm.m4: New file.
91442
91443 2003-08-31  Simon Josefsson  <jas@extundo.com>
91444
91445         * lib/timegm.h: New file.
91446         * lib/timegm.c: New file.  Based on
91447         wget-1.8.2/src/http.c:mktime_from_utc.
91448
91449 2003-08-31  Karl Berry  <karl@gnu.org>
91450
91451         * lib/argp.h: update from libc.
91452
91453 2003-08-28  Bruno Haible  <bruno@clisp.org>
91454
91455         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
91456         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
91457         followed by '#define fnmatch fnmatch_posix' gives an error.
91458
91459 2003-08-28  Bruno Haible  <bruno@clisp.org>
91460
91461         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
91462         warning on QNX, which defines O_BINARY to 000000.
91463
91464 2003-08-27  Jim Meyering  <jim@meyering.net>
91465
91466         * m4/mkstemp.m4: Require that the system mkstemp be able to create
91467         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
91468         would fail after 32.  Reported by Danny Levinson.  Details here:
91469         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
91470
91471 2003-08-24  Bruno Haible  <bruno@clisp.org>
91472
91473         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
91474         MSVC7 <stdio.h> is included later.
91475
91476 2003-08-22  Simon Josefsson  <jas@extundo.com>
91477
91478         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
91479
91480 2003-08-20  Karl Berry  <karl@gnu.org>
91481
91482         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
91483
91484 2003-08-20  Bruno Haible  <bruno@clisp.org>
91485
91486         * modules/progname: New file.
91487         * MODULES.html.sh (func_all_modules): Add progname.
91488
91489 2003-08-20  Bruno Haible  <bruno@clisp.org>
91490
91491         * lib/progname.h: New file, from GNU gettext.
91492         * lib/progname.c: New file, from GNU gettext.
91493         * lib/progreloc.c: New file, from GNU gettext.
91494
91495 2003-08-19  Jim Meyering  <jim@meyering.net>
91496
91497         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
91498         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
91499
91500 2003-08-19  Bruno Haible  <bruno@clisp.org>
91501
91502         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
91503         more.
91504
91505 2003-08-19  Bruno Haible  <bruno@clisp.org>
91506
91507         * lib/xstrdup.c: Assume <string.h> exists.
91508
91509 2003-08-18  Paul Eggert  <eggert@twinsun.com>
91510
91511         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
91512         in makefile rules.
91513
91514 2003-08-18  Jim Meyering  <jim@meyering.net>
91515
91516         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
91517         * m4/lib-ld.m4: Likewise.
91518
91519 2003-08-18  Jim Meyering  <jim@meyering.net>
91520
91521         * lib/setenv.h: Indent nested cpp directive.
91522         * lib/vasnprintf.c: Remove trailing blanks.
91523
91524 2003-08-17  Simon Josefsson  <jas@extundo.com>
91525
91526         * modules/xstrndup: New file.
91527         * MODULES.html.sh (func_all_modules): Add xstrndup.
91528
91529 2003-08-17  Simon Josefsson  <jas@extundo.com>
91530
91531         * modules/argp: Fix autoconf macro name. Add more dependencies.
91532
91533 2003-08-17  Simon Josefsson  <jas@extundo.com>
91534
91535         * m4/xstrndup.m4: New file.
91536
91537 2003-08-17  Simon Josefsson  <jas@extundo.com>
91538
91539         * m4/argp.m4: New file.
91540
91541 2003-08-17  Simon Josefsson  <jas@extundo.com>
91542             Bruno Haible  <bruno@clisp.org>
91543
91544         * lib/xstrndup.h: New file.
91545         * lib/xstrndup.c: New file.
91546
91547 2003-08-17  Bruno Haible  <bruno@clisp.org>
91548
91549         * modules/strndup (Files, Include): Add lib/strndup.h.
91550
91551 2003-08-17  Bruno Haible  <bruno@clisp.org>
91552
91553         * modules/euidaccess (Files): Add lib/euidaccess.h.
91554
91555 2003-08-17  Bruno Haible  <bruno@clisp.org>
91556
91557         * lib/strndup.h: New file.
91558
91559 2003-08-17  Bruno Haible  <bruno@clisp.org>
91560
91561         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
91562         like AC_GNU_SOURCE.
91563         * modules/extensions (configure.ac): Comment out the invocation of
91564         gl_USE_SYSTEM_EXTENSIONS.
91565
91566 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91567
91568         Merges from coreutils, etc.
91569         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
91570         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
91571         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
91572         fixing a typo.
91573         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
91574         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
91575
91576 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91577
91578         Document merge from coreutils.
91579         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
91580         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
91581         * modules/utime: Add m4/utimes-null.m4.
91582
91583 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91584
91585         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
91586         space, undoing this 2003-08-12 change:
91587         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91588
91589 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91590
91591         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
91592         strtoul.c from libc, undoing this 2003-08-12 change:
91593         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91594
91595 2003-08-16  Jim Meyering  <jim@meyering.net>
91596
91597         Merges from coreutils.
91598         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
91599         prefix.  Adjust cache variables similarly.  Create 500 rather than
91600         just 300 files, to exercise bug on Darwin6.5, too.
91601         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
91602         $missing_dir.
91603         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
91604         AM_SYS_POSIX_TERMIOS.
91605         Reported by mkc@mathdogs.com.
91606         Also change use of $am_cv_sys_posix_termios
91607         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
91608         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
91609         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
91610         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
91611         in /proc/mounts until it finds one with matching device number.  This
91612         is unnecessary when the FILE argument *is* a mount point.  No stat call
91613         is necessary in that case.  So, disable the statvfs-testing code on
91614         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
91615         as RedHat bug# 84846.
91616         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91617         to 1MB, so as not to render systems with no stack size limit (e.g.,
91618         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91619         Include <unistd.h>.  On some systems,
91620         it is required for the definition of _SC_PAGESIZE.
91621
91622 2003-08-16  Jim Meyering  <jim@meyering.net>
91623
91624         Merge from coreutils.
91625         * lib/xstrtoimax.c: #else #if -> #elif.
91626         * lib/xstrtoumax.c: Likewise.
91627
91628 2003-08-16  Jim Meyering  <jim@meyering.net>
91629
91630         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
91631         * m4/utimes.m4: Removed.
91632         * m4/utimes-null.m4: Renamed from utimes.m4.
91633
91634         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91635         to 1MB, so as not to render systems with no stack size limit (e.g.,
91636         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91637         Include <unistd.h>.  On some systems,
91638         it is required for the definition of _SC_PAGESIZE.
91639
91640 2003-08-16  Jim Meyering  <jim@meyering.net>
91641         and Paul Eggert  <eggert@cs.ucla.edu>
91642
91643         Merges from coreutils, etc.
91644
91645         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
91646         using the latest version from cvs.  This avoids problems with #line
91647         directives using a vendor (Sun) compiler.
91648         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
91649         Don't set GETGROUPS_LIB here; now it's
91650         done via getgroups.m4's wrapper function.
91651         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
91652         rather than just in sh-util/configure.in, so that the
91653         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
91654         same.
91655         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
91656         AC_FUNC_GETLOADAVG where to find getloadavg.c.
91657         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
91658         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
91659         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
91660         Remove code that is now done by the newly-required macros.
91661         Append $(EXEEXT) to DF_PROG.
91662         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
91663         Do not invoke or require the following here,
91664         since prereq.m4 or some gnulib .m4 now does this for us:
91665         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
91666         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
91667         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
91668         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
91669         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
91670         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
91671         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
91672         AC_FUNC_OBSTACK.
91673         Do not replace the following functions, as this is now the job
91674         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
91675         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
91676         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
91677         atexit getpass, strdup, getpagesize.
91678         Replace 'raise'.
91679         Do not check for the following functions, as this is now the job
91680         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
91681         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
91682         setregid.
91683         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
91684         Check for sys/sysctl.h.
91685         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
91686         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
91687         of checking for ssize_t ourselves.
91688
91689         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
91690         Require every macro that gnulib/modules/* suggests for us.
91691         (jm_PREREQ_ADDEXT): New macro.
91692         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
91693         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
91694
91695         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
91696         (gl_PHYSMEM): Use it.
91697         Also check for `table' function.
91698         Check for new headers and functions.
91699         Add check for sys/sysmp.h.
91700         With suggestions from Kaveh Ghazi.
91701         Ignore headers that are present but cannot be compiled.  This
91702         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
91703         C 5.4.
91704
91705 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91706
91707         Document merge from coreutils.
91708         * modules/userspec: Depend on posixver.
91709         * modules/strftime: Depend on tzset.
91710
91711 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91712
91713         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
91714         rather than tab, after '#' in shell-script copyright notices.
91715         Suggested by Bruno Haible.
91716
91717 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91718
91719         * config/srclist-update: Use three spaces, rather than tab, after '#'
91720         in shell-script copyright notices.  Suggested by Bruno Haible.
91721         Remove unnecessary parenthesization in regular expression.
91722
91723 2003-08-15  Jim Meyering  <jim@meyering.net>
91724
91725         Merge from coreutils.
91726         * lib/xgethostname.c: Include <stdlib.h>.
91727         (xghostname): Don't exit for anything other than memory-related
91728         failure; just return NULL.
91729         * lib/userspec.c: Include "posixver.h".
91730         (parse_user_spec): Accept `.' as a separator only
91731         in pre-POSIX-200112 mode.
91732         * lib/strtoimax.c: Use #elif rather than #else #if.
91733         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
91734         Remove function, now that we can rely on a working tzset function.
91735         [!_LIBC]: Ensure that the required autoconf test has been run.
91736         [!defined _NL_CURRENT && HAVE_STRFTIME]:
91737         Use underlying_strftime for %r.
91738         * lib/sha.c: Merge in some clean-up and optimization changes from
91739         glibc.
91740         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
91741         Ensure that it is a multiple of 64.
91742         Rearrange loop exit tests so as to avoid performing an
91743         additional fread after encountering an error or EOF.
91744         * lib/realloc.c: Update copyright date.
91745
91746 2003-08-15  Jim Meyering  <jim@meyering.net>
91747         and Paul Eggert  <eggert@twinsun.com>
91748
91749         Merge from coreutils.
91750         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
91751         member but strut utmpx does not.  Needed for AIX 4.3.3.
91752         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
91753
91754 2003-08-15  Jim Meyering  <jim@meyering.net>
91755         and Paul Eggert  <eggert@cs.ucla.edu>
91756
91757         Merges from coreutils, etc.
91758         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
91759         Require gl_FUNC_TZSET_CLOBBER.
91760         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
91761         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
91762         members.
91763
91764 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91765
91766         Help the merge from coreutils.
91767         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
91768         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
91769         * m4/tzset.m4: Use it too.
91770
91771 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91772
91773         * modules/tzset: New file.
91774
91775 2003-08-14  Jim Meyering  <jim@meyering.net>
91776
91777         Merges from coreutils.
91778         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
91779         variable names, rather than @FNMATCH_H@.
91780         * modules/alloca: Likewise for $(ALLOCA_H).
91781
91782         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
91783         the three copies of the literal target, `fnmatch.h'.
91784         * modules/alloca (alloca.h): Likewise.
91785
91786 2003-08-14  Jim Meyering  <jim@meyering.net>
91787
91788         Merge from coreutils.
91789         * m4/tzset.m4: New file.
91790         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
91791         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
91792         otherwise, AIX 5.1 systems would end up using the latter.
91793         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
91794         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
91795         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
91796         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
91797
91798 2003-08-14  Jim Meyering  <jim@meyering.net>
91799
91800         Merge from coreutils.
91801         * lib/obstack.h: Whitespace changes.
91802         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
91803         and xcalloc return values.
91804         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
91805         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
91806         hang on OSF/1 5.1 for DIR on both local and remote file systems.
91807         Reported by (and fix confirmed by) Nelson H. F. Beebe.
91808         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
91809         error from mntctl.
91810         Use mntctl's return value to drive the entry-processing loop, since
91811         we can't rely on the value of the vmt_length member in the last
91812         entry.  On some systems doing so could result in exhausting
91813         virtual memory.  Based in part on a patch from Mike Jetzer.
91814
91815 2003-08-14  Jim Meyering  <jim@meyering.net>
91816         and Paul Eggert  <eggert@twinsun.com>
91817
91818         Merges from coreutils, plus other fixes.
91819         * lib/physmem.c: Merge in portability changes from gcc/libiberty
91820         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
91821         for credits and details.  Thanks to Kaveh Ghazi for helping
91822         to keep these files in sync.
91823         (ARRAY_SIZE): Define it.
91824         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
91825         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
91826         (memcasecmp): Don't assume size_t fits in unsigned int.
91827         Remove casts and duplicate code.
91828         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
91829         (memcpy): Remove definition.
91830         Merge in some clean-up and optimization changes from glibc.
91831         [BLOCKSIZE]: Move definition to top of file.
91832         Ensure that it is a multiple of 64.
91833         Rearrange loop exit tests so as to avoid performing an
91834         additional fread after encountering an error or EOF.
91835         * lib/md5.h (md5_uintptr): Define.
91836         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
91837         return to the initial working directory.  Preserve errno
91838         for caller.
91839         * lib/idcache.c: Include "xalloc.h".
91840         (xmalloc, xrealloc): Remove decls.
91841         (getuser): Remove casts no longer required in C89.
91842         * lib/human.c: Include stdio.h, for sprintf.
91843         * lib/group-member.c: Include "xalloc.h".
91844         (xmalloc, xrealloc): Remove decls.
91845         (get_group_info): Remove casts no longer required in C89.
91846         * lib/getusershell.c (readname): Remove casts no longer required in
91847         C89.
91848         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
91849         * lib/getline.c: Whitespace fix, from coreutils.
91850
91851 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91852
91853         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
91854         Check for isascii.
91855
91856         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91857         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91858         Undo previous (whitespace-only) change.
91859
91860 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91861
91862         * lib/exclude.c: Include <ctype.h>
91863         (IN_CTYPE_DOMAIN): New macro.
91864         (is_space): New fn.
91865         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
91866         and empty lines.
91867
91868         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91869         Undo previous (whitespace-only) change.
91870
91871 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91872
91873         * config/srclist-update: Change update back to the old behavior,
91874         leaving whitespace alone.  Use one 'sed' command rather than a
91875         pipeline.
91876         (fixlicense): Now a variable, not a function.
91877         (remove_trailing_blanks): Remove.
91878         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
91879         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91880         Undo previous (whitespace-only) change.
91881
91882 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91883
91884         Merge from coreutils.
91885         * modules/euidaccess: Add lib_SOURCES, include for new
91886         file euidaccess.h
91887
91888 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91889
91890         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91891         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91892         Normalize leading white space and remove trailing white space.
91893
91894         Merge from coreutils
91895         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
91896
91897         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
91898         0.12.1.  These files are now being upgraded automatically by
91899         ../config/srclist-update.
91900
91901 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91902
91903         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91904         Normalize leading white space and remove trailing white space.
91905         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
91906         notice, as per ../config/srclist-update.
91907
91908         Merge from coreutils.
91909         * lib/euidaccess.h: New file.
91910         * lib/euidaccess.c: Include it.
91911         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
91912         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
91913         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
91914
91915 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91916
91917         * config/srclist-update: Add copyright notice.
91918         (remove_id_lines, remove_trailing_blanks): New constants.
91919         (fixfile): Use them to normalize spacing a bit in copied files.
91920         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91921         Normalize leading white space and remove trailing white space.
91922
91923         * config/texinfo.tex: Sync with texinfo.
91924
91925         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
91926         strtoul.c from libc, to merge coreutils whitespace changes.
91927
91928         * config/srclist.txt: Get the following m4 files from gettext:
91929         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
91930         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
91931         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
91932         wint_t.m4.
91933
91934 2003-08-12  Karl Berry  <karl@gnu.org>
91935
91936         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
91937         been made.
91938
91939 2003-08-11  Paul Eggert  <eggert@twinsun.com>
91940
91941         * modules/gnu-source, m4/gnu-source.m4:
91942         Remove; we're assuming Autoconf 2.54 or later now.
91943         Suggested by Bruno Haible.
91944         * MODULES.html.sh (func_all_modules): Remove gnu-source.
91945
91946 2003-08-11  Bruno Haible  <bruno@clisp.org>
91947
91948         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
91949
91950 2003-08-11  Bruno Haible  <bruno@clisp.org>
91951
91952         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
91953         (vasnprintf): Use it instead of wcslen.
91954
91955 2003-08-11  Bruno Haible  <bruno@clisp.org>
91956
91957         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
91958         value to ensure that _Bool promotes to int. Use #define for _Bool when
91959         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
91960
91961 2003-08-10  Karl Berry  <karl@gnu.org>
91962
91963         * lib/regex.h: update from libc (whitespace fix).
91964
91965 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91966
91967         Merge some files from coreutils.  These changes were
91968         originally made by Jim Meyering.
91969         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
91970         many older Unixes require this.
91971         * lib/alloca.c (alloca): Remove cast to argument of free;
91972         no longer needed in C89.
91973         * lib/alloca_.h, regex.h: Fix white space to match
91974         what GNU indent does.
91975
91976 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91977
91978         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
91979         apparently Emacs's Unicode mode got confused before my 2003-08-05
91980         checkin.
91981
91982 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91983
91984         * m4/extensions.m4: New file.
91985         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
91986         Require gl_USE_SYSTEM_EXTENSIONS.
91987         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
91988         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
91989
91990 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91991
91992         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
91993         * modules/extensions, modules/gnu-source: New files.
91994         * modules/timespec, modules/unlocked-io: Depend on extensions.
91995
91996 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91997
91998         * modules/restrict: New file.
91999         * MODULES.html.sh (func_all_modules): Add restrict.
92000         * modules/regex: Depend on restrict.
92001
92002 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92003
92004         * m4/restrict.m4: New file.
92005         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
92006
92007 2003-08-07  Bruno Haible  <bruno@clisp.org>
92008
92009         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
92010         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
92011
92012 2003-08-07  Bruno Haible  <bruno@clisp.org>
92013
92014         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
92015         makes the module 'getndelim2' compatible with the module 'getline'.
92016
92017 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92018
92019         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
92020         byte with "\201" to avoid glitches when editing that source file
92021         with multi-gnome-terminal.
92022
92023 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92024
92025         * lib/bumpalloc.h: Remove.
92026
92027 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92028
92029         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
92030         * modules/bumpalloc: Remove.
92031
92032 2003-08-04  Paul Eggert  <eggert@twinsun.com>
92033
92034         * lib/getloadavg.c: Change copyright notice and spacing to conform to
92035         GNU coding style.
92036
92037         Merge from coreutils.
92038         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
92039         1. From glibc.
92040         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
92041         from Karl Berry, implemented by Jim Meyering.
92042         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
92043         from Dmitry V. Levin.
92044         Remove anachronistic cast of xrealloc.
92045         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
92046         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
92047         type. Otherwise, it wouldn't compile with at least /bin/cc on
92048         ymp-cray-unicos9.0.2.X.
92049         Combine two mostly-identical uses of alloca into one.
92050         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
92051
92052 2003-08-04  Dave Love  <d.love@dl.ac.uk>
92053
92054         [From Emacs.]
92055
92056         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
92057         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
92058         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
92059         obsolete NLIST_NAME_UNION.
92060         [__GNU__]: Undef BSD and FSCALE.
92061         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
92062
92063 2003-08-03  Paul Eggert  <eggert@twinsun.com>
92064
92065         * lib/stdbool_.h (_Bool): Make it signed char, instead of
92066         an enum type, so that it's guaranteed to promote to int.  See:
92067         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
92068
92069 2003-08-03  Karl Berry  <karl@gnu.org>
92070
92071         * config/depcomp: update from automake.
92072
92073 2003-07-31  Paul Eggert  <eggert@twinsun.com>
92074
92075         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
92076         (strerror): Don't assume that a printable int fits in 14 bytes.
92077
92078 2003-07-31  Bruno Haible  <bruno@clisp.org>
92079
92080         * modules/getpass-gnu: New file.
92081         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
92082
92083 2003-07-31  Bruno Haible  <bruno@clisp.org>
92084
92085         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
92086
92087 2003-07-24  Karl Berry  <karl@gnu.org>
92088
92089         * config/missing: update from automake.
92090
92091 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
92092             Bruno Haible  <bruno@clisp.org>
92093
92094         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
92095         * lib/getline.c (getline, getdelim): Likewise.
92096         Remove _GNU_SOURCE define; now it's defined in config.h through
92097         m4/getline.m4.
92098
92099 2003-07-23  Karl Berry  <karl@gnu.org>
92100
92101         * config/config.sub: update from prep.
92102
92103 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92104
92105         * modules/xalloc (Depends-on): Add exitfail.
92106         * modules/xmemcoll: Likewise.
92107
92108 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92109
92110         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
92111         over-parenthesization in macros.
92112
92113         Sync with coreutils.
92114
92115         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
92116         required by C99.
92117
92118         Use `exit_failure' for xalloc and xmemcoll instead of their own
92119         private exit-failure variables.
92120         * lib/xalloc.h (xalloc_exit_failure): Remove.
92121         * lib/xmalloc.c: Likewise.  Include exitfail.h.
92122         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
92123         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
92124         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
92125         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
92126
92127 2003-07-20  Jim Meyering  <jim@meyering.net>
92128
92129         * modules/closeout (Depends-on): Add exitfail.
92130         Suggestion from Bruno Haible.
92131
92132 2003-07-19  Karl Berry  <karl@gnu.org>
92133
92134         * config/config.sub: update from prep.
92135
92136 2003-07-18  Paul Eggert  <eggert@twinsun.com>
92137
92138         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
92139         Remove.
92140         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
92141         to test that it can stand by itself.  Include "exitfail.h".
92142         Clients should set exit_failure instead.
92143         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
92144
92145 2003-07-18  Bruno Haible  <bruno@clisp.org>
92146
92147         * modules/getndelim2: New file.
92148         * modules/getline: Share files with module getndelim2.
92149         * modules/getnline: Depend on getndelim2 instead of sharing files with
92150         it. Add getnline.c to lib_SOURCES.
92151         * MODULES.html.sh (func_all_modules): Add getndelim2.
92152
92153 2003-07-18  Bruno Haible  <bruno@clisp.org>
92154
92155         * m4/getndelim2.m4: New file.
92156         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
92157         invoke gl_PREREQ_GETNDELIM2.
92158         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
92159         gl_PREREQ_GETNDELIM2.
92160         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
92161         gl_GETNDELIM2.
92162
92163 2003-07-18  Bruno Haible  <bruno@clisp.org>
92164
92165         * lib/getndelim2.h: New file.
92166         * lib/getndelim2.c: Make into a module of its own. Include config.h,
92167         getndelim2.h.
92168         (getndelim2): Make non-static. Change return type to ssize_t.
92169         * lib/getline.h: Change argument names.
92170         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
92171         * lib/getnline.c: Include getndelim2.h.
92172
92173 2003-07-18  Andreas Schwab  <schwab@suse.de>
92174
92175         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
92176
92177 2003-07-17  Karl Berry  <karl@gnu.org>
92178
92179         * config/config.sub: update from prep.
92180
92181 2003-07-17  Bruno Haible  <bruno@clisp.org>
92182
92183         * modules/getnline: New file.
92184         * modules/getline: Add lib/getndelim2.c to source file list.
92185         * MODULES.html.sh (func_all_modules): Add getnline.
92186
92187 2003-07-17  Bruno Haible  <bruno@clisp.org>
92188
92189         * m4/getnline.m4: New file.
92190
92191 2003-07-17  Bruno Haible  <bruno@clisp.org>
92192
92193         * m4/Makefile.am.in: Remove file.
92194         * m4/Makefile.am: Remove file.
92195         * m4/Makefile.in: Remove file.
92196
92197 2003-07-17  Bruno Haible  <bruno@clisp.org>
92198
92199         * lib/getnline.h: New file.
92200         * lib/getnline.c: New file.
92201         * lib/getndelim2.c: New file, extracted from getline.c.
92202         (getndelim2): Renamed from getdelim2, with added nmax argument.
92203         * lib/getline.c: Include getndelim2.c.
92204         (getdelim2): Moved out to getndelim2.c.
92205         (getline, getdelim): Update.
92206
92207 2003-07-17  Bruno Haible  <bruno@clisp.org>
92208
92209         * lib/Makefile.am: Remove file.
92210         * lib/Makefile.in: Remove file.
92211
92212 2003-07-17  Bruno Haible  <bruno@clisp.org>
92213
92214         * configure.in: Remove file.
92215         * Makefile.in: Remove file.
92216
92217 2003-07-17  Bruno Haible  <bruno@clisp.org>
92218
92219         * MODULES.html.sh: Put the </BODY> right before </HTML>.
92220
92221 2003-07-16  Karl Berry  <karl@gnu.org>
92222
92223         * config/srclist-update: was running fixlicense twice, which caused
92224                 texinfo.tex to be nullified for some reason.  Simplify,
92225                 $gplsrc is no longer needed as far as I can see?
92226
92227 2003-07-16  Jim Meyering  <jim@meyering.net>
92228
92229         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
92230
92231 2003-07-15  Paul Eggert  <eggert@twinsun.com>
92232
92233         * config/srclist.txt: Get the following files from gettext-runtime/intl
92234         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
92235         ref-del.sin.  From Bruno Haible.
92236         * config/srclist-update (fixfile): Change grep pattern again, since the
92237         previous fix didn't work (there was another trailing $).  Use
92238         '[$]' to escape the $s.
92239
92240 2003-07-15  Karl Berry  <karl@gnu.org>
92241
92242         * lib/vasnprintf.c: update from gettext.
92243
92244 2003-07-15  Karl Berry  <karl@gnu.org>
92245
92246         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
92247         gets expanded when surrounded by '$'.
92248
92249 2003-07-15  Jim Meyering  <jim@meyering.net>
92250
92251         * modules/save-cwd: Don't depend on error.  From Derek Price.
92252
92253 2003-07-15  Jim Meyering  <jim@meyering.net>
92254
92255         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
92256
92257 2003-07-14  Simon Josefsson  <jas@extundo.com>
92258
92259         * modules/mempcpy: New file.
92260         * MODULES.html.sh (func_all_modules): Add mempcpy.
92261
92262 2003-07-14  Simon Josefsson  <jas@extundo.com>
92263
92264         * m4/mempcpy.m4: New file.
92265
92266 2003-07-14  Simon Josefsson  <jas@extundo.com>
92267
92268         * lib/mempcpy.h: New file.
92269         * lib/mempcpy.c: New file.
92270
92271 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92272
92273         * modules/getdate, modules/posixtm: Depend on mktime.
92274
92275 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92276
92277         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
92278         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
92279         unicodeio.c, unicodeio.h, unlocked-io.h:
92280         Switch from LGPL to GPL.
92281
92282 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92283
92284         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
92285         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
92286         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
92287         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
92288         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
92289         updated automatically by ../config/srclist-update.  This changes
92290         their license from LPGL to GPL.
92291
92292 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92293
92294         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
92295         assumed to refer to the root of the most recent stable gettext version.
92296         * config/srclistvars.sh: Add defaults for eggert.
92297         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
92298         Match "This program" as well as "The program".  This is needed
92299         for gettext.
92300
92301 2003-07-14  Jim Meyering  <jim@meyering.net>
92302
92303         Don't emit diagnostics.  Let callers do that.
92304         * lib/save-cwd.c: Don't include "error.h".
92305         (save_cwd): Don't call error.  Ensure that errno is valid
92306         when returning nonzero.
92307
92308         * lib/save-cwd.h (restore_cwd): Update prototype.
92309         * lib/save-cwd.c (restore_cwd): Remove two parameters.
92310         Simplify.  Don't call error upon failure.  Let callers do that.
92311         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
92312         when auditing is enabled.  But don't bother updating the #if.
92313
92314 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
92315
92316         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
92317         it breaks C++ compilation.
92318         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
92319
92320 2003-07-10  Simon Josefsson  <jas@extundo.com>
92321
92322         * modules/strchrnul (Makefile.am): Add strchrnul.h.
92323
92324 2003-07-10  Jim Meyering  <jim@meyering.net>
92325
92326         * m4/clock_time.m4: Remove trailing blank.
92327         * m4/intmax_t.m4: Likewise.
92328
92329 2003-07-10  Jim Meyering  <jim@meyering.net>
92330
92331         * lib/vasnprintf.c: Remove trailing blanks.
92332         Make cpp indentation consistent.
92333
92334 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92335
92336         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
92337         posixver.c, strftime.c, strnlen.c, strverscmp.c:
92338         Switch from LGPL to GPL.
92339
92340 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92341
92342         * config/srclist.txt: Sort sublists.  Add
92343         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
92344         that differ from gnulib for one reason or another; we'd like this list
92345         to be smaller but for now let's document what we have.
92346
92347 2003-07-08  Paul Eggert  <eggert@twinsun.com>
92348
92349         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
92350         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
92351         and sweeter "eval x=$x".
92352         * config/srclist.txt: Get lib/argp* from glibc.
92353
92354 2003-07-07  Paul Eggert  <eggert@twinsun.com>
92355
92356         * lib/mktime.c: Fix some boundary cases and remove need for floating
92357         point.
92358
92359         Issue a compile-time diagnostic if time_t is floating point, or if
92360         two's complement arithmetic is not in effect, or if arithmetic
92361         right shift does not propagate the sign.  These assumptions were
92362         all in the original code but they weren't checked.
92363
92364         (TIME_T_MIDPOINT, verify): New macros.
92365         (__isleap): Remove; it has integer overflow problems.
92366         (leapyear): New function, without those problems.
92367         (ydhms_tm_diff): Remove; splitting into two parts.
92368         (ydhms_diff): New function, containing the arithmetic part of
92369         the old ydhms_tm_diff function.  Issue a compile-time
92370         diagnostic if we are not using C99 integer division.
92371         Avoid casts when possible.
92372         (guess_time_tm): New function, containing the checking part of
92373         the old ydhms_tm_diff function.  Return the new value, rather than
92374         the difference between it and the old.  Accept a new argument T
92375         so that *T specifies the old value.  Check for overflow in the result.
92376
92377         (__mktime_internal): Use a time_t offset, not a long int offset.
92378         This undoes the 2003-06-04 change, which is no longer needed now
92379         that we have better overflow checking.
92380         (localtime_offset): Likewise.
92381
92382         (__mktime_internal): Avoid harmful overflow on hosts where time_t
92383         and long are 64-bit but int is only 32-bit.
92384         (ydhms_diff): Use long int to store year1 and yday1.
92385         Issue a compile-time diagnostic if long int is not wide enough.
92386
92387         (__mktime_internal): Use long int to store adjusted year and yday.
92388         Use plain C rather than preprocessor commands, if that doesn't
92389         affect efficiency.
92390         Check for overflow (and try to repair) after each probe
92391         rather than checking only at the very end.  This avoids some bugs
92392         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
92393         does not equal GMT offset at maximum time).
92394         Use integer to check for overflow rather than floating point; this
92395         is more portable to non-IEEE hosts, and is a tad faster.
92396         When we detect that we are oscillating between two values,
92397         don't check whether tm_isdst has the requested value, since
92398         we already know the answer.  When tm_isdst has the wrong value,
92399         use a different heuristic to find the right one, based on the
92400         extreme values actually observed in practice in tz2003a,
92401         rather than the (overly optimistic) "previous 3 calendar quarters".
92402
92403         (not_equal_tm, print_tm, check_result): Use "const T" rather than
92404         "T const" to accommodate glibc style.
92405         (check_result): Use less-confusing report format.  "long" -> "long int.
92406         (main): Likewise.
92407         Don't loop if the iteration overflows time_t.
92408         Allow a negative step in the iteration.
92409
92410 2003-07-06  Karl Berry  <karl@gnu.org>
92411
92412         * config/depcomp: update from automake.
92413         * config/config.sub: update from prep.
92414
92415 2003-07-03  Karl Berry  <karl@gnu.org>
92416
92417         * config/config.guess: update from prep.
92418
92419 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92420
92421         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
92422         xreadlink.c now includes it unconditionally.
92423
92424 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92425
92426         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
92427         having it depend on HAVE_SYS_TYPES_H.
92428
92429 2003-07-01  Bruno Haible  <bruno@clisp.org>
92430
92431         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
92432         <sys/types.h> should be sufficient.
92433         Reported by Paul Eggert.
92434
92435 2003-06-26  Karl Berry  <karl@gnu.org>
92436
92437         * config/depcomp: update from automake.
92438
92439 2003-06-26  Bruno Haible  <bruno@clisp.org>
92440
92441         * modules/human: Depend on module stdbool.
92442
92443 2003-06-25  Bruno Haible  <bruno@clisp.org>
92444
92445         * modules/readlink: New file.
92446         * modules/xreadlink: Depend on it.
92447         * MODULES.html.sh (func_all_modules): Add readlink.
92448
92449 2003-06-25  Bruno Haible  <bruno@clisp.org>
92450
92451         * m4/readlink.m4: New file.
92452
92453 2003-06-25  Bruno Haible  <bruno@clisp.org>
92454
92455         * lib/readlink.c: New file.
92456
92457 2003-06-22  Karl Berry  <karl@gnu.org>
92458
92459         * config/srclist.txt: update mkinstalldirs from automake.
92460         * config/mkinstalldirs: update.
92461
92462 2003-06-22  Bruno Haible  <bruno@clisp.org>
92463
92464         Portability to mingw32.
92465         * m4/ssize_t.m4: New file, from GNU gettext.
92466         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
92467         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
92468
92469 2003-06-22  Bruno Haible  <bruno@clisp.org>
92470
92471         * modules/safe-read: Add m4/ssize_t.m4.
92472         * modules/xreadlink: Add m4/ssize_t.m4.
92473
92474 2003-06-20  Bruno Haible  <bruno@clisp.org>
92475
92476         Assume C89, so PARAMS isn't needed.
92477         * lib/unicodeio.h (PARAMS): Remove.
92478         * lib/unicodeio.c: Don't use PARAMS.
92479
92480 2003-06-18  Karl Berry  <karl@gnu.org>
92481
92482         * config/config.{guess,sub}: update from prep.
92483
92484 2003-06-18  Jim Meyering  <jim@meyering.net>
92485
92486         Merge changes from coreutils.
92487         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
92488         Remove explicit declarations of xmalloc and realloc.
92489         Include xalloc.h.
92490         (read_utmp): Remove anachronistic cast of xmalloc.
92491
92492 2003-06-17  Paul Eggert  <eggert@twinsun.com>
92493
92494         Assume C89, so PARAMS isn't needed.
92495         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
92496         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
92497         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
92498         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
92499         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
92500         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
92501         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
92502         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
92503         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
92504         lib/xstrtod.h, lib/xstrtol.h: Likewise.
92505         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
92506         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
92507         no longer needed. Anyway, config.h should always be included before any
92508         other file.
92509
92510 2003-06-11  Simon Josefsson  <jas@extundo.com>
92511
92512         * modules/sysexits: New file.
92513         * MODULES.html.sh (func_all_modules): Add sysexits.
92514
92515 2003-06-11  Simon Josefsson  <jas@extundo.com>
92516
92517         * lib/sysexit_.h: New file.
92518
92519 2003-06-11  Derek Price  <derek@ximbiot.com>
92520
92521         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
92522         necessary.
92523
92524 2003-06-11  Bruno Haible  <bruno@clisp.org>
92525
92526         * m4/sysexits.m4: New file.
92527
92528 2003-06-10  Simon Josefsson  <jas@extundo.com>
92529
92530         * lib/argp.h: New file, from glibc.
92531         * lib/argp-ba.c: New file, from glibc.
92532         * lib/argp-eexst.c: New file, from glibc.
92533         * lib/argp-fmtstream.c: New file, from glibc.
92534         * lib/argp-fmtstream.h: New file, from glibc.
92535         * lib/argp-fs-xinl.c: New file, from glibc.
92536         * lib/argp-help.c: New file, from glibc.
92537         * lib/argp-namefrob.h: New file, from glibc.
92538         * lib/argp-parse.c: New file, from glibc.
92539         * lib/argp-pv.c: New file, from glibc.
92540         * lib/argp-pvh.c: New file, from glibc.
92541         * lib/argp-xinl.c: New file, from glibc.
92542
92543 2003-06-10  Simon Josefsson  <jas@extundo.com>
92544
92545         * modules/strchrnul: New file.
92546
92547 2003-06-10  Simon Josefsson  <jas@extundo.com>
92548
92549         * modules/argp: New file.
92550
92551 2003-06-10  Simon Josefsson  <jas@extundo.com>
92552
92553         * m4/strchrnul.m4: New file.
92554
92555 2003-06-10  Simon Josefsson  <jas@extundo.com>
92556
92557         * lib/strchrnul.h: New file.
92558         * lib/strchrnul.c: New file.
92559
92560 2003-06-10  Bruno Haible  <bruno@clisp.org>
92561
92562         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
92563
92564 2003-06-07  Karl Berry  <karl@gnu.org>
92565
92566         * config/config.{guess,sub}: update from prep.
92567
92568 2003-06-07  Jim Meyering  <jim@meyering.net>
92569
92570         * modules/strtod: Use $(...) notation, not @...@ for
92571         AC_REPLACE'd variables.
92572         * modules/localcharset: Likewise.
92573
92574 2003-06-07  Jim Meyering  <jim@meyering.net>
92575
92576         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
92577         in place of my name in the copyright comment.
92578         Remove definition and uses of __P.
92579
92580         From coreutils.
92581         * lib/stat.c: Don't declare xmalloc explicitly.
92582         Instead, include "xalloc.h".
92583         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
92584         xrealloc, and xcalloc return values.
92585         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
92586         Improve comment.
92587         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
92588
92589 2003-06-07  Bruno Haible  <bruno@clisp.org>
92590
92591         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
92592         avoid AC_CONFIG_LINKS.
92593         * modules/fnmatch (Makefile.am): Use explicit creation rule for
92594         fnmatch.h, to avoid AC_CONFIG_LINKS.
92595         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
92596
92597 2003-06-07  Bruno Haible  <bruno@clisp.org>
92598
92599         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
92600         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
92601         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92602         directory.
92603         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
92604         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92605         directory.
92606
92607 2003-06-06  Jim Meyering  <jim@meyering.net>
92608
92609         Merge from coreutils.
92610         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
92611         Consolidate declarations and initializations of *_base* locals.
92612
92613         Merge from coreutils.
92614         This avoids a core dump on systems without GNU putenv,
92615         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
92616         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
92617         (unsetenv): New static function, from GNU libc.
92618         (rpl_putenv): Use it.
92619
92620         * lib/modechange.c: Remove trailing blanks.
92621
92622         Merge from coreutils.
92623         * lib/fsusage.c: Remove declaration of statfs.
92624         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
92625
92626         * lib/posixtm.c: Include <stdbool.h> unconditionally.
92627
92628 2003-06-06  Jim Meyering  <jim@meyering.net>
92629
92630         * lib/stdbool_.h: Renamed from stdbool.h.in.
92631
92632 2003-06-06  Jim Meyering  <jim@meyering.net>
92633             Bruno Haible  <bruno@clisp.org>
92634
92635         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
92636         Adjust Makefile.am snippet not to redirect directly to target.
92637         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
92638
92639 2003-06-05  Paul Eggert  <eggert@twinsun.com>
92640
92641         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
92642         mismatch, look in future quarters as well as past.  This fixes a
92643         bug when processing fall-backwards gaps immediately after a long
92644         period of daylight-saving time.
92645
92646         * lib/mktime.c: Assume freestanding C89 or better.
92647         (HAVE_LIMITS_H): Remove.  Assume it's 1.
92648         (__P): Remove; not used.
92649         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
92650         (mktime, not_equal_tm, print_tm, check_result,
92651         main): Use prototypes.  Use const * where appropriate.
92652         (main): Fix typo in testing code that uncovered by above changes.
92653         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
92654
92655 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92656
92657         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
92658         locale.h, localeconv.  This merges changes from coreutils.
92659
92660         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
92661         It can be removed after the next Autoconf is released.
92662         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
92663         needed.
92664
92665 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92666
92667         * lib/mktime.c: Fix Debian bug 177940
92668         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
92669         (localtime_offset): Now long int, not time_t, because we want it
92670         to be guaranteed to be signed.  All uses changed.
92671         (__mktime_internal): If overflow would occur when adding offset,
92672         don't add it.
92673
92674         Merge 'human' changes from coreutils.  Rewrite to support
92675         locale-specific notations like thousands separators.
92676         * lib/human.c: Simplify authorship notice.
92677         Include human.h immediately after config.h.
92678         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
92679         <limits.h>: Do not include, since human.h does.
92680         (SIZE_MAX, UINTMAX_MAX): New macros.
92681         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
92682         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
92683         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
92684         (power_letter): Renamed from suffixes.
92685         (generate_suffix_backwards): Remove.
92686         (adjust_value): Now takes int style (because of human.h changes)
92687         and long double value (for greater precision on some platforms).
92688         (group_number): New function.
92689         (human_readable): Use it.  Use integer options, not enum.
92690         Put the options before the sizes in the arg list.
92691         Support all the new options.
92692         The old human_readable function has been removed;
92693         use inttostr.h instead.
92694         (human_readable, default_block_size, humblock):
92695         Use uintmax_t, not int, for block sizes.
92696         (human_readable_inexact, block_size_types): Remove.
92697         (block_size_opts): New constant.
92698         (human_options): Renamed from human_block_size, with new signature
92699         that allows block sizes up to UINTMAX_MAX.  All callers changed.
92700         * lib/human.h: Add copyright and authorship notice.
92701         Include <limits.h> and <stdbool.h> unconditionally.
92702         (PARAMS): Remove.  All uses removed.
92703         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
92704         (enum human_inexact_style): Remove tag; now a nameless enum.
92705         (human_floor, human_ceiling, human_round_to_even): Now have
92706         values 2, 0, 1 rather than -1, 1, 0.
92707         (human_group_digits, human_suppress_point_zero, human_autoscale,
92708         human_base_1024, human_SI, human_B): New constants.
92709         (human_readable_inexact, human_block_size): Remove.
92710         (human_readable): Size args are now uintmax_t, not int.
92711         (human_options): New decl.
92712
92713         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
92714         unnecessary now that we assume C89 or better.  This change
92715         imported from coreutils.
92716
92717         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92718         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
92719         in the 2003-05-30 sync from glibc.
92720
92721         .h files should stand alone, but we shouldn't include <sys/types.h>
92722         if we can get away with just <stddef.h>.
92723
92724         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
92725         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
92726         rather than <sys/types.h>, as we merely need size_t.
92727         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
92728         to get size_t.
92729         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
92730         Include <stdio.h>, to get FILE.
92731         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
92732         memcasecmp.h has included <stddef.h> and all we need is size_t.
92733         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
92734         our interface, instead of including <sys/types.h>
92735
92736 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92737
92738         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
92739         now, as glibc mktime is buggy on non-glibc systems.
92740
92741 2003-06-03  Karl Berry  <karl@gnu.org>
92742
92743         * config/config.sub: update from prep.
92744
92745 2003-06-02  Paul Eggert  <eggert@twinsun.com>
92746
92747         [from coreutils]
92748         Fix some minor time-related bugs with POSIX time arguments.
92749         Some valid time stamps were being rejected (notably -1, and
92750         time stamps before 1900 on 64-bit hosts).  And some invalid
92751         time stamps were being accepted, e.g. September 31.
92752
92753         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
92754         that we can return (time_t) -1 successfully.
92755         * lib/posixtm.c: Likewise.
92756         [HAVE_STDBOOL_H]: Include <stdbool.h>.
92757         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
92758         (t): Remove static var.
92759         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
92760         of static var.  All uses changed.
92761         (year): Do not reject years before 1900; they can occur with
92762         64-bit time_t.
92763         (posix_time_parse): Do not check for out-of-range components;
92764         that is now the caller's responsibility, since our checks were
92765         only approximations.
92766         (posixtime): Use mktime to check for out-of-range components,
92767         since it knows them exactly.
92768         If mktime returns (time_t) -1, check whether an error actually occurred
92769         by invoking localtime on -1.
92770         (main) [TEST_POSIXTIME]: Check for input data errors, and report
92771         posixtime failures better.
92772         Improve the test data (in comments only).
92773
92774 2003-06-02  Karl Berry  <karl@gnu.org>
92775
92776         * config/mkinstalldirs (version): new variable.
92777         (--version): new option.
92778         (usage): improve message.
92779
92780 2003-05-30  Karl Berry  <karl@gnu.org>
92781
92782         * lib/mktime.c: update from libc.
92783
92784 2003-05-30  Bruno Haible  <bruno@clisp.org>
92785
92786         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
92787         * config/config.rpath: Upgrade to gettext-0.12.1.
92788
92789 2003-05-30  Bruno Haible  <bruno@clisp.org>
92790
92791         * m4/gettext.m4: Upgrade to gettext-0.12.1.
92792         * m4/nls.m4: New file, from gettext-0.12.1.
92793         * m4/po.m4: New file, from gettext-0.12.1.
92794         * m4/progtest.m4: Upgrade to gettext-0.12.1.
92795
92796 2003-05-30  Bruno Haible  <bruno@clisp.org>
92797
92798         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
92799         * lib/localcharset.h: Likewise.
92800         * lib/localcharset.c: Likewise.
92801
92802 2003-05-29  Karl Berry  <karl@gnu.org>
92803
92804         * config/config.rpath: update from gettext.
92805
92806 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92807
92808         Assume the headers required for C89 freestanding compilers.
92809         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
92810         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
92811         * m4/human.m4 (gl_HUMAN): Likewise.
92812         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
92813         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
92814         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92815         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
92816         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92817         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
92818
92819 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92820
92821         Assume the headers required for C89 freestanding compilers.
92822         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
92823         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
92824         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
92825         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
92826         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
92827         define, since <limits.h> is guaranteed to do that.
92828         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
92829         * lib/exclude.c: Include <stdbool.h> unconditionally.
92830         * lib/tempname.c: Include <stddef.h> unconditionally.
92831         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
92832         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
92833         <stddef.h> does that.
92834         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
92835         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
92836         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
92837         needed.
92838         * lib/xstrtol.c: Likewise.
92839         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
92840         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
92841
92842         * lib/addext.c (addext): Use assignment rather than cast, to avoid
92843         warnings on some platforms.
92844
92845         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92846         arbitrarily.
92847
92848 2003-05-26  Jim Meyering  <jim@meyering.net>
92849
92850         Merge in a change from coreutils:
92851         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
92852         that is guaranteed to be `no'.  Use `no_such_member' to indicate
92853         that condition, rather than `-1' which is slightly misleading.
92854         Change the name of the cache variable to have the gl_ prefix.
92855         Prompted by a patch from Richard Dawe for DJGPP.
92856
92857 2003-05-24  Karl Berry  <karl@gnu.org>
92858
92859         * config/config.guess: update from prep.
92860
92861 2003-05-22  Karl Berry  <karl@gnu.org>
92862
92863         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
92864
92865 2003-05-20  Karl Berry  <karl@gnu.org>
92866
92867         * config/config.guess: update from prep.
92868
92869 2003-05-18  Karl Berry  <karl@gnu.org>
92870
92871         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
92872         might actually be set by the user.
92873
92874         * config/depcomp, install-sh, mdate-sh: update from automake.
92875
92876 2003-05-17  Bruno Haible  <bruno@clisp.org>
92877
92878         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
92879         invalid expansion for AC_EGREP_CPP.
92880         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
92881         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
92882         Suggested by Akim Demaille <akim@epita.fr> in
92883         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
92884
92885 2003-05-12  Jim Meyering  <jim@meyering.net>
92886
92887         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
92888         the space-padded-by-default conversion specifiers, %e, %k, %l.
92889
92890 2003-05-12  Bruno Haible  <bruno@clisp.org>
92891
92892         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
92893         the string is longer than 4 KB.
92894
92895 2003-05-11  Karl Berry  <karl@gnu.org>
92896
92897         * config/config.{guess,sub}: update from prep.
92898
92899 2003-05-09  Bruno Haible  <bruno@clisp.org>
92900
92901         * modules/error: Add m4/strerror_r.m4 to file list.
92902
92903 2003-05-03  Bruno Haible  <bruno@clisp.org>
92904
92905         Upgrade to Unicode-4.0.
92906         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
92907         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
92908         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
92909         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
92910         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
92911         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
92912         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
92913         Change width of U+E0100..U+E01EF from 1 to 0.
92914
92915 2003-04-25  Jim Meyering  <jim@meyering.net>
92916
92917         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
92918         of type size_t, not int.
92919
92920 2003-04-25  Bruno Haible  <bruno@clisp.org>
92921
92922         * lib/copy-file.c: Include <stddef.h>, for size_t.
92923
92924 2003-04-21  Paul Eggert  <eggert@twinsun.com>
92925
92926         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
92927         code which expansion is under static control.  Patch imported from
92928         Akim Demaille's patch to Bison; see
92929         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
92930
92931 2003-04-14  Bruno Haible  <bruno@clisp.org>
92932
92933         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
92934
92935 2003-04-11  Jim Meyering  <jim@meyering.net>
92936
92937         Merge changes from Coreutils.
92938
92939         2003-03-22  Jim Meyering  <jim@meyering.net>
92940
92941         * lib/strftime.c (widen): Cast alloca return value to proper type.
92942
92943         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
92944
92945         From GNU libc.
92946         * lib/strftime.c (my_strftime): Handle very large width
92947         specifications for numeric values correctly.  Improve checks for
92948         overflow.
92949
92950         2003-01-19  Jim Meyering  <jim@meyering.net>
92951
92952         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
92953         definitions.
92954         (nl_get_alt_digit) [! defined my_strftime]: Define.
92955         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
92956         _nl_get_alt_digit and _nl_get_walt_digit.
92957
92958         * lib/strftime.c (my_strftime): Merge in locale-related changes from
92959         libc. These changes have no effect outside of _LIBC.
92960
92961 2003-04-10  Bruno Haible  <bruno@clisp.org>
92962
92963         * modules/findprog: New file.
92964         * MODULES.html.sh (func_all_modules): Add it.
92965
92966 2003-04-10  Bruno Haible  <bruno@clisp.org>
92967
92968         * m4/findprog.m4: New file.
92969         * m4/eaccess.m4: New file.
92970
92971 2003-04-10  Bruno Haible  <bruno@clisp.org>
92972
92973         * lib/findprog.h: New file, from GNU gettext.
92974         * lib/findprog.c: New file, from GNU gettext.
92975
92976 2003-04-05  Jim Meyering  <jim@meyering.net>
92977
92978         Merge changes from Coreutils.
92979
92980         * lib/exclude.h (PARAMS): Remove definition and uses.
92981         * lib/exclude.c: Remove uses of `PARAMS'.
92982
92983         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
92984         Add test-cases for DOS filenames. Declare program_name.
92985         (main): Set up program_name.  Patch by Rich Dawe.
92986
92987         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92988         error from mntctl.
92989         Use mntctl's return value to drive the entry-processing loop, since
92990         we can't rely on the value of the vmt_length member in the last
92991         entry.  On some systems doing so could result in exhausting
92992         virtual memory.  Based in part on a patch from Mike Jetzer.
92993
92994 2003-04-04  Bruno Haible  <bruno@clisp.org>
92995
92996         * modules/linebreak: New file.
92997         * MODULES.html.sh (func_all_modules): Add it.
92998
92999 2003-04-04  Bruno Haible  <bruno@clisp.org>
93000
93001         * m4/linebreak.m4: New file.
93002
93003 2003-04-04  Bruno Haible  <bruno@clisp.org>
93004
93005         * lib/linebreak.h: New file, from GNU gettext.
93006         * lib/linebreak.c: New file, from GNU gettext with slight
93007         modifications.
93008         * lib/lbrkprop.h: New file, from GNU gettext.
93009
93010 2003-04-03  Bruno Haible  <bruno@clisp.org>
93011
93012         * modules/utf8-ucs4: New file.
93013         * modules/utf16-ucs4: New file.
93014         * modules/ucs4-utf8: New file.
93015         * modules/ucs4-utf16: New file.
93016         * MODULES.html.sh (func_all_modules): Add them.
93017
93018 2003-04-03  Bruno Haible  <bruno@clisp.org>
93019
93020         * m4/utf-ucs4.m4: New file.
93021         * m4/ucs4-utf.m4: New file.
93022
93023 2003-04-03  Bruno Haible  <bruno@clisp.org>
93024
93025         * lib/utf8-ucs4.h: New file, from GNU gettext.
93026         * lib/utf16-ucs4.h: New file, from GNU gettext.
93027         * lib/ucs4-utf8.h: New file, from GNU gettext.
93028         * lib/ucs4-utf16.h: New file, from GNU gettext.
93029
93030 2003-04-02  Bruno Haible  <bruno@clisp.org>
93031
93032         * modules/binary-io: New file.
93033         * MODULES.html.sh (func_all_modules): Add it.
93034
93035 2003-04-02  Bruno Haible  <bruno@clisp.org>
93036
93037         * lib/binary-io.h: New file, from GNU gettext.
93038
93039 2003-04-01  Bruno Haible  <bruno@clisp.org>
93040
93041         * modules/pathname: New file.
93042         * MODULES.html.sh (func_all_modules): Add it.
93043
93044 2003-04-01  Bruno Haible  <bruno@clisp.org>
93045
93046         * lib/pathname.h: New file, from GNU gettext.
93047         * lib/concatpath.c: New file, from GNU gettext.
93048
93049 2003-03-30  Bruno Haible  <bruno@clisp.org>
93050
93051         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
93052
93053 2003-03-30  Bruno Haible  <bruno@clisp.org>
93054
93055         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
93056         function chown() doesn't exist.
93057
93058 2003-03-28  Bruno Haible  <bruno@clisp.org>
93059
93060         * modules/copy-file: New file.
93061         * MODULES.html.sh (func_all_modules): Add it.
93062
93063 2003-03-28  Bruno Haible  <bruno@clisp.org>
93064
93065         * m4/copy-file.m4: New file.
93066
93067 2003-03-28  Bruno Haible  <bruno@clisp.org>
93068
93069         * lib/copy-file.h: New file, from GNU gettext.
93070         * lib/copy-file.c: New file, from GNU gettext.
93071
93072 2003-03-18  Jim Meyering  <jim@meyering.net>
93073
93074         * lib/quote.c (quote_n): Fix typo in comment.
93075
93076 2003-03-18  Bruno Haible  <bruno@clisp.org>
93077
93078         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
93079         checking.
93080         * m4/onceonly_2_57.m4: Likewise.
93081
93082 2003-03-17  Bruno Haible  <bruno@clisp.org>
93083
93084         * m4/onceonly.m4: Require autoconf 2.54 or newer.
93085         (m4_quote): Remove macro.
93086         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
93087
93088 2003-03-14  Jim Meyering  <jim@meyering.net>
93089
93090         Merge changes from Coreutils.
93091         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
93092         to be const, in order to avoid warnings.
93093         (obstack_room): Likewise.
93094         (obstack_empty_p): Likewise.
93095
93096 2003-03-14  Bruno Haible  <bruno@clisp.org>
93097
93098         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
93099         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
93100
93101 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93102
93103         Merge changes from Bison.
93104         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
93105         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
93106         when compiling Bison 1.875's `bitset bset = obstack_alloc
93107         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
93108         * lib/hash.c: Include <stdbool.h> unconditionally.
93109
93110 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93111
93112         * m4/onceonly.m4 (m4_quote): New macro.
93113         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
93114         Quote AC_FOREACH variable-expansions properly.
93115
93116 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93117
93118         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
93119
93120 2003-03-09  Paul Eggert  <eggert@twinsun.com>
93121
93122         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
93123         Reported by Bruce Becker; see:
93124         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
93125
93126 2003-03-03  Paul Eggert  <eggert@twinsun.com>
93127             Bruno Haible  <bruno@clisp.org>
93128
93129         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
93130         Reported by John Hughes, see
93131         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
93132
93133 2003-02-20  Bruno Haible  <bruno@clisp.org>
93134
93135         * MODULES.html.sh (func_all_modules): Add poll.
93136
93137 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93138
93139         * modules/poll: New file.
93140
93141 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93142
93143         * lib/poll_.h: New file.
93144         * lib/poll.c: New file.
93145
93146 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93147
93148         * m4/poll.m4: New file.
93149
93150 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93151
93152         * modules/mathl: New file.
93153
93154 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93155
93156         * lib/mathl.h: New file.
93157         * lib/acosl.c: New file.
93158         * lib/asinl.c: New file.
93159         * lib/atanl.c: New file.
93160         * lib/ceill.c: New file.
93161         * lib/cosl.c: New file.
93162         * lib/expl.c: New file.
93163         * lib/floorl.c: New file.
93164         * lib/frexpl.c: New file.
93165         * lib/ldexpl.c: New file.
93166         * lib/logl.c: New file.
93167         * lib/sincosl.c: New file.
93168         * lib/sinl.c: New file.
93169         * lib/sqrtl.c: New file.
93170         * lib/tanl.c: New file.
93171         * lib/trigl.c: New file.
93172         * lib/trigl.h: New file.
93173
93174 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93175
93176         * m4/mathl.m4: New file.
93177
93178 2003-02-18  Bruno Haible  <bruno@clisp.org>
93179
93180         * MODULES.html.sh (func_all_modules): Add mathl.
93181
93182 2003-02-17  Bruno Haible  <bruno@clisp.org>
93183
93184         * modules/mkdtemp: New module.
93185         * MODULES.html.sh (func_all_modules): Add it.
93186
93187 2003-02-17  Bruno Haible  <bruno@clisp.org>
93188
93189         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
93190
93191 2003-02-17  Bruno Haible  <bruno@clisp.org>
93192
93193         * lib/mkdtemp.h: New file, from GNU gettext.
93194         * lib/mkdtemp.c: New file, from GNU gettext.
93195
93196 2003-02-02  Jim Meyering  <jim@meyering.net>
93197
93198         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
93199         e.g. glibc-2.2.93.
93200
93201 2003-01-31  Bruno Haible  <bruno@clisp.org>
93202
93203         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
93204         'rpl_rename'.
93205         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
93206         'rpl_strnlen'.
93207         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
93208         'rpl_strtod'.
93209         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
93210         'rpl_utime'.
93211
93212 2003-01-31  Bruno Haible  <bruno@clisp.org>
93213
93214         * lib/rename.c: #undef rename before defining rpl_rename.
93215         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
93216
93217 2003-01-30  Bruno Haible  <bruno@clisp.org>
93218
93219         * modules/vasnprintf, modules/vasprintf: New modules.
93220         * MODULES.html.sh (func_all_modules): Add them.
93221
93222 2003-01-30  Bruno Haible  <bruno@clisp.org>
93223
93224         * m4/signed.m4: New file, from GNU gettext.
93225         * m4/longdouble.m4: New file, from GNU gettext.
93226         * m4/wchar_t.m4: New file, from GNU gettext.
93227         * m4/wint_t.m4: New file, from GNU gettext.
93228         * m4/vasnprintf.m4: New file.
93229         * m4/vasprintf.m4: New file.
93230
93231 2003-01-30  Bruno Haible  <bruno@clisp.org>
93232
93233         * lib/printf-args.h: New file, from GNU gettext.
93234         * lib/printf-args.c: New file, from GNU gettext.
93235         * lib/printf-parse.h: New file, from GNU gettext.
93236         * lib/printf-parse.c: New file, from GNU gettext.
93237         * lib/vasnprintf.h: New file, from GNU gettext.
93238         * lib/vasnprintf.c: New file, from GNU gettext.
93239         * lib/asnprintf.c: New file, from GNU gettext.
93240         * lib/vasprintf.h: New file, from GNU gettext with modifications.
93241         * lib/vasprintf.c: New file, from GNU gettext.
93242         * lib/asprintf.c: New file, from GNU gettext.
93243
93244 2003-01-29  Bruno Haible  <bruno@clisp.org>
93245
93246         * modules/stpncpy: New module.
93247         * MODULES.html.sh (func_all_modules): Add it.
93248
93249 2003-01-29  Bruno Haible  <bruno@clisp.org>
93250
93251         * m4/stpncpy.m4: New file.
93252
93253 2003-01-29  Bruno Haible  <bruno@clisp.org>
93254
93255         * lib/stpncpy.h: New file, from GNU gettext with modifications.
93256         * lib/stpncpy.c: New file, from GNU gettext with modifications.
93257
93258 2003-01-28  Bruno Haible  <bruno@clisp.org>
93259
93260         * modules/c-ctype: New module.
93261         * MODULES.html.sh (func_all_modules): Add it.
93262
93263 2003-01-28  Bruno Haible  <bruno@clisp.org>
93264
93265         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
93266         Paul Eggert.
93267         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
93268         Paul Eggert.
93269
93270 2003-01-27  Bruno Haible  <bruno@clisp.org>
93271
93272         * modules/xsetenv: New module.
93273         * MODULES.html.sh (func_all_modules): Add it.
93274
93275 2003-01-27  Bruno Haible  <bruno@clisp.org>
93276
93277         * lib/xsetenv.h: New file, from GNU gettext.
93278         * lib/xsetenv.c: New file, from GNU gettext.
93279
93280 2003-01-23  Jim Meyering  <jim@meyering.net>
93281
93282         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
93283         from working on systems without dirfd (at least Irix and OSF1/Tru64).
93284
93285 2003-01-23  Bruno Haible  <bruno@clisp.org>
93286
93287         * modules/minmax: New module.
93288         * MODULES.html.sh (func_all_modules): Add it.
93289
93290 2003-01-23  Bruno Haible  <bruno@clisp.org>
93291
93292         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
93293         Eggert.
93294
93295 2003-01-22  Bruno Haible  <bruno@clisp.org>
93296
93297         * modules/exit: New module.
93298         * MODULES.html.sh (func_all_modules): Add it.
93299
93300 2003-01-22  Bruno Haible  <bruno@clisp.org>
93301
93302         * lib/exit.h: New file, from GNU gettext.
93303
93304 2003-01-19  Bruno Haible  <bruno@clisp.org>
93305
93306         * gnulib-tool: Recognize option --extract-maintainer.
93307         (func_get_maintainer): New function.
93308         * modules/*: Add Maintainer entry.
93309
93310 2003-01-16  Jim Meyering  <jim@meyering.net>
93311
93312         * m4/regex.m4: The `regex' struct is both input and output.
93313         Initialize it before each use.  Patch by Tim Waugh.
93314
93315 2003-01-16  Bruno Haible  <bruno@clisp.org>
93316
93317         * MODULES.html.sh: Add a table of contents. Add the module name as
93318         leftmost column. Add hyperlinks.
93319
93320 2003-01-15  Bruno Haible  <bruno@clisp.org>
93321
93322         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
93323
93324 2003-01-15  Bruno Haible  <bruno@clisp.org>
93325
93326         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
93327         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
93328         suffix.
93329
93330 2003-01-15  Bruno Haible  <bruno@clisp.org>
93331
93332         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
93333
93334 2003-01-15  Bruno Haible  <bruno@clisp.org>
93335
93336         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
93337         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
93338
93339 2003-01-14  Jim Meyering  <jim@meyering.net>
93340
93341         * lib/same.c (same_name): Tweak a comment.
93342
93343 2003-01-14  Bruno Haible  <bruno@clisp.org>
93344
93345         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
93346         when a string comparison is sufficient.
93347
93348 2003-01-14  Bruno Haible  <bruno@clisp.org>
93349
93350         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
93351         'unsigned int'.
93352
93353 2003-01-14  Bruno Haible  <bruno@clisp.org>
93354
93355         * lib/hash-pjw.c: Add comment about low quality of this function.
93356
93357 2003-01-13  Bruno Haible  <bruno@clisp.org>
93358
93359         * modules/stpcpy: Distribute lib/stpcpy.h.
93360         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
93361
93362 2003-01-13  Bruno Haible  <bruno@clisp.org>
93363
93364         * modules/*: Add a description.
93365         * modules/strpbrk: Fix Makefile.am snippet.
93366         * modules/strtoimax: Fix dependencies.
93367         * modules/strtoumax: Likewise.
93368
93369 2003-01-13  Bruno Haible  <bruno@clisp.org>
93370
93371         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
93372         * modules/alloca (Makefile.am): All object files depend on alloca.h.
93373         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
93374
93375 2003-01-13  Bruno Haible  <bruno@clisp.org>
93376
93377         * gnulib-tool (func_create_testdir): Store config/* files in the main
93378         directory.
93379         * config.rpath: Move to ...
93380         * config/config.rpath: ... here.
93381         * modules/gettext: Contains config/config.rpath, not config.rpath.
93382         * modules/iconv: Likewise.
93383
93384 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93385
93386         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93387         to avoid collisions with libcurses and libreadline.
93388
93389         * m4/getstr.m4: Remove.
93390         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
93391
93392 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93393
93394         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93395         to avoid collisions with libcurses and libreadline.
93396
93397         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
93398         * lib/getstr.h, getstr.c: Remove.
93399         * lib/getline.c: Include "getline.h", to check interface.
93400         Move body of old getstr.c here: this defines MIN_CHUNK and
93401         declares getdelim2, which is renamed from getstr.
93402         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
93403
93404         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
93405         All uses changed.
93406         * lib/linebuffer.h: Likewise.
93407         (readline): Remove backward-compatibility macro.
93408
93409 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93410
93411         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93412         to avoid collisions with libcurses and libreadline.
93413         * getstr: Remove.
93414         * MODULES.html.sh: Remove getstr.
93415         * modules/getline: Depend on unlocked-io, not getstr.
93416
93417 2003-01-12  Jim Meyering  <jim@meyering.net>
93418
93419         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
93420
93421 2003-01-10  Bruno Haible  <bruno@clisp.org>
93422
93423         * modules/alloca: Change Makefile.am requirements. Simplify Include
93424         requirements. Add lib/alloca_.h to file list.
93425
93426 2003-01-10  Bruno Haible  <bruno@clisp.org>
93427
93428         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
93429
93430 2003-01-10  Bruno Haible  <bruno@clisp.org>
93431
93432         * lib/alloca_.h: New file.
93433         * lib/getdate.y: Unconditionally include alloca.h.
93434         * lib/makepath.c: Likewise.
93435         * lib/setenv.c: Likewise.
93436         * lib/userspec.c: Likewise.
93437
93438 2003-01-09  Karl Berry  <karl@gnu.org>
93439
93440         * MODULES.html.sh: include `dirname $0` in PATH, to find
93441         gnulib-tool.
93442
93443 2003-01-09  Bruno Haible  <bruno@clisp.org>
93444
93445         * modules/stdbool: Change configure.ac, Makefile.am requirements.
93446         Simplify Include requirements. Add lib/stdbool.h.in to file list.
93447
93448 2003-01-09  Bruno Haible  <bruno@clisp.org>
93449
93450         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
93451
93452 2003-01-09  Bruno Haible  <bruno@clisp.org>
93453
93454         * lib/stdbool.h.in: New file.
93455
93456 2003-01-09  Bruno Haible  <bruno@clisp.org>
93457
93458         * gnulib-tool (func_all_modules): Ignore files ending in ~.
93459         * MODULES.html.sh: Likewise.
93460
93461 2003-01-08  Jim Meyering  <jim@meyering.net>
93462
93463         * lib/full-write.c: Undefine and define-away `const' after inclusion
93464         of errno.h, not before.  Suggestion from Bruno Haible.
93465
93466 2003-01-08  Bruno Haible  <bruno@clisp.org>
93467
93468         * modules/full-read: Depend on full-write.
93469
93470 2003-01-08  Bruno Haible  <bruno@clisp.org>
93471
93472         * lib/safe-read.c: Include specification header first, to ensure its
93473         selfcontainedness.
93474         * lib/full-write.c: Likewise.
93475
93476 2003-01-07  Jim Meyering  <jim@meyering.net>
93477
93478         * lib/full-write.c: Rework so that it may serve to define full_read,
93479         too.
93480         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
93481
93482 2003-01-07  Bruno Haible  <bruno@clisp.org>
93483
93484         * lib/strtoimax.c: Include <stdint.h> as an alternative to
93485         <inttypes.h>.
93486         * lib/xstrtol.h: Likewise.
93487         * lib/xstrtoimax.c: Likewise.
93488         * lib/xstrtoumax.c: Likewise.
93489         * lib/human.h: Likewise.
93490
93491         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
93492         on systems that have <inttypes.h> but not <stdint.h>.
93493
93494 2003-01-07  Bruno Haible  <bruno@clisp.org>
93495
93496         * MODULES.html.sh: Add copyright notice.
93497         (missed_files): Omit CVS directory entries.
93498         (func_module): Make it work with sed-3.02.
93499         * MODULES.txt: Remove file.
93500
93501 2003-01-06  Jim Meyering  <jim@meyering.net>
93502
93503         * lib/version-etc.c: Update year in translatable copyright string.
93504
93505 2003-01-03  Karl Berry  <karl@gnu.org>
93506
93507         * config/config.{guess,sub}: update from prep.
93508
93509 2003-01-02  Karl Berry  <karl@gnu.org>
93510
93511         * doc/COPYING.DOC: belatedly updated to 1.2.
93512
93513 2003-01-01  Karl Berry  <karl@gnu.org>
93514
93515         * gnulib-tool (func_verify_module): report module name $module in
93516         error message, not $1.
93517         * gnulib-tool (create-testdir): don't complain if destdir couldn't
93518         be created, only if it doesn't exist.
93519         * gnulib-tool (last_checkin_date): don't expand the $Date here.
93520
93521 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93522
93523         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
93524
93525 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93526
93527         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
93528         memcmp if strcoll doesn't work.
93529
93530 2002-12-31  Bruno Haible  <bruno@clisp.org>
93531
93532         * lib/utime.c (utime_null): No need to call ftruncate if the file was
93533         nonempty.
93534
93535 2002-12-31  Bruno Haible  <bruno@clisp.org>
93536
93537         * lib/memcoll.c (STRCOLL): New macro.
93538         (memcoll): Use it.
93539
93540 2002-12-31  Bruno Haible  <bruno@clisp.org>
93541
93542         * lib/localcharset.h: New file.
93543         * lib/localcharset.c: Include it.
93544         * lib/unicodeio.c: Likewise.
93545
93546 2002-12-31  Bruno Haible  <bruno@clisp.org>
93547
93548         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
93549         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
93550
93551 2002-12-31  Bruno Haible  <bruno@clisp.org>
93552
93553         * lib/getline.h: Include <stddef.h>, for size_t.
93554
93555         * lib/unicodeio.h: Include <stddef.h>, for size_t.
93556         * lib/unicodeio.c: Don't include <stddef.h>.
93557
93558 2002-12-31  Bruno Haible  <bruno@clisp.org>
93559
93560         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
93561         HAVE_TM_ZONE.
93562
93563 2002-12-24  Karl Berry  <karl@gnu.org>
93564
93565         * config/config.guess: update from prep.
93566
93567 2002-12-24  Bruno Haible  <bruno@clisp.org>
93568
93569         General infrasructure.
93570         * m4/README: Rewritten.
93571         * m4/onceonly.m4: New file.
93572         * m4/onceonly_2_57.m4: New file.
93573
93574         Module atexit.
93575         * m4/atexit.m4: New file.
93576
93577         Module strtod.
93578         * m4/strtod.m4: New file.
93579
93580         Module strtol.
93581         * m4/strtol.m4: New file.
93582
93583         Module strtoul.
93584         * m4/strtoul.m4: New file.
93585
93586         Module memchr.
93587         * m4/memchr.m4: New file.
93588
93589         Module memcmp.
93590         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
93591         (jm_FUNC_MEMCMP): Invoke it.
93592
93593         Module memcpy.
93594         * m4/memcpy.m4: New file.
93595
93596         Module memmove.
93597         * m4/memmove.m4: New file.
93598
93599         Module memset.
93600         * m4/memset.m4: New file.
93601
93602         Module strcspn.
93603         * m4/strcspn.m4: New file.
93604
93605         Module strpbrk.
93606         * m4/strpbrk.m4: New file.
93607
93608         Module strstr.
93609         * m4/strstr.m4: New file.
93610
93611         Module strerror.
93612         * m4/strerror.m4: New file.
93613
93614         Module mktime.
93615         * m4/mktime.m4: Renamed from jm-mktime.m4.
93616         (gl_PREREQ_MKTIME): New macro.
93617         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
93618
93619         Module malloc.
93620         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
93621         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
93622         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
93623
93624         Module realloc.
93625         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
93626         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
93627         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
93628
93629         Module strftime.
93630         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
93631         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
93632         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
93633         gl_TM_GMTOFF.
93634         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
93635
93636         Module xalloc.
93637         * m4/xalloc.m4: New file.
93638
93639         Module alloca.
93640         * m4/alloca.m4: New file.
93641
93642         Module putenv.
93643         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
93644         (jm_FUNC_PUTENV): Invoke it.
93645
93646         Module setenv.
93647         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
93648         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
93649         when invoked twice.
93650         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
93651         gt_FUNC_SETENV.
93652
93653         Module memrchr.
93654         * m4/memrchr.m4: New file.
93655
93656         Module stpcpy.
93657         * m4/stpcpy.m4: New file.
93658
93659         Module strcase.
93660         * m4/strcase.m4: New file.
93661
93662         Module strdup.
93663         * m4/strdup.m4: New file.
93664
93665         Module strnlen.
93666         * m4/strnlen.m4: New file.
93667
93668         Module strndup.
93669         * m4/strndup.m4: New file.
93670
93671         Module xstrtod.
93672         * m4/xstrtod.m4: New file.
93673
93674         Module xstrtol.
93675         * m4/xstrtol.m4: New file.
93676
93677         Module getdate.
93678         * m4/getdate.m4: New file.
93679
93680         Module unlocked-io.
93681         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
93682         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
93683         * m4/jm-glibc-io.m4n: Remove file.
93684
93685         Module long-options.
93686         * m4/long-options.m4: New file.
93687
93688         Module md5.
93689         * m4/md5.m4: New file.
93690
93691         Module sha.
93692         * m4/sha.m4: New file.
93693
93694         Module getstr.
93695         * m4/getstr.m4: New file.
93696
93697         Module getline.
93698         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
93699         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
93700         <sys/types.h>, for size_t. Use the function name gnu_getline, not
93701         simply getline. Infoke gl_PREREQ_GETLINE.
93702
93703         Module obstack.
93704         * m4/obstack.m4: New file.
93705
93706         Module hash.
93707         * m4/hash.m4: New file.
93708
93709         Module readtokens.
93710         * m4/readtokens.m4: New file.
93711
93712         Module strverscmp.
93713         * m4/strverscmp.m4: New file.
93714
93715         Module stdbool.
93716         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
93717         OSF/1.
93718
93719         Module strtoll.
93720         * m4/strtoll.m4: New file.
93721
93722         Module strtoull.
93723         * m4/strtoull.m4: New file.
93724
93725         Module strtoimax.
93726         * m4/strtoimax.m4: New file.
93727
93728         Module strtoumax.
93729         * m4/strtoumax.m4: New file.
93730
93731         Module xstrtoimax.
93732         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
93733         jm_AC_PREREQ_XSTRTOIMAX.
93734         Moved the strtol prerequisites to strtol.m4.
93735         Moved the strtoll prerequisites to strtoll.m4.
93736         Moved the strtoimax prerequisites to strtoimax.m4.
93737
93738         Module xstrtoumax.
93739         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
93740         jm_AC_PREREQ_XSTRTOUMAX.
93741         Moved the strtoul prerequisites to strtoul.m4.
93742         Moved the strtoull prerequisites to strtoull.m4.
93743         Moved the strtoumax prerequisites to strtoumax.m4.
93744
93745         Module chown.
93746         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
93747         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
93748
93749         Module dup2.
93750         * m4/dup2.m4: New file.
93751
93752         Module ftruncate.
93753         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
93754         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
93755
93756         Module getgroups.
93757         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
93758         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
93759
93760         Module gettimeofday.
93761         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
93762         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
93763         gl_PREREQ_GETTIMEOFDAY.
93764
93765         Module mkdir.
93766         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
93767         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
93768
93769         Module mkstemp.
93770         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
93771         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
93772         jm_AC_TYPE_UINTMAX_T.
93773         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
93774
93775         Module stat.
93776         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
93777         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
93778
93779         Module lstat.
93780         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
93781         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
93782
93783         Module timespec.
93784         * m4/timespec.m4 (gl_TIMESPEC): New macro.
93785         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
93786         * m4/st_mtim.m4: Indentation.
93787
93788         Module nanosleep.
93789         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
93790         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
93791         gl_PREREQ_NANOSLEEP.
93792
93793         Module regex.
93794         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
93795         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
93796         (gl_REGEX): New macro.
93797
93798         Module rename.
93799         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
93800         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
93801
93802         Module rmdir.
93803         * m4/rmdir.m4: New file.
93804
93805         Module utime.
93806         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
93807         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
93808         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
93809
93810         Module dirname.
93811         * m4/dirname.m4: New file.
93812
93813         Module getopt.
93814         * m4/getopt.m4: New file.
93815
93816         Module unistd-safer.
93817         * m4/unistd-safer.m4: New file.
93818
93819         Module fnmatch.
93820         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
93821         declaration.
93822         (gl_PREREQ_FNMATCH_EXTRA): New macro.
93823         (gl_FUNC_FNMATCH_POSIX): New macro.
93824         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
93825         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
93826         simply fnmatch.
93827
93828         Module exclude.
93829         * m4/exclude.m4: New file.
93830
93831         Module human.
93832         * m4/human.m4: New file.
93833
93834         Module acl.
93835         * m4/acl.m4: Nop.
93836
93837         Module backupfile.
93838         * m4/backupfile.m4: New file.
93839         * m4/d-ino.m4: Indentation.
93840
93841         Module fsusage.
93842         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
93843         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
93844         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
93845
93846         Module dirfd.
93847         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
93848         requirements.
93849
93850         Module euidaccess.
93851         * m4/euidaccess.m4: New file.
93852
93853         Module file-type.
93854         * m4/file-type.m4: New file.
93855
93856         Module fileblocks.
93857         * m4/fileblocks.m4: New file.
93858
93859         Module filemode.
93860         * m4/filemode.m4: New file.
93861
93862         Module isdir.
93863         * m4/isdir.m4: New file.
93864
93865         Module lchown.
93866         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
93867         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
93868
93869         Module makepath.
93870         * m4/makepath.m4: New file.
93871
93872         Module modechange.
93873         * m4/modechange.m4: New file.
93874
93875         Module mountlist.
93876         * m4/mountlist.m4: New file.
93877         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
93878         Indentation.
93879
93880         Module path-concat.
93881         * m4/path-concat.m4: New file.
93882
93883         Module pathmax.
93884         * m4/pathmax.m4: New file.
93885
93886         Module same.
93887         * m4/same.m4: New file.
93888
93889         Module save-cwd.
93890         * m4/save-cwd.m4: New file.
93891
93892         Module savedir.
93893         * m4/savedir.m4: New file.
93894
93895         Module xgetcwd.
93896         * m4/xgetcwd.m4: New file.
93897         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
93898
93899         Module xreadlink.
93900         * m4/xreadlink.m4: New file.
93901
93902         Module safe-read.
93903         * m4/safe-read.m4: New file.
93904
93905         Module safe-write.
93906         * m4/safe-write.m4: New file.
93907
93908         Module closeout.
93909         * m4/closeout.m4: New file.
93910
93911         Module stdio-safer.
93912         * m4/stdio-safer.m4: New file.
93913
93914         Module getpass.
93915         * m4/getpass.m4: New file.
93916
93917         Module getugroups.
93918         * m4/getugroups.m4: New file.
93919
93920         Module group-member.
93921         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
93922         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
93923
93924         Module idcache.
93925         * m4/idcache.m4: New file.
93926
93927         Module userspec.
93928         * m4/userspec.m4: New file.
93929
93930         Module gettime.
93931         * m4/clock_time.m4: New file.
93932         * m4/gettime.m4: New file.
93933
93934         Module settime.
93935         * m4/settime.m4: New file.
93936
93937         Module posixtm.
93938         * m4/posixtm.m4: New file.
93939
93940         Module gethostname.
93941         * m4/gethostname.m4: New file.
93942
93943         Module canon-host.
93944         * m4/canon-host.m4: New file.
93945
93946         Module gettext.
93947         * m4/codeset.m4: New file, from gettext-0.11.5.
93948         * m4/gettext.m4: New file, from gettext-0.11.5.
93949         * m4/glibc21.m4: New file, from gettext-0.11.5.
93950         * m4/iconv.m4: New file, from gettext-0.11.5.
93951         * m4/intdiv0.m4: New file, from gettext-0.11.5.
93952         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
93953         * m4/inttypes.m4: New file, from gettext-0.11.5.
93954         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
93955         * m4/isc-posix.m4: New file, from gettext-0.11.5.
93956         * m4/lcmessage.m4: New file, from gettext-0.11.5.
93957         * m4/lib-ld.m4: New file, from gettext-0.11.5.
93958         * m4/lib-link.m4: New file, from gettext-0.11.5.
93959         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
93960         * m4/progtest.m4: New file, from gettext-0.11.5.
93961         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
93962         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
93963         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
93964
93965         Module localcharset.
93966         * m4/localcharset.m4: New file.
93967
93968         Module hard-locale.
93969         * m4/hard-locale.m4: New file.
93970
93971         Module mbswidth.
93972         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
93973         onceonly macros.
93974         * m4/mbrtowc.m4: Add comment.
93975
93976         Module memcasecmp.
93977         * m4/memcasecmp.m4: New file.
93978
93979         Module memcoll.
93980         * m4/memcoll.m4: New file.
93981
93982         Module unicodeio.
93983         * m4/unicodeio.m4: New file.
93984
93985         Module rpmatch.
93986         * m4/rpmatch.m4: New file.
93987
93988         Module yesno.
93989         * m4/yesno.m4: New file.
93990
93991         Module exitfail.
93992         * m4/exitfail.m4: New file.
93993
93994         Module c-stack.
93995         * m4/c-stack.m4 (gl_C_STACK): New macro.
93996         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
93997
93998         Module error.
93999         * m4/error.m4 (gl_ERROR): New macro.
94000         (jm_PREREQ_ERROR): Use onceonly macros.
94001
94002         Module fatal.
94003         * m4/fatal.m4: New file.
94004
94005         Module getloadavg.
94006         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
94007         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
94008
94009         Module getpagesize.
94010         * m4/getpagesize.m4: New file.
94011
94012         Module getusershell.
94013         * m4/getusershell.m4: New file.
94014
94015         Module physmem.
94016         * m4/physmem.m4: New file.
94017
94018         Module posixver.
94019         * m4/posixver.m4: New file.
94020
94021         Module quotearg.
94022         * m4/quotearg.m4: New file.
94023
94024         Module quote.
94025         * m4/quote.m4: New file.
94026
94027         Module readutmp.
94028         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
94029
94030         Module sig2str.
94031         * m4/sig2str.m4: New file.
94032
94033         Other.
94034         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
94035         ulonglong.m4.
94036         * m4/intmax_t.m4: New file.
94037         * m4/d-type.m4: Indentation.
94038         * m4/jm-macros.m4: Update.
94039         * m4/prereq.m4 (jm_PREREQ): Update.
94040         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
94041         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
94042         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
94043         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
94044         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
94045         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
94046         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
94047         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
94048         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
94049         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
94050         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
94051         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
94052         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
94053         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
94054         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
94055         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
94056         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
94057         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
94058         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
94059
94060 2002-12-24  Bruno Haible  <bruno@clisp.org>
94061
94062         * MODULES.txt: Update according to m4/ changes.
94063
94064         Module gettext.
94065         * config.rpath: New file, from gettext-0.11.5.
94066
94067         * modules/*: New module descriptions.
94068         * gnulib-tool: New file.
94069         * MODULES.html.sh: New file.
94070
94071 2002-12-21  Karl Berry  <karl@gnu.org>
94072
94073         * doc/fdl.texi: update to version 1.2.
94074
94075 2002-12-19  Karl Berry  <karl@gnu.org>
94076
94077         * config/config.guess: update from prep.
94078
94079 2002-12-18  Bruno Haible  <bruno@clisp.org>
94080
94081         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
94082         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
94083
94084 2002-12-17  Bruno Haible  <bruno@clisp.org>
94085
94086         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
94087         stdlib.h, string.h.
94088
94089 2002-12-17  Bruno Haible  <bruno@clisp.org>
94090
94091         * lib/canon-host.c (strdup): Remove unused declaration.
94092
94093         * lib/fsusage.c: Include full_read.h.
94094         (get_fs_usage): Use full_read instead of safe_read.
94095
94096         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
94097
94098 2002-12-12  Karl Berry  <karl@gnu.org>
94099
94100         * config/config.guess: update from prep.
94101
94102 2002-12-11  Bruno Haible  <bruno@clisp.org>
94103
94104         * m4/setenv.m4: New file, from gettext-0.11.5.
94105
94106 2002-12-11  Bruno Haible  <bruno@clisp.org>
94107
94108         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
94109         not unsetenv().
94110         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
94111         modifications:
94112
94113         2002-12-11  Bruno Haible  <bruno@clisp.org>
94114
94115                 * setenv.c (alloca): Fall back to malloc.
94116                 (freea): New macro.
94117                 (setenv): Use freea() to free memory allocated with alloca().
94118
94119         2002-11-13  Bruno Haible  <bruno@clisp.org>
94120
94121                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
94122                 function declarations.
94123                 * unsetenv.c (unsetenv): Likewise.
94124
94125         2002-03-04  Bruno Haible  <bruno@clisp.org>
94126
94127                 Portability to AIX 4.3.3.
94128                 * unsetenv.c: New file, extracted from setenv.c.
94129                 * setenv.c: Move the unsetenv() function to unsetenv.c.
94130
94131         2001-12-20  Bruno Haible  <bruno@clisp.org>
94132
94133                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
94134                 use malloc instead. For SunOS 4.
94135
94136         2001-12-11  Bruno Haible  <bruno@clisp.org>
94137
94138                 * setenv.c: Declare alloca.
94139                 (compar_fn_t): New typedef.
94140                 (KNOWN_VALUE, STORE_VALUE): Use it.
94141
94142         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
94143         setenv.h.
94144
94145 2002-12-10  Paul Eggert  <eggert@twinsun.com>
94146
94147         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
94148         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
94149         Choose values that are less likely to collide with system fnmatch
94150         options.
94151         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
94152         defined (e.g., a pure POSIX system).
94153         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
94154         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
94155
94156 2002-12-06  Paul Eggert  <eggert@twinsun.com>
94157
94158         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
94159         a pain in practice to deal with generated m4 files.  This change
94160         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
94161
94162         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
94163         and jm-glibc-io.m4, as they are no longer a special case.
94164         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
94165         kludge and the auto-generation stuff.  Check only whether the
94166         functions are declared, not whether they exist, since older hosts
94167         that don't declare the functions can't use the optimization anyway.
94168
94169 2002-12-06  Jim Meyering  <jim@meyering.net>
94170
94171         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
94172
94173         Merge in changes from libc's misc/error.c, in preparation
94174         for the merge of gnulib's changes back into libc.
94175
94176         * lib/error.c (_): Define only if not already defined.
94177         Move definition to follow all #include directives.
94178         Include unlocked-io.h only if !_LIBC.
94179         [_LIBC]: Include <libio/libioP.h>.
94180         [USE_IN_LIBIO]: Include <libio/iolibio.h>
94181         (fflush): Tweak definition to use INTUSE.
94182         (putc): Define.
94183
94184 2002-12-05  Paul Eggert  <eggert@twinsun.com>
94185
94186         * lib/alloca.c [defined emacs]: Include "lisp.h".
94187         (xalloc_die) [defined emacs]: New macro.
94188         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
94189         [! defined emacs]: Include <xalloc.h>.
94190         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
94191         (pointer): Typedef to POINTER_TYPE *.
94192         (malloc): Remove decl; we now always use xmalloc.
94193         (alloca): Use old-style definition, since Emacs needs this.
94194         Check for arithmetic overflow when computing combined size.
94195
94196 2002-12-04  Paul Eggert  <eggert@twinsun.com>
94197
94198         Do not generate unlocked-io.h automatically, since it's easier to
94199         maintain it by hand.
94200
94201         * lib/unlocked-io.h: New file, from GNU diffutils,
94202         but with proper copyright notice and attribution.
94203         * lib/gen-uio: Remove.
94204         * lib/Makefile.am: Add copyright notice.
94205         (libfetish_a_SOURCES): Add unlocked-io.h.
94206         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
94207         (DISTCLEANFILES, io_functions): Remove macros.
94208         (EXTRA_DIST): Remove gen_uio.
94209         (unlocked-io.h): Remove rule.
94210
94211 2002-12-04  Jim Meyering  <jim@meyering.net>
94212
94213         Reflect the fact that stat.c and lstat.c are no longer generated.
94214         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
94215         (DISTCLEANFILES): Likewise.
94216         (EXTRA_DIST): Likewise.
94217         (all_local): Don't depend on stat.c or lstat.c.
94218         (stat.c, lstat.c): Remove rules.
94219         (EXTRA_DIST): Remove xstat.in.
94220
94221         * lib/xstat.in: Remove file.  Contents moved into stat.c.
94222         * lib/stat.c: New file.  Contents mostly from xstat.in.
94223         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
94224         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
94225
94226         * lib/safe-read.c: Rework so that it may serve to define safe_write,
94227         too.
94228         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
94229
94230 2002-12-03  Jim Meyering  <jim@meyering.net>
94231
94232         * lib/safe-read.c, safe-write.c: Change variable names and comments,
94233         but not semantics, to minimize the differences between these two files.
94234         (safe_read): Change comment to mention SAFE_READ_ERROR.
94235
94236         * lib/safe-read.c (IS_EINTR): Define.
94237         (safe_read): Use IS_EINTR in place of in-function cpp directives.
94238
94239 2002-12-02  Jim Meyering  <jim@meyering.net>
94240
94241         * lib/safe-read.c (EINTR): Define.
94242         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94243         (INT_MAX): Provide fallback.
94244         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
94245
94246         * lib/safe-read.h (SAFE_READ_ERROR): Define.
94247
94248 2002-12-02  Bruno Haible  <bruno@clisp.org>
94249
94250         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
94251         Define, taken from safe-read.c.
94252         (INT_MAX): Provide fallback.
94253         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
94254         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
94255
94256         * lib/safe-read.c (EINTR): Remove definition.
94257         (safe_read): Don't use EINTR if it is absent.
94258
94259 2002-12-01  Jim Meyering  <jim@meyering.net>
94260
94261         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
94262         zero.
94263         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
94264
94265 2002-11-27  Paul Eggert  <eggert@twinsun.com>
94266
94267         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
94268         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
94269         with `if (! (value < limit)) abort ();', for readability.
94270
94271 2002-11-26  Karl Berry  <karl@gnu.org>
94272
94273         * lib/strdup.c: copy from libc again, with jim's ok.
94274         * lib/.cppi-disable: re-add strdup.c
94275
94276 2002-11-25  Karl Berry  <karl@gnu.org>
94277
94278         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
94279         instead of "strtol.c".
94280
94281 2002-11-25  Karl Berry  <karl@gnu.org>
94282
94283         * config/install-sh: update from automake for variable quoting, $0 in
94284         error msgs, etc.
94285
94286         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
94287         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
94288         entry.
94289
94290 2002-11-25  Jim Meyering  <jim@meyering.net>
94291
94292         * lib/mktime.c: Sync from libc, now that it has the latest fix.
94293
94294 2002-11-24  Karl Berry  <karl@gnu.org>
94295
94296         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
94297         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
94298
94299 2002-11-24  Jim Meyering  <jim@meyering.net>
94300
94301         Update from coreutils:
94302
94303         * lib/mktime.c: Merge in changes from libc.
94304
94305         Avoid a link-time failure on some Linux systems.
94306         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
94307         (otherwise).
94308         (__mon_yday): Declare with the STATIC attribute.
94309         (__mktime_internal): Likewise.
94310         Based on a report from Greg Schafer.
94311
94312 2002-11-23  Jim Meyering  <jim@meyering.net>
94313
94314         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
94315         Use `unsigned', not `int', as type of index.
94316
94317         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
94318
94319         * lib/fsusage.c: Remove unneeded parentheses around operands of
94320         `defined'.
94321
94322 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94323
94324         * lib/quotearg.h: Allow multiple inclusion by surrounding with
94325         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
94326         so that we can be included first.
94327         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
94328         * lib/quotearg.c: Include quotearg.h immediately after config.h.
94329         No need to include stddef.h or sys/types.h any more.
94330         Surround local include files with "", not "<>".
94331         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
94332         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
94333         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
94334         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
94335         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
94336         (ISPRINT): Remove; no longer needed now that we assume C89.
94337
94338         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
94339         Preserve errno.
94340
94341         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
94342         quotearg_char): Use SIZE_MAX rather than
94343         (size_t) -1 when we are talking about "infinity".
94344
94345         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
94346
94347 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94348
94349         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
94350         hint that one should use `if (! x) abort ();' rather than `assert
94351         (x);', and anyway it's one less thing to worry about configuring.
94352         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
94353         hash_rehash, hash_insert): Use abort rather than assert.
94354
94355 2002-11-22  Bruno Haible  <bruno@clisp.org>
94356
94357         * lib/safe-read.h: Assume C89. Add comments.
94358         (safe_read): Change return type to size_t.
94359         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
94360         byte counts > SSIZE_MAX correctly.
94361         * lib/safe-write.h: New file.
94362         * lib/safe-write.c: New file.
94363         * lib/full-read.h: New file.
94364         * lib/full-read.c: New file.
94365         * lib/full-write.h: Assume C89. Add comments.
94366         * lib/full-write.c: Include safe-write.h.
94367         (full_write): Rewritten to use safe_write.
94368         Suggested by Jim Meyering and Paul Eggert.
94369
94370 2002-11-21  Jim Meyering  <jim@meyering.net>
94371
94372         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
94373
94374         Merge in changes from the coreutils.
94375
94376         2002-09-25  Paul Eggert  <eggert@twinsun.com>
94377         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
94378         <stdint.h>.
94379         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
94380         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
94381         int.  Work more efficiently if X is the same width as uintmax_t.
94382         Do not compare X to -1, to avoid bogus compiler warning.
94383         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
94384         Don't assume that f_frsize and f_bsize are the same type.
94385
94386         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
94387         warning on FreeBSD.
94388
94389         * lib/makepath.c (make_path): Restore umask *before* creating the final
94390         component.
94391         (make_path): Minor reformatting.
94392
94393         * lib/xmalloc.c: Adjust to work with new autoconf macros,
94394         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
94395         HAVE_MALLOC/HAVE_REALLOC.
94396
94397         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
94398         dummy ones.  At least on GNU/Linux systems, `auto' means something
94399         else.
94400         From Michael Stone.
94401
94402 2002-11-21  Bruno Haible  <bruno@clisp.org>
94403
94404         Remove case insensitive option matching.
94405         * lib/argmatch.h (argcasematch): Remove declaration.
94406         (ARGCASEMATCH): Remove macro.
94407         (__xargmatch_internal): Remove case_sensitive argument.
94408         (XARGMATCH): Update.
94409         (XARGCASEMATCH): Remove macro.
94410         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
94411         case_sensitive argument.
94412         (argcasematch): Remove function.
94413         (__xargmatch_internal): Remove case_sensitive argument.
94414         (main): Use XARGMATCH instead of XARGCASEMATCH.
94415
94416         * lib/xmalloc.c: Change compile-time error message. Add comment about
94417         required autoconf version.
94418
94419 2002-11-20  Paul Eggert  <eggert@twinsun.com>
94420
94421         Merge argmatch cleanups from Bison.  Assume C89.
94422
94423         * lib/argmatch.c: Include config.h here, not in argmatch.h.
94424         Include stdlib.h, for EXIT_FAILURE.
94425         Always include <string.h>, since we assume C89.
94426         (EXIT_FAILURE): Remove pre-C89 bug workaround.
94427         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
94428         Include <stddef.h> instead, since it's all we need for size_t.
94429         (PARAMS): Remove.  All uses removed.
94430         (ARRAY_CARDINALITY): Do not bother to #undef.
94431         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
94432         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94433         Remove unnecessary parentheses.
94434         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94435         Insert necessary parentheses.
94436         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
94437         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
94438
94439 2002-11-19  Bruno Haible  <bruno@clisp.org>
94440
94441         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
94442         * lib/mbswidth.h: Include <stddef.h>, for size_t.
94443
94444         * lib/mbswidth.h (PARAMS): Remove macro.
94445         (mbswidth, mbsnwidth): Use ANSI C function declarations.
94446         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
94447
94448         * lib/gcd.h (PARAMS): Remove macro.
94449         (gcd): Use ANSI C function declarations.
94450         * lib/gcd.c (gcd): Likewise.
94451
94452 2002-11-15  Bruno Haible  <bruno@clisp.org>
94453
94454         * lib/strcspn.c: Include <stddef.h>.
94455         (strcspn): Use ANSI C function declaration. Change return type to
94456         size_t. Use NULL.
94457         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
94458         (strpbrk): Use NULL.
94459         * lib/strpbrk.h (PARAMS): Remove macro.
94460         (strpbrk): Use ANSI C function declaration.
94461         * lib/strstr.c: Don't include <sys/types.h>.
94462         * lib/strstr.h (PARAMS): Remove macro.
94463         (strstr): Use ANSI C function declarations.
94464
94465 2002-11-14  Karl Berry  <karl@gnu.org>
94466
94467         * config/mkinstalldirs: `do' on separate line, instead of
94468         `for var; do'.
94469
94470 2002-11-06  Bruno Haible  <bruno@clisp.org>
94471
94472         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
94473         * lib/gcd.c (gcd): Likewise.
94474
94475 2002-11-05  Bruno Haible  <bruno@clisp.org>
94476
94477         * lib/gcd.h: New file, from gettext-0.11.5.
94478         * lib/gcd.c: New file, from gettext-0.11.5.
94479
94480 2002-11-05  Bruno Haible  <bruno@clisp.org>
94481
94482         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94483         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94484         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94485         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94486
94487         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
94488         <libintl.h>.
94489         * lib/makepath.c: Include gettext.h instead of <locale.h> and
94490         <libintl.h>.
94491
94492         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
94493         * lib/human.c: Include gettext.h instead of <libintl.h>.
94494         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
94495         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
94496         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
94497         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
94498         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
94499         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
94500         (textdomain): Remove definition.
94501         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
94502
94503         * lib/long-options.c: Remove include of <libintl.h> and definition of
94504         _.
94505         * lib/same.c: Remove include of <libintl.h> and definition of _.
94506
94507 2002-11-04  Owen Taylor  <otaylor@redhat.com>
94508
94509         * lib/config.charset: A few additions for Solaris.
94510
94511 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94512
94513         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
94514         * lib/localcharset.c (locale_charset): Declare as extern "C".
94515
94516 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94517
94518         * lib/config.charset: msdos in uk_UA uses CP1125.
94519
94520 2002-11-04  Bruno Haible  <bruno@clisp.org>
94521
94522         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
94523         * lib/strcase.h: New file, from GNU gettext-0.11.5.
94524         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
94525         * lib/strstr.h: New file, from GNU gettext-0.11.5.
94526         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
94527
94528 2002-11-04  Bruno Haible  <bruno@clisp.org>
94529
94530         * lib/localcharset.c (locale_charset): Don't return an empty string.
94531
94532 2002-11-04  Bruno Haible  <bruno@clisp.org>
94533
94534         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
94535         aliases.
94536
94537 2002-11-04  Bruno Haible  <bruno@clisp.org>
94538
94539         * lib/config.charset: Update for newest glibc. Add canonical names
94540         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
94541
94542 2002-11-04  Bruno Haible  <bruno@clisp.org>
94543
94544         * lib/config.charset: Add support for NetBSD.
94545
94546 2002-11-04  Bruno Haible  <bruno@clisp.org>
94547
94548         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
94549
94550 2002-11-01  Bruno Haible  <bruno@clisp.org>
94551
94552         * configure.in: Add AC_CONFIG_AUX_DIR call.
94553         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
94554         test/Makefile.
94555         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
94556
94557 2002-09-28  Karl Berry  <karl@gnu.org>
94558
94559         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
94560         installed automake until the next release, since changes have been
94561         made.
94562
94563 2002-09-25  Karl Berry  <karl@gnu.org>
94564
94565         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
94566         * lib/getopt*: copy from libc/posix.
94567         * lib/gettext.h: copy from gettext.
94568         * lib/.cppi-disable: add strdup.c, gettext.h.
94569
94570 2002-09-25  Karl Berry  <karl@gnu.org>
94571
94572         * config/srclist.txt: enable gettext.h check.
94573         * config/config.{guess,sub}: update from prep.
94574         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
94575                 from automake 1.6.3.
94576         See srclist*.
94577
94578 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
94579
94580         * regex.c (PATFETCH): Remove the translating fetch.
94581         (PATFETCH_RAW): Rename to PATFETCH.
94582         (set_image_of_range): New fun.
94583         (SET_RANGE_TABLE_WORK_AREA): Use it.
94584         (regex_compile): Don't translate the pattern chars so eagerly.
94585         Only do it when inserting an `exactn' bytecode or when handling
94586         a char-range.
94587         (mutually_exclusive_p): Avoid empty statement.
94588
94589 2002-07-06  Jim Meyering  <meyering@lucent.com>
94590
94591         * m4/README: Don't mention Makefile.am.in.
94592         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
94593
94594 2002-07-01  Jim Meyering  <meyering@lucent.com>
94595
94596         * lib/c-stack.c: Include sys/time.h.
94597         From Volker Borchert.
94598
94599 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94600
94601         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
94602
94603 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94604
94605         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
94606         New macro.  Use it uniformly instead of
94607         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
94608         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
94609         reported by Vin Shelton.
94610
94611 2002-06-22  Paul Eggert  <eggert@twinsun.com>
94612
94613         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
94614         Do not assume SA_SIGINFO behavior.
94615         Bug reported by Jim Meyering on NetBSD 1.5.2.
94616
94617 2002-06-22  Jim Meyering  <meyering@lucent.com>
94618
94619         * m4/c-stack.m4: New file, from diffutils-2.8.2.
94620         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
94621
94622         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
94623         now that configure.ac uses AC_GNU_SOURCE.
94624         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
94625         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
94626
94627         Update to latest tools.  Suggestions from Paul Eggert.
94628         * m4/stdbool.m4: New file, from diffutils-2.8.2.
94629         * m4/gnu-source.m4: Update from diffutils-2.8.2.
94630         * m4/fnmatch.m4: Likewise.
94631         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
94632         to AC_HEADER_STDBOOL
94633
94634 2002-06-22  Jim Meyering  <meyering@lucent.com>
94635
94636         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
94637         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
94638
94639 2002-06-22  Jim Meyering  <meyering@lucent.com>
94640
94641         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
94642
94643         * lib/exitfail.c, exitfail.h: Likewise.
94644         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
94645
94646         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
94647         of fnmatch.h.
94648         (EXTRA_DIST): Add fnmatch_loop.c.
94649         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
94650
94651         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
94652         * lib/fnmatch.c: Update from diffutils-2.8.2.
94653         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
94654         * lib/fnmatch.h: Remove file.
94655
94656 2002-06-21  Jim Meyering  <meyering@lucent.com>
94657
94658         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
94659         * m4/mbrtowc.m4: Likewise.
94660
94661         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
94662         * m4/mbswidth.m4: Reflect name change:
94663         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
94664         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94665
94666         * m4/lib-link.m4: Update from gettext-0.11.2.
94667         * m4/gettext.m4: Likewise.
94668
94669         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
94670         From Alfred M. Szmidt.
94671
94672 2002-06-18  Paul Eggert  <eggert@twinsun.com>
94673
94674         * lib/file-type.h: Report an error if neither S_ISREG nor
94675         S_IFREG is defined, instead of using a test specific to glibc
94676         2.2.  This should be safe, since POSIX requires S_ISREG and
94677         Unix Version 7 had S_IFREG.  We don't need to check for
94678         <sys/types.h> since we don't use any symbols that it defines.
94679
94680 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
94681
94682         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
94683         $@-t, so that each temporary file name is unique and valid in the first
94684         8 characters, for operation under DOS.
94685
94686 2002-06-15  Paul Eggert  <eggert@twinsun.com>
94687
94688         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
94689
94690 2002-06-15  Jim Meyering  <meyering@lucent.com>
94691
94692         Work even with DJGPP 2.03, which lacks support for symlinks.
94693         From Richard Dawe.
94694         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
94695         is defined.
94696         * lib/lchown.c (S_ISLNK): Likewise.
94697
94698 2002-06-15  Jim Meyering  <meyering@lucent.com>
94699
94700         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
94701         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
94702         have been included before this file.
94703
94704 2002-06-14  Jim Meyering  <meyering@lucent.com>
94705
94706         * lib/file-type.h: Use the version from diffutils-2.8.2.
94707         * lib/file-type.c: Likewise.
94708
94709 2002-06-07  Jim Meyering  <meyering@lucent.com>
94710
94711         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
94712         They're needed at least for NetBSD 1.5.2.
94713         ($statxfs_includes): Include those same headers.
94714         ($statxfs_includes): Include sys/vfs.h if available.
94715         ($statxfs_includes): Likewise for sys/statvfs.h.
94716         Check for the following members in both structs statfs and statvfs:
94717         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
94718
94719 2002-06-01  Jim Meyering  <meyering@lucent.com>
94720
94721         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
94722         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
94723
94724 2002-05-28  Jim Meyering  <meyering@lucent.com>
94725
94726         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
94727         Reported by Volker Borchert.
94728
94729 2002-05-27  Jim Meyering  <meyering@lucent.com>
94730
94731         Fix a problem seen only on nonconforming systems whereby ls.c's
94732         use of localtime, and then of gettimeofday would cause trouble:
94733         the localtime call used to initialize rpl_gettimeofday's save
94734         mechanism would clobber ls's current local time information so
94735         that in any long listing the first file would always be listed
94736         with date 1970-01-01.  Analysis by Volker Borchert.
94737
94738         * lib/gettimeofday.c (localtime): Undefine.
94739         (rpl_localtime): New function.
94740
94741 2002-05-27  Jim Meyering  <meyering@lucent.com>
94742
94743         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
94744         localtime.
94745
94746         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
94747         use the replacement function; it wouldn't resolve at link time.
94748         Reported by Volker Borchert.
94749
94750 2002-05-22  Jim Meyering  <meyering@lucent.com>
94751
94752         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
94753         file-type.h.
94754         * lib/file-type.h: New file.
94755         * lib/file-type.c (file_type): New file/function.  Extracted from
94756         diffutils.
94757
94758 2002-04-30  Jim Meyering  <meyering@lucent.com>
94759
94760         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
94761
94762 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94763
94764         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
94765
94766 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94767
94768         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
94769         Do not check for alloca.h (no longer used) or stdbool.h (was never
94770         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
94771
94772 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94773
94774         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
94775
94776 2002-04-29  Jim Meyering  <meyering@lucent.com>
94777
94778         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
94779         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
94780         Use AC_FUNC_STRNLEN here instead.
94781
94782         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
94783         With autoconf-2.53a, it's part of AC_PROG_CC.
94784
94785 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94786
94787         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
94788         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
94789
94790 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94791
94792         * lib/sig2str.h, lib/sig2str.c: New files.
94793         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
94794
94795 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94796
94797         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
94798         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
94799         of 127, since 64 is the largest conceivable number for ancient
94800         nonstandard hosts.
94801         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
94802
94803 2002-04-28  Jim Meyering  <meyering@lucent.com>
94804
94805         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
94806
94807 2002-04-24  Jim Meyering  <meyering@lucent.com>
94808
94809         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
94810         (jm_PREREQ): Use it.
94811
94812         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
94813         mach/mach.h fcntl.h.
94814         Check for this function: setlocale.
94815
94816 2002-04-24  Jim Meyering  <meyering@lucent.com>
94817
94818         * lib/gettext.h: New file, from Gettext.
94819         * lib/Makefile.am (INCLUDES): Remove -I../intl.
94820         (libfetish_a_SOURCES): Add gettext.h.
94821
94822 2002-04-16  Jim Meyering  <meyering@lucent.com>
94823
94824         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
94825         ut_pid, ut_id, ut_exit.
94826
94827 2002-04-16  Jim Meyering  <meyering@lucent.com>
94828
94829         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
94830         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
94831         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
94832
94833 2002-04-12  Jim Meyering  <meyering@lucent.com>
94834
94835         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
94836         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
94837         existence of the getmntinfo function.  Needed for Darwin 5.3.
94838
94839         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
94840         This is necessary at least on Darwin 5.3.
94841
94842         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
94843         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
94844         strnlen.o in the library, and that makes some versions of ranlib
94845         object.
94846
94847 2002-04-12  Jim Meyering  <meyering@lucent.com>
94848
94849         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
94850
94851 2002-04-09  Jim Meyering  <meyering@lucent.com>
94852
94853         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
94854         to be more precise.  Rather than saying we're checking whether the
94855         function `works', say what we're testing.
94856         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
94857         Reported by Bruno Haible.
94858
94859 2002-03-10  Jim Meyering  <meyering@lucent.com>
94860
94861         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
94862         Suggestion from Santiago Vila.
94863
94864 2002-03-08  Jim Meyering  <meyering@lucent.com>
94865
94866         * lib/rename.c: Mention that this wrapper is needed also on
94867         mips-dec-ultrix4.4 systems.
94868
94869 2002-03-02  Jim Meyering  <meyering@lucent.com>
94870
94871         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
94872         not HAVE_CLOCK_SETTIME.
94873
94874 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94875
94876         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
94877         Check for clock_settime.
94878
94879 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94880
94881         * lib/nanosleep.h: Rename to....
94882         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
94883
94884         * lib/gettime.c: New file.
94885         * lib/settime.c: New file.
94886         * lib/stime.c: Remove.
94887
94888         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
94889         timespec.h.  Remove nanosleep.h.
94890
94891 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94892
94893         * m4/acl.m4: New file.
94894         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
94895         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
94896
94897 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94898
94899         * lib/acl.c, lib/acl.h: New files.
94900         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
94901
94902 2002-02-24  Jim Meyering  <meyering@lucent.com>
94903
94904         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
94905         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
94906         cause trouble.  Reported by Nelson Beebe.
94907
94908 2002-02-23  Paul Eggert  <eggert@twinsun.com>
94909
94910         * lib/path-concat.c (xpath_concat): Reorder code to pacify
94911         compilers that don't know that xalloc_die never returns.
94912
94913 2002-02-20  Jim Meyering  <meyering@lucent.com>
94914
94915         * lib/getdate.c: Regenerate using bison-1.33.
94916
94917 2002-02-17  Jim Meyering  <meyering@lucent.com>
94918
94919         * config/config.guess (main): Don't use `head -1'; it's no longer
94920         portable. Use `sed 1q' instead.
94921
94922 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
94923
94924         * m4/codeset.m4: Upgrade to gettext-0.11.
94925         * m4/gettext.m4: Upgrade to gettext-0.11.
94926         * m4/glibc21.m4: Upgrade to gettext-0.11.
94927         * m4/iconv.m4: Upgrade to gettext-0.11.
94928         * m4/isc-posix.m4: Upgrade to gettext-0.11.
94929         * m4/lcmessage.m4: Upgrade to gettext-0.11.
94930         * m4/lib-ld.m4: New file, from gettext-0.11.
94931         * m4/lib-link.m4: New file, from gettext-0.11.
94932         * m4/lib-prefix.m4: New file, from gettext-0.11.
94933         * m4/progtest.m4: Upgrade to gettext-0.11.
94934
94935 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94936
94937         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
94938         (jm_PREREQ): Use it.
94939
94940 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94941
94942         * lib/posixver.c, lib/posixver.h: New files.
94943         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94944
94945 2002-02-02  Paul Eggert  <eggert@twinsun.com>
94946             Bruno Haible  <bruno@clisp.org>
94947
94948         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
94949         (fwrite_success_callback): New declaration.
94950         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
94951         print_unicode_char. Call failure callback instead of error.
94952         (fwrite_success_callback): New function.
94953         (exit_failure_callback): New function.
94954         (fallback_failure_callback): New function.
94955         (print_unicode_char): Call unicode_to_mb.
94956
94957 2002-01-26  Jim Meyering  <meyering@lucent.com>
94958
94959         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
94960         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
94961
94962 2002-01-26  Jim Meyering  <meyering@lucent.com>
94963
94964         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
94965
94966 2002-01-22  Paul Eggert  <eggert@twinsun.com>
94967
94968         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
94969
94970 2002-01-22  Jim Meyering  <meyering@lucent.com>
94971
94972         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
94973         Otherwise, some versions of automake would omit the rule that makes
94974         Makefile from Makefile.in.
94975
94976 2002-01-21  Paul Eggert  <eggert@twinsun.com>
94977
94978         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
94979         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94980         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
94981         (memcoll): Set errno to zero if there is no error.
94982
94983         * lib/quotearg.c (quotearg_buffer_restyled):
94984         Fix bug with quoting buffers containing NUL when backslashing escapes.
94985         This bug was exposed by the other changes in this patch.
94986         (quotearg_n_options): New arg ARGSIZE.
94987         All callers changed.
94988         (quoting_options_from_style): New function.
94989         (quotearg_n_style): Use it.
94990         (quotearg_n_style_mem): New function.
94991
94992         * lib/quotearg.h (quotearg_n_style_mem): New function.
94993
94994 2002-01-19  Jim Meyering  <meyering@lucent.com>
94995
94996         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
94997         Remove useless quotes: DF_PROG="df".
94998         * m4/strnlen.m4: New file.
94999
95000 2002-01-16  Paul Eggert  <eggert@twinsun.com>
95001
95002         * lib/backupfile.c (ISDIGIT): Comment fix.
95003         * lib/getdate.y (ISDIGIT): Likewise.
95004         * lib/posixtm.c (ISDIGIT, year): Likewise.
95005         * lib/strverscmp.c (ISDIGIT): Likewise.
95006         * lib/userspec.c (ISDIGIT): Likewise.
95007
95008 2002-01-16  Jim Meyering  <meyering@lucent.com>
95009
95010         * lib/getdate.y: Add three semicolons, each just before a closing
95011         brace. Bison (as of version 1.31) no longer papers over that mistake.
95012
95013 2002-01-05  Jim Meyering  <meyering@lucent.com>
95014
95015         * lib/version-etc.c (version_etc_copyright): Update copyright year.
95016
95017 2001-12-19  Paul Eggert  <eggert@twinsun.com>
95018
95019         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
95020         not silently exit merely because the output buffer happens to
95021         have nothing pending.
95022
95023 2001-12-18  Paul Eggert  <eggert@twinsun.com>
95024
95025         See the big note in ../ChangeLog.
95026         * lib/human.c (suffixes): Prefer K to k for 1024.
95027         (generate_suffix_backwards): New function.
95028         (human_readable_inexact): Use it.
95029         * lib/xstrtol.c (__xstrtol): If there is no number but there
95030         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
95031         Accept 'K' as well as 'k'.
95032
95033 2001-12-15  Jim Meyering  <meyering@lucent.com>
95034
95035         * lib/regex.h (__restrict_arr): Update from libc.
95036
95037         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
95038         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
95039         (STREQ): Define.
95040
95041 2001-12-14  Jim Meyering  <meyering@lucent.com>
95042
95043         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
95044         Suggestion from Bruno Haible.
95045
95046 2001-12-10  Jim Meyering  <meyering@lucent.com>
95047
95048         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
95049         xrealloc, Instead, include "xalloc.h".
95050         (initbuffer): Don't cast xmalloc return value to char*.
95051         (readline): Reword comment.
95052         Don't cast xrealloc return value to char*
95053         Return NULL, not 0.
95054
95055 2001-12-09  Jim Meyering  <meyering@lucent.com>
95056
95057         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
95058         about `signed and unsigned type in conditional expression'.
95059         * lib/posixtm.c (posix_time_parse): Likewise.
95060
95061         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
95062
95063         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
95064         to avoid a pedantic warning.
95065
95066         * lib/getstr.c: Don't include assert.h.
95067         (getstr): Remove warning-evoking assertions.
95068         Return -1 if offset parameter is out of bounds.
95069         Change the type of a local from int to size_t.
95070
95071         * lib/strftime.c (my_strftime_localtime_r): Include this function
95072         definition in the `#if ! HAVE_TM_GMTOFF' block.
95073
95074         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
95075         Include xalloc.h instead.
95076
95077 2001-12-02  Jim Meyering  <meyering@lucent.com>
95078
95079         * lib/tempname.c: Don't declare getenv, thus reverting the change of
95080         2001-11-18.  It's no longer necessary, now that stdlib.h is always
95081         included.
95082
95083         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
95084         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
95085
95086 2001-11-30  Akim Demaille  <akim@epita.fr>
95087
95088         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
95089         before being defined.
95090
95091 2001-11-27  Paul Eggert  <eggert@twinsun.com>
95092
95093         * lib/quotearg.h (quotearg_n, quotearg_n_style):
95094         First arg is int, not unsigned.
95095         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
95096         (SIZE_MAX, UINT_MAX): New macros.
95097         (quotearg_n_options): Abort if N is negative.
95098         Avoid overflow check on hosts where size_t is 64 bits and int
95099         is 32 bits, as overflow is impossible there.
95100         Fix off-by-one typo that caused unnecessary reallocation.
95101
95102 2001-11-27  Jim Meyering  <meyering@lucent.com>
95103
95104         * lib/tempname.c: Merge with version from libc.
95105         * lib/regex.c: Likewise.
95106
95107         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
95108         systems for which STDC_HEADERS is 0, it was not included, resulting in
95109         a warning about an integer-to-pointer conversion problem with getenv.
95110         Reported by Volker Borchert.
95111
95112 2001-11-26  Jim Meyering  <meyering@lucent.com>
95113
95114         * lib/gtod.h: Remove file.
95115         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
95116         * lib/gettimeofday.c: Don't include gtod.h.
95117         (GTOD_init): Remove function.
95118         (rpl_gettimeofday): Do its job here instead, rather than aborting.
95119         Suggestion from Volker Borchert.
95120
95121 2001-11-23  Jim Meyering  <meyering@lucent.com>
95122
95123         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
95124         it.
95125         * lib/hash.c (struct hash_table): Define it here instead.
95126
95127 2001-11-22  Jim Meyering  <meyering@lucent.com>
95128
95129         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
95130
95131 2001-11-20  Jim Meyering  <meyering@lucent.com>
95132
95133         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
95134         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
95135
95136 2001-11-19  Jim Meyering  <meyering@lucent.com>
95137
95138         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
95139         directory.  Use "conftestXXXXXX" as the template.
95140         Suggestion from Paul Eggert.
95141
95142         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
95143         immediately, so the test doesn't mistakenly hit the max-open-files
95144         limit.
95145
95146 2001-11-18  Paul Eggert  <eggert@twinsun.com>
95147
95148         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
95149         (TEMPORARIES): New macro.
95150         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
95151         removes an artificial limitation (e.g. HP-UX 10.20, where
95152         TMP_MAX is 17576).
95153
95154 2001-11-18  Jim Meyering  <meyering@lucent.com>
95155
95156         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
95157
95158 2001-11-18  Jim Meyering  <meyering@lucent.com>
95159
95160         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
95161         on SunOS 4.
95162
95163         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
95164         files will be created before anything else.
95165
95166 2001-11-17  Paul Eggert  <eggert@twinsun.com>
95167
95168         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
95169         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
95170
95171 2001-11-17  Jim Meyering  <meyering@lucent.com>
95172
95173         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
95174         Prompted by a report from Bob Proulx.
95175
95176         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
95177         Instead, require UTILS_FUNC_MKSTEMP.
95178
95179 2001-11-17  Jim Meyering  <meyering@lucent.com>
95180
95181         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
95182         Now, that's done as part of AC_FUNC_STRTOD.
95183
95184 2001-11-17  Jim Meyering  <meyering@lucent.com>
95185
95186         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
95187         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
95188         rather than group writable.  Patch by Juan F. Codagnone.
95189
95190         * lib/readtokens.c: Remove explicit declarations of xmalloc and
95191         xrealloc, Instead, include "xalloc.h".
95192
95193         * lib/mountlist.c: Include unlocked-io.h after all system headers.
95194         Remove explicit declarations of xmalloc, xrealloc,
95195         and xstrdup.  Instead, include "xalloc.h".
95196
95197         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
95198         unlocked-io.h.
95199         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
95200         Likewise.
95201         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
95202
95203         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
95204         Reported by Padraig Brady.
95205
95206         * lib/mkstemp.c: #undef mkstemp.
95207         Include config.h.
95208         (rpl_mkstemp): Rename from mkstemp.
95209         Protoize.
95210
95211 2001-11-16  Jim Meyering  <meyering@lucent.com>
95212
95213         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
95214         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
95215         determine the amount of total physical memory, use pstat_getstatic.
95216         HPUX-11 doesn't define _SC_PHYS_PAGES.
95217         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
95218         If sysconf couldn't be used to determine the amount of available
95219         physical memory, use both pstat_getstatic and pstat_getdynamic.
95220         Based on a patch from Bob Proulx.
95221
95222 2001-11-10  Jim Meyering  <meyering@lucent.com>
95223
95224         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
95225         (jm_PREREQ): Use it.
95226
95227 2001-11-09  Jim Meyering  <meyering@lucent.com>
95228
95229         * m4/jm-macros.m4: Require autoconf-2.52f.
95230         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
95231         Use these AC_-prefixed names, not the AM_-prefixed ones.
95232
95233         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
95234
95235 2001-11-05  Jim Meyering  <meyering@lucent.com>
95236
95237         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
95238
95239 2001-11-04  Jim Meyering  <meyering@lucent.com>
95240
95241         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
95242         $DEFS.
95243
95244 2001-11-03  Jim Meyering  <meyering@lucent.com>
95245
95246         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
95247         of AC_DEFUN.
95248
95249         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
95250         know the name of the variable in the macro definition.
95251
95252 2001-11-03  Jim Meyering  <meyering@lucent.com>
95253
95254         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
95255         in argmatch_to_argument call.
95256
95257         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
95258         argument.
95259
95260         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
95261         e.g., a fault due to an attempt to free a NULL pointer.
95262
95263 2001-11-01  Jim Meyering  <meyering@lucent.com>
95264
95265         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
95266         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
95267
95268 2001-11-01  Jim Meyering  <meyering@lucent.com>
95269
95270         * lib/dirfd.c, lib/dirfd.h: New files.
95271         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
95272
95273         * lib/hash.c (hash_print) [TESTING]: Clean up.
95274
95275 2001-10-22  Paul Eggert  <eggert@twinsun.com>
95276
95277         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
95278         to avoid a warning if -Wall.
95279
95280 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
95281
95282         * README: New file
95283         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
95284         (per RMS's instructions, this is now the canonical source)
95285         * lgpl/, gpl/: New directories.
95286
95287 2001-10-21  Paul Eggert  <eggert@twinsun.com>
95288
95289         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
95290
95291 2001-10-21  Jim Meyering  <meyering@lucent.com>
95292
95293         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
95294         this code would end up calling gettext even in packages built
95295         with --disable-nls.
95296         * lib/getopt.c (_): Likewise.
95297         * lib/regex.c (_): Likewise.
95298
95299 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95300
95301         * m4/error.m4 (jm_PREREQ_ERROR):
95302         Do not invoke AC_CHECK_FUNCS with strerror_r, as
95303         AC_FUNC_STRERROR_R does that.
95304         Check for strerror declaration.
95305
95306         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
95307         are supposed to have them these days.
95308         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
95309         Merge changes from latest Autoconf CVS.
95310         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
95311         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
95312         POSIX decided to standardize on the int flavor of strerror_r.
95313
95314 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95315
95316         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
95317         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
95318         Use strerror_r that is only a macro, even if it is not a function.
95319         (strerror): Check for HAVE_DECL_STRERROR before declaring.
95320         (private_strerror): Use prototypes, not old-style function definition.
95321         (print_errno_message): New function.
95322         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
95323         char*-flavored one.
95324         (error_tail, error, error_at_line): Use it.
95325
95326 2001-10-11  Jim Meyering  <meyering@lucent.com>
95327
95328         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
95329         and quote_n (1, ... to avoid clobbering a buffer.
95330
95331 2001-10-05  Jim Meyering  <meyering@lucent.com>
95332
95333         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
95334         hash-pjw.h.
95335         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
95336         * lib/hash-pjw.h: New file.
95337
95338 2001-09-30  Jim Meyering  <meyering@lucent.com>
95339
95340         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
95341         `struct fsstat' has the `f_fstypename' member.
95342         Use that to define FS_TYPE, which is now used to make
95343         the getfsstat link test tighter.
95344
95345 2001-09-30  Jim Meyering  <meyering@lucent.com>
95346
95347         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
95348         Include <sys/ucred.h>, for Apple Darwin.
95349         Include sys/mount.h and sys/fs_types.h only if available.
95350         (FS_TYPE): Define.
95351         (read_filesystem_list): Use FS_TYPE.
95352
95353 2001-09-29  Paul Eggert  <eggert@twinsun.com>
95354
95355         * lib/exclude.c (excluded_filename): 0 -> false, since it's
95356         a boolean context.
95357
95358 2001-09-29  Jim Meyering  <meyering@lucent.com>
95359
95360         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95361         [one-argument getmntent function]): Include stdio.h before mntent.h.
95362         SunOS 4.1.x needs it for the declaration of `FILE'.
95363         Patch by Volker Borchert.
95364
95365         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95366         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
95367         sys/fs_types.h, and make the link-test for getfsstat guard #include
95368         directives with appropriate #if HAVE_*_H tests so that we can
95369         detect getfsstat on Apple Darwin1.3.7 systems.
95370         Reported by Nelson Beebe.
95371         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
95372
95373 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95374
95375         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95376         #defines strtoimax.  Also treat the other strto* functions
95377         like strtoimax.
95378
95379         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95380         Check for strtoul and strtoumax,
95381         as those declarations are made even in the signed case.
95382         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
95383         Likewise, for strtol and strtoimax.
95384
95385 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95386
95387         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95388         #defines strtoimax.  Also treat the other strto* functions
95389         like strtoimax.
95390
95391         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
95392         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
95393         (strtoimax, strtoumax): Do not declare if already defined as a macro.
95394
95395 2001-09-26  Jim Meyering  <meyering@lucent.com>
95396
95397         Most macros in unlocked-io.h had the wrong number of arguments.
95398         * lib/gen-uio: New script.
95399         (USE_UNLOCKED_IO): Define to 1 if not already defined.
95400         * lib/unlocked-io.hin: Remove file.
95401         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
95402         rather than trying to embed it here.
95403         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
95404         Reported by Padraig Brady.
95405
95406 2001-09-25  Volker Borchert  <bt@teknon.de>
95407
95408         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
95409         `result'.
95410
95411 2001-09-24  Jim Meyering  <meyering@lucent.com>
95412
95413         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
95414
95415 2001-09-23  Jim Meyering  <meyering@lucent.com>
95416
95417         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
95418         instead of the mere test for existence of mntent.h.  The latter
95419         would get a false-positive on AIX 3.4 systems.
95420         In the outer getmntent if-block, don't die if neither of the getmntent
95421         tests succeeds.  Instead, just fall through and continue with the
95422         remaining tests.
95423
95424 2001-09-23  Jim Meyering  <meyering@lucent.com>
95425
95426         * lib/mountlist.c: Remove useless parentheses in #if directives.
95427         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
95428         the deprecated MOUNTED symbol is no longer defined in mntent.h.
95429
95430 2001-09-22  Jim Meyering  <meyering@lucent.com>
95431
95432         * m4/gettext.m4: New file.  From gettext.
95433         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
95434         * m4/progtest.m4: Likewise
95435         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
95436         * m4/glibc21.m4: Likewise.
95437
95438         * m4/libintl.m4: Remove.  No longer used.
95439
95440 2001-09-22  Jim Meyering  <meyering@lucent.com>
95441
95442         * lib/localcharset.c: Update from latest gettext.
95443         * lib/config.charset: Likewise.
95444
95445 2001-09-20  Jim Meyering  <meyering@lucent.com>
95446
95447         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
95448         strtoimax.
95449         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
95450         strtoumax.
95451
95452 2001-09-20  Jim Meyering  <meyering@lucent.com>
95453
95454         * lib/xstrtol.c (strtoimax): Guard declaration with
95455         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
95456         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
95457         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
95458         (strtoumax): Likewise, for completeness (it wasn't necessary).
95459
95460 2001-09-17  Paul Eggert  <eggert@twinsun.com>
95461
95462         * lib/strtoimax.c (HAVE_LONG_LONG):
95463         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
95464         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
95465         to work around bug in IBM C compiler.
95466
95467 2001-09-17  Jim Meyering  <meyering@lucent.com>
95468
95469         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
95470         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
95471         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
95472         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
95473         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
95474         whenever the right hand side need not be expanded by the shell.
95475
95476 2001-09-16  Paul Eggert  <eggert@twinsun.com>
95477
95478         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
95479         library.  It's not correct, as some older glibcs are buggy.
95480         fnmatch wasn't fixed until glibc 2.2.
95481
95482         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
95483         special shell magic here.
95484
95485 2001-09-16  Jim Meyering  <meyering@lucent.com>
95486
95487         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
95488         * m4/jm-macros.m4: Require it.
95489
95490 2001-09-16  Jim Meyering  <meyering@lucent.com>
95491
95492         * lib/mkdir.c: New file.
95493
95494 2001-09-15  Jim Meyering  <meyering@lucent.com>
95495
95496         * m4/jm-macros.m4: Check for help2man.
95497
95498 2001-09-11  Jim Meyering  <meyering@lucent.com>
95499
95500         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
95501         The body, by Paul Eggert, was moved here from configure.in.
95502         * m4/jm-macros.m4: Require UTILS_HOST_OS.
95503
95504 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95505
95506         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
95507         (jm_PREREQ): Use it.
95508
95509 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95510
95511         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
95512         Use ssize_t, not int, to store result of readlink.
95513         Check for ssize_t overflow as well as size_t overflow,
95514         as POSIX says the result of readlink is implementation-defined
95515         when ssize_t overflows.
95516         Remove unnecessary cast to char*.
95517         Use free+malloc instead of realloc, as the storage doesn't need
95518         to be preserved and it's clearer and can be more efficient that way.
95519         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
95520         * lib/xreadlink.h (xreadlink): Update prototype.
95521
95522 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95523
95524         * lib/xgetcwd.c: Revert some of the previous change; intead,
95525         fix the HAVE_GETCWD_NULL code to behave more like the
95526         !HAVE_GETCWD_NULL code used to.
95527
95528         Include "xalloc.h".
95529         (xgetcwd): Do not return NULL when memory is exhausted; instead,
95530         invoke xalloc_die.
95531
95532 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95533
95534         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
95535         sys/param.h, as pathmax.h includes them.
95536
95537 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95538
95539         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
95540         (jm_PREREQ_XGETCWD): New macro.
95541
95542         * m4/getcwd.m4: New file.
95543
95544 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95545
95546         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
95547         like the HAVE_GETCWD_NULL code.
95548         Include pathmax.h if not HAVE_GETCWD.
95549         Do not include xalloc.h.
95550         (INITIAL_BUFFER_SIZE): New symbol.
95551         Do not use xmalloc / xrealloc, since the caller is responsible for
95552         handling errors.  Preserve errno around `free' during failure.
95553         Do not overrun buffer when using getwd.
95554
95555 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95556
95557         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
95558         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
95559         getcwd (NULL, 0).
95560
95561 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95562
95563         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
95564         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
95565         spotted by Jim Meyering.
95566
95567 2001-09-03  Jim Meyering  <meyering@lucent.com>
95568
95569         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
95570         failure.
95571
95572 2001-09-02  Jim Meyering  <meyering@lucent.com>
95573
95574         * lib/error.c: Update from GNU libc.
95575
95576 2001-09-01  Jim Meyering  <meyering@lucent.com>
95577
95578         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
95579         Used by df.
95580
95581 2001-09-01  Jim Meyering  <meyering@lucent.com>
95582
95583         * lib/xreadlink.c: New file.
95584         * lib/xreadlink.h: New file.
95585         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
95586         xreadlink.h.
95587
95588         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
95589         doesn't conflict with sparc Solaris 7's definition in
95590         /usr/include/sys/int_types.h.
95591
95592         * lib/exclude.c: Use `""', not `<>' to #include non-system header
95593         files.
95594         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
95595         and strncasecmp as r-values.  Unixware didn't have declarations.
95596
95597 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95598
95599         * lib/xstrtol.h: Add copyright notice.
95600         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
95601         LONGINT_INVALID_SUFFIX_CHAR.
95602
95603 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95604
95605         * lib/xstrtol.c (strtoimax): New decl.
95606
95607 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95608
95609         * lib/xgetcwd.c: Don't include pathmax.h.
95610         Include stdlib.h and unistd.h if available.
95611         Include xalloc.h.
95612         (xmalloc, xstrdup, free): Remove decls.
95613         (xgetcwd): Don't assume sizes fit in unsigned.
95614         Check for overflow when computing sizes.
95615         Simplify reallocation code.
95616
95617 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95618
95619         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
95620         a directory's st_size can have an arbitrary value, so the old
95621         usage could waste an arbitrary amount of memory.  All uses
95622         changed.
95623         * lib/savedir.h: Update prototype.
95624
95625 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95626
95627         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
95628
95629         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
95630         old strtoimax.c.
95631
95632         Also, make the following further changes to make this file's
95633         configuration more similar to that of strtol.c:
95634         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
95635         (strtoumax, uintmax_t, strtoull, strtol): Remove.
95636         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
95637         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
95638         changed to signed values.
95639
95640         And make the following changes as well:
95641         Fix copyright notice, as 1999 was missing.
95642         (verify): New macro.
95643         (strtoimax): Check sizes at compile-time, not run-time.
95644         Prefer strtol to strtoll if both work.
95645         (main): Remove; it was not that useful and was a pain to maintain.
95646
95647         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
95648
95649 2001-08-31  Jim Meyering  <meyering@lucent.com>
95650
95651         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
95652         Use an initial, malloc'd, buffer of length 128 rather than
95653         a statically allocated one of length 1024.
95654
95655 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95656
95657         Simplify code, partly by assuming autoconf 2.52 semantics.
95658
95659         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
95660
95661         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
95662         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
95663         All uses removed.
95664         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
95665         Move AC_REQUIRE to next-to-top level, to avoid confusion.
95666         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
95667         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
95668         jm_AC_HEADER_INTTYPES_H.
95669         * m4/jm-macros.m4 (jm_MACROS): Likewise.
95670
95671         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
95672
95673         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95674         Quote first arg of AC_DEFUN.
95675         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
95676         since they are needed to parse the include file even if we need
95677         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
95678         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
95679         but with opposite signedness.
95680
95681 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95682
95683         Merge 'exclude' changes from tar 1.13.22.
95684         This fixes one or two unlikely storage allocation overflow bugs,
95685         but doesn't change user-visible behavior otherwise.
95686
95687 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95688
95689         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
95690         (jm_PREREQ_EXCLUDE): New macro.
95691
95692 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95693
95694         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
95695         tm to be declared.
95696
95697 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95698
95699         * lib/hash.c: Remove '2001' from copyright notice.
95700
95701 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95702
95703         * lib/full-write.h: New file.
95704         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
95705         * lib/full-write.c: Correct credits, as cccp.c no longer
95706         exists and anyway it was so heavily changed from the old cccp
95707         code as to be unrecognizable.  Include full-write.h.
95708         (full_write): Return size_t, with short writes meaning failure.
95709         All callers changed.  This fixes a bug with large buffers
95710         on 64-bit hosts.
95711         * lib/utime.c: Include full-write.h.
95712
95713 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95714
95715         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
95716         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
95717         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
95718         Include if available.
95719         (<xalloc.h>): Include
95720         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
95721         (verify): New macro.  Use it to verify that EXCLUDE macros do not
95722         collide with FNM macros.
95723         (struct patopts): New struct.
95724         (struct exclude): Use it, as exclude patterns now come with options.
95725         (new_exclude): Support above changes.
95726         (new_exclude, add_exclude_file):
95727         Initial size must now be a power of two to simplify overflow checking.
95728         (free_exclude, fnmatch_no_wildcards): New function.
95729         (excluded_filename): No longer requires options arg, as the options
95730         are determined by add_exclude.  Now returns bool, not int.
95731         (excluded_filename, add_exclude):
95732         Add support for the fancy new exclusion options.
95733         (add_exclude, add_exclude_file): Now takes int options arg.
95734         Check for arithmetic overflow when computing sizes.
95735         (add_exclude_file): xrealloc might modify errno, so don't
95736         realloc until after errno might be used.
95737
95738         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
95739         New macros.
95740         (free_exclude): New decl.
95741         (add_exclude, add_exclude_file): Now takes int options arg.
95742         (excluded_filename): No longer requires options arg, as the options
95743         are determined by add_exclude.  Now returns bool, not int.
95744
95745 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95746
95747         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
95748
95749 2001-08-27  Jim Meyering  <meyering@lucent.com>
95750
95751         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
95752
95753         * lib/version-etc.c (N_): Remove definition.
95754         Revert most of last change.
95755         Instead, simply don't mark the `Copyright...' string for translation.
95756         Based on advice from Paul Eggert.
95757
95758         * lib/strtoxmax.c: Tweak comment.
95759
95760 2001-08-26  Jim Meyering  <meyering@lucent.com>
95761
95762         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
95763
95764         * m4/xstrtoimax.m4: New file.
95765         * m4/xstrtoumax.m4: Add comments explaining why we
95766         AC_REPLACE_FUNCS(strtol).
95767
95768 2001-08-26  Jim Meyering  <meyering@lucent.com>
95769
95770         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
95771         of copyright with `%s' so translators don't get an untranslated
95772         message in 2002.
95773         (COPYRIGHT_YEAR): Define.
95774         (version_etc): Use fprintf rather than fputs.
95775         Suggestion from Ulrich Drepper.
95776
95777         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
95778
95779         * lib/strtoll.c: New file, from GNU libc.
95780         * lib/xstrtoimax.c: New file.
95781
95782         * lib/xstrtol.h: Add xstrtoimax.
95783         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
95784         * lib/strtoimax.c: New file.  Likewise, but first define
95785         STRTOUXMAX_SIGNED.
95786
95787         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
95788         ...
95789         * lib/strtoxmax.c: ... then renamed to this.
95790
95791 2001-08-18  Paul Eggert  <eggert@twinsun.com>
95792
95793         * m4/inttypes.m4: Add AC_PREREQ(2.13).
95794         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
95795         (jm_AC_TYPE_INTMAX_T): New macro.
95796         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
95797
95798         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
95799
95800         * m4/longlong.m4: Renamed from ulonglong.m4.
95801         * m4/inttypes.m4: Renamed from inttypes_h.m4.
95802         * m4/uintmax_t.m4: Removed.
95803
95804 2001-08-13  Paul Eggert  <eggert@twinsun.com>
95805
95806         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
95807         Port to Solaris 8, where 'sed' requires a space after the 'r'
95808         command, and where sh dislikes "$/".  Clean up the spacing a bit.
95809         Redirect output to $tmp just once.
95810
95811 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
95812
95813         * lib/addext.c (<errno.h>): Include.
95814         (errno): Declare if not defined.
95815         (addext): Work correctly when pathconf returns -1 and leaves
95816         errno alone because there is no limit.  Also, work even if
95817         pathconf returns a value greater than SIZE_MAX.
95818
95819 2001-08-12  Jim Meyering  <meyering@lucent.com>
95820
95821         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
95822         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
95823         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
95824         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
95825         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
95826         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
95827         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
95828         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
95829         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
95830         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
95831         utime.m4, utimes.m4, xstrtoumax.m4:
95832         Quote the first argument in each use of AC_DEFUN.
95833
95834 2001-08-12  Jim Meyering  <meyering@lucent.com>
95835
95836         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
95837         Simply `return getcwd (NULL, 0);'.
95838         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
95839         Use 1300 as initial value for length, not PATH_MAX.
95840
95841         * lib/pathmax.h: Clean up cpp syntax.
95842
95843 2001-08-12  Jim Meyering  <meyering@lucent.com>
95844
95845         * lib/gettimeofday.c: New file.
95846         * lib/gtod.h: New file.
95847         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
95848
95849 2001-08-05  Jim Meyering  <meyering@lucent.com>
95850
95851         * m4/jm-macros.m4: Require autoconf-2.52.
95852
95853 2001-08-04  Jim Meyering  <meyering@lucent.com>
95854
95855         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
95856         stmt, to get in sync with glibc.
95857
95858 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95859
95860         The following changes are from gettext 0.10.39 as maintained by
95861         Bruno Haible.
95862
95863         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
95864         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
95865         with inverted sense.  All uses changed.
95866
95867         * lib/mbswidth.c: Don't include <limits.h>.
95868         Include <stdlib.h> and <string.h> unconditionally.
95869         (iswcntrl, mbsinit, ISCNTRL): New macros.
95870         (mbsnwidth): Use K&R style function declarations.
95871         Don't bother checking for MB_LEN_MAX == 1, since the compiler
95872         can optimize it when MB_CUR_MAX == 1.
95873         The width of control characters is zero, not 1.
95874
95875 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95876
95877         The following changes are from gettext 0.10.39 as maintained by
95878         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
95879
95880         * m4/codeset.m4: Upgrade to serial AM1.
95881         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
95882         all uses changed.  Quote first arg of AC_DEFUN.
95883         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
95884
95885         * m4/iconv.m4: Upgrade to serial AM2.
95886         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
95887         Add --with-libconv-prefix.
95888         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
95889         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
95890         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
95891         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
95892         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
95893
95894         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
95895         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
95896         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
95897         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
95898         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
95899         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
95900         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
95901         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
95902         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
95903
95904         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
95905         string.h any more.
95906
95907         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
95908         not the default value.
95909
95910         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
95911         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
95912         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
95913         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
95914         Also check for iswcntrl, used for wcwidth fallback.
95915         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
95916         to Autoconf 2.13.
95917
95918 2001-08-03  Jim Meyering  <meyering@lucent.com>
95919
95920         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
95921         as it was in the original.  Reported by Paul Eggert.
95922
95923 2001-07-16  Jim Meyering  <meyering@lucent.com>
95924
95925         * m4/gettimeofday.m4: New file.
95926         Prompted by a report from Bernhard Baehr.
95927
95928 2001-07-15  Jim Meyering  <meyering@lucent.com>
95929
95930         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
95931         stuff. Now it's in ../Makefile.cfg.
95932
95933 2001-07-15  Jim Meyering  <meyering@lucent.com>
95934
95935         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
95936         (BUILT_SOURCES): Add unlocked-io.h.
95937         (io_functions): Define.
95938         (unlocked-io.h): New rule.
95939         (DISTCLEANFILES): Add unlocked-io.h.
95940         (all-local): Depend on unlocked-io.h, to ensure it is created.
95941
95942         * lib/unlocked-io.hin: New file
95943
95944         * lib/regex.c: Update from glibc.
95945
95946 2001-07-05  Jim Meyering  <meyering@lucent.com>
95947
95948         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
95949         recommendation.
95950         (libfetish_a_SOURCES): Put all .h files here instead.
95951         Remove a thus-exposed (better checks in automake) duplicate and
95952         two unnecessary .h files.
95953
95954 2001-07-04  Jim Meyering  <meyering@lucent.com>
95955
95956         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
95957         that generates jm-glibc-io.m4 so that it doesn't trigger any make
95958         distcheck failure.
95959
95960 2001-07-02  Jim Meyering  <meyering@lucent.com>
95961
95962         The following changes were prompted by suggestions from Bruno Haible.
95963
95964         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
95965         is now generated.
95966         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
95967         definition of EXTRA_DIST.
95968         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
95969         ensure that the generated file is created/updated whenever the list
95970         of $(unlocked_functions) is changed.
95971         (jm-glibc-io.m4): New rule.
95972         (unlocked-io.h): New rule -- currently unused.
95973
95974 2001-06-24  Jim Meyering  <meyering@lucent.com>
95975
95976         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
95977         unmatched right bracket, rather than kludging it with an extra,
95978         falsely-matching quote in a comment.  Patch by Akim Demaille.
95979
95980 2001-06-11  Jim Meyering  <meyering@lucent.com>
95981
95982         * lib/regex.c: Update from GNU libc.
95983
95984 2001-05-27  Jim Meyering  <meyering@lucent.com>
95985
95986         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
95987         Check for ut_type in struct utmp.
95988
95989 2001-05-27  Jim Meyering  <meyering@lucent.com>
95990
95991         * lib/readutmp.h (UT_TYPE): Define.
95992
95993 2001-05-24  Jim Meyering  <meyering@lucent.com>
95994
95995         * lib/argmatch.c: Include "quote.h".
95996         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
95997         quote function.  Reported by Göran Uddeborg.
95998
95999 2001-05-22  Jim Meyering  <meyering@lucent.com>
96000
96001         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
96002         now that we use the package-supplied version unconditionally.
96003         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
96004
96005 2001-05-21  Jim Meyering  <meyering@lucent.com>
96006
96007         * m4/regex.m4: Change a couple backticks to single quotes to avoid
96008         shell syntax errors.
96009
96010 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96011
96012         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
96013
96014 2001-05-20  Paul Eggert  <eggert@twinsun.com>
96015
96016         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
96017         Don't bother to check library strftime, since
96018         we'll be using our own my_strftime function anyway.
96019         Define my_strftime instead of strftime.
96020
96021 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
96022
96023         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
96024         which is not yet declared.
96025
96026 2001-05-15  Jim Meyering  <meyering@lucent.com>
96027
96028         * m4/regex.m4: Use proper quoting so brackets appear in the test
96029         program.
96030         Reported by, and with help from, Bruno Haible.
96031
96032 2001-05-13  Jim Meyering  <meyering@lucent.com>
96033
96034         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
96035         undefined.
96036
96037 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96038
96039         dirname code cleanup.  base_name now behaves more compatibly
96040         with POSIX basename when given file names that have trailing
96041         slashes, and similarly for dir_name.  Add new primitives
96042         base_len and dir_len.  Put the directory-name-related decls
96043         into dirname.h.
96044
96045         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
96046         * lib/backupfile.c (base_name): Likewise.
96047         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
96048         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
96049         * lib/makepath.c (strip_trailing_slashes): Likewise.
96050         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
96051         ISSLASH): Likewise.
96052         * lib/rename.c (strip_trailing_slashes): Likewise.
96053         * lib/same.c (base_name): Likewise.
96054         * lib/stripslash.c (ISSLASH): Likewise.
96055
96056         * lib/addext.c: Include <dirname.h> after size_t is defined.
96057         * lib/backupfile.c: Likewise.
96058
96059         * lib/addext.c (addext): Use base_len to trim redundant
96060         trailing slashes instead of doing it ourselves.
96061         But do not trim the last slash if it is not redundant.
96062
96063         * lib/backupfile.c (find_backup_file_name,
96064         max_backup_version): Use base_len instead of rolling it ourselves.
96065         Handle the case of "" and (on DOS) "C:" correctly.
96066
96067         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
96068         needed. Include <string.h>, <dirname.h>.
96069         (base_name): Allow file names ending in slashes, other than names
96070         that are all slashes.  In this case, return the basename followed
96071         by the slashes.  This is more general, and can be used in places
96072         where the original base_name purposely had an assertion failure.
96073         (base_len): New function.
96074
96075         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
96076         Do not include <assert.h>; no longer needed.
96077         Include xalloc.h.
96078         (memrchr): Remove decl.
96079         (dir_name_r): Remove.
96080         (dir_len): Renamed from dirlen.  All callers changed.
96081         Rewrite in terms of base_name, for simplicity and consistency.
96082         (dir_name): Never return NULL.  All callers changed.
96083         Do not include <stdlib.h> in test program; no longer needed.
96084         return 0; is fine for test program.
96085
96086         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
96087         New macros.
96088         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
96089
96090         * lib/path-concat.c (path_concat): Use base_len to compute
96091         base length, not strlen; this means we cannot rely on memcpy
96092         to null-terminate.
96093
96094         * lib/same.c (STREQ): Remove.
96095         (same_name): Handle the case where the basename ends in trailing '/'.
96096
96097         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
96098         a slash was stripped.  Do not strip the last slash after a
96099         file system prefix.
96100
96101 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96102
96103         * lib/Makefile.am (libfetish_a_SOURCES):
96104         Add strftime.c, since we now compile it on all hosts.
96105
96106         * lib/strftime.c (my_strftime):
96107         Define to nstrftime if emacs, but only if my_strftime is not defined.
96108         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
96109         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
96110         Add one more extra argument: a nanoseconds value.
96111         All uses changed.
96112         (ns): New macro.
96113         (my_strftime function): Add %N format.
96114         (emacs_strftimeu): Renamed from emacs_strftime,
96115         with extra ut argument.
96116
96117 2001-05-09  Paul Eggert  <eggert@twinsun.com>
96118
96119         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
96120
96121 2001-04-21  Jim Meyering  <meyering@lucent.com>
96122
96123         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
96124         doesn't interfere.
96125
96126 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96127
96128         * m4/ftruncate.m4: Check for chsize.
96129         Link with ftruncate.o unconditionally if ftruncate is missing.
96130         This was required when cross-compiling to i586-mingw32msvc.
96131
96132 2001-04-08  Jim Meyering  <meyering@lucent.com>
96133
96134         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
96135         recomputed; that's necessary when the offset spans a DST transition.
96136         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
96137
96138 2001-04-02  Jim Meyering  <meyering@lucent.com>
96139
96140         * lib/regex.h, regex.c: Update from GNU libc.
96141
96142 2001-03-24  Jim Meyering  <meyering@lucent.com>
96143
96144         * m4/jm-macros.m4: Require autoconf-2.49d.
96145
96146 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
96147
96148         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
96149
96150 2001-03-19  Paul Eggert  <eggert@twinsun.com>
96151
96152         * lib/version-etc.c (version_etc_copyright): Update to 2001.
96153
96154 2001-03-17  Jim Meyering  <meyering@lucent.com>
96155
96156         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
96157         now that the version in autoconf is equivalent.
96158         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
96159
96160         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
96161         Suggestion from Akim Demaille.
96162
96163         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
96164         (jm_PREREQ_TEMPNAME): New function.
96165
96166 2001-03-16  Paul Eggert  <eggert@twinsun.com>
96167
96168         * lib/tempname.c (uint64_t): Define to uintmax_t if
96169         not defined, and if UINT64_MAX is not defined.
96170         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
96171         Reported by John David Anglin.
96172
96173 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
96174
96175         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
96176         resolve alias if codeset is empty.
96177         * lib/config.charset (BeOS): Use wildcard syntax.
96178
96179 2001-03-13  Jim Meyering  <meyering@lucent.com>
96180
96181         * lib/path-concat.c (path_concat)
96182         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
96183         concatenating e.g., `C:' and `foo'.
96184         From Bruno Haible.
96185
96186 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96187
96188         * lib/localcharset.c (locale_charset): Don't use
96189         setlocale(LC_CTYPE,NULL). Don't return NULL.
96190         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
96191
96192 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96193
96194         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
96195         support for DOS/DJGPP.
96196
96197 2001-03-01  Paul Eggert  <eggert@twinsun.com>
96198
96199         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
96200         lacks mkstemp.  Compile our own tempname.c if we compile our own
96201         mkstemp.c, as mkstemp relies on tempname.
96202
96203 2001-03-01  Jim Meyering  <meyering@lucent.com>
96204
96205         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
96206         AH_VERBATIM really does output its argument verbatim.
96207
96208 2001-02-28  Paul Eggert  <eggert@twinsun.com>
96209
96210         * lib/Makefile.am (libfetish_a_SOURCES):
96211         Add dup-safer.c, fopen-safer.c.
96212         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
96213
96214         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
96215         * lib/unistd-safer.h: New files.
96216
96217 2001-02-25  Paul Eggert  <eggert@twinsun.com>
96218
96219         The mkstemp replacement is taken from glibc 2.2.2, with some
96220         portability fixes for use outside glibc, as follows:
96221
96222         * lib/tempname.c (struct_stat64): New macro.
96223         (direxists, __gen_tempname): Use it.
96224         This avoids a portability problem with Solaris 8.
96225
96226         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
96227         (<stddef.h>, <stdint.h>, <string.h>):
96228         Include only if STDC_HEADERS || _LIBC.
96229         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
96230         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
96231         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
96232         (__set_errno): Define this macro if <errno.h> doesn't.
96233         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
96234         Define these macros if <stdio.h> doesn't.
96235         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
96236         Define these macros if <sys/stat.h>
96237         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
96238         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
96239         __xstat64): Define if not _LIBC.
96240         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
96241         (__gen_tempname): Invoke gettimeofday only if
96242         HAVE_GETTIMEOFDAY || _LIBC;
96243         otherwise, fall back on plain "time".
96244         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
96245
96246         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
96247
96248         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
96249
96250 2001-02-18  Paul Eggert  <eggert@twinsun.com>
96251
96252         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
96253
96254 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96255
96256         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
96257         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
96258         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
96259         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96260
96261 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96262
96263         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
96264         Remove workaround macros for hosts that have mbrtowc but not
96265         mbstate_t, as we now insist on proper declarations for both
96266         before using mbrtowc.
96267
96268 2001-02-17  Jim Meyering  <meyering@lucent.com>
96269
96270         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
96271         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
96272         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
96273         UnixWare 7.1.1.
96274
96275         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
96276         rather than AC_CACHE_VAL.
96277
96278 2001-02-17  Jim Meyering  <meyering@lucent.com>
96279
96280         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
96281         around included file name.
96282
96283         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
96284
96285         * lib/strftime.c: Update from GNU libc (the only changes were to
96286         comments).
96287
96288 2001-02-17  Jim Meyering  <meyering@lucent.com>
96289
96290         * lib/regex.c: Update from libc.
96291
96292 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
96293
96294         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
96295         clash.
96296
96297 2001-02-16  Paul Eggert  <eggert@twinsun.com>
96298
96299         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
96300         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
96301         Reported by Mark Hounschell via Paul Eggert.
96302
96303 2001-02-07  Jim Meyering  <meyering@lucent.com>
96304
96305         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
96306
96307 2001-02-05  Jim Meyering  <meyering@lucent.com>
96308
96309         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
96310         it includes the patch required for `large file' support with at least
96311         HP-UX's 10.20 /bin/cc.
96312
96313 2001-02-03  Jim Meyering  <meyering@lucent.com>
96314
96315         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
96316         AS_IF, now that it works once again (mysteriously).
96317         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96318
96319 2001-01-30  Jim Meyering  <meyering@lucent.com>
96320
96321         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
96322         * m4/chown.m4: Rename conftestchown to conftest.chown.
96323         * m4/rename.m4: s/conftestdir/conftest.d1/ and
96324         s/conftestdir2/conftest.d2/.
96325         * m4/utimes.m4: s/conftestdata/conftest.data/
96326         Inspired by Pavel Roskin's change in autoconf.
96327
96328 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
96329
96330         * lib/config.charset: Update for FreeBSD 4.2.
96331
96332 2001-01-27  Jim Meyering  <meyering@lucent.com>
96333
96334         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
96335         a use of AS_IF.
96336         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96337
96338 2001-01-26  Jim Meyering  <meyering@lucent.com>
96339
96340         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
96341         quotearg.c includes it.
96342
96343 2001-01-26  Jim Meyering  <meyering@lucent.com>
96344
96345         * lib/quotearg.c: Include stddef.h.
96346         * lib/quote.c: Include stddef.h.
96347         Reported by Axel Kittenberger.
96348
96349         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
96350         line in double quotes so that it evokes a better diagnostic.
96351         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
96352         Reported by Axel Kittenberger.
96353
96354 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
96355
96356         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
96357         as if it was a `charset'.
96358
96359 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96360
96361         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
96362         has const.
96363
96364 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96365
96366         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
96367         to avoid a warning.  Add back 'const' to inptr.
96368
96369 2001-01-20  Jim Meyering  <meyering@lucent.com>
96370
96371         Be sure that headers are checked before used in code compiled
96372         for the type checks.
96373         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
96374         In place of that, invoke jm_CHECK_ALL_TYPES.
96375         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
96376         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
96377         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
96378         The check for ssize_t was mistakenly run before the test for unistd.h.
96379
96380         The configure-time check for stdbool.h was missing.
96381         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
96382         (jm_PREREQ_HASH): New function.
96383
96384 2001-01-17  Jim Meyering  <meyering@lucent.com>
96385
96386         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
96387         for autoconf-2.49c.
96388         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
96389
96390 2001-01-16  Jim Meyering  <meyering@lucent.com>
96391
96392         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
96393         From Bruno Haible.
96394
96395 2001-01-14  Jim Meyering  <meyering@lucent.com>
96396
96397         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
96398         foo and bar.  Create conftestdir/ in the script, not in the C code.
96399         Remove directories in the script, not in the C code.
96400         Remove conftestdir{,2} before trying to create the directory.
96401         Make the entire configure script fail if the mkdir fails.
96402
96403 2001-01-14  Jim Meyering  <meyering@lucent.com>
96404
96405         * lib/rename.c: New file.  From Volker Borchert.
96406         Include stdlib.h, string.h or strings.h, and xalloc.h.
96407         Use strip_trailing_slashes rather than open-coding it.
96408
96409 2001-01-03  Paul Eggert  <eggert@twinsun.com>
96410
96411         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
96412
96413 2001-01-03  Jim Meyering  <meyering@lucent.com>
96414
96415         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
96416         of local `inptr' to avoid warning with some system declarations of
96417         iconv.
96418
96419 2001-01-02  Volker Borchert  <bt@teknon.de>
96420
96421         * m4/rename.m4: New file.
96422         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
96423
96424 2001-01-01  Jim Meyering  <meyering@lucent.com>
96425
96426         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
96427         even on systems with utmpx.h.  It's necessary for the declaration of
96428         utmp's ut_user member.  Reported by Andreas Jaeger.
96429
96430         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
96431         available. They are required for the declarations of getgrgid and
96432         getpwuid resp.
96433         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
96434         Reported by Andreas Jaeger.
96435
96436 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
96437
96438         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
96439         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
96440         so `make install' also works in VPATH builds.
96441
96442 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
96443
96444         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
96445         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
96446         can be used in subdirectories.
96447
96448 2000-12-29  Paul Eggert  <eggert@twinsun.com>
96449
96450         * lib/modechange.c: Do not assume that mode_t uses the
96451         traditional octal encoding.  E.g. "chmod 1 FOO" should set
96452         the other-execute bit of FOO even if S_IXOTH != 1.
96453
96454         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
96455         WOTH, XOTH, ALLM): New macros.
96456         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
96457          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
96458         Use them.
96459         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
96460         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
96461         (mode_compile):
96462         No need to use uintmax_t; unsigned long is long enough.
96463         Don't bother to get suffix since we don't use it.
96464
96465 2000-12-26  Jim Meyering  <meyering@lucent.com>
96466
96467         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
96468         better with autoheader.
96469
96470 2000-12-24  Jim Meyering  <meyering@lucent.com>
96471
96472         * lib/hash.c (is_prime): Return explicit boolean values.
96473         (hash_get_first): Return NULL to appease Irix5.6's 89.
96474         Reported by Nelson Beebe.
96475
96476 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
96477
96478         * lib/localcharset.c (locale_charset): Add support for Win32.
96479
96480 2000-12-18  Paul Eggert  <eggert@twinsun.com>
96481
96482         * lib/physmem.h, lib/physmem.c: New files.
96483
96484         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
96485         (noinst_HEADERS): Add physmem.h.
96486
96487         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
96488         't' for compatibility with Solaris 8 sort.
96489
96490 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
96491
96492         * lib/config.charset: Add support for BeOS.
96493
96494 2000-12-17  Jim Meyering  <meyering@lucent.com>
96495
96496         * m4/dos.m4 (jm_AC_DOS): New file and macro.
96497         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
96498
96499 2000-12-16  Jim Meyering  <meyering@lucent.com>
96500
96501         This bug had a serious impact on chown: `chown N:M FILE' (for integer
96502         N and M) would have treated it like `chown N:N FILE'.
96503
96504         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
96505
96506 2000-12-16  Jim Meyering  <meyering@lucent.com>
96507
96508         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
96509         SHELLS_FILE to a file name that's useful on djgpp systems.
96510         Include stdlib.h.
96511         (ADDITIONAL_DEFAULT_SHELLS): Define.
96512         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
96513         Based mostly on a patch from Prashant TR.
96514
96515 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
96516
96517         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
96518         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
96519         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
96520
96521 2000-12-08  Andreas Schwab  <schwab@suse.de>
96522
96523         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
96524         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
96525
96526 2000-12-07  Jim Meyering  <meyering@lucent.com>
96527
96528         * lib/stripslash.c (ISSLASH): Define.
96529         (strip_trailing_slashes): Use ISSLASH rather than comparing against
96530         `/'.
96531         From Prashant TR.
96532
96533         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
96534         (dir_name_r): Declare this function as static.
96535         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
96536         manifest itself on a name containing a mix of slashes and
96537         backslashes.
96538         Make this function work with names starting with a DOS-style
96539         drive letter and colon prefix.
96540         (dir_name): Append `.' if necessary.
96541         Based mostly on patches from Prashant TR and Eli Zaretskii.
96542
96543         * lib/dirname.h (dir_name_r): Remove prototype.
96544
96545 2000-12-06  Paul Eggert  <eggert@twinsun.com>
96546
96547         * m4/off_t-format.m4: Remove this file.
96548         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
96549
96550 2000-12-06  Jim Meyering  <meyering@lucent.com>
96551
96552         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
96553         replacement strtoull, we may well need the replacement strtoul, too.
96554         Check for declarations of strtoul and strtoull.
96555         Check for strtol.  Mainly as a cue to cause automake to include
96556         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
96557         Check for limits.h -- strtol.c needs it.
96558
96559 2000-12-05  Jim Meyering  <meyering@lucent.com>
96560
96561         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
96562
96563 2000-12-04  Jim Meyering  <meyering@lucent.com>
96564
96565         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
96566         Also include memory.h, stdlib.h, unistd.h if appropriate.
96567         Reported by Andreas Jaeger (conflicting declaration of malloc).
96568
96569 2000-12-02  Jim Meyering  <meyering@lucent.com>
96570
96571         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
96572         * m4/jm-macros.m4 (jm_MACROS): require it.
96573
96574 2000-12-02  Jim Meyering  <meyering@lucent.com>
96575
96576         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
96577
96578 2000-12-01  Paul Eggert  <eggert@twinsun.com>
96579
96580         * lib/memrchr.c: Include <config.h> before any system include file.
96581
96582 2000-11-30  Jim Meyering  <meyering@lucent.com>
96583
96584         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
96585
96586 2000-11-30  Jim Meyering  <meyering@lucent.com>
96587
96588         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
96589
96590 2000-11-29  Paul Eggert  <eggert@twinsun.com>
96591
96592         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
96593
96594 2000-11-26  Jim Meyering  <meyering@lucent.com>
96595
96596         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
96597
96598 2000-11-22  Paul Eggert  <eggert@twinsun.com>
96599
96600         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
96601         size of (size_t) -1; it's not portable.
96602
96603 2000-11-17  Jim Meyering  <meyering@lucent.com>
96604
96605         * lib/strstr.c: Update from GNU libc.
96606
96607 2000-11-17  Akim Demaille  <akim@epita.fr>
96608
96609         * lib/obstack.h: Formatting changes.
96610         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
96611         prevent type checking.
96612         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
96613         cast the value to (void *): assigning a `foo *' to a `void *'
96614         variable is valid.
96615         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
96616
96617 2000-11-16  Jim Meyering  <meyering@lucent.com>
96618
96619         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
96620
96621 2000-11-11  Jim Meyering  <meyering@lucent.com>
96622
96623         * lib/error.c: Add a couple #includes, merging from GNU libc version.
96624
96625 2000-11-10  Jim Meyering  <meyering@lucent.com>
96626
96627         * lib/obstack.h: Update from GNU libc.
96628         * lib/obstack.c: Likewise.
96629
96630 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
96631
96632         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
96633
96634 2000-11-06  Paul Eggert  <eggert@twinsun.com>
96635
96636         * lib/getusershell.c (setusershell): Use rewind rather than
96637         fseek/fseeko, to avoid configuration hassles with fseeko.
96638         Don't bother opening SHELLS_FILE if shellstream is NULL;
96639         it's not necessary.
96640
96641 2000-11-05  Jim Meyering  <meyering@lucent.com>
96642
96643         * lib/makepath.h (make_dir): Declare.
96644         * lib/makepath.c (make_dir): Remove `static' attribute.
96645         Tweak a comment.
96646
96647 2000-11-04  Jim Meyering  <meyering@lucent.com>
96648
96649         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
96650
96651 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
96652
96653         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
96654         last one in a bucket, advance to the next bucket.
96655
96656 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
96657
96658         * lib/fnmatch.c: Do not comment out all the code if we are using
96659         the GNU C library, because in some cases we are replacing buggy
96660         code in the GNU C library itself.
96661
96662 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
96663
96664         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
96665         (regex_compile): Catch bogus \(\1\).
96666
96667 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96668
96669         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
96670         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
96671         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
96672
96673 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96674
96675         * lib/error.h, getline.h, modechange.h:
96676         Remove "2000" from Copyright line, as the file hasn't been
96677         changed this year other than in the copyright notice.
96678
96679         * lib/xalloc.h: Add "2000" to Copyright line, as this file
96680         was changed this year.
96681
96682 2000-10-29  Jim Meyering  <meyering@lucent.com>
96683
96684         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
96685         renaming.
96686         * m4/ls-mntd-fs.m4: Likewise
96687
96688 2000-10-29  Jim Meyering  <meyering@lucent.com>
96689
96690         * lib/xstat.in: Fix grammar in comment.
96691
96692 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
96693
96694         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
96695         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
96696         doesn't define __restrict_arr.
96697
96698 2000-10-28  Jim Meyering  <meyering@lucent.com>
96699
96700         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
96701         (jm_PREREQ_MEMCHR): New function.
96702
96703 2000-10-28  Jim Meyering  <meyering@lucent.com>
96704
96705         * lib/memchr.c: Update from libc.
96706         Adjust for portability:
96707         [HAVE_STDLIB_H]: Include stdlib.h.
96708         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
96709         Undef __memchr, too.
96710         [!weak_alias]: Define __memchr to memchr.
96711
96712         * lib/regex.c: Update from libc.
96713         * lib/regex.h: Likewise.
96714         * lib/getopt1.c: Likewise.
96715         * lib/memcmp.c: Likewise.
96716
96717         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
96718         Avoid using fseek, when possible -- it's broken by design.
96719         Patch by Ulrich Drepper.
96720
96721 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
96722
96723         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
96724         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
96725         Giving in to popular pressure to shut up the compiler with casts.
96726
96727 2000-10-26  Jim Meyering  <meyering@lucent.com>
96728
96729         * lib/strftime.c: Update from libc.
96730
96731 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
96732
96733         * regex.c: More `unsigned char' -> `re_char' changes.
96734         Also change several `int' into `re_wchar_t'.
96735         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
96736         (PUSH_FAILURE_POINTER): Don't cast any more.
96737         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
96738         We want GCC to complain, since this piece of code makes
96739         re_match non-reentrant, which *should* be fixed.
96740         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
96741         (EXTEND_BUFFER): Use RETALLOC.
96742         (SET_LIST_BIT): Don't cast.
96743         (re_wchar_t): New type.
96744         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
96745         that those two functions will always properly return.
96746         (IMMEDIATE_QUIT_CHECK): Cast to void.
96747         (analyse_first): Use recursion rather than an explicit stack.
96748         (re_compile_fastmap): Can't fail anymore.
96749         (re_search_2): Don't check re_compile_fastmap for failure.
96750         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
96751         Now also sets the new value (passed in a new argument).
96752         (re_match_2_internal): Use it.
96753         Also, use a new var `reg' of type size_t when looping through regs
96754         rather than reuse the inappropriate `mcnt'.
96755
96756 2000-10-25  Jim Meyering  <meyering@lucent.com>
96757
96758         * lib/obstack.c: Update from libc.
96759
96760 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
96761
96762         * regex.c (regex_compile): Change the way of handling a range from
96763         a char less than 256 to a char not less than 256.
96764
96765 2000-10-24  Andrew Innes  <andrewi@gnu.org>
96766
96767         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
96768         NT-Emacs only.
96769         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
96770         so that re_search functions only quit when callers expect them to.
96771
96772 2000-10-23  Jim Meyering  <meyering@lucent.com>
96773
96774         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
96775         wrong.  That set_locale call must not have any side effects.
96776         From Paul Eggert.
96777
96778 2000-10-22  Jim Meyering  <meyering@lucent.com>
96779
96780         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
96781         [CYCLIC]: Remove now-unused definition.
96782
96783         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
96784         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
96785         Suggestion from Ulrich Drepper.
96786
96787 2000-10-21  Jim Meyering  <meyering@lucent.com>
96788
96789         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
96790         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
96791         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
96792
96793 2000-10-21  Jim Meyering  <meyering@lucent.com>
96794
96795         * lib/dirname.c (memrchr): Declare if necessary.
96796         (dir_name): Remove the restriction that there be no
96797         trailing slashes.  Now, this code skips past them, effectively
96798         ignoring them.
96799         [TEST_DIRNAME] (main): New unit tests.
96800
96801         * lib/memrchr.c: New file from GNU libc.
96802         Undef __memrchr, too.
96803         [!weak_alias]: Define __memrchr to memrchr.
96804         Guard weak_alias use with `#ifdef weak_alias'.
96805
96806 2000-10-21  Jim Meyering  <meyering@lucent.com>
96807
96808         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
96809         (dir_name): Use dir_name_r.
96810         * lib/dirname.h (dir_name_r): Declare it.
96811
96812 2000-10-17  Jim Meyering  <meyering@lucent.com>
96813
96814         * lib/quote.h (PARAMS): Define and use.
96815         Reported by Akim Demaille.
96816
96817         * lib/getopt.c: Update from libc.
96818
96819 2000-10-16  Jim Meyering  <meyering@lucent.com>
96820
96821         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
96822         setlocale.
96823         From Jan Fedak.
96824
96825 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
96826
96827         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
96828
96829 2000-09-25  Jim Meyering  <meyering@lucent.com>
96830
96831         * lib/md5.h (rol): Define (from GnuPG).
96832
96833         * lib/sha.c: Give credit (GnuPG) where due.
96834         (M): Use rol rather than open-coding it.
96835         Add a FIXME comment.
96836
96837 2000-09-21  Jim Meyering  <meyering@lucent.com>
96838
96839         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
96840         Reported by Michael Stone.
96841
96842 2000-09-20  Jim Meyering  <meyering@lucent.com>
96843
96844         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
96845         (noinst_HEADERS): Add sha.h.
96846         Based on code from Scott G. Miller and from GnuPG.
96847
96848 2000-09-18  Jim Meyering  <meyering@lucent.com>
96849
96850         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
96851         LIBS. Otherwise, everyone ends up linking with -lelf for some
96852         configurations.
96853         Reported by Mike Stone.
96854
96855 2000-09-15  Jim Meyering  <meyering@lucent.com>
96856
96857         * lib/regex.c: Update from libc.
96858
96859 2000-09-10  Jim Meyering  <meyering@lucent.com>
96860
96861         * lib/getopt.c (_getopt_internal): Update from glibc.
96862
96863 2000-09-09  Jim Meyering  <meyering@lucent.com>
96864
96865         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
96866         think it should be used as a general replacement for isascii.
96867         * lib/fnmatch.c: Likewise.
96868         * lib/mbswidth.c: Likewise
96869         * lib/regex.c: Likewise.
96870
96871         Don't use atoi.
96872         * lib/userspec.c: Include sys/param.h and limits.h.
96873         Include xstrtol.h.
96874         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96875         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
96876         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
96877         UID, GID.  Check range.
96878
96879 2000-09-06  Jim Meyering  <meyering@lucent.com>
96880
96881         * lib/getopt.c (_getopt_internal): Update from glibc.
96882
96883 2000-08-30  Jim Meyering  <meyering@lucent.com>
96884
96885         * lib/strftime.c: Merge in changes from GNU libc.
96886
96887 2000-08-26  Jim Meyering  <meyering@lucent.com>
96888
96889         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
96890         * m4/fpending.m4: New file.
96891
96892 2000-08-26  Jim Meyering  <meyering@lucent.com>
96893
96894         * lib/closeout.c: Include "__fpending.h".
96895         (close_stdout_status): Return right away if there's nothing to flush.
96896
96897         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
96898         * lib/__fpending.c: New file.
96899         * lib/__fpending.h: New file.
96900
96901 2000-08-20  Jim Meyering  <meyering@lucent.com>
96902
96903         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
96904         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
96905         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
96906
96907 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
96908
96909         Improve fileutils installation on systems where running
96910         programs (like install) can't be unlinked.
96911         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
96912         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
96913
96914 2000-08-07  Paul Eggert  <eggert@twinsun.com>
96915
96916         Standardize on "memory exhausted" instead of "Memory exhausted"
96917         or "virtual memory exhausted".
96918         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
96919         "virtual memory exhausted".
96920         * lib/same.c (same_name): Invoke xalloc_die instead of printing
96921         our own message.
96922         * lib/userspec.c (parse_user_spec): Likewise.
96923         * lib/bumpalloc.h: comment fix
96924         * lib/same.c, userspec.c: Include xalloc.h.
96925
96926         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
96927         not char *const and pointing to a constant array.
96928         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
96929         (xrealloc): Comment fix.
96930
96931         * lib/userspec.c (parse_user_spec):
96932         Don't translate a message until just before returning,
96933         to avoid unnecessary translation.
96934
96935 2000-08-07  Jim Meyering  <meyering@lucent.com>
96936
96937         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
96938         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
96939         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
96940         getgroups.c, gethostname.c, getopt.h, group-member.c,
96941         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
96942         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
96943         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
96944         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
96945         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
96946         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
96947         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
96948         yesno.c: Back out Copyright date changes for each file with no change
96949         this year.  This eases coordination with other programs using the same
96950         source code modules.  From Paul Eggert.
96951
96952 2000-08-06  Paul Eggert  <eggert@twinsun.com>
96953
96954         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
96955         not char, for compatibility with glibc 2.1.3 strftime.c.
96956
96957 2000-08-03  Greg McGary  <greg@mcgary.org>
96958
96959         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
96960         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
96961         (EXTEND_BUFFER): Use them.
96962
96963 2000-08-01  Jim Meyering  <meyering@lucent.com>
96964
96965         * lib/dirname.c (ISSLASH): Define.
96966         (BACKSLASH_IS_PATH_SEPARATOR): Define.
96967         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
96968         both `\' and `/' may be use as path separators.
96969         Based on a patch from Prashant TR.
96970
96971 2000-07-31  Paul Eggert  <eggert@twinsun.com>
96972
96973         * lib/quotearg.c (quotearg_n_options): Don't make the initial
96974         slot vector a constant, since it might get modified.
96975
96976 2000-07-31  Jim Meyering  <meyering@lucent.com>
96977
96978         * lib/xmalloc.c: Use `virtual memory exhausted', not
96979         `Memory exhausted'.
96980         * lib/obstack.c (print_and_abort): Likewise.
96981
96982 2000-07-30  Paul Eggert  <eggert@twinsun.com>
96983
96984         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
96985         buffer, so that the caller can always quote one small
96986         component of a "memory exhausted" message in slot 0.
96987         From a suggestion by Jim Meyering.
96988
96989 2000-07-30  Jim Meyering  <meyering@lucent.com>
96990
96991         * lib/makepath.c (make_path): Quote the other instance, too.
96992
96993         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
96994         (STATIC_BUF_SIZE): Define.
96995         (quotearg_n_options): Use only statically allocated storage when
96996         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
96997         than STATIC_BUF_SIZE.
96998
96999 2000-07-29  Jim Meyering  <meyering@lucent.com>
97000
97001         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
97002         * lib/dirname.c (dir_name): Likewise.
97003
97004         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
97005         `/'.
97006
97007         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
97008         (dir_name): Assert that there are no trailing slashes.
97009
97010 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
97011
97012         * lib/mbswidth.h (mbswidth): Add a flags argument.
97013         (mbswidth): New declaration.
97014         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
97015         * lib/mbswidth.c (mbswidth): Add a flags argument.
97016         (mbsnwidth): New function.
97017
97018 2000-07-24  Jim Meyering  <meyering@lucent.com>
97019
97020         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
97021
97022 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97023
97024         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
97025
97026 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97027
97028         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
97029         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
97030         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
97031         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
97032         invoke multibyte primitives.
97033
97034 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97035
97036         * lib/quotearg.c:
97037         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
97038         so that mbstate_t is always defined.
97039
97040         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
97041         be 1 in at least one GCC installation, and this configuration
97042         error is likely to be common.  Ignoring MB_LEN_MAX hurts
97043         performance on hosts that have mbrtowc but have only unibyte
97044         locales, but I assume these hosts are rare.
97045
97046 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97047
97048         * lib/mbswidth.c (_XOPEN_SOURCE):
97049         Don't define; this causes problems on Solaris 7.
97050         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
97051
97052 2000-07-23  Jim Meyering  <meyering@lucent.com>
97053
97054         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
97055         too: getgrgid, getpwuid, getuid.
97056
97057 2000-07-23  Jim Meyering  <meyering@lucent.com>
97058
97059         * lib/basename.c (base_name): Add an assertion.
97060
97061 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
97062
97063         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
97064         shadow its mbsinit function.
97065
97066 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97067
97068         * lib/mbswidth.h: New file.
97069         * lib/mbswidth.c: New file.
97070         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
97071         (noinst_HEADERS): Add mbswidth.h.
97072
97073 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97074
97075         * lib/config.charset: Add support for FreeBSD. Improve support for
97076         HP-UX and IRIX 6.
97077
97078 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
97079
97080         * m4/mbswidth.m4: New file.
97081         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
97082
97083 2000-07-15  Jim Meyering  <meyering@lucent.com>
97084
97085         * lib/makepath.c: Include quote.h.
97086         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
97087         corresponding argument in a `quote (...)' call.
97088         Give better diagnostics.
97089
97090         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
97091         (noinst_HEADERS): Add quote.h.
97092
97093         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
97094         from tar's src/misc.c.
97095         * lib/quote.h: New file.  Prototypes for same.
97096
97097 2000-07-14  Paul Eggert  <eggert@twinsun.com>
97098
97099         From a suggestion by Bruno Haible.
97100         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
97101         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
97102         to decide whether to define the BeOS workaround macro;
97103         this adjusts to the change to AC_MBSTATE_T.
97104
97105 2000-07-14  Jim Meyering  <meyering@lucent.com>
97106
97107         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
97108         jm_AC_TYPE_UINTMAX_T.
97109
97110 2000-07-13  Paul Eggert  <eggert@twinsun.com>
97111
97112         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
97113
97114         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
97115         quotearg_buffer_restyled): Add support for
97116         clocale_quoting_style.  Undo previous change to
97117         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
97118         and "{RIGHT QUOTATION MARK}" msgids.
97119
97120 2000-07-10  Paul Eggert  <eggert@twinsun.com>
97121
97122         From a suggestion by Bruno Haible.
97123         * m4/mbstate_t.m4 (AC_MBSTATE_T):
97124         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
97125         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
97126         and mbstate_t, to a single-part test that simply defines mbstate_t.
97127         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
97128         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
97129
97130 2000-07-10  Jim Meyering  <meyering@lucent.com>
97131
97132         * m4/strerror_r.m4: Mirror the correction made in autoconf.
97133
97134         * m4/gnu-source.m4: Output to confdefs.h directly.
97135         Suggestion from Akim Demaille.
97136
97137 2000-07-09  Paul Eggert  <eggert@twinsun.com>
97138
97139         The old behavior of quoting `like this' doesn't look good with
97140         newer, ISO-style fonts.  See:
97141         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
97142
97143         Instead, quote "like this" by default.  Let the translator
97144         tailor the locale-specific quoting behavior by providing
97145         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
97146
97147         * lib/quotearg.c (N_): New macro.
97148         (gettext_default): New function.
97149         (quotearg_buffer_restyled): Use
97150         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
97151         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
97152
97153 2000-07-09  Jim Meyering  <meyering@lucent.com>
97154
97155         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
97156         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
97157
97158         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
97159         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
97160
97161 2000-07-09  Jim Meyering  <meyering@lucent.com>
97162
97163         * lib/Most files: Update copyright dates to include 2000.
97164
97165 2000-07-08  Jim Meyering  <meyering@lucent.com>
97166
97167         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
97168         if not defined.
97169         (xgethostname): Remove now-unnecessary #ifdef.
97170         Move declaration of `err' into loop where it's used.
97171
97172 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97173         and Bruno Haible  <haible@clisp.cons.org>
97174
97175         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
97176         only if the test for an object-type mbstate_t fails.  This
97177         prevents us from mistakenly reporting that mbstate_t is a
97178         system object type after we "#define mbstate_t int" to work
97179         around its lack.
97180
97181 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97182         and Bruno Haible  <haible@clisp.cons.org>
97183
97184         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
97185
97186 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97187
97188         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
97189         to strerror_r.
97190         Include <ctype.h> for use of isalpha.
97191
97192 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97193
97194         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
97195         by allocating a larger buffer. Test the gethostname return value for
97196         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
97197         returns an error and ENAMETOOLONG isn't defined.
97198
97199 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97200
97201         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
97202         dimension.
97203
97204 2000-07-04  Jim Meyering  <meyering@lucent.com>
97205
97206         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
97207         of the deprecated AC_CHECKING.
97208
97209 2000-07-04  Jim Meyering  <meyering@lucent.com>
97210
97211         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
97212         Reported by Bruno Haible.
97213
97214 2000-07-04  Jim Meyering  <meyering@lucent.com>
97215
97216         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
97217         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
97218         lacks mbrtowc.
97219
97220 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97221
97222         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
97223         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
97224
97225 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97226         and Bruno Haible  <haible@clisp.cons.org>
97227
97228         * lib/quotearg.c (mbrtowc):
97229         Assign to *pwc, and return 1 only if result is nonzero.
97230         (iswprint): Use ISPRINT when substituting our own mbrtowc.
97231
97232 2000-07-03  Jim Meyering  <meyering@lucent.com>
97233
97234         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
97235
97236 2000-07-03  Jim Meyering  <meyering@lucent.com>
97237
97238         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
97239         This is necessary to get a definition of e.g., UTMP_FILE on
97240         HP-UX 10.20.
97241         From Bob Proulx.
97242
97243 2000-07-02  Jim Meyering  <meyering@lucent.com>
97244
97245         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
97246
97247         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
97248         AC_LIBOBJ(function_name).
97249         * m4/chown.m4: Likewise.
97250         * m4/fnmatch.m4: Likewise.
97251         * m4/ftruncate.m4: Likewise.
97252         * m4/getgroups.m4: Likewise.
97253         * m4/getline.m4: Likewise.
97254         * m4/group-member.m4: Likewise.
97255         * m4/jm-macros.m4: Likewise.
97256         * m4/lstat.m4: Likewise.
97257         * m4/malloc.m4: Likewise.
97258         * m4/memcmp.m4: Likewise.
97259         * m4/nanosleep.m4: Likewise.
97260         * m4/putenv.m4: Likewise.
97261         * m4/realloc.m4: Likewise.
97262         * m4/regex.m4: Likewise.
97263         * m4/stat.m4: Likewise.
97264         * m4/strftime.m4: Likewise.
97265
97266 2000-07-02  Jim Meyering  <meyering@lucent.com>
97267
97268         * lib/quotearg.c (mbstate_t): Don't define here.
97269
97270 2000-07-02  Jim Meyering  <meyering@lucent.com>
97271
97272         * lib/nanosleep.c (SIGCONT): Define if not already defined.
97273
97274 2000-07-01  Jim Meyering  <meyering@lucent.com>
97275
97276         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
97277
97278 2000-07-01  Jim Meyering  <meyering@lucent.com>
97279
97280         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
97281         problem.
97282
97283 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97284
97285         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
97286         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
97287
97288 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97289
97290         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
97291         per change in ../m4/ls-mntd-fs.m4.
97292         (read_filesystem_list): Ignore symbolic links.
97293
97294 2000-06-29  Jim Meyering  <meyering@lucent.com>
97295
97296         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
97297         for declaration of strcmp.
97298
97299         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
97300
97301         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
97302         Avoid warning by casting result to `char *' to remove `const'.
97303
97304 2000-06-28  Jim Meyering  <meyering@lucent.com>
97305
97306         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
97307         included by quotearg.c, for which we perform this test.  From
97308         Bruno Haible.
97309
97310 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97311
97312         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
97313         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
97314         <utmpx.h> exists, put readutmp.o into LIBOBJS.
97315
97316 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97317
97318         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
97319
97320 2000-06-26  Paul Eggert  <eggert@twinsun.com>
97321
97322         savedir now sets errno on failure and invokes xmalloc to get memory.
97323         Fix a couple of other minor bugs while we're at it.
97324
97325         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
97326         (NAMLEN): Remove macro.
97327         (malloc, realloc): Remove decls.
97328         (stpcpy): Likewise.
97329         ("xalloc.h"): Include.
97330         (NAME_SIZE_DEFAULT): New macro.
97331         (savedir): Use xmalloc / xrealloc to allocate memory.
97332         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
97333         Skip "" directory entries.
97334         Use strlen to calculate directory entry length, since the old method
97335         is rarely used these days and isn't worth supporting.
97336         Don't use a pointer after freeing it.
97337         Check for integer overflow when calculating allocation size.
97338         Use memcpy to copy entries, instead of stpcpy.
97339         Set errno properly when returning NULL.
97340         Check for readdir error.
97341
97342 2000-06-26  Jim Meyering  <meyering@lucent.com>
97343
97344         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
97345
97346 2000-06-25  Jim Meyering  <meyering@lucent.com>
97347
97348         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
97349         Linux header bug when _XOPEN_SOURCE is defined to 500.
97350
97351 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97352
97353         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
97354         deficiency.
97355
97356 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97357
97358         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
97359         Include xalloc.h.
97360         Don't include <stdlib.h>.  Don't declare malloc, realloc.
97361
97362 2000-06-24  Jim Meyering  <meyering@lucent.com>
97363
97364         * m4/strerror_r.m4: Revive this file -- to try out an experimental
97365         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
97366         for which strerror does return char*, but which lacks a conveniently
97367         accessible declaration of the function.  If the compile-test says
97368         strerror_r doesn't work, then resort to a `run'-test that works on
97369         BeOS and segfaults on DEC Unix.
97370
97371 2000-06-24  Jim Meyering  <meyering@lucent.com>
97372
97373         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
97374
97375 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97376
97377         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
97378         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
97379
97380 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97381
97382         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
97383         (mbrtowc, mbstate_t): Define substitutes if
97384         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
97385         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
97386         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
97387
97388 2000-06-23  Jim Meyering  <meyering@lucent.com>
97389
97390         * m4/afs.m4: Add missing AC_MSG_RESULT.
97391         Reported by Bruno Haible.
97392
97393         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
97394         Suggestion from Bruno Haible.
97395
97396 2000-06-23  Jim Meyering  <meyering@lucent.com>
97397
97398         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
97399
97400 2000-06-21  Jim Meyering  <meyering@lucent.com>
97401
97402         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
97403
97404 2000-06-21  Jim Meyering  <meyering@lucent.com>
97405
97406         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
97407         (noinst_HEADERS): Add getstr.h.
97408
97409         * lib/getline.c (getstr): Move into a separate file.
97410         * lib/getstr.c (getstr): New file, extracted from getline.c, with
97411         the following changes: new parameter, delim2; both delim[12]
97412         parameters have type `int', not `char'.  The latter would lose
97413         with 8-bit delimiters.
97414         * lib/getstr.h: New file.
97415
97416 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97417
97418         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
97419         than 1024, return a memory chunk of least possible size, instead
97420         of size PATH_MAX + 2. In the loop, increment the size proportionally.
97421         Use free/xmalloc instead of xrealloc to avoid copying for very long
97422         paths.
97423
97424 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97425
97426         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
97427         the empty string.
97428
97429 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97430
97431         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
97432         address, not strdup.  Include <stdlib.h> and don't declare free().
97433
97434 2000-06-19  Jim Meyering  <meyering@lucent.com>
97435
97436         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
97437
97438 2000-06-18  Jim Meyering  <meyering@lucent.com>
97439
97440         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
97441
97442         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
97443         `checking whether...' message to be consistent with that of the
97444         lstat test.
97445
97446 2000-06-18  Jim Meyering  <meyering@lucent.com>
97447
97448         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
97449         Besides, these days every porting target provides a mkdir function.
97450
97451         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
97452         needed. (this snippet comes from src/system.h).
97453
97454 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
97455
97456         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
97457
97458 2000-06-15  Paul Eggert  <eggert@twinsun.com>
97459
97460         * lib/human.c (adjust_value): New function.
97461         (human_readable_inexact): Apply rounding style even when
97462         printing approximate values.
97463
97464 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97465
97466         * lib/human.c (human_readable_inexact): Allow an input block
97467         size that is not a multiple of the output block size, and vice versa.
97468         Reported by Piergiorgio Sartor.
97469
97470 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97471
97472         * lib/getdate.y (get_date): Apply relative times after time
97473         zone indicator, not before.  Reported by Todd A. Jacobs.
97474
97475 2000-06-13  Jim Meyering  <meyering@lucent.com>
97476
97477         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
97478
97479         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
97480
97481 2000-06-12  Paul Eggert  <eggert@twinsun.com>
97482
97483         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
97484
97485 2000-06-12  Jim Meyering  <meyering@lucent.com>
97486
97487         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
97488         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
97489         optional argument.
97490         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
97491         the optional argument, `lib'.
97492
97493 2000-06-08  Jim Meyering  <meyering@lucent.com>
97494
97495         * m4/largefile.m4: Remove file (now that it's part of autoconf).
97496
97497 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97498
97499         Rewrite largefile configuration so that we don't need to run
97500         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
97501         AC_CANONICAL_HOST in configure.in -- jmm]
97502
97503         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
97504         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
97505         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
97506         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
97507         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
97508         All uses changed.
97509         Instead of inspecting the output of getconf, try to compile the
97510         test program without and with the macro definition.
97511         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
97512         for getconf.  Instead, check for the needed flags by compiling
97513         test programs.
97514
97515 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97516
97517         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
97518
97519 2000-06-04  Jim Meyering  <meyering@lucent.com>
97520
97521         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
97522         SunOS 4.1.4 for which gid_t is an unsigned type.
97523
97524 2000-06-03  Jim Meyering  <meyering@lucent.com>
97525
97526         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
97527         now that autoconf requires that.
97528
97529         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
97530         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
97531         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
97532
97533 2000-06-03  Jim Meyering  <meyering@lucent.com>
97534
97535         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
97536
97537 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97538
97539         * m4/glibc21.m4: New file.
97540         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
97541
97542 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97543
97544         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
97545         newer, don't install charset.alias.
97546         * lib/config.charset: Change the Linux/glibc rules so they become empty
97547         on glibc-2.1 or newer.
97548
97549 2000-06-02  Jim Meyering  <meyering@lucent.com>
97550
97551         * lib/mountlist.c: Back out last change.  Instead, do this...
97552         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
97553         me_dummy member using the same `ignore'-testing code.
97554         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
97555         fs_type strings.
97556         From Mark D. Roth.
97557
97558 2000-05-29  Jim Meyering  <meyering@lucent.com>
97559
97560         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
97561         mounts with the `ignore' attribute.  Based on a patch from
97562         Mark D. Roth.
97563
97564 2000-05-28  Jim Meyering  <meyering@lucent.com>
97565
97566         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
97567         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97568         * m4/stat.m4: Likewise.
97569         * m4/lstat.m4: Likewise.
97570         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
97571
97572         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
97573         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
97574
97575 2000-05-26  Jim Meyering  <meyering@lucent.com>
97576
97577         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
97578
97579 2000-05-24  Jim Meyering  <meyering@lucent.com>
97580
97581         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
97582         autoconf requires that.
97583         * m4/lib-check.m4: Likewise.
97584         * m4/jm-macros.m4: Likewise.
97585         * m4/strftime.m4: Likewise.
97586
97587         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
97588         AC_CHECK_DECLS, now that autoconf requires that.
97589
97590 2000-05-22  Jim Meyering  <meyering@lucent.com>
97591
97592         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97593         * m4/lstat.m4: Likewise.
97594
97595 2000-05-22  Jim Meyering  <meyering@lucent.com>
97596
97597         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
97598
97599 2000-05-20  Jim Meyering  <meyering@lucent.com>
97600
97601         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
97602         (jm_PREREQ): Use it.
97603
97604 2000-05-18  Jim Meyering  <meyering@lucent.com>
97605
97606         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
97607         back, too, since it may have been modified by allocate_entry.
97608         (hash_delete): Rewrite to use neither the assignment operator
97609         nor the comma operator in an if-expression.
97610
97611 2000-05-15  Paul Eggert  <eggert@twinsun.com>
97612
97613         * lib/closeout.c:
97614         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
97615         Remove; no longer needed.
97616         "quotearg.h": Add include.
97617         (file_name): Do not bother to explicitly initialize to NULL; it's less
97618         efficient on some hosts.
97619         (close_stdout_status): Remove test as to whether stdout was already
97620         closed; it breaks for the case "echo x | sort >&-".
97621         Quote file name colons.
97622         Do not assume that _("write error") lacks format strings.
97623
97624 2000-05-15  Jim Meyering  <meyering@lucent.com>
97625
97626         * lib/version-etc.c (version_etc_copyright): Update the copyright
97627         string used in all --version output.
97628
97629 2000-05-14  Jim Meyering  <meyering@lucent.com>
97630
97631         * lib/closeout.c (close_stdout_set_file_name): New function.
97632         (close_stdout_status): Use new file-scoped global.
97633         Return right away if fstat says the stdout file descriptor is invalid.
97634         * lib/closeout.h (close_stdout_set_file_name): Declare.
97635
97636 2000-05-10  Jim Meyering  <meyering@lucent.com>
97637
97638         * lib/closeout.c [default_exit_status]: New file-scoped variable.
97639         (close_stdout_set_status): New function.
97640         * lib/closeout.h (close_stdout_set_status): Declare.
97641
97642 2000-05-09  Jim Meyering  <meyering@lucent.com>
97643
97644         * m4/gettext.m4: Rename this...
97645         * m4/libintl.m4: ...to this.
97646
97647 2000-05-08  Jim Meyering  <meyering@lucent.com>
97648
97649         * lib/long-options.c: Don't include closeout.h.
97650         (parse_long_options): Don't call close_stdout for --version.
97651
97652 2000-05-06  Paul Eggert  <eggert@twinsun.com>
97653
97654         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
97655         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
97656         2.1.3 bug.  This avoids a clash when files like regex.c define
97657         _GNU_SOURCE.
97658
97659 2000-05-06  Jim Meyering  <meyering@lucent.com>
97660
97661         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
97662         (AC_REPLACE_FUNCS): Add strnlen.
97663
97664         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
97665         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
97666
97667         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
97668         AC_SEARCH_LIBS call for nanosleep.
97669         (LIB_NANOSLEEP): Set and AC_SUBST.
97670
97671 2000-05-06  Jim Meyering  <meyering@lucent.com>
97672
97673         * lib/strnlen.c: Undefine __strnlen and strnlen.
97674         [!weak_alias]: Define __strnlen to strnlen.
97675
97676         * lib/atexit.c: New file, from libiberty.
97677
97678 2000-05-06  Jim Meyering  <meyering@lucent.com>
97679
97680         * lib/closeout.c (close_stdout_status): Also check for errors on the
97681         stderr stream.
97682
97683 2000-05-05  Jim Meyering  <meyering@lucent.com>
97684
97685         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
97686         AC_SEARCH_LIBS call for clock_gettime.
97687         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
97688
97689         * m4/search-libs.m4: Update from autoconf.
97690
97691         su doesn't work on Solaris 2.6.
97692         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
97693         <shadow.h>.  Reported by Dragos Harabor.
97694
97695 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
97696
97697         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
97698         memcpy instead of xmalloc, xrealloc, path_concat.
97699         (locale_charset): Treat empty environment variables as absent.
97700         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
97701
97702 2000-05-04  Jim Meyering  <meyering@lucent.com>
97703
97704         * lib/getopt.c: Update from glibc.
97705         * lib/obstack.c: Likewise.
97706         * lib/obstack.h: Likewise.
97707         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
97708         file
97709
97710         * lib/regex.h: Likewise.
97711         * lib/strndup.c: Likewise.
97712         * lib/strnlen.c: New file, from glibc.
97713
97714 2000-05-03  Jim Meyering  <meyering@lucent.com>
97715
97716         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
97717
97718 2000-05-02  Paul Eggert  <eggert@twinsun.com>
97719
97720         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
97721         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
97722         compile-time test, rather than inspecting host and OS, to
97723         decide whether to define _LARGEFILE_SOURCE.
97724
97725 2000-05-01  Jim Meyering  <meyering@lucent.com>
97726
97727         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
97728
97729         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
97730         Based on a patch from Bruno Haible.
97731
97732 2000-05-01  Jim Meyering  <meyering@lucent.com>
97733
97734         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
97735
97736 2000-04-29  Jim Meyering  <meyering@lucent.com>
97737
97738         * lib/path-concat.c: Declare strdup only if it's not defined.
97739         * lib/canon-host.c: Likewise.
97740
97741 2000-04-28  Jim Meyering  <meyering@lucent.com>
97742
97743         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
97744         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
97745         is included first, then limits.h is included by locale.h by libintl.h.
97746         From John David Anglin.
97747
97748 2000-04-25  Jim Meyering  <meyering@lucent.com>
97749
97750         * lib/makepath.c (S_IRWXUGO): Define.
97751         (make_path): Always perform explicit chmod if MODE specifies any
97752         of the `special' permission bits.  Prompted by a bug report against
97753         install from Mate Wierdl and Joost van Baal.
97754
97755 2000-04-18  Jim Meyering  <meyering@lucent.com>
97756
97757         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
97758         (jm_PREREQ): Use it.
97759
97760 2000-04-18  Jim Meyering  <meyering@lucent.com>
97761
97762         * lib/README: New file.
97763
97764         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
97765         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
97766
97767 2000-04-17  Jim Meyering  <meyering@lucent.com>
97768
97769         Get it right :-)
97770         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
97771         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
97772         Suggestion from Akim Demaille.
97773
97774 2000-04-17  Jim Meyering  <meyering@lucent.com>
97775
97776         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
97777         the definition of it to rpl_strftime also defined-away the system's
97778         declaration.
97779
97780 2000-04-15  Jim Meyering  <meyering@lucent.com>
97781
97782         Use `C' to denote so-called `contiguous' files, the same way
97783         that tar does.
97784         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
97785         (ftypelet): Use S_ISCTG.
97786         From Michael Deutschmann.
97787
97788 2000-04-14  Jim Meyering  <meyering@lucent.com>
97789
97790         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
97791         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
97792         clobbered.
97793
97794 2000-04-14  Jim Meyering  <meyering@lucent.com>
97795
97796         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
97797
97798 2000-04-13  Jim Meyering  <meyering@lucent.com>
97799
97800         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
97801         AH_VERBATIM to insert required #ifndef into config.h.in.
97802         Suggestion from Akim Demaille.
97803
97804 2000-04-12  Jim Meyering  <meyering@lucent.com>
97805
97806         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
97807         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
97808         Christian Krackowizer.
97809
97810         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
97811         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
97812         (AC_SYS_LARGEFILE): Require.
97813         (AM_C_PROTOTYPES): Require.
97814
97815 2000-04-08  Jim Meyering  <meyering@lucent.com>
97816
97817         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
97818         names don't conflict.  Reported by Eli Zaretskii.
97819
97820 2000-04-07  Jim Meyering  <meyering@lucent.com>
97821
97822         * lib/putenv.c: Move inclusion of errno.h so it follows that of
97823         sys/types.h, to work around system header problems on AIX 3.2.5.
97824         From Bruno Haible.
97825
97826 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
97827
97828         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
97829         bug.  Deal with the different error behavior of Irix iconv.
97830
97831 2000-04-05  Paul Eggert  <eggert@twinsun.com>
97832
97833         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
97834         IRIX if the installer said otherwise.
97835
97836 2000-04-05  Jim Meyering  <meyering@lucent.com>
97837
97838         Portability tweaks required for ultrix4.3.
97839         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
97840         (jm_CHECK_DECLS): Add getutent to the list of functions.
97841         (_jm_DECL_HEADERS): Add utmpx.h.
97842         From John David Anglin.
97843
97844         * m4/strftime.m4: Back out the 2000-04-02 change.
97845         Instead of that change, simply undefine putenv in the test program.
97846
97847 2000-04-05  Jim Meyering  <meyering@lucent.com>
97848
97849         Portability tweaks required for ultrix4.3.
97850         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
97851         getutent.
97852         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
97853         * lib/canon-host.c: Declare strdup.
97854         * lib/path-concat.c: Likewise.
97855         From John David Anglin.
97856
97857 2000-04-04  Jim Meyering  <meyering@lucent.com>
97858
97859         Be more DOS 8.3-friendly.
97860         * lib/ref-add.sin: Renamed from ref-add.sed.in.
97861         * lib/ref-del.sin: Renamed from ref-del.sed.in.
97862         * lib/Makefile.am: Reflect renaming.
97863         Reported by Eli Zaretskii.
97864
97865         Use a temporary file name that won't clash with `charset.alias'
97866         in the DOS 8.3 name space.
97867         * lib/Makefile.am (charset_tmp): Define.
97868         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
97869         (uninstall-local): Likewise.
97870         Reported by Eli Zaretskii.
97871
97872 2000-04-03  Jim Meyering  <meyering@lucent.com>
97873
97874         * m4/gettext.m4: Fix typo in comment.
97875
97876         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
97877         textutils/configure.in).  Suggestion from Paul Eggert.
97878         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
97879
97880 2000-04-02  Paul Eggert  <eggert@twinsun.com>
97881
97882         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
97883         variable in the shell rather than using putenv, which isn't
97884         portable.  This avoids the configure-time inter-test dependency
97885         on the potentially-renamed putenv function.
97886
97887 2000-03-30  Paul Eggert  <eggert@twinsun.com>
97888
97889         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
97890         before checking struct stat.st_blksize, so that
97891         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
97892
97893 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97894
97895         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
97896         since strftime.c uses HAVE_STRFTIME to decide whether to use
97897         the underlying strftime.
97898
97899 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97900
97901         * lib/time/strftime.c (my_strftime): Make sure we call the system
97902         strftime, not ourselves, when invoking the underlying strftime.
97903
97904 2000-03-24  Jim Meyering  <meyering@lucent.com>
97905
97906         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
97907         (charset_alias): Define.
97908         (install-exec-local): Factor out common code.
97909         (uninstall-local): Split lines longer than 80.
97910         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
97911         (SUFFIXES): Define.
97912         (.sed.in.sed): New rule.  Don't redirect directly to $@.
97913         (CLEANFILES): Add ref-add.sed and ref-del.sed.
97914
97915 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
97916
97917         * lib/config.charset: Output a line containing "Packages using this
97918         file".
97919         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
97920         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
97921         ref-del.sed): New rules.
97922
97923 2000-03-17  Jim Meyering  <meyering@lucent.com>
97924
97925         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
97926         Otherwise, include <strings.h>
97927
97928 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
97929
97930         * lib/unicodeio.c (utf8_wctomb): New function.
97931         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
97932         format instead of in UCS-4 with platform dependent endianness.
97933
97934 2000-03-10  Jim Meyering  <meyering@lucent.com>
97935
97936         * m4/lib-check.m4: Look for getspnam in -lgen, too.
97937         From Marco Franzen.
97938
97939 2000-03-07  Paul Eggert  <eggert@twinsun.com>
97940
97941         * lib/savedir.c (savedir): Work even if directory size is
97942         negative; this can happen with some screwy NFS configurations.
97943
97944 2000-03-06  Jim Meyering  <meyering@lucent.com>
97945
97946         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
97947         if it's NULL (because we ran out of memory).  From Bruno Haible.
97948
97949 2000-03-05  Jim Meyering  <meyering@lucent.com>
97950
97951         * lib/localcharset.c ("path-concat.h"): Include.
97952         (get_charset_aliases): Use path_concat instead of ANSI string
97953         concatenation.
97954
97955         * lib/unicodeio.h (PARAMS): Define.
97956         Use it to guard prototype.
97957
97958 2000-03-04  Jim Meyering  <meyering@lucent.com>
97959
97960         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
97961         for lib/localcharset.c.
97962
97963 2000-03-04  Jim Meyering  <meyering@lucent.com>
97964
97965         * lib/Makefile.am (install-exec-local): Create $(libdir) before
97966         installing into it.
97967         (uninstall-local): Uncomment this rule so `make distcheck' works
97968         once again.
97969
97970         * lib/unicodeio.c (<errno.h>): Include it.
97971         (errno): Declare if not defined.
97972
97973         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
97974
97975         * lib/config.charset: New version, incorporating remarks from a linux
97976         i18n mailing list.  From Bruno Haible.
97977
97978 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
97979
97980         * m4/codeset.m4: New file.
97981         * m4/iconv.m4: New file.
97982         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
97983
97984 2000-03-03  Jim Meyering  <meyering@lucent.com>
97985
97986         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
97987
97988 2000-03-02  Jim Meyering  <meyering@lucent.com>
97989
97990         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
97991         the messages come out on separate lines.
97992
97993         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
97994         rather than jm_CHECK_DECLARATIONS.
97995         * m4/decl.m4: Remove now-unused file.
97996
97997         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
97998         geteuid.
97999
98000 2000-03-02  Jim Meyering  <meyering@lucent.com>
98001
98002         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
98003
98004 2000-03-01  Jim Meyering  <meyering@lucent.com>
98005
98006         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
98007         * lib/unicodeio.c: Likewise.
98008
98009 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
98010
98011         * lib/config.charset: New file.
98012         * lib/localcharset.c: New file.
98013         * lib/unicodeio.h, lib/unicodeio.c: New files.
98014         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
98015         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
98016         (noinst_HEADERS): Add unicodeio.h.
98017         (all-local, install-exec-local, charset.alias): New targets.
98018
98019 2000-02-28  Paul Eggert  <eggert@twinsun.com>
98020
98021         * lib/quotearg.c (ALERT_CHAR): New macro.
98022         (quotearg_buffer_restyled): Use it.
98023
98024 2000-02-27  Jim Meyering  <meyering@lucent.com>
98025
98026         * m4/check-decl.m4: Add getenv to the list.
98027
98028 2000-02-27  Jim Meyering  <meyering@lucent.com>
98029
98030         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
98031         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
98032
98033         * lib/backupfile.c: Guard inclusion of stdlib.h with
98034         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
98035         Declare malloc if needed.
98036
98037         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
98038         `#ifndef HAVE_DECL..'
98039         now that autoconf always defines the HAVE_DECL_ symbols.
98040         * lib/human.c: Likewise.
98041         * lib/same.c: Likewise.
98042         * lib/strtoumax.c: Likewise.
98043
98044         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
98045         declaration check was not run.
98046         * lib/hash.c: Likewise.
98047         * lib/human.c: Likewise.
98048         * lib/same.c: Likewise.
98049         * lib/strtoumax.c: Likewise.
98050
98051         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
98052         `.', then first look up the entire `.'-containing string as a login
98053         name.
98054
98055 2000-02-23  Jim Meyering  <meyering@lucent.com>
98056
98057         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
98058         in place of my hack.
98059
98060 2000-02-18  Paul Eggert  <eggert@twinsun.com>
98061
98062         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
98063         (textint): New typedef.
98064         (parser_control): Member year changed from int to textint.
98065         All uses changed.
98066         (YYSTYPE): Removed; replaced by %union with int and textint members.
98067         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
98068         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
98069         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
98070         (tSNUMBER, tUNUMBER): Now of type <textintval>.
98071         (date, number, to_year): Use width of number in digits, not its value,
98072         to determine whether it's a 2-digit year, or a 2-digit time.
98073         (yylex): Store number of digits of numeric tokens.
98074         Reported by John Kendall.
98075
98076         (parser_control): Changed from struct parser_control to typedef (for
98077         consistency).  All uses changed.
98078
98079         (tID): Removed; not used.
98080         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
98081
98082 2000-02-14  Paul Eggert  <eggert@twinsun.com>
98083
98084         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
98085         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
98086
98087 2000-02-12  Jim Meyering  <meyering@lucent.com>
98088
98089         * lib/userspec.c (ISDIGIT): Define it.
98090         (isdigit): Remove definition.
98091         (is_number): Use ISDIGIT, not isdigit.
98092         <libintl.h>: Include.
98093         (_ and N_): Define.
98094         (parse_user_spec): Mark translatable strings.
98095
98096 2000-02-10  Jim Meyering  <meyering@lucent.com>
98097
98098         With these changes, nanosleep.[ch] are finally enough like the other
98099         lib/* replacement files to compile on a few more losing systems.
98100
98101         * lib/nanosleep.h: Don't include config.h.
98102         Remove prototype from declaration of nanosleep.
98103         (PARAMS): Remove now-unneeded definition.
98104         * lib/nanosleep.c: #undef nanosleep.
98105         (rpl_nanosleep): Rename from nanosleep.
98106
98107 2000-02-10  Jim Meyering  <meyering@lucent.com>
98108
98109         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
98110         gnu_nanosleep to rpl_nanosleep.
98111
98112 2000-02-09  Jim Meyering  <meyering@lucent.com>
98113
98114         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
98115         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
98116
98117 2000-02-08  Akim Demaille  <akim@epita.fr>
98118
98119         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
98120         `[' and `]' and remove uses of `changequote'.
98121         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
98122         (AC_SYS_LARGEFILE): Likewise.
98123         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
98124         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
98125         of changequote.
98126         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
98127         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
98128         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
98129         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
98130
98131 2000-02-05  Jim Meyering  <meyering@lucent.com>
98132
98133         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
98134         Remove explicit use of AC_HEADER_TIME.  It is required by
98135         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
98136         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
98137         in autoconf whereby the expansion of the latter ended up preceding
98138         the expansion of its prerequisite, AC_HEADER_TIME.
98139         Reported by Volker Borchert.
98140
98141 2000-02-03  Jim Meyering  <meyering@lucent.com>
98142
98143         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
98144
98145 2000-02-03  Jim Meyering  <meyering@lucent.com>
98146
98147         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
98148         rather than with `#if HAVE_UTMPNAME'.
98149
98150 2000-02-02  Jim Meyering  <meyering@lucent.com>
98151
98152         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
98153         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
98154         Reported by Eli Zaretskii.
98155
98156 2000-02-01  Jim Meyering  <meyering@lucent.com>
98157
98158         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
98159
98160 2000-01-31  Jim Meyering  <meyering@lucent.com>
98161
98162         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
98163         functions.  Add the time.h and sys/time.h headers along with the
98164         AC_REQUIRE'ment of AC_HEADER_TIME.
98165
98166 2000-01-31  Jim Meyering  <meyering@lucent.com>
98167
98168         * lib/nanosleep.h (nanosleep): Guard declaration with
98169         `#if ! HAVE_DECL_NANOSLEEP'.
98170         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
98171         the declaration in that vendor's sys/timers.h.
98172         Reported by Christian Krackowizer.
98173
98174         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
98175         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
98176         (ISPRINT): Likewise.
98177         Reported by Tom Tromey.
98178
98179 2000-01-30  Jim Meyering  <meyering@lucent.com>
98180
98181         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
98182
98183         * m4/prereq.m4 (utmp_includes): Define.
98184         Check for ut_user and ut_name members in both struct utmpx
98185         and struct utmp.
98186
98187 2000-01-30  Jim Meyering  <meyering@lucent.com>
98188
98189         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
98190         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
98191         header files where only utmpx.ut_user is declared.
98192
98193         * lib/readutmp.h (UT_USER): Define.
98194
98195 2000-01-29  Jim Meyering  <meyering@lucent.com>
98196
98197         * m4/lib-check.m4: New file containing library-related checks from
98198         fileutils and sh-utils (textutils had none).
98199
98200 2000-01-28  Jim Meyering  <meyering@lucent.com>
98201
98202         * m4/perl.m4: Change format of warning message to look more like that
98203         from the missing script.  Suggestion from François Pinard.
98204
98205 2000-01-25  Jim Meyering  <meyering@lucent.com>
98206
98207         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
98208         well as time.h in the compile check.
98209         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
98210         Fix typo in cross-compiling case: s/yes/no/.
98211
98212 2000-01-23  Jim Meyering  <meyering@lucent.com>
98213
98214         * m4/jm-macros.m4: Move df-related tests here from
98215         fileutils/configure.in
98216
98217         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
98218         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
98219
98220         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
98221         s/space/ac_fsusage_space/.
98222         (jm_FILE_SYSTEM_USAGE): Take two parameters.
98223
98224         * m4/ftruncate.m4: New file (derived from part of
98225         fileutils/configure.in).
98226         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
98227         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
98228
98229         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
98230         AC_SUBST these here, rather than just in sh-util/configure.in, so
98231         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
98232         all the same.
98233         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
98234         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
98235         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
98236         (AC_SUBST(POW_LIBM)): Likewise.
98237         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
98238
98239 2000-01-23  Jim Meyering  <meyering@lucent.com>
98240
98241         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
98242         obstack.c.
98243
98244 2000-01-22  Jim Meyering  <meyering@lucent.com>
98245
98246         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
98247
98248         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
98249
98250         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
98251         configure.in
98252         (AC_CHECK_HEADERS): Likewise for sh-utils.
98253         (AC_CHECK_HEADERS): Likewise for textutils.
98254         Merge the three lists of headers.
98255
98256         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
98257         from fileutils' configure.in.
98258
98259         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
98260         code. Moved tests into their own function (_jm_DECL_HEADERS) in
98261         check-decl.m4.
98262
98263         * m4/check-decl.m4: Use #if rather than #ifdef.
98264         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
98265         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
98266         (_jm_DECL_HEADERS): Define new function.
98267         (jm_CHECK_DECLARATIONS): Require it.
98268
98269 2000-01-22  Jim Meyering  <meyering@lucent.com>
98270
98271         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
98272         [! HAVE_DECL_STRTOULL]: Declare strtoull.
98273         Required for some AIX systems.  Reported by Christian Krackowizer.
98274         [TESTING] (main): New function.
98275
98276         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
98277         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
98278         letters.
98279
98280         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
98281         iswprint.
98282
98283         * lib/strverscmp.c (ISDIGIT): Define.
98284         (strverscmp): Use ISDIGIT, not isdigit.
98285
98286 2000-01-19  Jim Meyering  <meyering@lucent.com>
98287
98288         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
98289         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
98290         defines `struct timespec' in <sys/time.h>
98291
98292         * m4/c-bs-a.m4: Remove uses of changequote altogether.
98293         Thanks to Akim for explaining.
98294
98295 2000-01-17  Paul Eggert  <eggert@twinsun.com>
98296
98297         * lib/nanosleep.c (nanosleep):
98298         Don't use SA_INTERRUPT to decide whether to call sigaction, as
98299         POSIX.1 doesn't require SA_INTERRUPT and some systems
98300         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
98301         it's been part of POSIX.1 since day 1 (in 1988).
98302
98303 2000-01-17  Jim Meyering  <meyering@lucent.com>
98304
98305         * lib/interlock: Remove unused file.  Reported by François Pinard.
98306
98307 2000-01-16  Paul Eggert  <eggert@twinsun.com>
98308
98309         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
98310         alert, backslash, formfeed, and vertical tab unnecessarily in
98311         shell quoting style.
98312
98313 2000-01-16  Jim Meyering  <meyering@lucent.com>
98314
98315         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
98316         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
98317         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
98318         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
98319
98320 2000-01-16  Jim Meyering  <meyering@lucent.com>
98321
98322         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
98323         because the latter didn't work.
98324
98325 2000-01-15  Jim Meyering  <meyering@lucent.com>
98326
98327         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
98328         (AC_REPLACE_FUNCS): Add memcpy and memset.
98329         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
98330         Add strpbrk.
98331         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
98332
98333 2000-01-12  Jim Meyering  <meyering@lucent.com>
98334
98335         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
98336         (jm_PREREQ): Use it.
98337         (jm_PREREQ_READUTMP): New macro.
98338         (jm_PREREQ): Use it.
98339
98340 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98341
98342         Quote multibyte characters correctly.
98343         * m4/c-bs-a.m4: New file.
98344         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
98345         (jm_PREREQ): Use it.
98346
98347 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98348
98349         * m4/uintmax_t.m4: Port to autoconf 2.13.
98350
98351 2000-01-08  Jim Meyering  <meyering@ascend.com>
98352
98353         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
98354         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
98355
98356 2000-01-04  Jim Meyering  <meyering@ascend.com>
98357
98358         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
98359         jm_STRUCT_DIRENT_D_TYPE.
98360         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
98361         jm_STRUCT_DIRENT_D_INO.
98362         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
98363         jm_STRUCT_UTIMBUF.
98364         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
98365         renamings.
98366         * m4/utime.m4: Likewise.
98367
98368         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
98369         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
98370
98371 2000-01-03  Paul Eggert  <eggert@twinsun.com>
98372
98373         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
98374         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
98375
98376 2000-01-02  Jim Meyering  <meyering@ascend.com>
98377
98378         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
98379         remember if this is necessary.
98380
98381 1999-12-26  Jim Meyering  <meyering@ascend.com>
98382
98383         * m4/jm-macros.m4: Use it here.
98384         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
98385
98386 1999-12-23  Jim Meyering  <meyering@ascend.com>
98387
98388         * m4/jm-macros.m4: Check for clock_gettime (moved from
98389         fileutils/configure.in)
98390         Check for gettimeofday.
98391
98392 1999-12-20  Jim Meyering  <meyering@ascend.com>
98393
98394         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
98395         autoconf-2.14a-1999-12-20.
98396
98397 1999-12-19  Jim Meyering  <meyering@ascend.com>
98398
98399         * m4/lstat-slash.m4: New file.
98400         * m4/jm-macros.m4: Use the new macro:
98401         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98402
98403 1999-12-07  Jim Meyering  <meyering@ascend.com>
98404
98405         * m4/perl.m4: Require that File::Compare be available, too.
98406         Too many systems seem to lack it.
98407
98408         * m4/strftime.m4: Add checks for most of the cpp macros tested in
98409         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
98410
98411 1999-11-18  Paul Eggert  <eggert@twinsun.com>
98412
98413         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
98414         problem with the QNX 4.25 shell, which doesn't propagate exit
98415         status of failed commands inside shell assignments.
98416
98417 1999-11-17  Jim Meyering  <meyering@ascend.com>
98418
98419         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
98420
98421 1999-11-07  Jim Meyering  <meyering@ascend.com>
98422
98423         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
98424
98425 1999-11-06  Jim Meyering  <meyering@ascend.com>
98426
98427         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
98428         * m4/jm-macros.m4 (jm_MACROS): Use it here.
98429
98430 1999-11-05  Jim Meyering  <meyering@ascend.com>
98431
98432         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
98433         configure.in of textutils, fileutils, and sh-utils into this one
98434         (shared between those packages) file.
98435         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
98436         AC_STRUCT_ST_BLKSIZE.
98437
98438 1999-11-03  Jim Meyering  <meyering@ascend.com>
98439
98440         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
98441         of AC_CHECK_TYPE checks includes unistd.h.
98442         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
98443         Suggestion from Akim Demaille.
98444
98445 1999-10-30  Jim Meyering  <meyering@ascend.com>
98446
98447         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
98448         m4-quoted string.
98449         * m4/ls-mntd-fs.m4: Likewise.
98450         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
98451         * m4/jm-winsz1.m4: Likewise.
98452
98453         * m4/const.m4: Remove file, since the fix made it into the experimental
98454         version of autoconf.
98455         * m4/mktime.m4: Likewise.
98456
98457         * m4/check-type.m4: Remove file, now that the latest version of
98458         AC_CHECK_TYPE takes a third arg to specify additional #includes.
98459
98460         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
98461         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
98462         AC_CHECK_TYPE.
98463
98464 1999-10-04  Jim Meyering  <meyering@ascend.com>
98465
98466         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
98467
98468 1999-09-22  Paul Eggert  <eggert@twinsun.com>
98469
98470         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
98471         2.95.1 bug with HP-UX 10.20.
98472
98473 1999-09-17  Jim Meyering  <meyering@ascend.com>
98474
98475         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
98476         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
98477         due to missing strdup (against sh-utils-2.0).
98478
98479 1999-08-29  Jim Meyering  <meyering@ascend.com>
98480
98481         * m4/jm-macros.m4: Require jm_BISON.
98482         * m4/bison.m4: New file.
98483
98484 1999-08-17  Paul Eggert  <eggert@twinsun.com>
98485
98486         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
98487         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
98488
98489 1999-08-05  Jim Meyering  <meyering@ascend.com>
98490
98491         * m4/getline.m4: Rename test file from conftestdata to conftest.data
98492         to avoid conflicts with `conftest' on 8+3 filesystems.
98493         Suggestion from Eli Zaretskii.
98494
98495 1999-08-04  Jim Meyering  <meyering@ascend.com>
98496
98497         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
98498         fileutils and sh-utils (textutils's getline test was inadequate).
98499         (AM_FUNC_GETLINE): Run this test.
98500         (AC_CHECK_FUNCS): Check for getdelim.
98501         Reported by Bob Proulx.
98502
98503 1999-08-02  Jim Meyering  <meyering@ascend.com>
98504
98505         * m4/jm-macros.m4: Add a comment.
98506
98507 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98508
98509         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
98510         <inttypes.h> defines strtoumax as a macro (and not as a
98511         function).
98512
98513 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98514
98515         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
98516         that we can shift, multiply and divide unsigned long long
98517         values; Ultrix cc can't do it.
98518
98519 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98520
98521         * m4/mktime.m4: New file, which is a preview of what should appear
98522         in the next public autoconf release.
98523
98524 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98525
98526         * m4/lfs.m4: Remove this file.
98527         * m4/largefile.m4: New file.  It contains the old contents of
98528         lfs.m4, except that all names with prefix AC_LFS have been
98529         changed to use the prefix AC_SYS_LARGEFILE instead, to be
98530         compatible with future autoconf versions.  Also, some minor m4
98531         quoting problems have been fixed.
98532
98533 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98534
98535         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
98536         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
98537         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
98538         and simplify the shell code.
98539
98540 1999-08-01  Jim Meyering  <meyering@ascend.com>
98541
98542         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
98543         m4.
98544
98545 1999-07-20  Jim Meyering  <meyering@ascend.com>
98546
98547         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
98548
98549 1999-07-15  Jim Meyering  <meyering@ascend.com>
98550
98551         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
98552
98553 1999-05-22  Jim Meyering  <meyering@ascend.com>
98554
98555         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
98556
98557 1999-05-20  Jim Meyering  <meyering@ascend.com>
98558
98559         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
98560         Add a colon after each `then' in case $4 is empty.
98561
98562 1999-05-16  Jim Meyering  <meyering@ascend.com>
98563
98564         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
98565
98566 1999-05-10  Jim Meyering  <meyering@ascend.com>
98567
98568         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
98569
98570         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
98571         AC_FUNC_MKTIME.
98572
98573 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
98574
98575         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
98576
98577 1999-05-04  Paul Eggert  <eggert@twinsun.com>
98578
98579         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
98580         not CPPFLAGS, so that linking works correctly in IRIX.
98581
98582 1999-04-30  Paul Eggert  <eggert@twinsun.com>
98583
98584         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
98585
98586 1999-04-20  Paul Eggert  <eggert@twinsun.com>
98587
98588         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
98589         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
98590         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
98591         jm_AC_TYPE_UNSIGNED_LONG_LONG.
98592         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
98593
98594         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
98595
98596 1999-04-20  Jim Meyering  <meyering@ascend.com>
98597
98598         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
98599         AC_REPLACE xstroull if necessary.  From Paul Eggert.
98600         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
98601
98602 1999-04-18  Jim Meyering  <meyering@ascend.com>
98603
98604         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
98605         * m4/jm-macros.m4: Use it.
98606
98607 1999-04-06  Jim Meyering  <meyering@ascend.com>
98608
98609         * m4/strftime.m4: Remove test for %f.
98610
98611 1999-03-29  Jim Meyering  <meyering@ascend.com>
98612
98613         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
98614         superset of the AC_TYPE_* checks in the textutils, fileutils,
98615         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
98616         AC_TYPE_PID_T.
98617
98618 1999-03-28  Jim Meyering  <meyering@ascend.com>
98619
98620         * m4/jm-macros.m4: Define GNU_PACKAGE here.
98621         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
98622         replaced e.g., in the *.sh files of the sh-utils.
98623
98624 1999-03-20  Jim Meyering  <meyering@ascend.com>
98625
98626         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
98627         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
98628         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
98629
98630 1999-03-19  Jim Meyering  <meyering@ascend.com>
98631
98632         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
98633
98634 1999-03-12  Jim Meyering  <meyering@ascend.com>
98635
98636         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
98637
98638 1999-03-07  Jim Meyering  <meyering@ascend.com>
98639
98640         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
98641         declared.
98642
98643 1999-02-17  Jim Meyering  <meyering@ascend.com>
98644
98645         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
98646         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
98647
98648 1999-02-07  Jim Meyering  <meyering@ascend.com>
98649
98650         * m4/group-member.m4: New file -- extracted from sh-utils'
98651         configure.in.
98652
98653         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
98654         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
98655
98656 1999-02-06  Jim Meyering  <meyering@ascend.com>
98657
98658         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
98659         * m4/fnmatch.m4: Likewise.
98660         * m4/getgroups.m4: Likewise.
98661         * m4/lstat.m4: Likewise.
98662         * m4/malloc.m4: Likewise.
98663         * m4/putenv.m4: Likewise.
98664         * m4/realloc.m4: Likewise.
98665         * m4/regex.m4: Likewise.
98666         * m4/stat.m4: Likewise.
98667         * m4/strftime.m4: Likewise.
98668         Suggestion from Alain Magloire.
98669
98670         * m4/chown.m4: Use `.$ac_objext', not `.o'.
98671         * m4/fnmatch.m4: Likewise.
98672         * m4/getgroups.m4: Likewise.
98673         * m4/getline.m4: Likewise.
98674         * m4/lstat.m4: Likewise.
98675         * m4/malloc.m4: Likewise.
98676         * m4/memcmp.m4: Likewise.
98677         * m4/putenv.m4: Likewise.
98678         * m4/realloc.m4: Likewise.
98679         * m4/regex.m4: Likewise.
98680         * m4/stat.m4: Likewise.
98681         * m4/strftime.m4: Likewise.
98682         Suggestion from Alain Magloire.
98683
98684         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
98685         an argument.
98686
98687         * m4/regex.m4: Add a run-time Test for proper operation of
98688         re_compile_pattern.
98689
98690 1999-01-31  Jim Meyering  <meyering@ascend.com>
98691
98692         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
98693
98694 1999-01-30  Jim Meyering  <meyering@ascend.com>
98695
98696         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
98697
98698         * m4/jm-mktime.m4: Make this a wrapper around the official
98699         AM_FUNC_MKTIME rather than my private copy, now that the official one
98700         is up to date.
98701         * m4/mktime.m4: Remove file.
98702
98703         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
98704         * m4/uptime.m4: Likewise.
98705         * m4/uintmax_t.m4: Likewise.
98706
98707 1999-01-28  Jim Meyering  <meyering@ascend.com>
98708
98709         * m4/jm-macros.m4: Use jm_AFS.
98710         * m4/afs.m4: New file (from fileutils' configure.in).
98711
98712         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
98713         * m4/chown.m4: Likewise.
98714         * m4/d-ino.m4: Likewise.
98715         * m4/d-type.m4: Likewise.
98716         * m4/fnmatch.m4: Likewise.
98717         * m4/getgroups.m4: Likewise.
98718         * m4/gettext.m4: Likewise.
98719         * m4/jm-mktime.m4: Likewise.
98720         * m4/jm-winsz2.m4: Likewise.
98721         * m4/lcmessage.m4: Likewise.
98722         * m4/ls-mntd-fs.m4: Likewise.
98723         * m4/malloc.m4: Likewise.
98724         * m4/memcmp.m4: Likewise.
98725         * m4/putenv.m4: Likewise.
98726         * m4/realloc.m4: Likewise.
98727         * m4/st_mtim.m4: Likewise.
98728         * m4/strftime.m4: Likewise.
98729
98730 1999-01-16  Jim Meyering  <meyering@ascend.com>
98731
98732         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
98733         (ARGMATCH_DIE_DECL): Define.
98734
98735 1999-01-12  Jim Meyering  <meyering@ascend.com>
98736
98737         * m4/Makefile.am.in: Rewrite to avoid using fmt.
98738         Reported by Lars Hecking.
98739
98740 1999-01-10  Jim Meyering  <meyering@ascend.com>
98741
98742         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
98743         gross kludge.
98744         * m4/inttypes_h.m4: Likewise.
98745         * m4/lstat.m4: Likewise.
98746         * m4/malloc.m4: Likewise.
98747         * m4/readdir.m4: Likewise.
98748         * m4/realloc.m4: Likewise.
98749         * m4/st_dm_mode.m4: Likewise.
98750         * m4/stat.m4: Likewise.
98751         * m4/utimbuf.m4: Likewise.
98752         * m4/utimes.m4: Likewise.
98753
98754         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
98755         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
98756         comments in config.h.in are meaningful.
98757
98758         * m4/jm-macros.m4: Require autoconf-2.13 here.
98759
98760         * m4/regex.m4: By default, don't use the included regex.c on systems
98761         with glibc 2.  Suggestion from Uli Drepper.
98762
98763 1999-01-02  Jim Meyering  <meyering@ascend.com>
98764
98765         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
98766
98767 1998-12-18  Jim Meyering  <meyering@ascend.com>
98768
98769         * m4/Makefile.am.in (Makefile.am): Simplify rule.
98770         Based on a suggestion from Lars Hecking.
98771
98772 1998-11-16  Paul Eggert  <eggert@twinsun.com>
98773
98774         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
98775
98776 1998-11-16  Jim Meyering  <meyering@ascend.com>
98777
98778         * m4/lfs.m4: Double-quote the `uname...` expression.
98779
98780 1998-11-14  Jim Meyering  <meyering@ascend.com>
98781
98782         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
98783         * m4/stat.m4: Likewise.
98784
98785 1998-11-03  Jim Meyering  <meyering@ascend.com>
98786
98787         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
98788         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
98789
98790 1998-10-18  Jim Meyering  <meyering@ascend.com>
98791
98792         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
98793
98794 1998-10-17  Jim Meyering  <meyering@ascend.com>
98795
98796         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
98797         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
98798         calls for those previously hard-coded headers.  Instead, take a new
98799         parameter.
98800         (jm_CHECK_DECLARATIONS): Reflect interface change.
98801         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
98802         (jm_CHECK_DECL_LOCALTIME_R): New macro.
98803
98804         * m4/mktime.m4: Test for spring-forward gap before long-running test.
98805
98806 1998-10-14  Jim Meyering  <meyering@ascend.com>
98807
98808         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
98809         instead of "TZ=America/Vancouver".  From Paul Eggert.
98810
98811 1998-10-11  Jim Meyering  <meyering@ascend.com>
98812
98813         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
98814         This adds a test for a recently added compatibility fix for mktime.c.
98815         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
98816
98817 1998-09-27  Jim Meyering  <meyering@ascend.com>
98818
98819         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
98820
98821         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
98822         ../configure.in, including a change from Gordon Matzigkeit to allow
98823         cross-compiling for the Hurd.
98824
98825         * m4/glibc.m4: New file/macro to test for the GNU C Library
98826         versions 1 and 2.  From Gordon Matzigkeit.
98827         Indent.
98828
98829 1998-09-21  Jim Meyering  <meyering@ascend.com>
98830
98831         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
98832
98833 1998-08-18  Paul Eggert  <eggert@twinsun.com>
98834
98835         Port nanosecond-resolution times to UnixWare 2.1.2 and
98836         pedantic Solaris 2.6.
98837
98838         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
98839         AC_STRUCT_ST_MTIM.
98840         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
98841         Generate name of ns member, instead of just 1 or undef.
98842         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
98843
98844 1998-08-15  Jim Meyering  <meyering@ascend.com>
98845
98846         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
98847         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
98848         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
98849         instead of jm_TYPE_SSIZE_T.
98850
98851 1998-08-12  Jim Meyering  <meyering@ascend.com>
98852
98853         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
98854
98855 1998-08-02  Jim Meyering  <meyering@ascend.com>
98856
98857         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
98858         in acconfig.h manually.
98859
98860 1998-07-31  Paul Eggert  <eggert@twinsun.com>
98861
98862         * m4/st_mtim.m4: New file.
98863
98864 1998-07-28  Jim Meyering  <meyering@ascend.com>
98865
98866         * m4/utimes.m4: Undef stat.
98867
98868 1998-07-25  Jim Meyering  <meyering@ascend.com>
98869
98870         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
98871         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
98872
98873 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
98874
98875         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
98876         uid and gid actually remain unchanged.
98877
98878 1998-07-07  Jim Meyering  <meyering@ascend.com>
98879
98880         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
98881
98882 1998-07-04  Jim Meyering  <meyering@ascend.com>
98883
98884         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
98885         to prove that this macro can be used in packages without regex.c.
98886
98887 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
98888
98889         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
98890         is to be used.
98891
98892 1998-07-03  Jim Meyering  <meyering@ascend.com>
98893
98894         * m4/gettext.m4: Add -lintl if it's found to be necessary.
98895
98896         * m4/gettext.m4: New file -- from gettext-0.10.35.
98897         * m4/lcmessage.m4: Likewise.
98898         * m4/progtest.m4: Likewise.
98899
98900         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
98901         * m4/jm-macros.m4: Require the new macro.
98902
98903 1998-06-29  Jim Meyering  <meyering@ascend.com>
98904
98905         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
98906         for the definition of NGROUPS (used in a system header included
98907         by sys/mount.h).
98908
98909 1998-06-28  Jim Meyering  <meyering@ascend.com>
98910
98911         * m4/ls-mntd-fs.m4: New file.
98912         * m4/fstypename.m4: New file.
98913
98914         * m4/jm-macros.m4: Require the new macro.
98915         * m4/jm-glibc-io.m4: New file.
98916
98917 1998-05-19  Jim Meyering  <meyering@ascend.com>
98918
98919         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
98920         * m4/lchown.m4: New file.
98921
98922         * m4/Makefile.am.in: New file.
98923         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
98924
98925 1998-05-14  Jim Meyering  <meyering@ascend.com>
98926
98927         * m4/Makefile.am (EXTRA_DIST): Add them.
98928         * m4/jm-macros.m4: New file.
98929         * m4/utimbuf.m4: New file.
98930
98931 1998-05-12  Jim Meyering  <meyering@ascend.com>
98932
98933         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
98934
98935 1998-05-11  Jim Meyering  <meyering@ascend.com>
98936
98937         * m4/isc-posix.m4: New file.
98938
98939 1998-05-10  Jim Meyering  <meyering@ascend.com>
98940
98941         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
98942
98943 1998-05-09  Jim Meyering  <meyering@ascend.com>
98944
98945         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
98946         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
98947         with automake.
98948
98949         * m4/ssize_t.m4: New file.
98950         * m4/mktime.m4: Remove file -- the new automake has this now.
98951
98952 1998-04-26  Jim Meyering  <meyering@ascend.com>
98953
98954         * m4/assert.m4: New file.
98955         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
98956
98957 1998-04-05  Jim Meyering  <meyering@ascend.com>
98958
98959         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
98960         (jm_PREREQ): Use it here.
98961
98962 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
98963
98964         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
98965         in acconfig.h.
98966
98967 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
98968
98969         * m4/prereq.m4: New file.
98970         * m4/error.m4: New file.
98971         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
98972
98973 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
98974
98975         * m4/getline.m4: Don't set am_cv_func_working_getline before the
98976         cache-check for the same variable -- that defeated the purpose of
98977         the test; the test program was never run.  This was a problem only
98978         on systems with losing getline functions -- HP-UX 10.20 is one.
98979         Reported by Bjorn Helgaas.
98980
98981 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
98982
98983         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
98984
98985 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
98986
98987         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
98988
98989         * m4/const.m4: New file.  Use an initializer in this declaration
98990         typedef int charset[2]; const charset x;
98991         Reported by Bob Glickstein.
98992
98993 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
98994
98995         * m4/chown.m4: Fix reversed types on -1 args to chown.
98996         From Kaveh Ghazi.
98997
98998 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
98999
99000         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
99001         Add lseek and memchr.
99002
99003         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
99004         T.E.Dickey <dickey@clark.net> said that some older preprocessors
99005         have a 20-character limit on names.
99006
99007 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
99008
99009         * m4/inttypes_h.m4: New file.
99010         * m4/uintmax_t.m4: New file.
99011         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
99012
99013
99014         -----
99015
99016         Local Variables:
99017         coding: utf-8
99018         End:
99019
99020         Copyright (C) 1997-2013 Free Software Foundation, Inc.
99021
99022         Copying and distribution of this file, with or without
99023         modification, are permitted provided the copyright notice
99024         and this notice are preserved.